|
@@ -8,13 +8,13 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="学员限额">
|
|
|
<el-input
|
|
|
- v-model.number="orgInfo.max_count_student"
|
|
|
+ v-model="orgInfo.max_count_student"
|
|
|
@input="orgInfo.max_count_student = orgInfo.max_count_student.replace(/[^\d]/g, '')"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="教师限额">
|
|
|
<el-input
|
|
|
- v-model.number="orgInfo.max_count_teacher"
|
|
|
+ v-model="orgInfo.max_count_teacher"
|
|
|
@input="orgInfo.max_count_teacher = orgInfo.max_count_teacher.replace(/[^\d]/g, '')"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -99,13 +99,19 @@ export default {
|
|
|
if (!valid) return false;
|
|
|
|
|
|
const { name, intro, picture_id, max_count_student, max_count_teacher, due_date } = this.orgInfo;
|
|
|
- UpdateOrg({ id: this.orgId, name, intro, picture_id, max_count_student, max_count_teacher, due_date }).then(
|
|
|
- () => {
|
|
|
- this.$message.success('修改机构成功');
|
|
|
- this.visible = false;
|
|
|
- this.$emit('refresh');
|
|
|
- }
|
|
|
- );
|
|
|
+ UpdateOrg({
|
|
|
+ id: this.orgId,
|
|
|
+ name,
|
|
|
+ intro,
|
|
|
+ picture_id,
|
|
|
+ max_count_student: Number(max_count_student),
|
|
|
+ max_count_teacher: Number(max_count_teacher),
|
|
|
+ due_date
|
|
|
+ }).then(() => {
|
|
|
+ this.$message.success('修改机构成功');
|
|
|
+ this.visible = false;
|
|
|
+ this.$emit('refresh');
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
|