mw_666 3 년 전
부모
커밋
65207a17dd
3개의 변경된 파일26개의 추가작업 그리고 10개의 파일을 삭제
  1. 1 1
      src/views/HealthControl/HealthTab4.vue
  2. 0 1
      src/views/HealthControl/healthTab4History.vue
  3. 25 8
      src/views/HealthControl/infotrack2.vue

+ 1 - 1
src/views/HealthControl/HealthTab4.vue

@@ -193,8 +193,8 @@ export default {
     },
     // 消缺跟踪
     onClickTrack(row) {
-      this.requestTrack(row);
 	  this.dialogVisible = true;
+      this.requestTrack(row);
     },
     // 历史查询
     onClickHistory(row) {

+ 0 - 1
src/views/HealthControl/healthTab4History.vue

@@ -86,7 +86,6 @@
 					},
 				});
 				that.dialogVisible = true;
-				console.log(data.data)
 				that.data = data.data;
 				that.location = data.data[0].id;
 				that.searchTab();

+ 25 - 8
src/views/HealthControl/infotrack2.vue

@@ -446,14 +446,6 @@ export default {
       videoPlayer: null, // 视频播放实例
     };
   },
-  created() {
-    this.setData();
-  },
-
-  updated() {
-    this.setData();
-  },
-
   onmounted() {
     this.cancelPlay();
   },
@@ -529,6 +521,31 @@ export default {
       }
     },
   },
+  watch: {
+  	formdata(res) {
+  		if (res) {
+  			this.form = this.formdata;
+  			this.form.tjss = this.form.tjss
+  			  ? new Date(this.form.tjss).formatDate("yyyy-MM-dd hh:mm:ss")
+  			  : null;
+  			this.form.prodtdepttime = this.form.prodtdepttime
+  			  ? new Date(this.form.prodtdepttime).formatDate("yyyy-MM-dd hh:mm:ss")
+  			  : null;
+  			this.form.departuretime = this.form.departuretime
+  			  ? new Date(this.form.departuretime).formatDate("yyyy-MM-dd hh:mm:ss")
+  			  : null;
+  			this.form.arrivaltime = this.form.arrivaltime
+  			  ? new Date(this.form.arrivaltime).formatDate("yyyy-MM-dd hh:mm:ss")
+  			  : null;
+  			this.form.repairedtime = this.form.repairedtime
+  			  ? new Date(this.form.repairedtime).formatDate("yyyy-MM-dd hh:mm:ss")
+  			  : null;
+  			this.form.checktime = this.form.checktime
+  			  ? new Date(this.form.checktime).formatDate("yyyy-MM-dd hh:mm:ss")
+  			  : null;
+  		}
+  	}
+  }
 };
 </script>