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,