| | |
| | | }, |
| | | |
| | | mounted() { |
| | | |
| | | const href = this.$route.href; |
| | | if (this.$route?.query?.status !== undefined && this.$route?.query?.status !== null) { |
| | | this.filters.status = this.$route?.query?.status + ''; |
| | |
| | | |
| | | if (orderNumber) { |
| | | this.filters.keyword = orderNumber; |
| | | |
| | | this.$nextTick(() => { |
| | | this.isShowInfo = true; |
| | | const find = this.$store.state.tags.bsTagList.find(i => i.path === '/tickets/ticket') |
| | | find && (find.query = {}) |
| | | }); |
| | | |
| | | console.log('orderNumber', orderNumber); |
| | |
| | | this.page.currentPage = 1; |
| | | this.$router.replace({}); //清除url参数 |
| | | this.fetchTableData(); |
| | | console.log('handleSearch', this.$router); |
| | | |
| | | }, |
| | | handleKeyWords(){ |
| | | this.$router.replace({}); //清除url参数 |
| | |
| | | }, |
| | | activated() { |
| | | this.handleReset(); |
| | | } |
| | | }, |
| | | |
| | | }; |
| | | </script> |
| | | |
| | |
| | | 2: { color: '#4200DD', backgroundImage: db5, borderLeftColor: '#4200DD' }, |
| | | 3: { color: '#FF472F', backgroundImage: db2, borderLeftColor: '#FF472F' }, |
| | | } |
| | | // 根据状态获取图标 |
| | | // const getStatusBackground = statusIndex => { |
| | | // if (checked.value === '智飞工单') { |
| | | // const style = zfstatusMapColor[statusIndex]; |
| | | // return style ? `url(${style.backgroundImage})` : 'none'; |
| | | // } else { |
| | | // const style = statusMapColor[statusIndex]; |
| | | // return style ? `url(${style.backgroundImage})` : 'none'; |
| | | // } |
| | | // }; |
| | | |
| | | const getStatus = statusIndex => { |
| | | if (checked.value === '智飞工单') { |
| | | const style = zfstatusMapColor[statusIndex] |
| | |
| | | if (checked.value === '智飞工单') { |
| | | const id = val.id |
| | | getaddOrderRecord(id) |
| | | router.push({ |
| | | router.replace({ |
| | | path: `/tickets/orderLog`, |
| | | query: { |
| | | id, |
| | |
| | | } else { |
| | | getaddOrderRecord(val.id) |
| | | const orderNumber = val.event_num |
| | | router.push({ |
| | | path: `/tickets/ticket`, |
| | | query: { |
| | | orderNumber, |
| | | }, |
| | | }) |
| | | router.replace({ |
| | | path: `/tickets/ticket`, |
| | | query: { orderNumber }, |
| | | }) |
| | | } |
| | | } |
| | | // 标记事件工单或智飞工单已读 |