From 79d57a5ce6122c5e3456f960d4389694032a5862 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Mon, 22 Nov 2021 09:41:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E8=AD=A6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/workSys/resiCate.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/modules/workSys/resiCate.vue b/src/views/modules/workSys/resiCate.vue index ca2b8292..34146341 100644 --- a/src/views/modules/workSys/resiCate.vue +++ b/src/views/modules/workSys/resiCate.vue @@ -158,10 +158,10 @@ - 人/楼宇 + 人/楼宇 - 人/楼宇 + 人/楼宇
@@ -329,6 +329,9 @@ export default { this.conditions = val this.getTableData() }, + handleLevelChange(val) { + if (val > this.form.level2) this.form.level2 = val + }, handlerCancle() { this.dialogVisible = false @@ -380,12 +383,15 @@ export default { }, async handleEdit(row) { - this.form = { ...row } + this.form = { ...row, warn: row.warn == '1' ? true : false } this.dialogVisible = true }, async handleSUbmit() { this.$refs.ruleForm.validate(async (valid) => { if (valid) { + if (this.form.warn) { + if (!this.form.level1) return this.$message.error('黄色预警不能为0') + } this.btnLoading = true const _form = { ...this.form,