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