+
-
+
基本公共服务圈
@@ -155,8 +155,11 @@
-
编辑
-
保存
+
修改村名
+
编辑地块
+
保存地块
+
添加地块
+
删除地块
取消
@@ -208,6 +211,18 @@
加载中...
+
+
+
+
+
+
@@ -263,6 +278,9 @@ import Dialog from "./dialog/dialogMapDp.vue";
import personDetail from "./person/index.vue";
import gcj02towgs84 from "@/utils/gcj02towgs84.js";
//--------定义参数-------
+//编辑村名
+const input1 = ref("");
+const dialogVisible = ref(false);
//加载
const loadingss = ref(false);
const loadTable = ref(false);
@@ -867,16 +885,16 @@ const closeEdit = async () => {
});
addCsChoose();
showEdit.value = false;
- let a = document.documentElement.getElementsByClassName("left")[0];
- a.style.opacity = "1";
- let b = document.documentElement.getElementsByClassName("right")[0];
- b.style.opacity = "1";
+ // let a = document.documentElement.getElementsByClassName("left")[0];
+ // a.style.opacity = "1";
+ // let b = document.documentElement.getElementsByClassName("right")[0];
+ // b.style.opacity = "1";
};
//上传编辑的地块
const saveDK = async () => {
await http
.post(
- `/api/ggfwyth/regionalDivision/addCsManagerRegionalDivision?id=${
+ `/api/ggfwyth/regionalDivision/updateCsManagerRegionalDivision?id=${
changeCsqkId.value
}&data=${JSON.stringify(arrJWD)}`
)
@@ -901,7 +919,44 @@ const saveDK = async () => {
}
});
};
-
+//修改村名
+const nameEdit = () => {
+ dialogVisible.value = true;
+};
+const csName = async () => {
+ let n=input1.value;
+ await http
+ .post(
+ `/api/ggfwyth/regionalDivision/updateCsName?id=${changeCsqkId.value}&data=${input1.value}`
+ )
+ .then((res) => {
+ if (res.code == 200) {
+ ElMessage.success({
+ message: "修改村名成功",
+ offset: 100, // 距离窗口顶部的偏移量
+ });
+ }
+ });
+ input1.value = "";
+ dialogVisible.value = false;
+ await getCssj();
+ await loadCs(cfJd.value);
+ cs_dd_arr.value.forEach((item, index) => {
+ map.removeOverlay(cs_dd_arr.value[index]);
+ });
+ cs_dd_arr.value = [];
+ xkzCenter.forEach((a) => {
+ if (a.name == n) {
+ cs_dd_arr.value.push(a);
+ }
+ });
+ console.log("cs_dd_arr.value", cs_dd_arr.value);
+ setTimeout(() => {
+ cs_dd_arr.value.map((item, index) => {
+ DGcreateCs(item, index);
+ });
+ }, 500);
+};
//点击龙游县初始化
const csh = () => {
clear();
@@ -2931,6 +2986,8 @@ const createCs2 = (polygon, indexx) => {
};
//添加单个村社
const DGcreateCs = (polygon, indexx) => {
+ console.log(7777777777);
+
function createLabelDOM() {
var content = document.createElement("div");
content.style.display = "flex";
@@ -2987,10 +3044,10 @@ const DGcreateCs = (polygon, indexx) => {
console.log(polygon.id);
changeCsqkId.value = polygon.id;
showEdit.value = !showEdit.value;
- let a = document.documentElement.getElementsByClassName("left")[0];
- a.style.opacity = "0";
- let b = document.documentElement.getElementsByClassName("right")[0];
- b.style.opacity = "0";
+ // let a = document.documentElement.getElementsByClassName("left")[0];
+ // a.style.opacity = "0";
+ // let b = document.documentElement.getElementsByClassName("right")[0];
+ // b.style.opacity = "0";
}
});
};