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