This commit is contained in:
duanxiaohai 2024-08-02 15:56:12 +08:00
parent a15d1cbeb9
commit 90987233f4
5 changed files with 59 additions and 7 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 {

View File

@ -73,8 +73,8 @@
<div class="main-tag-item">出生</div> <div class="main-tag-item">出生</div>
<div class="main-tag-item">学习</div> <div class="main-tag-item">学习</div>
<div class="main-tag-item">工作</div> <div class="main-tag-item">工作</div>
<div class="main-tag-item">置业</div>
<div class="main-tag-item">婚育</div> <div class="main-tag-item">婚育</div>
<div class="main-tag-item">置业</div>
<div class="main-tag-item">退休<br />养老</div> <div class="main-tag-item">退休<br />养老</div>
<div class="main-tag-item">身后事</div> <div class="main-tag-item">身后事</div>
<div class="main-tag-item">综合</div> <div class="main-tag-item">综合</div>
@ -146,7 +146,7 @@
</template> </template>
<script setup> <script setup>
import { reactive, ref } from 'vue' import { reactive, ref,onMounted } from 'vue'
import Dialog from "@/view/dialog/dialog.vue"; import Dialog from "@/view/dialog/dialog.vue";
const data = ref([ const data = ref([
{ {
@ -246,6 +246,14 @@ const handlePagination = (pagination) => {
dialogShow.value = false dialogShow.value = false
} }
onMounted(() => {
// // updateClock
// updateClock();
// data.nowTab = router.currentRoute.value.fullPath;
// // updateClock
// setInterval(updateClock, 1000);
});
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

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");