|
|
|
@ -91,7 +91,7 @@ |
|
|
|
|
</el-row> |
|
|
|
|
</el-card> |
|
|
|
|
<!-- 添加编辑班级 --> |
|
|
|
|
<el-dialog :title="classId ? '编辑班级' : '添加班级'" :visible.sync="classVisible" class="classDialog" width="30%" center> |
|
|
|
|
<el-dialog :title="classId ? '编辑班级' : '添加班级'" :visible.sync="classVisible" class="classDialog" width="30%" center @close="closeDia"> |
|
|
|
|
<el-form :model="classForm" :rules="classRules" ref="classForm" label-width="120px"> |
|
|
|
|
<el-form-item label="教学班级名称" prop="className"> |
|
|
|
|
<el-input placeholder="请输入教学班级名称" v-model="classForm.className" autocomplete="off"></el-input> |
|
|
|
@ -296,7 +296,7 @@ export default { |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
this.$del(this.api.deleteClass,{ classId: item.classId }).then(res => { |
|
|
|
|
this.classList.splice(index,1) |
|
|
|
|
this.classList.splice(index,1) |
|
|
|
|
this.$message.success('删除成功!'); |
|
|
|
|
this.getData() |
|
|
|
|
}).catch(res => {}) |
|
|
|
@ -328,6 +328,9 @@ export default { |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
closeDia(){ |
|
|
|
|
this.$refs.classForm.clearValidate() |
|
|
|
|
}, |
|
|
|
|
toEdit(item){ |
|
|
|
|
this.$router.push({ |
|
|
|
|
path: '/classinfo', |
|
|
|
|