瀏覽代碼

fix点检内容——设备dict

LLL 1 年之前
父節點
當前提交
71b86efafb

+ 2 - 2
src/views/module_ems/cmmsSpotcheckContent/CmmsSpotcheckContentList.vue

@@ -157,7 +157,7 @@
           deleteBatch: "/cmmsSpotcheckContent/cmmsSpotcheckContent/deleteBatch",
           exportXlsUrl: "/cmmsSpotcheckContent/cmmsSpotcheckContent/exportXls",
           importExcelUrl: "cmmsSpotcheckContent/cmmsSpotcheckContent/importExcel",
-          
+
         },
         dictOptions:{},
         superFieldList:[],
@@ -178,7 +178,7 @@
         let fieldList=[];
         fieldList.push({type:'string',value:'contentcode',text:'点检内容编号',dictCode:''})
         fieldList.push({type:'string',value:'contentname',text:'点检内容名称',dictCode:''})
-        fieldList.push({type:'sel_search',value:'equipmentid',text:'设备id',dictTable:"ems_tpm_equipment_tree", dictText:'name', dictCode:'id'})
+        fieldList.push({type:'sel_search',value:'equipmentid',text:'设备id',dictTable:"ems_tpm_equipment", dictText:'equipmentname', dictCode:'id'})
         fieldList.push({type:'string',value:'status',text:'状态:启用:0、禁用:1',dictCode:'spotcheck_content_status'})
         this.superFieldList = fieldList
       }

+ 2 - 2
src/views/module_ems/cmmsSpotcheckContent/modules/CmmsSpotcheckContentForm.vue

@@ -15,7 +15,7 @@
           </a-col>
           <a-col :span="24">
             <a-form-model-item label="设备id" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="equipmentid">
-              <j-search-select-tag v-model="model.equipmentid" dict="ems_tpm_equipment_tree,name,id"  />
+              <j-search-select-tag v-model="model.equipmentid" dict="ems_tpm_equipment,equipmentname,id"  />
             </a-form-model-item>
           </a-col>
           <a-col :span="24">
@@ -111,7 +111,7 @@
               that.confirmLoading = false;
             })
           }
-         
+
         })
       },
     }