|
@@ -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>
|
|
|
|