|
|
|
@ -213,7 +213,7 @@ |
|
|
|
<el-form-item v-if="modalData.flag === '3'"></el-form-item> |
|
|
|
<el-form-item v-else> |
|
|
|
<el-button type="primary" @click="saveRoutingTool" style="margin-left: 7px">新增</el-button> |
|
|
|
<el-button type="primary" @click="deleteRoutingTool">删除</el-button> |
|
|
|
<el-button type="primary" :loading="routingToolLoading" @click="deleteRoutingTool">删除</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
@ -1311,6 +1311,7 @@ export default { |
|
|
|
workerLevelModelFlag1: false, |
|
|
|
workerLevelModelFlag2: false, |
|
|
|
saveComponentLoading: false, |
|
|
|
routingToolLoading: false, |
|
|
|
// 初始页签 |
|
|
|
detailTable: 'routing_detail', |
|
|
|
subDetailTable: 'routing_sub_detail', |
|
|
|
@ -4935,21 +4936,25 @@ export default { |
|
|
|
updateBy: this.$store.state.user.name, |
|
|
|
informationList: this.checkedTool |
|
|
|
} |
|
|
|
this.routingToolLoading = true |
|
|
|
deleteRoutingTool(tempData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.searchRoutingTools() |
|
|
|
this.routingToolLoading = false |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500, |
|
|
|
onClose: () => { |
|
|
|
} |
|
|
|
onClose: () => {} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.routingToolLoading = false |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}).catch(()=>{ |
|
|
|
this.routingToolLoading = false |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
|