Commit b9dd8ed50a537a2e7b0abf372f2c411d58a0b852

Authored by 梁保满
1 parent 9c17317a

学校设置已选学段不允许取消

src/views/standard/setUp/school.vue
... ... @@ -178,6 +178,7 @@
178 178 v-for="item in sectionsList"
179 179 :label="item.code"
180 180 :key="item.code"
  181 + :disabled="defaultSections.includes(item.code)"
181 182 >{{ item.name }}</el-checkbox
182 183 >
183 184 </el-checkbox-group>
... ... @@ -302,6 +303,7 @@ export default {
302 303 sectionsList: [],
303 304 subjectList: [],
304 305 diaUpgradeGrade: false, //班级升级
  306 + defaultSections: [],
305 307 };
306 308 },
307 309 computed: {
... ... @@ -459,6 +461,7 @@ export default {
459 461 this.formSchool[key] = data[key] || "";
460 462 }
461 463 }
  464 + this.defaultSections = [...this.formSchool.sections];
462 465 } else {
463 466 this.$message.error(info);
464 467 }
... ...