From 9c17317a389b0aae06e7b5b6f659491adff311c3 Mon Sep 17 00:00:00 2001 From: 梁保满 Date: Wed, 19 Apr 2023 16:54:56 +0800 Subject: [PATCH] 集团管理添加学校学段请求接口 --- src/views/standard/setUp/conglomerate.vue | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/src/views/standard/setUp/conglomerate.vue b/src/views/standard/setUp/conglomerate.vue index 8ebcc28..717215c 100644 --- a/src/views/standard/setUp/conglomerate.vue +++ b/src/views/standard/setUp/conglomerate.vue @@ -192,11 +192,12 @@ - 小学 - 初中 - 高中 - 本科 - 高补 + {{ item.name }} @@ -230,7 +231,9 @@ >确 定 取 消 - 删除学校 + 删除学校 @@ -249,6 +252,7 @@ export default { loading: false, showId: "", //显示学校Id schoolTotal: 0, + sectionsList: [], tableList: [ // 集团列表/区域列表 { @@ -304,6 +308,7 @@ export default { created() { this._QueryData(); this.showSchool(); + this._QuerySectionList(); }, methods: { edit() { @@ -348,6 +353,16 @@ export default { this.showDelSclBtn = num == 0 ? true : false; this.diaSchool2 = true; }, + async _QuerySectionList() { + //学校学段 + const { data, status, info } = await this.$request.sectionList(); + console.log(status); + if (status === 0) { + this.sectionsList = data?.list || []; + } else { + this.$message.error(info); + } + }, async removeSchool() { const { data, status, info } = await this.$request.removeSchool({ schoolId: this.setFormSchool.schoolId, -- libgit2 0.21.4