无人机管理后台前端(已迁走)
张含笑
2025-07-31 c8049134a0d3e2606613a6e73c9f1635a89a4fec
feat:事件工单去除传参
2 files modified
32 ■■■■■ changed files
src/views/tickets/ticket.vue 9 ●●●●● patch | view | raw | blame | history
src/views/wel/components/backlog.vue 23 ●●●● patch | view | raw | blame | history
src/views/tickets/ticket.vue
@@ -1089,6 +1089,7 @@
  },
  mounted() {
    const href = this.$route.href;
    if (this.$route?.query?.status !== undefined && this.$route?.query?.status !== null) {
      this.filters.status = this.$route?.query?.status + '';
@@ -1132,9 +1133,10 @@
      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);
@@ -1913,8 +1915,6 @@
      this.page.currentPage = 1;
      this.$router.replace({});  //清除url参数
      this.fetchTableData();
      console.log('handleSearch', this.$router);
    },
    handleKeyWords(){
      this.$router.replace({});  //清除url参数
@@ -2931,7 +2931,8 @@
  },
  activated() {
    this.handleReset();
  }
  },
};
</script>
src/views/wel/components/backlog.vue
@@ -110,16 +110,7 @@
  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]
@@ -163,7 +154,7 @@
  if (checked.value === '智飞工单') {
    const id = val.id
    getaddOrderRecord(id)
    router.push({
    router.replace({
      path: `/tickets/orderLog`,
      query: {
        id,
@@ -172,12 +163,10 @@
  } else {
    getaddOrderRecord(val.id)
    const orderNumber = val.event_num
    router.push({
      path: `/tickets/ticket`,
      query: {
        orderNumber,
      },
    })
    router.replace({
    path: `/tickets/ticket`,
    query: { orderNumber },
})
  }
}
// 标记事件工单或智飞工单已读