Browse Source

联锁名称唯一值判断

yuhan 5 months ago
parent
commit
35d5d55f2a

+ 4 - 3
src/views/module_interLock/InterlockSummary/modules/InterlockSummaryForm.vue

@@ -192,9 +192,10 @@
         },
         confirmLoading: false,
         validatorRules: {
-          interlockName: [{
-            required: true, message: '请输入联锁名称!',
-          }],
+          interlockName: [
+            { required: true, message: '请输入联锁名称!', },
+            { validator: (rule, value, callback) => validateDuplicateValue('interlock_summary	', 'interlock_name', value, this.model.id, callback)},
+          ],
           ljgx: [{
             required: true, message: '请输入逻辑关系!',
           }],