fix:暂时取消地图选点

This commit is contained in:
李想 2025-03-04 17:29:37 +08:00
parent 95bb9ab404
commit 00342e1d52
2 changed files with 60 additions and 18 deletions

View File

@ -6,14 +6,14 @@
<link rel="icon" type="image/svg+xml" href="/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title></title>
<script>
<!-- <script>
window._AMapSecurityConfig = {
securityJsCode: 'f09302d3ed65110614bdb26e44717ddf',
};
</script>
<script type="text/javascript"
src="https://webapi.amap.com/maps?v=2.0&key=c843a50db7157faf295c6fa37c48719f&plugin=AMap.PlaceSearch,AMap.Geocoder"></script>
<script src="https://webapi.amap.com/ui/1.1/main.js?v=1.0.11"></script>
<script src="https://webapi.amap.com/ui/1.1/main.js?v=1.0.11"></script> -->
</head>
<body>

View File

@ -43,9 +43,9 @@
<template #landCertificateUrl-form="{ type }">
<Attrs v-model:attrs="landOwnerAttrs" :view="type" />
</template>
<template #coordinate-form>
<!-- <template #coordinate-form>
<avue-input-map v-model="local" :params="params" placeholder="请选择位置"></avue-input-map>
</template>
</template> -->
<template #landUrl-form="{ type }">
<Attrs v-model:attrs="landAttrs" :view="type" />
</template>
@ -342,16 +342,16 @@ const option = reactive({
label: '土地使用权信息',
prop: 'baseGroup',
column: [
{
label: '地理位置',
prop: 'coordinate',
viewDisplay: false,
},
{
label: '地理位置',
prop: 'coordinateView',
addDisplay: false,
},
// {
// label: '',
// prop: 'coordinate',
// viewDisplay: false,
// },
// {
// label: '',
// prop: 'coordinateView',
// addDisplay: false,
// },
{
label: '图片',
prop: 'landUrl',
@ -388,7 +388,7 @@ async function getList() {
v.isTransfer = v.landTransfer || 1;
v.isTransferView = v.landTransfer == 1 ? '否' : '是';
v.landClassificationTypeView = handleIficationType(v.handleIficationType);
v.coordinateView = v.coordinate;
// v.coordinateView = v.coordinate;
});
pageData.total = res.data.total;
}
@ -518,9 +518,9 @@ async function handleRowSave(val, done, loading) {
data.landCertificateUrl = landOwnerUrls.join();
data.landUrl = landUrls.join();
data.villageCode = data.villageCode[data.villageCode.length - 1] || '';
if (local.value.length != 0) {
data.coordinate = `${local.value[0]}E,${local.value[1]}N`;
}
// if (local.value.length != 0) {
// data.coordinate = `${local.value[0]}E,${local.value[1]}N`;
// }
const res = await saveLand(data);
loading();
if (res.code == 200) {
@ -547,4 +547,46 @@ async function handleRowSave(val, done, loading) {
}
}
}
.create_land_attrs_content_ {
display: flex;
flex-wrap: wrap;
box-sizing: border-box;
gap: 20px;
.custom-form__uploader {
box-sizing: border-box;
height: auto;
}
> div {
width: calc(50% - 10px);
aspect-ratio: 1 / 1;
}
.attrs_content__item {
box-sizing: border-box;
position: relative;
padding: 6px;
border: 1px solid #ccc;
border-radius: 4px;
img {
width: 100%;
height: 100%;
border-radius: 2px;
}
.clear_btn {
position: absolute;
right: 0px;
top: 0px;
font-size: 18px;
color: #f15c5c;
opacity: 0;
cursor: pointer;
background-color: #fff;
border-radius: 50%;
}
&:hover {
.clear_btn {
opacity: 1;
}
}
}
}
</style>