| | |
| | | |
| | | import { mapGetters } from 'vuex' |
| | | import { getAdcodeObj } from '@/utils/disposeData' |
| | | function regExp (label, name) { |
| | | var reg = new RegExp(label + "=([^&]*)(&|$)", "g") |
| | | return name.match(reg)[0].split("=")[1] |
| | | } |
| | | |
| | | export default { |
| | | name: "TicketPage", |
| | | data () { |
| | |
| | | } |
| | | }, |
| | | created () { |
| | | let orderNumber = new URLSearchParams(window.location.search).get('orderNumber') |
| | | if (orderNumber) { |
| | | this.filters.keyword = orderNumber |
| | | this.isShowInfo = true |
| | | } |
| | | this.loadAMapScripts() |
| | | this.fetchDropdownData() |
| | | this.fetchTabCounts() // 新增:初始化时获取 tab 数据 |
| | | console.log('permission.tickets_processing_btn', this.permission.tickets_processing_btn) |
| | | console.log('permission', this.permission.tickets_tab_pending) |
| | | }, |
| | | mounted () { |
| | | const href = this.$route.query.redirect |
| | | |
| | | if (href.split("?").length > 0) { |
| | | const [orderNumber] = href.split("?")[1].split("&") |
| | | |
| | | const order = regExp('orderNumber', orderNumber) |
| | | console.log(order, 1111111) |
| | | if (order) { |
| | | this.filters.keyword = order |
| | | |
| | | this.$nextTick(() => { |
| | | this.isShowInfo = true |
| | | }) |
| | | } |
| | | } |
| | | |
| | | |
| | | this.fetchTabCounts() // 新增:初始化时获取 tab 数据 |
| | | this.fetchTableData() |
| | | }, |
| | | computed: { |