洋浦学校 八大中心管理 课程管理

init
gongdi 3 years ago
parent 324e29bdf5
commit be160ea0a8

@ -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];
},

@ -19,7 +19,9 @@
v-if="record.real_plan_matching_degree < 0"/>
</span>
<span slot="action" slot-scope="text, record">
<a @click="toDelete(record)"></a>
<a @click="toEdit(record)"></a>
<a-divider type="vertical"/>
<a @click="toDelete(record)"></a>
</span>
</a-table>
</template>
@ -33,7 +35,7 @@
是否确定删除此条信息
</a-modal>
<template v-if="pageType === 1">
<course-info :defaultValue="defaultValue" @cancel="cancel" @submit="submit"/>
<course-info :defaultValue="defaultValue" @cancel="cancel" @submit="submit" :planInfo="planInfo"/>
</template>
</div>
</template>
@ -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;
}
},

Loading…
Cancel
Save