Commit 097d857a authored by 郭铭瑶's avatar 郭铭瑶 🤘

更新

parent 3e884b08
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
<link rel="icon" href="./favicon.ico" /> <link rel="icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>静安智慧房管</title> <title>静安智慧房管</title>
<script type="module" crossorigin src="./assets/index.b412d033.js"></script> <script type="module" crossorigin src="./assets/index.ee3d3f62.js"></script>
<link rel="modulepreload" href="./assets/vendor.d8be57b6.js"> <link rel="modulepreload" href="./assets/vendor.d8be57b6.js">
<link rel="stylesheet" href="./assets/vendor.db35e2cd.css"> <link rel="stylesheet" href="./assets/vendor.db35e2cd.css">
<link rel="stylesheet" href="./assets/index.654526b7.css"> <link rel="stylesheet" href="./assets/index.1e95251e.css">
</head> </head>
<body> <body>
......
...@@ -15485,28 +15485,28 @@ function setup$6(__props) { ...@@ -15485,28 +15485,28 @@ function setup$6(__props) {
}).then(res => { }).then(res => {
var _res$data; var _res$data;
// 0-可加装 1-较难加装 2-不可加装 // // 0-可加装 1-较难加装 2-不可加装
const switchType = type => { // const switchType = (type) => {
switch (type) { // switch (type) {
case '0': // case '0':
return '可加装'; // return '可加装'
// case '1':
case '1': // return '较难加装'
return '较难加装'; // case '2':
// return '不可加装'
case '2': // default:
return '不可加装'; // return ''
// }
default: // }
return ''; list.value = ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.content) || []).map(item => {
} var _item$finishInstallat, _item$finishInstallat2, _item$startInstallati, _item$startInstallati2;
};
return { ...item,
list.value = ((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.content) || []).map(item => ({ ...item, name: item.stNameFrst,
name: item.stNameFrst, address: item.unitAddr,
address: item.unitAddr, status: curTab.value === '7' ? ((_item$finishInstallat = item.finishInstallationTime) === null || _item$finishInstallat === void 0 ? void 0 : (_item$finishInstallat2 = _item$finishInstallat.split(' ')) === null || _item$finishInstallat2 === void 0 ? void 0 : _item$finishInstallat2[0]) || '暂无' : ((_item$startInstallati = item.startInstallationTime) === null || _item$startInstallati === void 0 ? void 0 : (_item$startInstallati2 = _item$startInstallati.split(' ')) === null || _item$startInstallati2 === void 0 ? void 0 : _item$startInstallati2[0]) || '暂无'
status: switchType(item.evaluateType) };
})); });
}); });
} }
...@@ -15567,13 +15567,13 @@ var script$7 = /*#__PURE__*/defineComponent({ ...__default__$6, ...@@ -15567,13 +15567,13 @@ var script$7 = /*#__PURE__*/defineComponent({ ...__default__$6,
setup: setup$6 setup: setup$6
}); });
var css_248z$8 = ".tabs[data-v-2ab48bec] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 0.04rem;\n box-sizing: border-box;\n}\n.tabs .tab[data-v-2ab48bec] {\n cursor: pointer;\n transition: transform 0.2s ease-in-out;\n}\n.tabs .tab[data-v-2ab48bec]:hover {\n color: #edb872;\n}\n.tabs .tab.on[data-v-2ab48bec] {\n font-weight: bold;\n color: #edb872;\n transform: scale(1.1);\n}\n.content[data-v-2ab48bec] {\n flex: 1;\n margin-top: 0.1rem;\n overflow-y: auto;\n max-height: 60vh;\n margin-bottom: 0.05rem;\n}\n.content >div[data-v-2ab48bec] {\n background: rgba(70,83,97,0.4);\n border-radius: 0.04rem;\n box-shadow: 0 0.01rem 0.01rem 0 rgba(255,255,255,0.2) inset;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0.04rem 0.06rem;\n cursor: pointer;\n}\n.content >div[data-v-2ab48bec]:hover {\n box-shadow: none;\n}\n.content >div+div[data-v-2ab48bec] {\n margin-top: 0.05rem;\n}\n.content >div >span+span[data-v-2ab48bec] {\n margin-left: 0.06rem;\n}\n.content >div >span[data-v-2ab48bec]:nth-of-type(2),\n.content >div >span[data-v-2ab48bec]:nth-of-type(3) {\n flex: 1;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.content >div >span.status[data-v-2ab48bec] {\n color: #edb872;\n}\n"; var css_248z$8 = ".tabs[data-v-5839cf2d] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 0.04rem;\n box-sizing: border-box;\n}\n.tabs .tab[data-v-5839cf2d] {\n cursor: pointer;\n transition: transform 0.2s ease-in-out;\n}\n.tabs .tab[data-v-5839cf2d]:hover {\n color: #edb872;\n}\n.tabs .tab.on[data-v-5839cf2d] {\n font-weight: bold;\n color: #edb872;\n transform: scale(1.1);\n}\n.content[data-v-5839cf2d] {\n flex: 1;\n margin-top: 0.1rem;\n overflow-y: auto;\n max-height: 60vh;\n margin-bottom: 0.05rem;\n}\n.content >div[data-v-5839cf2d] {\n background: rgba(70,83,97,0.4);\n border-radius: 0.04rem;\n box-shadow: 0 0.01rem 0.01rem 0 rgba(255,255,255,0.2) inset;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0.04rem 0.06rem;\n cursor: pointer;\n}\n.content >div[data-v-5839cf2d]:hover {\n box-shadow: none;\n}\n.content >div+div[data-v-5839cf2d] {\n margin-top: 0.05rem;\n}\n.content >div >span+span[data-v-5839cf2d] {\n margin-left: 0.06rem;\n}\n.content >div >span[data-v-5839cf2d]:nth-of-type(2),\n.content >div >span[data-v-5839cf2d]:nth-of-type(3) {\n flex: 1;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.content >div >span.status[data-v-5839cf2d] {\n color: #edb872;\n}\n";
styleInject(css_248z$8); styleInject(css_248z$8);
var css_248z$7 = ".n-select.my-select {\n height: 0.2rem;\n}\n.n-select.my-select .n-base-selection {\n height: inherit;\n}\n.n-select.my-select .n-base-selection .n-base-selection-label {\n height: inherit;\n background: rgba(70,83,97,0.4) !important;\n box-shadow: inset 0 0.01rem 0.02rem 0 rgba(204,204,204,0.2);\n}\n.n-select.my-select .n-base-selection .n-base-selection-label .n-base-selection-input {\n color: #fff;\n font-size: 0.09rem;\n}\n.n-select.my-select .n-base-selection .n-base-selection-label .n-base-icon.n-base-suffix__arrow {\n color: #edb872;\n font-size: 0.09rem;\n}\n.n-select.my-select .n-base-selection .n-base-selection__border,\n.n-select.my-select .n-base-selection .n-base-selection__state-border {\n display: none;\n}\n.n-base-select-menu.n-select-menu {\n background: rgba(70,83,97,0.8) !important;\n backdrop-filter: blur(0.05rem);\n -webkit-backdrop-filter: blur(0.05rem);\n}\n.n-base-select-menu.n-select-menu .n-base-select-option {\n background: transparent !important;\n font-size: 0.09rem;\n color: #fff;\n}\n.n-base-select-menu.n-select-menu .n-base-select-option.n-base-select-option--selected {\n color: #edb872;\n font-weight: bold;\n}\n.n-base-select-menu.n-select-menu .n-base-select-option.n-base-select-option--pending {\n color: #edb872;\n}\n"; var css_248z$7 = ".n-select.my-select {\n height: 0.2rem;\n}\n.n-select.my-select .n-base-selection {\n height: inherit;\n}\n.n-select.my-select .n-base-selection .n-base-selection-label {\n height: inherit;\n background: rgba(70,83,97,0.4) !important;\n box-shadow: inset 0 0.01rem 0.02rem 0 rgba(204,204,204,0.2);\n}\n.n-select.my-select .n-base-selection .n-base-selection-label .n-base-selection-input {\n color: #fff;\n font-size: 0.09rem;\n}\n.n-select.my-select .n-base-selection .n-base-selection-label .n-base-icon.n-base-suffix__arrow {\n color: #edb872;\n font-size: 0.09rem;\n}\n.n-select.my-select .n-base-selection .n-base-selection__border,\n.n-select.my-select .n-base-selection .n-base-selection__state-border {\n display: none;\n}\n.n-base-select-menu.n-select-menu {\n background: rgba(70,83,97,0.8) !important;\n backdrop-filter: blur(0.05rem);\n -webkit-backdrop-filter: blur(0.05rem);\n}\n.n-base-select-menu.n-select-menu .n-base-select-option {\n background: transparent !important;\n font-size: 0.09rem;\n color: #fff;\n}\n.n-base-select-menu.n-select-menu .n-base-select-option.n-base-select-option--selected {\n color: #edb872;\n font-weight: bold;\n}\n.n-base-select-menu.n-select-menu .n-base-select-option.n-base-select-option--pending {\n color: #edb872;\n}\n";
styleInject(css_248z$7); styleInject(css_248z$7);
script$7.__scopeId = "data-v-2ab48bec"; script$7.__scopeId = "data-v-5839cf2d";
var script$6 = { var script$6 = {
name: 'A014', name: 'A014',
......
...@@ -20,6 +20,7 @@ defineExpose({ ...@@ -20,6 +20,7 @@ defineExpose({
addPolygon, addPolygon,
remove, remove,
setCommunityPoints, setCommunityPoints,
setCommunityPolygon,
}) })
const emit = defineEmits(['event', 'complete']) const emit = defineEmits(['event', 'complete'])
...@@ -62,10 +63,16 @@ function onComplete() { ...@@ -62,10 +63,16 @@ function onComplete() {
function setCommunityPoints(query = "HPB_NAME = '静安区'") { function setCommunityPoints(query = "HPB_NAME = '静安区'") {
map.instance.getLayer('wg_gis_xq_point').visible = false map.instance.getLayer('wg_gis_xq_point').visible = false
map.instance.getLayer('wg_gis_mpz').visible = true
map.instance.getLayer('wg_gis_xq_poly').visible = true
map.instance.setFilter('wg_gis_mpz', query) map.instance.setFilter('wg_gis_mpz', query)
map.instance.setFilter('wg_gis_xq_poly', query) map.instance.setFilter('wg_gis_xq_poly', query)
} }
function setCommunityPolygon(visible) {
map.instance.getLayer('wg_gis_xq_poly').visible = visible
}
function zoomIn() { function zoomIn() {
map.zoomIn() map.zoomIn()
} }
......
...@@ -187,11 +187,12 @@ const switchGisView = (gisType: string) => { ...@@ -187,11 +187,12 @@ const switchGisView = (gisType: string) => {
p.y, p.y,
]) || [], ]) || [],
}, },
fillColor: 'transparent', fillColor: 'rgba(50,197,255,0.3)',
color: '#F7933E', color: '#32C5FF',
lineWidth: 1, lineWidth: 1,
}), }),
) )
mapRef.value?.setCommunityPolygon(false)
} else { } else {
addPoints({ addPoints({
data: content.map((item) => { data: content.map((item) => {
...@@ -207,6 +208,7 @@ const switchGisView = (gisType: string) => { ...@@ -207,6 +208,7 @@ const switchGisView = (gisType: string) => {
icon: GisIcon, icon: GisIcon,
size: 16, size: 16,
}) })
mapRef.value?.setCommunityPolygon(true)
} }
showGisModal.value = false showGisModal.value = false
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment