浏览代码

添加名称默认值

yuhan 5 月之前
父节点
当前提交
bb3493d049
共有 1 个文件被更改,包括 30 次插入9 次删除
  1. 30 9
      src/views/module_interLock/baseInterLock/modules/BaseInterLockModal.vue

+ 30 - 9
src/views/module_interLock/baseInterLock/modules/BaseInterLockModal.vue

@@ -56,6 +56,7 @@
               <!-- :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" -->
           </a-form-model-item>
           <a-divider orientation="left"> <span style="font-size: 12px;">状态值设置</span> </a-divider>
+          <!-- 控制系统状态 -->
           <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mpStatusNormal">
             <span slot="label">
               控制系统状态&nbsp;
@@ -70,7 +71,7 @@
                   <a-select-option value="0"> 0 </a-select-option>
                   <a-select-option value="1"> 1 </a-select-option>
                 </a-select>
-                <a-input v-model="model.controlSystemStatusNormalName" default-value="正常" placeholder="请输入改状态系统中显示名称" style="width: 85%"/>
+                <a-input v-model="model.controlSystemStatusNormalName" placeholder="请输入该状态系统中显示名称" style="width: 85%"/>
               </a-input-group>
             </div>
             <div style="display: flex;align-items: center;">
@@ -80,10 +81,12 @@
                   <a-select-option value="0"> 0 </a-select-option>
                   <a-select-option value="1"> 1 </a-select-option>
                 </a-select>
-                <a-input v-model="model.controlSystemStatusAbnormalName" default-value="非正常" placeholder="请输入改状态系统中显示名称" style="width: 85%"/>
+                <a-input v-model="model.controlSystemStatusAbnormalName" placeholder="请输入该状态系统中显示名称" style="width: 85%"/>
               </a-input-group>
             </div>
           </a-form-model-item>
+
+          <!-- 旁路状态 -->
           <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mpStatusNormal">
             <span slot="label">
               旁路状态&nbsp;
@@ -98,7 +101,7 @@
                   <a-select-option value="0"> 0 </a-select-option>
                   <a-select-option value="1"> 1 </a-select-option>
                 </a-select>
-                <a-input v-model="model.bypassYesName" default-value="是" placeholder="请输入改状态系统中显示名称" style="width: 85%"/>
+                <a-input v-model="model.bypassYesName" placeholder="请输入该状态系统中显示名称" style="width: 85%"/>
               </a-input-group>
             </div>
             <div style="display: flex;align-items: center;">
@@ -108,13 +111,15 @@
                   <a-select-option value="0"> 0 </a-select-option>
                   <a-select-option value="1"> 1 </a-select-option>
                 </a-select>
-                <a-input v-model="model.bypassNoName" default-value="否" placeholder="请输入改状态系统中显示名称" style="width: 85%"/>
+                <a-input v-model="model.bypassNoName" placeholder="请输入该状态系统中显示名称" style="width: 85%"/>
               </a-input-group>
             </div>
           </a-form-model-item>
+
+          <!-- 仪表状态(位号读取) -->
           <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mpStatusNormal">
             <span slot="label">
-              仪表状态(位号读取)&nbsp;
+              仪表状态&nbsp;
               <a-tooltip title="选择对应状态代表的参数值并自定义系统中显示的名称">
                 <a-icon type="question-circle-o" />
               </a-tooltip>
@@ -126,7 +131,7 @@
                   <a-select-option value="0"> 0 </a-select-option>
                   <a-select-option value="1"> 1 </a-select-option>
                 </a-select>
-                <a-input v-model="model.instrumentStatusNormalName" default-value="正常" placeholder="请输入改状态系统中显示名称" style="width: 85%"/>
+                <a-input v-model="model.instrumentStatusNormalName" placeholder="请输入该状态系统中显示名称" style="width: 85%"/>
               </a-input-group>
             </div>
             <div style="display: flex;align-items: center;">
@@ -136,10 +141,12 @@
                   <a-select-option value="0"> 0 </a-select-option>
                   <a-select-option value="1"> 1 </a-select-option>
                 </a-select>
-                <a-input v-model="model.instrumentStatusAbnormalName" default-value="非正常" placeholder="请输入改状态系统中显示名称" style="width: 85%"/>
+                <a-input v-model="model.instrumentStatusAbnormalName" placeholder="请输入该状态系统中显示名称" style="width: 85%"/>
               </a-input-group>
             </div>
           </a-form-model-item>
+
+          <!-- 联锁状态 -->
           <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mpStatusNormal">
             <span slot="label">
               联锁状态&nbsp;
@@ -154,7 +161,7 @@
                   <a-select-option value="0"> 0 </a-select-option>
                   <a-select-option value="1"> 1 </a-select-option>
                 </a-select>
-                <a-input v-model="model.interlockStatusTyName" default-value="投用" placeholder="请输入改状态系统中显示名称" style="width: 85%"/>
+                <a-input v-model="model.interlockStatusTyName" placeholder="请输入该状态系统中显示名称" style="width: 85%"/>
               </a-input-group>
             </div>
             <div style="display: flex;align-items: center;">
@@ -164,7 +171,7 @@
                   <a-select-option value="0"> 0 </a-select-option>
                   <a-select-option value="1"> 1 </a-select-option>
                 </a-select>
-                <a-input v-model="model.interlockStatusWtyName" default-value="未投用" placeholder="请输入改状态系统中显示名称" style="width: 85%"/>
+                <a-input v-model="model.interlockStatusWtyName" placeholder="请输入该状态系统中显示名称" style="width: 85%"/>
               </a-input-group>
             </div>
           </a-form-model-item>
@@ -189,15 +196,29 @@
         visible: false,
         disableEdit: false,
         model:{
+          // 设置默认值
           interlockType: '0',
+
           controlSystemStatusNormal: '0', // 控制系统正常状态
           controlSystemStatusAbnormal: '1',
+          controlSystemStatusNormalName: '正常',
+          controlSystemStatusAbnormalName: '非正常',
+          
           bypassYes	: '1', // 旁路正常状态
           bypassNo: '0',
+          bypassYesName: '是',
+          bypassNoName: '否',
+
           instrumentStatusNormal: '0', // 仪表正常状态
           instrumentStatusAbnormal: '1',
+          instrumentStatusNormalName: '正常',
+          instrumentStatusAbnormalName: '非正常',
+
           interlockStatusTy: '1', // 联锁正常状态
           interlockStatusWty: '0',
+          interlockStatusTyName: '投用',
+          interlockStatusWtyName: '未投用',
+
         },
         labelCol: {
           xs: { span: 24 },