Jelajahi Sumber

运行记录填报回显

yuanchao 2 minggu lalu
induk
melakukan
d5043fedba
1 mengubah file dengan 25 tambahan dan 3 penghapusan
  1. 25 3
      src/views/pms/iotopeationfill/index1.vue

+ 25 - 3
src/views/pms/iotopeationfill/index1.vue

@@ -70,13 +70,30 @@
                 />
               </div>
                 <el-form-item :label='item.name' prop="deviceId"  label-position="top">
+                  <div v-if="fillStatus === '1'">
+
+                    <el-select
+                      disabled
+                      v-model="item.fillContent"
+                      v-if="item.type === 'enum' && item.description !== null"
+                      style="width: 200px">
+                      <el-option
+                        v-for="dict in getIntDictOptions(item.description)"
+                        :key="dict.label"
+                        :label="dict.label"
+                        :value="dict.value"
+                      />
+                    </el-select>
                     <el-input
-                      v-if="fillStatus === '1'"
+                      v-else
                       v-model="item.fillContent"
                       clearable
-                      style="width: 200px"
+                      style="width: 200px; margin-right: 10px"
                       disabled
                     />
+                  </div>
+
+
                     <el-input
                       v-else-if="item.type === 'textarea'"
                       v-model="item.fillContent"
@@ -84,7 +101,11 @@
                       clearable
                       style="width: 200px"
                     />
-                    <el-select  v-model="item.fillContent" clearable v-else-if="item.type === 'enum' && item.description !== null" style="width: 200px" filterable>
+                    <el-select  v-model="item.fillContent"
+                                clearable
+                                v-else-if="item.type === 'enum' && item.description !== null"
+                                style="width: 200px"
+                                filterable>
                       <el-option
                         v-for="dict in getIntDictOptions(item.description)"
                         :key="dict.label"
@@ -346,6 +367,7 @@ const getAttrList = async () => {
       item.deviceId = queryParams.deviceId;
       item.deviceCategoryId = queryParams.deviceCategoryId;
       item.modelId = item.id;
+      console.log(item.fillContent)
     })
     attrList1.value.forEach(function (item,index){
       item.deviceCode = queryParams.deviceCode;