Commit 9c17317a389b0aae06e7b5b6f659491adff311c3
1 parent
5e2e009a
集团管理添加学校学段请求接口
Showing
1 changed file
with
21 additions
and
6 deletions
src/views/standard/setUp/conglomerate.vue
... | ... | @@ -192,11 +192,12 @@ |
192 | 192 | </el-form-item> |
193 | 193 | <el-form-item label="学段:" prop="sections"> |
194 | 194 | <el-checkbox-group v-model="formSchool.sections"> |
195 | - <el-checkbox :label="1">小学</el-checkbox> | |
196 | - <el-checkbox :label="2">初中</el-checkbox> | |
197 | - <el-checkbox :label="3">高中</el-checkbox> | |
198 | - <el-checkbox :label="4">本科</el-checkbox> | |
199 | - <el-checkbox :label="7">高补</el-checkbox> | |
195 | + <el-checkbox | |
196 | + v-for="item in sectionsList" | |
197 | + :label="item.code" | |
198 | + :key="item.code" | |
199 | + >{{ item.name }}</el-checkbox | |
200 | + > | |
200 | 201 | </el-checkbox-group> |
201 | 202 | </el-form-item> |
202 | 203 | </el-form> |
... | ... | @@ -230,7 +231,9 @@ |
230 | 231 | >确 定</el-button |
231 | 232 | > |
232 | 233 | <el-button round @click="diaSchool2 = false">取 消</el-button> |
233 | - <el-button round v-if="showDelSclBtn" @click="removeSchool">删除学校</el-button> | |
234 | + <el-button round v-if="showDelSclBtn" @click="removeSchool" | |
235 | + >删除学校</el-button | |
236 | + > | |
234 | 237 | </div> |
235 | 238 | </el-dialog> |
236 | 239 | </div> |
... | ... | @@ -249,6 +252,7 @@ export default { |
249 | 252 | loading: false, |
250 | 253 | showId: "", //显示学校Id |
251 | 254 | schoolTotal: 0, |
255 | + sectionsList: [], | |
252 | 256 | tableList: [ |
253 | 257 | // 集团列表/区域列表 |
254 | 258 | { |
... | ... | @@ -304,6 +308,7 @@ export default { |
304 | 308 | created() { |
305 | 309 | this._QueryData(); |
306 | 310 | this.showSchool(); |
311 | + this._QuerySectionList(); | |
307 | 312 | }, |
308 | 313 | methods: { |
309 | 314 | edit() { |
... | ... | @@ -348,6 +353,16 @@ export default { |
348 | 353 | this.showDelSclBtn = num == 0 ? true : false; |
349 | 354 | this.diaSchool2 = true; |
350 | 355 | }, |
356 | + async _QuerySectionList() { | |
357 | + //学校学段 | |
358 | + const { data, status, info } = await this.$request.sectionList(); | |
359 | + console.log(status); | |
360 | + if (status === 0) { | |
361 | + this.sectionsList = data?.list || []; | |
362 | + } else { | |
363 | + this.$message.error(info); | |
364 | + } | |
365 | + }, | |
351 | 366 | async removeSchool() { |
352 | 367 | const { data, status, info } = await this.$request.removeSchool({ |
353 | 368 | schoolId: this.setFormSchool.schoolId, | ... | ... |