fix:报警区域修改

This commit is contained in:
17630416519 2025-12-26 08:52:19 +08:00
parent d316d910a6
commit d6755e09b9
2 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@
<el-form :model="queryParams" size="small" label-position="right" inline ref="queryForm"
:label-width="labelWidth" v-show="showSearch" @submit.native.prevent>
<el-form-item label="区域名称" prop="area">
<el-form-item label="区域" prop="area">
<el-input v-model="queryParams.area" placeholder="请输入区域名称" clearable />
</el-form-item>
<el-form-item>
@ -62,7 +62,7 @@
</div>
</el-dialog>
<el-dialog title="新增区域二" :lock-scroll="false" :close-on-click-modal="false" :visible.sync="open1">
<el-dialog :title="title1" :lock-scroll="false" :close-on-click-modal="false" :visible.sync="open1">
<el-form ref="form1" :model="form1" :rules="rules" :label-width="formLabelWidth">
<el-row :gutter="20">
@ -127,6 +127,7 @@ export default {
},
//
title: "",
title1: '',
// 1add 2edit
opertype: 0,
alarmContactOptions: [],
@ -210,7 +211,7 @@ export default {
updatedBy: undefined,
updatedTime: undefined,
};
this.form1={
this.form1 = {
parentArea: undefined,
area: undefined,
}
@ -253,11 +254,12 @@ export default {
this.reset();
this.open = true;
this.title = "添加";
this.opertype = 1;
},
handleAdd2() {
this.open1 = true;
this.title1 = "添加"
this.opertype = 1;
this.reset()
getAndonAreaParentDictList().then(res => {
if (res.code == 200) {
this.parentOptions = res.data.map(item => {
@ -292,7 +294,7 @@ export default {
})
const id = row.id || this.ids;
this.open1 = true;
this.title = "修改";
this.title1 = "修改";
this.opertype = 2;
this.form1 = {
...row

View File

@ -17,8 +17,6 @@
</template>
</el-table-column> -->
</el-table>
<!-- 使用Element UI的pagination组件 -->
<el-pagination background :current-page="queryParams.pageNum" :page-sizes="[10, 20, 50, 100]"
:page-size="queryParams.pageSize" layout="prev, pager, next,total" :total="total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" style="margin-top: 10px;" />