Browse Source

启用禁用

test
zxc 3 years ago
parent
commit
92f5188d18
  1. 7
      src/views/modules/plugins/point/icpointnucleicmonitoring.vue

7
src/views/modules/plugins/point/icpointnucleicmonitoring.vue

@ -178,9 +178,7 @@
type="text" type="text"
size="small" size="small"
class="div-table-button--detail" class="div-table-button--detail"
@click="enableOrDisabled(scope.row.id)" @click="enableOrDisabled(scope.row.id)">{{ (scope.row.enableFlag === 'enable' && '禁用') || '启用' }}</el-button>
>{{ scope.row.enableFlag === 'enable' ? '禁用' : '启用' }}</el-button
>
<el-button <el-button
type="text" type="text"
size="small" size="small"
@ -397,10 +395,9 @@ export default {
this.$http this.$http
.post(`/epmetuser/appPoint/enableOrDisabled/` + id) .post(`/epmetuser/appPoint/enableOrDisabled/` + id)
.then(({ data: res }) => { .then(({ data: res }) => {
this.loadTable();
}) })
.catch(() => {}); .catch(() => {});
this.loadTable();
}, },
// / // /
addOrUpdateHandle(id, title) { addOrUpdateHandle(id, title) {

Loading…
Cancel
Save