Merge branch 'dev' of http://139.196.74.78:10010/r/drone/drone-web-manage into dev
| | |
| | | export default function getBaseConfig () { |
| | | return { |
| | | loginTitle: '中图智飞低空智能感知网平台', //登陆页面标题 |
| | | |
| | | // envName: 'jiangwu', |
| | | ...defaultLayer |
| | | } |
| | | } |
| | |
| | | userLoginTitle (key) { |
| | | return '大吉山钨业无人机安防监测平台' |
| | | }, |
| | | envName: 'jiangwu', |
| | | routerHash: true, //使用hash路由 |
| | | loginTitle: '大吉山钨业无人机安防监测平台', |
| | | hideMenuTopLogo: true, // 是否隐藏菜单顶部logo |
| | |
| | | mounted () { |
| | | this.fetchTableData() |
| | | const id = this.$route.query.id |
| | | console.log('idddddd',id); |
| | | |
| | | if (id) { |
| | | // 确保 id 存在 |
| | | this.handleViewDetail({ id }) |
| | |
| | | : (this.detailTitle = '编辑工单') |
| | | |
| | | this.detailVisible = true |
| | | |
| | | // 更新航线列表,追加 wayline_file_region_vo 数据 |
| | | if (data.wayline_file_region_vo) { |
| | | const newWayline = data.wayline_file_region_vo |
| | |
| | | } |
| | | |
| | | this.initMapLine(data.device_map_infos) |
| | | const find = this.$store.state.tags.bsTagList.find(i => i.path === '/tickets/orderLog') |
| | | find && (find.query = {}) |
| | | |
| | | }, |
| | | async handleCheckDetail (row) { |
| | | const response = await orderLogDetails(row.id) |
| | |
| | | @clear="handleKeyWords" |
| | | @keyup.enter="handleSearch" |
| | | /> |
| | | <el-select |
| | | <!-- <el-select |
| | | v-model="filters.department" |
| | | placeholder="请选择所属单位" |
| | | class="filter-item" |
| | |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-select> --> |
| | | <el-select |
| | | v-model="filters.type" |
| | | placeholder="请选择工单类型" |
| | |
| | | import { mapGetters } from 'vuex' |
| | | import { getAdcodeObj } from '@/utils/disposeData' |
| | | import elTooltipCopy from '@/components/ElTooltipCopy.vue' |
| | | import getBaseConfig from '@/buildConfig/config' |
| | | const { envName } = getBaseConfig() |
| | | function regExp (label, name) { |
| | | var reg = new RegExp(label + '=([^&]*)(&|$)', 'g') |
| | | return name.match(reg)[0].split('=')[1] |
| | |
| | | { label: '处理人', prop: 'handler', width: 70 }, |
| | | { |
| | | slot: true, |
| | | hide: false, |
| | | hide: envName === 'jiangwu'? true : false, |
| | | label: '复核状态', |
| | | prop: 'isReview', |
| | | width: 90, |
| | |
| | | }, |
| | | |
| | | 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 }, |
| | | }) |
| | | } |
| | | } |
| | | // 标记事件工单或智飞工单已读 |