From a297d468bcb82f23d44b25ff3f2cfe2c98f59845 Mon Sep 17 00:00:00 2001
From: lnn19986213 <1667908750@qq.com>
Date: Mon, 13 May 2024 13:35:17 +0800
Subject: [PATCH] gx
---
src/view/education.vue | 66 ++++++++++++++++++++++--------------------
1 file changed, 34 insertions(+), 32 deletions(-)
diff --git a/src/view/education.vue b/src/view/education.vue
index d274413..267f5a2 100644
--- a/src/view/education.vue
+++ b/src/view/education.vue
@@ -40,42 +40,42 @@
- 1,211
+ {{ data.xxgk.xxzs }}
学校总数
- 46,718 学生总数
+ {{ data.xxgk.xszs }} 学生总数
- 883 班级总数
+ {{ data.xxgk.bjzs }} 班级总数
- 4,381 教职工总数
+ {{ data.xxgk.jzgzs }} 教职工总数
- 初中 7
+ 初中 {{ data.xxgk.czxxsl }}
- 高中 7
+ 高中 {{ data.xxgk.gzxxsl }}
- 小学 7
+ 小学 {{ data.xxgk.xxxxsl }}
- 中职 7
+ 中职 {{ data.xxgk.zzxxsl }}
- 幼儿园 7
+ 幼儿园 {{ data.xxgk.yeyxxsl }}
- 特殊教育 7
+ 特殊教育 {{ data.xxgk.tsjyxxsl }}
@@ -353,33 +353,34 @@ const ratingBtn = (item) => {
const data = reactive({
xsql: [],
zdgz: [
- {
- name: "留守儿童",
- value: 16.1,
- cls: "left1",
- },
- {
- name: "独生子女",
- value: 32.1,
- cls: "left2",
- },
- {
- name: "单亲家庭",
- value: 65.1,
- cls: "left3",
- },
- {
- name: "享受低保",
- value: 0.1,
- cls: "left4",
- },
-]
+ {
+ name: "留守儿童",
+ value: 16.1,
+ cls: "left1",
+ },
+ {
+ name: "独生子女",
+ value: 32.1,
+ cls: "left2",
+ },
+ {
+ name: "单亲家庭",
+ value: 65.1,
+ cls: "left3",
+ },
+ {
+ name: "享受低保",
+ value: 0.1,
+ cls: "left4",
+ },
+ ],
+ xxgk: {}
})
onBeforeMount(() => {
selectData.list = roseData1.value;
selectData.list1 = schoolData.value;
http.get("/api/ggfwyth/education").then((res) => {
- if (res.code == 200){
+ if (res.code == 200) {
data.xsql.push(res.data.xssl.zz)
data.xsql.push(res.data.xssl.gz)
data.xsql.push(res.data.xssl.cz)
@@ -390,6 +391,7 @@ onBeforeMount(() => {
data.zdgz[1].value = res.data.zdgz.dszn
data.zdgz[2].value = res.data.zdgz.dqjt
data.zdgz[3].value = res.data.zdgz.xsdb
+ data.xxgk = res.data.xxgk
}
});
});