|
|
@@ -176,17 +176,20 @@ export default {
|
|
|
ticketPointsList: [],
|
|
|
};
|
|
|
},
|
|
|
- mounted() {
|
|
|
- this.getJobPlayInfo();
|
|
|
- },
|
|
|
// mounted() {
|
|
|
- // setInterval(() => {
|
|
|
- // this.getJobPlayInfo();
|
|
|
- // }, 5000);
|
|
|
+ // localStorage.setItem('ticketId',this.$route.query.ticketId);
|
|
|
+ // this.getJobPlayInfo();
|
|
|
// },
|
|
|
+ mounted() {
|
|
|
+ const ticketId=this.$route.query.ticketId
|
|
|
+ localStorage.setItem('ticketId',ticketId);
|
|
|
+ setInterval(() => {
|
|
|
+ this.getJobPlayInfo();
|
|
|
+ }, 5000);
|
|
|
+ },
|
|
|
methods: {
|
|
|
getJobPlayInfo() {
|
|
|
- const ticketId = this.$route.query.ticketId;
|
|
|
+ const ticketId = this.$route.query.ticketId?this.$route.query.ticketId:localStorage.getItem('ticketId')
|
|
|
getJobPlayTicketInfo(ticketId).then((res) => {
|
|
|
console.log(res, "作业执行详细信息");
|
|
|
this.jobTicket = [res.data.jobTicket].map((item) => ({
|