|
|
@ -129,13 +129,13 @@ |
|
|
|
<el-option label="可靠性人才培训班" :value="2"></el-option> |
|
|
|
<el-option label="可靠性人才培训班" :value="2"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="培训教师" prop="teacher"> |
|
|
|
<el-form-item label="培训教师" prop="teacherName"> |
|
|
|
<el-select allow-create filterable v-model="form.teacher"> |
|
|
|
<el-select allow-create filterable v-model="form.teacherName"> |
|
|
|
<el-option |
|
|
|
<el-option |
|
|
|
v-for="it in teacherList" |
|
|
|
v-for="it in teacherList" |
|
|
|
:key="it.talentId" |
|
|
|
:key="it.talent_id" |
|
|
|
:label="it.name" |
|
|
|
:label="it.name" |
|
|
|
:value="it.talentId" |
|
|
|
:value="it.name" |
|
|
|
></el-option> |
|
|
|
></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
@ -275,9 +275,9 @@ import { |
|
|
|
updateSignUp, |
|
|
|
updateSignUp, |
|
|
|
delSignUp, |
|
|
|
delSignUp, |
|
|
|
searchNum, |
|
|
|
searchNum, |
|
|
|
|
|
|
|
listTeacherAll |
|
|
|
} from '@/api/trainService/index.js' |
|
|
|
} from '@/api/trainService/index.js' |
|
|
|
import ImageUpload from '@/components/ImgUpload/index.vue' |
|
|
|
import ImageUpload from '@/components/ImgUpload/index.vue' |
|
|
|
import { listTeacher } from '@/api/trainService/index.js' |
|
|
|
|
|
|
|
import NonimageUpload from '@/views/components/NonimageUpload' |
|
|
|
import NonimageUpload from '@/views/components/NonimageUpload' |
|
|
|
// 1 报名未开始、2 报名中、 3 报名结束未开课、4 开课中、5 已结束 status字段 |
|
|
|
// 1 报名未开始、2 报名中、 3 报名结束未开课、4 开课中、5 已结束 status字段 |
|
|
|
export default { |
|
|
|
export default { |
|
|
@ -311,6 +311,7 @@ export default { |
|
|
|
rules: { |
|
|
|
rules: { |
|
|
|
classType: [{ required: true, message: '请输入培训班类型', trigger: 'change' }], |
|
|
|
classType: [{ required: true, message: '请输入培训班类型', trigger: 'change' }], |
|
|
|
schoolId: [{ required: true, message: '请选择学校', trigger: 'change' }], |
|
|
|
schoolId: [{ required: true, message: '请选择学校', trigger: 'change' }], |
|
|
|
|
|
|
|
teacherName: [{ required: true, message: '请选择教师', trigger: 'change' }], |
|
|
|
trainClassCode: [{ required: true, message: '请输入班级代号', trigger: 'blur' }], |
|
|
|
trainClassCode: [{ required: true, message: '请输入班级代号', trigger: 'blur' }], |
|
|
|
trainClassName: [{ required: true, message: '请输入班级名称', trigger: 'blur' }], |
|
|
|
trainClassName: [{ required: true, message: '请输入班级名称', trigger: 'blur' }], |
|
|
|
classSize: [{ required: true, message: '请输入班级人数', trigger: 'blur' }], |
|
|
|
classSize: [{ required: true, message: '请输入班级人数', trigger: 'blur' }], |
|
|
@ -329,8 +330,8 @@ export default { |
|
|
|
mounted() {}, |
|
|
|
mounted() {}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
async getTeacherList() { |
|
|
|
async getTeacherList() { |
|
|
|
const res = await listTeacher() |
|
|
|
const res = await listTeacherAll() |
|
|
|
this.teacherList = res.rows |
|
|
|
this.teacherList = res |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 资料 |
|
|
|
// 资料 |
|
|
|
setPackagePath(value) { |
|
|
|
setPackagePath(value) { |
|
|
|