Browse Source

设备点检优化

wyh 1 year ago
parent
commit
700404a49e
1 changed files with 5 additions and 1 deletions
  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 = this.dataList
         // this.model.id = ""
         // this.model.id = ""
       },
       },
+      // 监听选择的设备
       handleChange(value){
       handleChange(value){
         console.log(value)
         console.log(value)
         getAction(`/cmmsSpotcheck/cmmsSpotcheck/getInfoByEquipmentid/${value}`).then((res) => {
         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 = ""
           this.model.id = ""
         })
         })
       },
       },