소스 검색

设备点检优化

wyh 1 년 전
부모
커밋
700404a49e
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/views/module_cmms/spotcheck/modules/SpotcheckForm.vue

+ 5 - 1
src/views/module_cmms/spotcheck/modules/SpotcheckForm.vue

@@ -249,10 +249,14 @@
         // this.model = this.dataList
         // this.model.id = ""
       },
+      // 监听选择的设备
       handleChange(value){
         console.log(value)
         getAction(`/cmmsSpotcheck/cmmsSpotcheck/getInfoByEquipmentid/${value}`).then((res) => {
-          this.model = res.result
+          // this.model = res.result
+          this.model.contentname = res.result.contentname
+          this.model.spotcheckdate = res.result.spotcheckdate
+          this.model.cmmsSpotcheckTitemList = res.result.cmmsSpotcheckTitemList
           this.model.id = ""
         })
       },