Commit b9dd8ed50a537a2e7b0abf372f2c411d58a0b852
1 parent
9c17317a
学校设置已选学段不允许取消
Showing
1 changed file
with
3 additions
and
0 deletions
src/views/standard/setUp/school.vue
@@ -178,6 +178,7 @@ | @@ -178,6 +178,7 @@ | ||
178 | v-for="item in sectionsList" | 178 | v-for="item in sectionsList" |
179 | :label="item.code" | 179 | :label="item.code" |
180 | :key="item.code" | 180 | :key="item.code" |
181 | + :disabled="defaultSections.includes(item.code)" | ||
181 | >{{ item.name }}</el-checkbox | 182 | >{{ item.name }}</el-checkbox |
182 | > | 183 | > |
183 | </el-checkbox-group> | 184 | </el-checkbox-group> |
@@ -302,6 +303,7 @@ export default { | @@ -302,6 +303,7 @@ export default { | ||
302 | sectionsList: [], | 303 | sectionsList: [], |
303 | subjectList: [], | 304 | subjectList: [], |
304 | diaUpgradeGrade: false, //班级升级 | 305 | diaUpgradeGrade: false, //班级升级 |
306 | + defaultSections: [], | ||
305 | }; | 307 | }; |
306 | }, | 308 | }, |
307 | computed: { | 309 | computed: { |
@@ -459,6 +461,7 @@ export default { | @@ -459,6 +461,7 @@ export default { | ||
459 | this.formSchool[key] = data[key] || ""; | 461 | this.formSchool[key] = data[key] || ""; |
460 | } | 462 | } |
461 | } | 463 | } |
464 | + this.defaultSections = [...this.formSchool.sections]; | ||
462 | } else { | 465 | } else { |
463 | this.$message.error(info); | 466 | this.$message.error(info); |
464 | } | 467 | } |