无人机管理后台前端(已迁走)
rjg
2025-04-18 beba5e0674a0b58ee1f79e7da49c70c4b0377d3e
优化错误返回值
2 files modified
21 ■■■■ changed files
src/api/system/dictbiz.js 11 ●●●●● patch | view | raw | blame | history
src/views/tickets/orderLog.vue 10 ●●●● patch | view | raw | blame | history
src/api/system/dictbiz.js
@@ -86,3 +86,14 @@
    params,
  });
};
export const getDictionaryByCode = codes => {
  return request({
    url: '/blade-system/dict-biz/listByCodes',
    method: 'get',
    params: {
      codes
    },
  });
};
src/views/tickets/orderLog.vue
@@ -335,7 +335,7 @@
    deleteOrderLog
} from '@/api/tickets/orderLog'
import { getTicketInfo } from '@/api/tickets/ticket'
import { getDictionary } from '@/api/system/dictbiz'
import { getDictionaryByCode } from '@/api/system/dictbiz'
import { getWaylineFileListByArea } from '@/api/resource/wayline'
import { export_json_to_excel } from '@/utils/exportExcel'
import { getFlyingNestBy } from '@/api/device/device'
@@ -452,10 +452,10 @@
        }
    },
    async created() {
        var response = await getDictionary({ code: 'SF' })
        var word_order_typeResponse = await getDictionary({ code: 'WORK_ORDER_TYPE' })
        this.ai_types = response.data.data
        this.types = word_order_typeResponse.data.data
        var response = await getDictionaryByCode('SF')
        var word_order_typeResponse = await getDictionaryByCode('WORK_ORDER_TYPE' )
        this.ai_types = response.data.data['SF']
        this.types = word_order_typeResponse.data.data['WORK_ORDER_TYPE'];
        //获取航线
        this.asyncgetWaylineFileListByArea()
        const response2 = await getTicketInfo()