This commit is contained in:
姚宇浩 2024-08-02 16:36:10 +08:00
commit ffd222dd88
5 changed files with 703 additions and 518 deletions

View File

@ -188,7 +188,7 @@ const closeDialog = () => {
:deep(.el-dialog) { :deep(.el-dialog) {
--el-dialog-bg-color: none; --el-dialog-bg-color: none;
--el-dialog-width: 55% !important; --el-dialog-width: 55% !important;
--el-dialog-margin-top: 7vh; --el-dialog-margin-top: 11vh;
} }
.my-header { .my-header {

View File

@ -240,7 +240,9 @@ const selectChange1 = (e) => {
:deep(.el-dialog) { :deep(.el-dialog) {
--el-dialog-bg-color: none; --el-dialog-bg-color: none;
--el-dialog-width: 76% !important; --el-dialog-width: 76% !important;
--el-dialog-margin-top: 7vh; --el-dialog-margin-top: 11vh;
// --el-dialog-margin-bottom: 0px !important;
margin-bottom: 0px !important;
} }
.my-header { .my-header {

File diff suppressed because it is too large Load Diff

View File

@ -47,7 +47,7 @@
'below-line2': index % 2 === 0, 'below-line2': index % 2 === 0,
}, },
]" ]"
>{{ item.progress + "%" }}</span >{{ (item.progress).toFixed(2) + "%" }}</span
> >
<span <span
style="color: #fff; white-space: nowrap" style="color: #fff; white-space: nowrap"

View File

@ -50,6 +50,7 @@
<el-table <el-table
border border
:data="data.tableData" :data="data.tableData"
max-height="280"
style="width: 100%; height: 280x" style="width: 100%; height: 280x"
class="table_border" class="table_border"
:row-style="rowState" :row-style="rowState"
@ -463,19 +464,37 @@ const data = reactive({
}); });
const tapshow = (parentId, childId) => { const tapshow = (parentId, childId) => {
// console.log(parentId, childId, ""); console.log(parentId, childId, "菜单名");
data.taps1 = parentId.id; data.taps1 = parentId.id;
data.taps = childId; data.taps = childId;
getData(parentId.name, parentId.son[childId].name); getData(parentId.name, parentId.son[childId].name);
//
const menuName = [
"幼有善育",
"学有优教",
"劳有所得",
"病有良医",
"老有康养",
"住有宜居",
"弱有众扶",
];
// parentId menuName
const firstChar = parentId.name.charAt(0);
const matchingMenu = menuName.find((name) => name.charAt(0) === firstChar);
if (matchingMenu) {
sevenYX(matchingMenu);
}
}; };
const toggleVisibility = (val) => { const toggleVisibility = (val) => {
// console.log(val, ""); console.log(val, "最低生活保障");
data.tabPosition.forEach((parent) => { data.tabPosition.forEach((parent) => {
parent.visible = false; parent.visible = false;
if (parent.id === val.id) { if (parent.id === val.id) {
parent.visible = !parent.visible; parent.visible = !parent.visible;
} }
}); });
tapshow(val,0)
}; };
// //
@ -533,9 +552,32 @@ const getData = async (name, fullName) => {
} }
}); });
}; };
const sevenYX = (name) => {
http.get(`/api/ggfwyth/pg/qyx?ly=${name}`).then((res) => {
if (res.code == 200) {
console.log(res.data, "七优享");
data.tableData = [];
if (res.data.length > 0) {
res.data.forEach((item, index) => {
data.tableData.push({
highFrequencyApp: item.zb, //
targetValue: item.mbz, //()
targetValue1: item.mbz, ////()
targetValue2: item.wcz, //
targetValue3: item.sspm, //
targetValue4: item.zbqk, //
targetValue5: item.qtdw, //
targetValue6: item.zrdw, //
});
});
}
}
});
};
onMounted(() => { onMounted(() => {
getData("弱有所扶", "社会救助服务"); getData("弱有所扶", "社会救助服务");
sevenYX("弱有众扶");
}); });
// onMounted(() => { // onMounted(() => {
// let token = tools.data.get("token"); // let token = tools.data.get("token");