Sfoglia il codice sorgente

修改数据确认

yuhan 2 anni fa
parent
commit
9d4c6c33c8

+ 15 - 15
itdmWeb/src/views/module-iTDM/gongdanshuju/ItdmGongdanShujuList2.vue

@@ -132,21 +132,21 @@
           :keyboard-config="{isArrow: true, isDel: true, isEnter: true, isTab: true, isEdit: true, isChecked: true}"
           :edit-config="{trigger: 'dblclick', mode: 'cell'}">
           <vxe-column type="checkbox" width="60"></vxe-column>
-          <vxe-column field="shiyanType_dictText" title="试验类型" :edit-render="{autofocus: '.vxe-input--inner'}">
+          <!-- <vxe-column field="shiyanType_dictText" title="试验类型" :edit-render="{autofocus: '.vxe-input--inner'}">
             <template #edit="{ row }">
               <input v-model="row.shiyanType" type="text" class="myinput" />
             </template>
-          </vxe-column>
-          <!-- <vxe-column field="shiyanType_dictText" title="试验类型" :edit-render="{}">
+          </vxe-column> -->
+          <vxe-column field="shiyanType_dictText" title="试验类型" :edit-render="{}">
             <template #default="{ row }">
               <span>{{ formatShiyanType(row.shiyanType) }}</span>
             </template>
             <template #edit="{ row }">
-              <vxe-select v-model="row.shiyanType" placeholder="请选择试验类型">
-                <vxe-option v-for="(item, index) in shiiyanTypeOptions" :key="index" :value="item.value" :label="item.label"></vxe-option>
+              <vxe-select v-model="row.shiyanType" placeholder="请选择试验类型" transfer>
+                <vxe-option v-for="(item, index) in shiyanTypeOption" :key="index" :value="item.value" :label="item.label"></vxe-option>
               </vxe-select>
             </template>
-          </vxe-column> -->
+          </vxe-column>
           <vxe-column field="shiyanTime" title="生成时间" :edit-render="{autofocus: '.vxe-input--inner'}">
             <template #edit="{ row }">
               <vxe-input v-model="row.shiyanTime" type="text" placeholder="输入生成时间"></vxe-input>
@@ -327,15 +327,15 @@ export default {
         //     }
         //   });
         // },
-        // // 试验类型显示
-        // formatShiyanType (value) {
-        //   var typeLabel
-        //   var typeObj = this.shiiyanTypeOptions.find(res => res.value === value)
-        //   if(typeObj){
-        //     typeLabel = typeObj.label
-        //   }
-        //   return typeLabel
-        // },
+        // 试验类型显示
+        formatShiyanType (value) {
+          var typeLabel
+          var typeObj = this.shiyanTypeOption.find(res => res.value === value)
+          if(typeObj){
+            typeLabel = typeObj.label
+          }
+          return typeLabel
+        },
         // 获取试验类型
         getWoId(value){
             // this.queryParam = {...this.queryParam}