运行图代码调整
This commit is contained in:
parent
b0a04a9dec
commit
07f477ae54
@ -33,7 +33,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column :label="this.$t('global.operate')" width="400">
|
||||
<template slot-scope="scope">
|
||||
<el-button v-if="scope.row.status !=='1'" size="mini" class="button_box" type="success" @click="handleConfirm(scope.row)">{{ $t('planMonitor.load') }}</el-button>
|
||||
<el-button v-if="scope.row.status !=='1'" size="mini" class="button_box" type="success" :loading="runplanLoading" @click="handleConfirm(scope.row)">{{ $t('planMonitor.load') }}</el-button>
|
||||
<el-button v-if="isCreate && scope.row.status !=='1'" size="mini" class="button_box" type="primary" @click="handleEdit(scope.row)">{{ $t('planMonitor.modifyName') }}</el-button>
|
||||
<el-button v-if="isCreate && scope.row.status !=='1'" size="mini" class="button_box" type="danger" @click="handleDelete(scope.row)">{{ $t('global.delete') }}</el-button>
|
||||
<el-button v-if="isCreate && scope.row.status ==='0' && hasRelease" size="mini" class="button_box" type="primary" @click="handlePublish(scope.row)">{{ hasRelease?$t('global.release'):$t('planMonitor.applyRelease') }}</el-button>
|
||||
@ -67,6 +67,7 @@ export default {
|
||||
return {
|
||||
dialogShow: false,
|
||||
loading: false,
|
||||
runplanLoading:false,
|
||||
type: 'add',
|
||||
runPlanList: [],
|
||||
runPlanDict: {},
|
||||
@ -206,13 +207,14 @@ export default {
|
||||
this.$refs['createEmptyPlan'].doShow();
|
||||
},
|
||||
handleConfirm(row) {
|
||||
generateRunPlanInfoSync(row.mapId).then(resp => {
|
||||
this.loadRunPlanData({
|
||||
planId: row.id,
|
||||
lineCode: this.$route.query.lineCode,
|
||||
planName: row.name
|
||||
});
|
||||
})
|
||||
this.runplanLoading = true;
|
||||
generateRunPlanInfoSync(row.mapId).then(resp => {
|
||||
this.loadRunPlanData({
|
||||
planId: row.id,
|
||||
lineCode: this.$route.query.lineCode,
|
||||
planName: row.name
|
||||
});
|
||||
});
|
||||
},
|
||||
// 修改运行图名称
|
||||
handleEdit(row) {
|
||||
@ -223,6 +225,7 @@ export default {
|
||||
}
|
||||
},
|
||||
loadRunPlanData({ refresh, planId, lineCode, planName }) {
|
||||
this.runplanLoading = false;
|
||||
if (refresh) {
|
||||
this.$store.dispatch('runPlan/refresh');
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user