This commit is contained in:
姚宇浩 2024-08-28 16:54:45 +08:00
parent 5a8bfbff49
commit ab51a0208d
2 changed files with 13 additions and 7 deletions

View File

@ -1053,8 +1053,8 @@ const moveSave = () => {
//退 //退
const moveBack = () => { const moveBack = () => {
// select.close(); // select.close();
movepoy.close(); // movepoy.close();
sceneMove.removeEventListener(OperateEventType.CLICK, clickHandler); // sceneMove.removeEventListener(OperateEventType.CLICK, clickHandler);
polyLayer.removeOverlay(cs_choose_arr.value[0]); polyLayer.removeOverlay(cs_choose_arr.value[0]);
map.removeGeoJSONLayer(polyLayer); map.removeGeoJSONLayer(polyLayer);
cs_choose_arr.value.forEach((item, index) => { cs_choose_arr.value.forEach((item, index) => {
@ -1165,6 +1165,7 @@ const backEdit = () => {
showEdit.value = false; showEdit.value = false;
drawing.value = false; drawing.value = false;
}; };
//
const shangchuan = async () => { const shangchuan = async () => {
for (const item of xkzDk) { for (const item of xkzDk) {
let a = []; let a = [];
@ -1181,7 +1182,7 @@ const shangchuan = async () => {
}); });
} }
}); });
await new Promise((resolve) => setTimeout(resolve, 300)); await new Promise((resolve) => setTimeout(resolve, 1000));
} }
// xkzDk.forEach(async (item, index) => { // xkzDk.forEach(async (item, index) => {
// let a = []; // let a = [];
@ -1239,9 +1240,13 @@ const centerEdit = () => {
}; };
const csName = async () => { const csName = async () => {
let n = input1.value; let n = input1.value;
let regionalDivisionEditDTO = {
id: changeCsqkId.value,
data: input1.value,
};
await http await http
.post( .post(
`/api/ggfwyth/regionalDivision/updateCsName?id=${changeCsqkId.value}&data=${input1.value}` `/api/ggfwyth/regionalDivision/updateCsName`,regionalDivisionEditDTO
) )
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
@ -3284,7 +3289,7 @@ const loadCs = async (name) => {
} }
console.log(6666); console.log(6666);
}; };
//shangchuan //
const addPolygonCountyCs = () => { const addPolygonCountyCs = () => {
xkzDk.map((item, index) => { xkzDk.map((item, index) => {
let num = index % 9; let num = index % 9;
@ -3292,6 +3297,7 @@ const addPolygonCountyCs = () => {
// //
let points = []; let points = [];
// console.log(item.name,item.point[0]); // console.log(item.name,item.point[0]);
//shangchuan()
// item.point[0].forEach((itemm, indexx) => { // item.point[0].forEach((itemm, indexx) => {
// itemm[0] = itemm[0] + 0.01; // itemm[0] = itemm[0] + 0.01;
// itemm[1] = itemm[1] + 0.00328; // itemm[1] = itemm[1] + 0.00328;

View File

@ -15,8 +15,8 @@ export default defineConfig({
// 第一个代理 // 第一个代理
"/api": { "/api": {
// 匹配到啥来进行方向代理 // 匹配到啥来进行方向代理
target: "http://10.0.0.65:8095/", //刘进 // target: "http://10.0.0.65:8095/", //刘进
// target: "http://220.191.238.50:996/", //线上 target: "http://220.191.238.50:996/", //线上
changeOrigin: true, //是否支持跨域 changeOrigin: true, //是否支持跨域
//rewrite: (path) => path.replace(/^\/api/, '') // 如果不需要api 直接把路径上的api 替换成空,这个 //rewrite: (path) => path.replace(/^\/api/, '') // 如果不需要api 直接把路径上的api 替换成空,这个
}, },