Browse Source

1.将修改功能改为处理

master
wangqiang 1 month ago
parent
commit
af0fa0819b
1 changed files with 15 additions and 5 deletions
  1. 15
    5
      src/views/system/operationWarnresult/index.vue

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

</el-form> </el-form>


<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<!--<el-col :span="1.5">
<el-button <el-button
type="primary" type="primary"
plain plain
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['system:operationWarnresult:edit']" v-hasPermi="['system:operationWarnresult:edit']"
>修改</el-button> >修改</el-button>
</el-col>
</el-col>-->
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="danger" type="danger"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
:disabled="scope.row.status === 1"
v-hasPermi="['system:operationWarnresult:edit']" v-hasPermi="['system:operationWarnresult:edit']"
>修改</el-button>
>处理</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { 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(); this.reset();
const id = row.id || this.ids const id = row.id || this.ids
getOperationWarnresult(id).then(response => { getOperationWarnresult(id).then(response => {
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改预警结果"; this.title = "修改预警结果";
});
}); */
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {

Loading…
Cancel
Save