Browse Source

修改突变判断的必填校验形式

yuhan 5 months ago
parent
commit
7e8c1a3160

+ 18 - 2
src/views/module_interLock/InterlockSummary/modules/InterlockConditionForm.vue

@@ -130,7 +130,7 @@
               </a-form-model-item>
             </a-col>
             <a-col :span="24">
-              <a-form-model-item label="突变判断公式" :labelCol="labelCol" :wrapperCol="wrapperCol"  required style="margin-bottom: 0;">
+              <a-form-model-item label="突变判断公式" :labelCol="labelCol" :wrapperCol="wrapperCol" class="red-star-form-item">
                 <div style="display: flex;">
                   <div style="width: 30px;text-align: center;">( </div>
                   <a-form-model-item prop="upperLimit">
@@ -478,4 +478,20 @@
       },
     }
   }
-</script>
+</script>
+<style lang="less">
+  .red-star-form-item{
+    margin-bottom: 0;
+    .ant-form-item-label {
+      ::before {
+        display: inline-block;
+        margin-right: 4px;
+        color: #ff4d4f;
+        font-size: 14px;
+        font-family: SimSun, sans-serif;
+        line-height: 1;
+        content: '*';
+      }
+    }
+  }
+</style>

+ 1 - 1
src/views/module_interLock/InterlockSummary/modules/InterlockSummaryForm.vue

@@ -270,7 +270,7 @@
             dataIndex: 'currentValueTag'
           },
           {
-            title:'旁路状态位号',
+            title:'旁路状态/位号',
             align:"center",
             scopedSlots: { customRender: 'ifBypass' }
           },