教研室-教员管理,新建教员的时候,在职类型和导师类型改为下拉,在职类型默认在职
This commit is contained in:
@@ -462,7 +462,11 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="16">
|
<el-row :gutter="16">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="导师类别" prop="dslb"><el-input v-model="editForm.dslb" placeholder="请输入" /></el-form-item>
|
<el-form-item label="导师类别" prop="dslb">
|
||||||
|
<el-select v-model="editForm.dslb" placeholder="请选择" clearable style="width:100%">
|
||||||
|
<el-option v-for="item in dslbOptions" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="学缘" prop="xy"><el-input v-model="editForm.xy" placeholder="请输入" /></el-form-item>
|
<el-form-item label="学缘" prop="xy"><el-input v-model="editForm.xy" placeholder="请输入" /></el-form-item>
|
||||||
@@ -781,7 +785,7 @@ export default {
|
|||||||
xslx: [{ required: true, message: '请选择虚实类型', trigger: 'change' }],
|
xslx: [{ required: true, message: '请选择虚实类型', trigger: 'change' }],
|
||||||
jylb: [{ required: true, message: '请输入教员类别', trigger: 'blur' }],
|
jylb: [{ required: true, message: '请输入教员类别', trigger: 'blur' }],
|
||||||
zzlb: [{ required: true, message: '请输入在职类别', trigger: 'blur' }],
|
zzlb: [{ required: true, message: '请输入在职类别', trigger: 'blur' }],
|
||||||
dslb: [{ required: true, message: '请输入导师类别', trigger: 'blur' }],
|
dslb: [{ required: true, message: '请选择导师类别', trigger: 'change' }],
|
||||||
xy: [{ required: true, message: '请输入学缘', trigger: 'blur' }],
|
xy: [{ required: true, message: '请输入学缘', trigger: 'blur' }],
|
||||||
ewyxkbs: [{ required: true, message: '请输入额外允许开班数', trigger: 'change' }],
|
ewyxkbs: [{ required: true, message: '请输入额外允许开班数', trigger: 'change' }],
|
||||||
wxjy: [{ required: true, message: '请选择外训教员', trigger: 'change' }],
|
wxjy: [{ required: true, message: '请选择外训教员', trigger: 'change' }],
|
||||||
@@ -806,6 +810,7 @@ export default {
|
|||||||
jylbOptions: [],
|
jylbOptions: [],
|
||||||
zzlbOptions: [],
|
zzlbOptions: [],
|
||||||
dslbOptions: [],
|
dslbOptions: [],
|
||||||
|
defaultZzlb: '1',
|
||||||
// 教研室下拉(新增教员时选择所属教研室)
|
// 教研室下拉(新增教员时选择所属教研室)
|
||||||
officeOptions: [],
|
officeOptions: [],
|
||||||
officeLoading: false,
|
officeLoading: false,
|
||||||
@@ -875,7 +880,11 @@ export default {
|
|||||||
loadDicts() {
|
loadDicts() {
|
||||||
getDicts('teacher_zyjszwdj').then(res => { this.zyjszwdjOptions = res.data || [] }).catch(() => {})
|
getDicts('teacher_zyjszwdj').then(res => { this.zyjszwdjOptions = res.data || [] }).catch(() => {})
|
||||||
getDicts('teacher_jylb').then(res => { this.jylbOptions = res.data || [] }).catch(() => {})
|
getDicts('teacher_jylb').then(res => { this.jylbOptions = res.data || [] }).catch(() => {})
|
||||||
getDicts('teacher_zzlb').then(res => { this.zzlbOptions = res.data || [] }).catch(() => {})
|
getDicts('teacher_zzlb').then(res => {
|
||||||
|
this.zzlbOptions = res.data || []
|
||||||
|
const hit = this.zzlbOptions.find(o => o.dictLabel === '在职')
|
||||||
|
if (hit) this.defaultZzlb = hit.dictValue
|
||||||
|
}).catch(() => {})
|
||||||
getDicts('teacher_dslb').then(res => { this.dslbOptions = res.data || [] }).catch(() => {})
|
getDicts('teacher_dslb').then(res => { this.dslbOptions = res.data || [] }).catch(() => {})
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -918,7 +927,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
teacher: {
|
teacher: {
|
||||||
jybh: '', jyxm: '', jysdh: '', xh: '', zyjszwdj: '', zyjszwdjsj: '',
|
jybh: '', jyxm: '', jysdh: '', xh: '', zyjszwdj: '', zyjszwdjsj: '',
|
||||||
xslx: 1, jylb: '', zzlb: '', dslb: '', xy: '', sfzh: '', xb: 1,
|
xslx: 1, jylb: '', zzlb: this.defaultZzlb, dslb: '', xy: '', sfzh: '', xb: 1,
|
||||||
wxjy: 0, wxyy: 0, zzljy: 0, ewyxkbs: 0, zc: '', sjh: '', kh: '', py: '',
|
wxjy: 0, wxyy: 0, zzljy: 0, ewyxkbs: 0, zc: '', sjh: '', kh: '', py: '',
|
||||||
zcsj: '', bz: ''
|
zcsj: '', bz: ''
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user