Sfoglia il codice sorgente

1.将修改功能改为处理

master
wangqiang 1 mese fa
parent
commit
af0fa0819b
1 ha cambiato i file con 15 aggiunte e 5 eliminazioni
  1. 15
    5
      src/views/system/operationWarnresult/index.vue

+ 15
- 5
src/views/system/operationWarnresult/index.vue Vedi File

@@ -46,7 +46,7 @@
</el-form>

<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<!--<el-col :span="1.5">
<el-button
type="primary"
plain
@@ -66,7 +66,7 @@
@click="handleUpdate"
v-hasPermi="['system:operationWarnresult:edit']"
>修改</el-button>
</el-col>
</el-col>-->
<el-col :span="1.5">
<el-button
type="danger"
@@ -127,8 +127,9 @@
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
:disabled="scope.row.status === 1"
v-hasPermi="['system:operationWarnresult:edit']"
>修改</el-button>
>处理</el-button>
<el-button
size="mini"
type="text"
@@ -274,7 +275,16 @@ export default {
},
/** 修改按钮操作 */
handleUpdate(row) {
this.loading = true;
//将状态设置为已处理
row.status = 1;
updateOperationWarnresult(row).then(response => {
this.$modal.msgSuccess("处理成功");
this.open = false;
this.getList();
}).finally(() => {
this.buttonLoading = false;
});
/* this.loading = true;
this.reset();
const id = row.id || this.ids
getOperationWarnresult(id).then(response => {
@@ -282,7 +292,7 @@ export default {
this.form = response.data;
this.open = true;
this.title = "修改预警结果";
});
}); */
},
/** 提交按钮 */
submitForm() {

Loading…
Annulla
Salva