|
@@ -127,8 +127,8 @@
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="专业技能" prop="subjectId" :label-width="formLabelWidth">
|
|
|
- <el-select multiple v-model="topForm.subjectId" placeholder="专业技能">
|
|
|
+ <el-form-item label="专业技能" prop="subjectIds" :label-width="formLabelWidth">
|
|
|
+ <el-select multiple v-model="topForm.subjectIds" placeholder="专业技能">
|
|
|
<el-option-group
|
|
|
v-for="group in subjectList"
|
|
|
:key="group.label"
|
|
@@ -166,6 +166,14 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="topForm.certificateType"></el-input> -->
|
|
|
+ <el-checkbox v-model="topForm.isSupportCourseScheduleRewardsRules">适用VIP分部活动</el-checkbox>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<el-form-item>
|
|
|
<el-button @click="onSubmit('form')" type="primary">立即{{ pageType == "create" ? '创建' : '修改' }}</el-button>
|
|
|
<el-button @click="onReSet('form')">重置</el-button>
|
|
@@ -223,11 +231,12 @@ export default {
|
|
|
graduateSchool: null,
|
|
|
email: null,
|
|
|
educationBackground: null,
|
|
|
- subjectId: [],
|
|
|
+ subjectIds: [],
|
|
|
isProbationPeriod: null,
|
|
|
technicalTitles: null,
|
|
|
certificateType: null,
|
|
|
- certificateNum: null
|
|
|
+ certificateNum: null,
|
|
|
+ isSupportCourseScheduleRewardsRules: true
|
|
|
},
|
|
|
rules: {
|
|
|
realName: [{ required: true, message: '请输入姓名', trigger: 'blur'},
|
|
@@ -238,7 +247,7 @@ export default {
|
|
|
isProbationPeriod: [{ required: true, message: '请选择人事状态', trigger: 'change' }],
|
|
|
organId: [{ required: true, message: '请选择所属分部', trigger: 'change' }],
|
|
|
phone: [{ required: true, validator: validPhone, trigger: 'blur' }],
|
|
|
- subjectId: [{ required: true, type: 'array', message: '请选择专业技能', trigger: 'change' }]
|
|
|
+ subjectIds: [{ required: true, type: 'array', message: '请选择专业技能', trigger: 'change' }]
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -302,11 +311,12 @@ export default {
|
|
|
graduateSchool: result.graduateSchool,
|
|
|
email: result.email,
|
|
|
educationBackground: result.educationBackground,
|
|
|
- subjectId: result.subjectId ? result.subjectId.split(',') : null,
|
|
|
+ subjectIds: result.subjectId ? result.subjectId.split(',') : null,
|
|
|
technicalTitles: result.technicalTitles,
|
|
|
certificateType: result.certificateType,
|
|
|
certificateNum: result.certificateNum,
|
|
|
- isProbationPeriod: result.isProbationPeriod
|
|
|
+ isProbationPeriod: result.isProbationPeriod,
|
|
|
+ isSupportCourseScheduleRewardsRules: result.isSupportCourseScheduleRewardsRules
|
|
|
}
|
|
|
this.teacherSchools = result.teacherSchools.length > 0 ? result.teacherSchools.join(',') : ''
|
|
|
})
|
|
@@ -316,7 +326,7 @@ export default {
|
|
|
this.$refs[formName].validate(valid => {
|
|
|
if(valid) {
|
|
|
this.topForm.flowOrganRange = this.topForm.flowOrganRange.join(',')
|
|
|
- this.topForm.subjectId = this.topForm.subjectId.join(',')
|
|
|
+ this.topForm.subjectId = this.topForm.subjectIds.join(',')
|
|
|
if(this.pageType == 'update') {
|
|
|
this.topForm.id = this.teacherId
|
|
|
teacherUpdate(this.topForm).then(res => {
|
|
@@ -351,7 +361,7 @@ export default {
|
|
|
} else {
|
|
|
console.log(res)
|
|
|
console.log(this.topForm)
|
|
|
- this.topForm.subjectId = this.topForm.subjectId.split(',')
|
|
|
+ this.topForm.subjectIds = this.topForm.subjectIds.split(',')
|
|
|
this.$message.error(res.msg)
|
|
|
}
|
|
|
},
|
|
@@ -370,7 +380,7 @@ export default {
|
|
|
graduateSchool: null,
|
|
|
email: null,
|
|
|
educationBackground: null,
|
|
|
- subjectId: [],
|
|
|
+ subjectIds: [],
|
|
|
technicalTitles: null,
|
|
|
certificateType: null,
|
|
|
certificateNum: null,
|