This commit is contained in:
duanxiaohai 2024-08-30 11:24:51 +08:00
commit 444dae5dfd
2 changed files with 87 additions and 17 deletions

View File

@ -45,7 +45,7 @@
:data="data.tableData" :data="data.tableData"
height="100%" height="100%"
:header-cell-style="{ background: '#008FCD' }" :header-cell-style="{ background: '#008FCD' }"
:row-style="{height: '20px'}" :row-style="{height: '26px'}"
:key="tableKey" :key="tableKey"
@row-click="handleRowClick" @row-click="handleRowClick"
class="custom-table-font" class="custom-table-font"

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="module"> <div class="module">
<teleport to="body"> <teleport to="body">
<div id="map" style="width: 100vw; height: 100vh" v-show="openD"></div> <div id="map" style="width: 100vw; height: 100vh" v-show="!openD"></div>
<div class="left" style="width: 517px" v-show="!showEdit"> <div class="left" style="width: 517px" v-show="!showEdit">
<div class="lyx"> <div class="lyx">
<div class="title"> <div class="title">
@ -225,7 +225,10 @@
退出 退出
</div> </div>
</div> </div>
<div class="btnBj" v-if="!showEdit && !dialogShow && !openD" @click="openqx()">
地图权限(123456)
<p :style="{ color: jsqx ? 'green' : 'red' }">{{ bjtitle }}</p>
</div>
<Dialog <Dialog
:dialogShow="dialogShow" :dialogShow="dialogShow"
:columns="tableType.columns" :columns="tableType.columns"
@ -261,7 +264,7 @@
<personDetail <personDetail
class="detail" class="detail"
style="width: 1920px; height: 1080px" style="width: 1920px; height: 1080px"
v-show="!openD" v-show="openD"
:message="message" :message="message"
@closeDetail="closeDetail" @closeDetail="closeDetail"
></personDetail> ></personDetail>
@ -296,6 +299,7 @@
</div> </div>
</template> </template>
</el-dialog> </el-dialog>
<!-- 修改村社中心点 -->
<el-dialog v-model="dialogVisible3" title="修改村社中心点" width="500"> <el-dialog v-model="dialogVisible3" title="修改村社中心点" width="500">
<el-input v-model="input2" placeholder="请选择" disabled /> <el-input v-model="input2" placeholder="请选择" disabled />
<template #footer> <template #footer>
@ -304,6 +308,7 @@
</div> </div>
</template> </template>
</el-dialog> </el-dialog>
<!-- 添加村社 -->
<el-dialog v-model="dialogVisible2" title="新村社列表" width="500"> <el-dialog v-model="dialogVisible2" title="新村社列表" width="500">
<el-form <el-form
:model="add_new_cs" :model="add_new_cs"
@ -328,6 +333,19 @@
</div> </div>
</template> </template>
</el-dialog> </el-dialog>
<!-- 修改村名 -->
<el-dialog v-model="qx" title="地图编辑权限" width="300">
<el-input
v-model="qxvalue"
style="width: 240px"
placeholder="请输入密码"
/>
<template #footer>
<div class="dialog-footer">
<el-button type="primary" @click="saveqx()"> 确认权限 </el-button>
</div>
</template>
</el-dialog>
</teleport> </teleport>
</div> </div>
</template> </template>
@ -422,11 +440,12 @@ const input2 = ref([]);
const dialogVisible = ref(false); const dialogVisible = ref(false);
const dialogVisible2 = ref(false); const dialogVisible2 = ref(false);
const dialogVisible3 = ref(false); const dialogVisible3 = ref(false);
const qx = ref(false);
// //
const loadingss = ref(false); const loadingss = ref(false);
const loadTable = ref(false); const loadTable = ref(false);
// //
const openD = ref(true); const openD = ref(false);
const message = ref({}); const message = ref({});
// //
const jdm_arr = ref([]); // const jdm_arr = ref([]); //
@ -1025,6 +1044,43 @@ const getCssj = async () => {
/** /**
* 地块编辑 * 地块编辑
*/ */
//
const jsqx = ref(false);
const qxkey = "123456";
const qxvalue = ref("");
const bjtitle = computed(() => {
if (jsqx.value) {
return "已解锁";
} else {
return "锁定";
}
});
const openqx = () => {
console.log(1111);
if (jsqx.value) {
ElMessageBox.confirm("确定要取消权限吗?")
.then(() => {
qxvalue.value=''
jsqx.value = false;
})
.catch(() => {
});
} else {
qx.value = true;
}
};
const saveqx = () => {
if (qxvalue.value == qxkey) {
jsqx.value = true;
qx.value = false;
qxvalue.value=''
ElMessage.success("解锁成功");
} else {
ElMessage.error("解锁密码错误");
}
};
// //
const movemode = () => { const movemode = () => {
drawing.value = true; drawing.value = true;
@ -2741,14 +2797,14 @@ const openCamera = () => {
// //
const openMessage = (e) => { const openMessage = (e) => {
message.value = e; message.value = e;
openD.value = false; openD.value = true;
reset_font2(); reset_font2();
// //
window.addEventListener("resize", reset_font2); window.addEventListener("resize", reset_font2);
}; };
// //
const closeDetail = () => { const closeDetail = () => {
openD.value = true; openD.value = false;
window.removeEventListener("resize", reset_font2); window.removeEventListener("resize", reset_font2);
}; };
// //
@ -3789,16 +3845,16 @@ const DGcreateCs = (polygon, indexx) => {
}); });
map.addOverlay(cs_dd_arr.value[indexx]); map.addOverlay(cs_dd_arr.value[indexx]);
cs_dd_arr.value[indexx].addEventListener("click", () => { cs_dd_arr.value[indexx].addEventListener("click", () => {
if (jsqx.value) {
if (showEdit.value) { if (showEdit.value) {
changeCsqkId.value = polygon.id; changeCsqkId.value = polygon.id;
} else { } else {
console.log(polygon.id); console.log(polygon.id);
changeCsqkId.value = polygon.id; changeCsqkId.value = polygon.id;
showEdit.value = !showEdit.value; showEdit.value = !showEdit.value;
// let a = document.documentElement.getElementsByClassName("left")[0]; }
// a.style.opacity = "0"; }else{
// let b = document.documentElement.getElementsByClassName("right")[0];
// b.style.opacity = "0";
} }
}); });
}; };
@ -4503,6 +4559,20 @@ onMounted(async () => {
border-radius: 0 3px 3px 0; border-radius: 0 3px 3px 0;
} }
} }
.btnBj {
cursor: pointer;
z-index: 100;
position: absolute;
color: #ffffff;
top: 12%;
right: 28%;
background: #7aceff;
padding: 5px;
border-radius: 5px;
display: flex;
align-items: center;
opacity: 0.8;
}
.title { .title {
background-image: url(@/assets/images/map/map_title_bg.png); background-image: url(@/assets/images/map/map_title_bg.png);
background-repeat: no-repeat; background-repeat: no-repeat;