diff --git a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/teachingAdmin/courseInfo.vue b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/teachingAdmin/courseInfo.vue index 6832088..ce6d214 100644 --- a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/teachingAdmin/courseInfo.vue +++ b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/teachingAdmin/courseInfo.vue @@ -46,6 +46,10 @@ defaultValue: { type: Array, default: [], + }, + planInfo:{ + type:Object, + default:{} } }, data(){ @@ -64,6 +68,13 @@ this.getStageList(); }, mounted(){ + console.log("planInfo:",this.$props.planInfo) + if(this.planInfo && this.planInfo.plan_id !== ""){ + this.planId = this.planInfo.plan_id; + this.courseName = this.planInfo.course_name; + this.planNumber = this.planInfo.plan_number; + this.realNumber = this.planInfo.real_number; + } this.stageId = this.defaultValue[0]; this.yearId = this.defaultValue[1]; }, diff --git a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/teachingAdmin/coursePlan.vue b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/teachingAdmin/coursePlan.vue index 259a81b..c983a33 100644 --- a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/teachingAdmin/coursePlan.vue +++ b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/teachingAdmin/coursePlan.vue @@ -19,7 +19,9 @@ v-if="record.real_plan_matching_degree < 0"/> - 删除 + 编辑 + + 删除 @@ -33,7 +35,7 @@ 是否确定删除此条信息? @@ -101,7 +103,7 @@ tableColumn: tableColumn, dataList: [], loading: false, - honorId: "", + planInfo: {}, visible: false, } }, @@ -185,10 +187,15 @@ this.getListPlanByStageYear(); }, toAdd: function () { + this.planInfo = {}; this.pageType = 1; }, + toEdit:function (record) { + this.pageType = 1; + this.planInfo = record; + }, toDelete: function (record) { - this.honorId = record.honor_id; + this.planId = record.plan_id; this.visible = true; }, cancel: function () { @@ -223,14 +230,14 @@ //确定删除 handleOk: function () { let param = { - honor_ids: this.honorId, + plan_ids: this.planId, bureau_id: this.BaseConfig.person_info_my.bureau_id, } this.InterfaceConfig.callInterface([{ - url: InterConfig.deleteHonor.url, + url: InterConfig.deleteCourse.url, params: param, - method: InterConfig.deleteHonor.method, - isTestLogin: InterConfig.deleteHonor.isTestLogin, + method: InterConfig.deleteCourse.method, + isTestLogin: InterConfig.deleteCourse.isTestLogin, }], (result) => { let resData = result[0].data; if (resData.code === 2000) { @@ -240,13 +247,13 @@ centered: true }); this.handleCancel(); - this.getHonorList(); + this.getListPlanByStageYear(); } }) }, //取消 handleCancel: function () { - this.honorId = ""; + this.planId = ""; this.visible = false; } },