This commit is contained in:
duanxiaohai 2024-07-25 11:48:09 +08:00
parent 5f87d337a2
commit 4b96e8896e
2 changed files with 30 additions and 1 deletions

View File

@ -397,12 +397,14 @@ const markera = (e) => {
var marker = new BMapGL.Marker(new BMapGL.Point(e.latlng.lng, e.latlng.lat), { var marker = new BMapGL.Marker(new BMapGL.Point(e.latlng.lng, e.latlng.lat), {
icon: icons, icon: icons,
}); });
// //
map.addOverlay(marker); map.addOverlay(marker);
currentMarker = marker; currentMarker = marker;
}; };
const BMAP = () => { const BMAP = () => {
// //
map.addEventListener("click", markera); map.addEventListener("click", markera);
}; };
@ -500,7 +502,7 @@ const addPolygonCounty = () => {
console.log("dbfjdsbfjds", choose.value.person); console.log("dbfjdsbfjds", choose.value.person);
goMapCenter(jdCenter, 13); goMapCenter(jdCenter, 13);
} else { } else {
map.removeEventListener("click", markera); map.removeEventListener("click",markera);
if (currentMarker !== null) { if (currentMarker !== null) {
map.removeOverlay(currentMarker); map.removeOverlay(currentMarker);
} }

View File

@ -110,6 +110,9 @@
</div> </div>
</div> </div>
<div class="tableBoxTopa">{{ item.text }}</div> <div class="tableBoxTopa">{{ item.text }}</div>
<div class="progress-container">
<div class="progress-bar" :style="{ width: item.progress + '%' }"></div>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -148,6 +151,7 @@ const goto = (url) => {
}; };
const data = reactive({ const data = reactive({
taps: "0", taps: "0",
taps1: "0", taps1: "0",
tabPosition: [ tabPosition: [
@ -273,30 +277,35 @@ const data = reactive({
name: "最低生活保障", name: "最低生活保障",
Bj: Bj, Bj: Bj,
text: "我县在册低保对象7374户9463人为低保对象发放最低生活保障金2023年共支出低保金9912.65万元。", text: "我县在册低保对象7374户9463人为低保对象发放最低生活保障金2023年共支出低保金9912.65万元。",
progress: 95 ,//
}, },
{ {
id: "1", id: "1",
name: "重特困人员救助供养", name: "重特困人员救助供养",
Bj: Bj1, Bj: Bj1,
text: "我县特困供养对象329户331人2023年支出特困供养经费722.29万元。", text: "我县特困供养对象329户331人2023年支出特困供养经费722.29万元。",
progress: 35 ,//
}, },
{ {
id: "2", id: "2",
name: "医疗救助", name: "医疗救助",
Bj: Bj2, Bj: Bj2,
text: "我县医疗救助的对象为民攻部门认定的特困供养人员最低生活保障家庭成员、最低生活保障边缘家庭成员(包括纳入低保、低边的因病致贫等支出型贫困对象)。", text: "我县医疗救助的对象为民攻部门认定的特困供养人员最低生活保障家庭成员、最低生活保障边缘家庭成员(包括纳入低保、低边的因病致贫等支出型贫困对象)。",
progress: 45 ,//
}, },
{ {
id: "3", id: "3",
name: "临时救助", name: "临时救助",
Bj: Bj3, Bj: Bj3,
text: "为数助对象发放临时救助金2023年共救助609户1036人数助225.39万元。", text: "为数助对象发放临时救助金2023年共救助609户1036人数助225.39万元。",
progress: 100 ,//
}, },
{ {
id: "4", id: "4",
name: "受灾人员救助", name: "受灾人员救助",
Bj: Bj4, Bj: Bj4,
text: "机构改革以来(2019年),我县自然灾害形势总体平稳,未发生因灾亡人事故。", text: "机构改革以来(2019年),我县自然灾害形势总体平稳,未发生因灾亡人事故。",
progress: 25 ,//
}, },
], ],
}); });
@ -444,6 +453,7 @@ const rowState = (row) => {
box-sizing: border-box; box-sizing: border-box;
margin-right: 20px; margin-right: 20px;
margin-bottom: 20px; margin-bottom: 20px;
position: relative; /* Add this */
.tableBoxTops { .tableBoxTops {
display: flex; display: flex;
align-items: center; align-items: center;
@ -465,6 +475,23 @@ const rowState = (row) => {
font-style: normal; font-style: normal;
margin-top: 10px; margin-top: 10px;
} }
.progress-container {
position: absolute;
bottom: 2px;
left: 0px;
width: 100%;
height: 10px;
background-color: rgba(255, 255, 255, 0.2);
border-radius: 5px;
overflow: hidden;
}
.progress-bar {
height: 100%;
background: linear-gradient(90deg, #31ffd8 0%, #00e5ff 100%);
border-radius: 0px 100px 100px 0px;
transition: width 0.3s ease;
}
} }
img { img {
width: 24px; width: 24px;