This commit is contained in:
duanxiaohai 2024-09-04 11:41:46 +08:00
commit 6fa68ff9de
4 changed files with 1465 additions and 2654 deletions

View File

@ -70,6 +70,11 @@ const router = createRouter({
path: '/home/index/person',
component: () => import('../view/person/index.vue'),
},
{
name: '地图编辑',
path: '/home/index/mapEdit',
component: () => import('../view/sy_map_fb.vue'),
},
]
},
]

View File

@ -1304,30 +1304,6 @@ const getData = async () => {
ageRatioKeys.forEach((key) => {
data.ageRatio.push(res.data.rksj[key]);
});
// &&
data.lytAppDayActive = res.data.app.lytAppDayActive;
// for (let i = 0; i < res.data.app.lytApp.length; i += 2) {
// let obj = {
// highFrequencyApp: res.data.app.lytApp[i]?.title || "",
// monthlyVisits: res.data.app.lytApp[i]?.num || "",
// highFrequencyApp1: res.data.app.lytApp[i + 1]?.title || "",
// monthlyVisits1: res.data.app.lytApp[i + 1]?.num || "",
// };
// data.tableData.push(obj);
// }
data.tableData = res.data.app.lytApp.reduce((acc, _, i, arr) => {
if (i % 2 === 0) {
acc.push({
highFrequencyApp: arr[i]?.title || "",
monthlyVisits: arr[i]?.num || "",
highFrequencyApp1: arr[i + 1]?.title || "",
monthlyVisits1: arr[i + 1]?.num || "",
});
}
return acc;
}, []);
//
const ylwsKeys = [
"yywsysl",
@ -1364,6 +1340,30 @@ const getData = async () => {
showEchart.value = true;
});
};
// &&
const getfw = async() => {
http.get("/api/ggfwyth/getLytAppData").then((res) => {
if (res.code == 200) {
data.lytAppDayActive = res.data.lytAppDayActive;
data.tableData = res.data.lytApp.reduce((acc, _, i, arr) => {
if (i % 2 === 0) {
acc.push({
highFrequencyApp: arr[i]?.title || "",
monthlyVisits: arr[i]?.num || "",
highFrequencyApp1: arr[i + 1]?.title || "",
monthlyVisits1: arr[i + 1]?.num || "",
});
}
return acc;
}, []);
}
});
// http.get("/api/ggfwyth/getDataSharing").then((res) => {
// if (res.code == 200) {
// }
// });
};
//
const getTable = (url, currentPage) => {
http
@ -1815,6 +1815,7 @@ const autoScroll = () => {
};
onBeforeMount(async () => {
getData();
getfw();
setTimeout(() => {
startAutoScroll();
}, 1000);

View File

@ -1245,7 +1245,7 @@ const moveDK = async () => {
id: changeCsqkId.value,
data: JSON.stringify(arrJWD),
};
await http.post(`/api/ggfwyth/regionalDivision/edit`, sj).then((res) => {
await http.post(`/api/ggfwyth/regionalDivision/editVillage`, sj).then((res) => {
if (res.code == 200) {
ElMessage.success({
message: "保存成功",

File diff suppressed because it is too large Load Diff