| | |
| | | }, |
| | | ], |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | ], |
| | | }, |
| | |
| | | console.error('获取行政区划数据失败:', error); |
| | | return []; |
| | | } |
| | | }, |
| | | }, |
| | | findNodeById(tree, id) { |
| | | if (tree.id === id) { |
| | | return tree; |
| | |
| | | try { |
| | | const response = await this.getFullAreaCode(areaCode); |
| | | const codes = response.split(','); |
| | | |
| | | |
| | | // 获取区域树数据 |
| | | const xzqhData = await this.getRegionTreeList(codes[0]); |
| | | if (!xzqhData) return '/'; |
| | | |
| | | |
| | | const names = []; |
| | | for (const code of codes) { |
| | | const node = this.findNodeById(xzqhData, code); |
| | |
| | | copyInfo (row, index) { |
| | | const ipAddress = import.meta.env.VITE_APP_DEVICE_IP |
| | | let params = ` |
| | | host: tcp://${ipAddress} |
| | | 网关地址: tcp://${ipAddress} |
| | | 账号:drone |
| | | 密码:drone@123 |
| | | 组织id:${row.bing_id} |
| | |
| | | this.onLoad(this.page, this.query) |
| | | }, |
| | | onLoad (page, params = {}) { |
| | | |
| | | |
| | | const { releaseTimeRange } = this.query |
| | | let values = { |
| | | ...params, |
| | |
| | | if (values.area_code) { |
| | | values['area_code'] = values.area_code.split(',').pop() |
| | | } |
| | | |
| | | |
| | | this.loading = true |
| | | getList(page.currentPage, page.pageSize, values).then(async res => { |
| | | const data = res.data.data |
| | |
| | | this.loading = false |
| | | this.selectionClear() |
| | | }) |
| | | |
| | | |
| | | }, |
| | | treeLoad (tree, treeNode, resolve) { |
| | | var params = { |