| | |
| | | <script> |
| | | import queryinfo from "../../views/Tools/queryinfo.vue" |
| | | import $ from 'jquery'; |
| | | import { inquiry_SelectTabs, inquiry_uploadShp, encr } from '../../api/api.js'; |
| | | import { inquiry_SelectTabs, inquiry_uploadShp, encr, dataLib_selectTabs } from '../../api/api.js'; |
| | | import { getToken } from '@/utils/auth'; |
| | | import * as turf from '@turf/turf'; |
| | | export default { |
| | |
| | | } |
| | | }, |
| | | async getAllTable() { |
| | | const data = await inquiry_SelectTabs(); |
| | | const data = await dataLib_selectTabs({ |
| | | pageIndex: 1, |
| | | pageSize: 500 |
| | | }); |
| | | if (data.code != 200) { |
| | | this.$message.error('列表调用失败'); |
| | | } |
| | | var option = data.result; |
| | | |
| | | var option = data.result.filter((res) => { |
| | | if (res.rows != 0) { |
| | | return res; |
| | | } |
| | | }) |
| | | for (var i in option) { |
| | | var val_Data = option[i]; |
| | | val_Data.id = '1' + i; |
| | |
| | | formData.append(val[i].name, val[i]); // fs.files[i].name,file |
| | | } |
| | | } |
| | | |
| | | if (count != 4) { |
| | | |
| | | this.$message({ |
| | |
| | | if (rs.code !== 200) { |
| | | return this.$message.error('用户角色请求错误'); |
| | | } |
| | | this.$store.state.mapMenuShpFile = rs.result; |
| | | |
| | | this.$store.state.mapMenuShpFile = rs.result.wkt; |
| | | this.showMapMenuPop(); |
| | | }, |
| | | error: (e) => { |