This commit is contained in:
duanxiaohai 2024-08-29 16:39:52 +08:00
commit ecdd880a08
3 changed files with 17 additions and 11 deletions

BIN
dist.zip

Binary file not shown.

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,14 +3297,15 @@ 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;
// }); // });
item.point[0].map((p) => points.push(new BMapGL.Point(...p))); item.point[0].map((p) => points.push(new BMapGL.Point(...p)));
let offsetPoints2 = points.map((point) => // let offsetPoints2 = points.map((point) =>
offsetPoint2(point, offsetX2, offsetY2) // offsetPoint2(point, offsetX2, offsetY2)
); // );
if (points.length) { if (points.length) {
// //
cs_qk_arr.value[index] = new BMapGL.Polygon(points, { cs_qk_arr.value[index] = new BMapGL.Polygon(points, {
@ -3771,7 +3777,7 @@ const reset_font2 = () => {
"scale(" + width / 1920 + "," + height / 1080 + ")"; "scale(" + width / 1920 + "," + height / 1080 + ")";
}; };
onMounted(async () => { onMounted(async () => {
tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d"); // tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
loadingss.value = true; loadingss.value = true;
reset_font(); reset_font();
initMap(); initMap();

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 替换成空,这个
}, },