diff --git a/src/view/education.vue b/src/view/education.vue index 02ddd55..13a2964 100644 --- a/src/view/education.vue +++ b/src/view/education.vue @@ -92,32 +92,32 @@
-
+
初中 {{ data.xxgk.czxxsl }}
-
+
高中 {{ data.xxgk.gzxxsl }}
-
+
小学 {{ data.xxgk.xxxxsl }}
-
+
中职 {{ data.xxgk.zzxxsl }}
-
+
幼儿园 {{ data.xxgk.yeyxxsl }}
- 特殊教育 + 特殊教育 {{ data.xxgk.tsjyxxsl }}
@@ -187,11 +187,11 @@
覆盖医疗机构数量 - {{data.whistleblower.yljgsl}} + {{ data.whistleblower.yljgsl }}
启用角色数量 - {{data.whistleblower.qyjssl}} + {{ data.whistleblower.qyjssl }}
@@ -202,7 +202,7 @@
- {{data.whistleblower.green}} + {{ data.whistleblower.green }}
@@ -212,7 +212,7 @@
- {{data.whistleblower.yellow}} + {{ data.whistleblower.yellow }}
@@ -222,7 +222,7 @@
- {{data.whistleblower.red}} + {{ data.whistleblower.red }}
@@ -253,6 +253,16 @@
+ +
@@ -269,7 +279,7 @@ import ePie4 from "./echarts_education/pie4.vue"; import ePieRose from "./echarts_education/pieRose.vue"; import eP1 from "./echarts_education/eP1.vue"; import http from "@/utils/request.js"; - +import Dialog from "./dialog/dialog.vue"; const selectData = reactive({ value1: "111", value2: "tes1", @@ -367,31 +377,66 @@ var roseData3 = ref([ value: 78, }, ]); -// var schoolData = ref([ -// { name: "副高级", value: 44 }, -// { name: "正高级", value: 22 }, -// { name: "未定级", value: 11 }, -// { name: "员级", value: 12 }, -// { name: "中级", value: 54 }, -// { name: "助理级", value: 74 }, -// ]); -// var schoolData1 = ref([ -// { name: "副高级", value: 11 }, -// { name: "正高级", value: 22 }, -// { name: "未定级", value: 11 }, -// { name: "员级", value: 12 }, -// { name: "中级", value: 22 }, -// { name: "助理级", value: 74 }, -// ]); -// var schoolData2 = ref([ -// { name: "副高级", value: 22 }, -// { name: "正高级", value: 22 }, -// { name: "未定级", value: 11 }, -// { name: "员级", value: 33 }, -// { name: "中级", value: 54 }, -// { name: "助理级", value: 74 }, -// ]); +//详情弹框 +const dialogShow = ref(false); +const tableType = reactive({ + url: "", + title: "", + columns: [ + { + label: "学校", + property: "school", + }, + { + label: "教师数", + property: "teacher", + }, + { + label: "学生数", + property: "student", + }, + { + label: "班级数", + property: "banji", + }, + ], + data: [], +}); +// 表格分页 +const pagination = reactive({ + total: 100, + pageSize: 10, + currentPage: 1, +}); +const handlePagination = (current) => { + pagination.currentPage = current; + getTable(tableType.url, pagination.currentPage); +}; +const showDialog = (title, url) => { + tableType.title = title; + tableType.url = url; + pagination.currentPage = 1; + dialogShow.value = true; + // getTable(url, pagination.currentPage); +}; +//获取表格数据 +const getTable = (url, currentPage) => { + dialogShow.value = true; + // http + // .get(`${url}?page=${currentPage}&size=${pagination.pageSize}`) + // .then((res) => { + // if (res.code == 200) { + // tableType.data = res.data; + // pagination.total = res.count; + // dialogShow.value = true; + // } + // }); +}; +const close = () => { + dialogShow.value = false; +}; +//---- const selectChange1 = () => { if (selectData.value1 == "111") { selectData.list = roseData1.value; diff --git a/src/view/yl.vue b/src/view/yl.vue index ad60e5d..76ba058 100644 --- a/src/view/yl.vue +++ b/src/view/yl.vue @@ -183,7 +183,7 @@
-
+
{{ data.yljgzlzx.yljg }}
@@ -198,7 +198,7 @@
--> -
+
{{ data.yljgzlzx.zlzx }}
@@ -294,52 +294,68 @@ const showR = ref(false); // 详情弹框 const dialogShow = ref(false); const tableType = reactive({ + url: "", title: "", - columns: [ - { - label: "照料中心", - property: "sdailycarecentername", - width: "160", - }, - { - label: "老人名称", - property: "scustomername", - width: "120", - }, - { - label: "就餐/送餐订单", - property: "iordertype", - width: "140", - type: "slot", - }, - { - label: "早、中、晚餐", - property: "itimetype", - width: "140", - type: "slot", - }, - { - label: "菜品信息", - property: "dishesmealnames", - width: "160", - }, - { - label: "订单金额", - property: "totalprice", - width: "120", - }, - { - label: "实际支付金额", - property: "actualprice", - width: "120", - }, - { - label: "订单结束时间", - property: "dtfinishtime", - }, - ], + columns: [], data: [], }); +const xz_column = ref([ + { + label: "照料中心", + property: "sdailycarecentername", + width: "160", + }, + { + label: "老人名称", + property: "scustomername", + width: "120", + }, + { + label: "就餐/送餐订单", + property: "iordertype", + width: "140", + type: "slot", + }, + { + label: "早、中、晚餐", + property: "itimetype", + width: "140", + type: "slot", + }, + { + label: "菜品信息", + property: "dishesmealnames", + width: "160", + }, + { + label: "订单金额", + property: "totalprice", + width: "120", + }, + { + label: "实际支付金额", + property: "actualprice", + width: "120", + }, + { + label: "订单结束时间", + property: "dtfinishtime", + }, +]); +const yl_column = ref([ + { + label: "机构名称", + property: "name", + }, + { + label: "机构地址", + property: "address", + }, + { + label: "老人数量", + property: "oldMan", + }, +]); // 表格分页 const pagination = reactive({ total: 100, @@ -351,15 +367,41 @@ const change = (name, index) => { }; const chooseVillage = (village) => { tableType.title = village; + tableType.columns = xz_column.value; + tableType.url = "/api/ggfwyth/zcxxList"; getTownDetail(); }; +const showDialog = (title, url) => { + tableType.title = title; + tableType.url = url; + tableType.columns = yl_column.value; + getTable(url, pagination.currentPage); +}; +//获取表格数据 +const getTable = (url, currentPage) => { + dialogShow.value = true; + tableType.data = []; + // http + // .get(`${url}?page=${currentPage}&size=${pagination.pageSize}`) + // .then((res) => { + // if (res.code == 200) { + // tableType.data = res.data; + // pagination.total = res.count; + // dialogShow.value = true; + // } + // }); +}; const close = () => { dialogShow.value = false; pagination.currentPage = 1; }; const handlePagination = (current) => { pagination.currentPage = current; - getTownDetail(); + if (tableType.url == "/api/ggfwyth/zcxxList") { + getTownDetail(); + } else { + getTable(tableType.url, pagination.currentPage); + } }; const getTownDetail = () => { let params = {