|
|
@ -143,7 +143,8 @@ |
|
|
|
<el-form v-else :model="form" :rules="rules" ref="form" label-width="120px" inline> |
|
|
|
<el-form v-else :model="form" :rules="rules" ref="form" label-width="120px" inline> |
|
|
|
<!-- 类型 --> |
|
|
|
<!-- 类型 --> |
|
|
|
<el-form-item label="培训班类型" prop="classType"> |
|
|
|
<el-form-item label="培训班类型" prop="classType"> |
|
|
|
<el-select v-model="form.classType" @change="classTypeChange"> |
|
|
|
<el-select v-model="form.classType" @change="classTypeChange" :disabled="classTypeDisabled" |
|
|
|
|
|
|
|
key="class-type"> |
|
|
|
<el-option label="校企合作班" :value="0"></el-option> |
|
|
|
<el-option label="校企合作班" :value="0"></el-option> |
|
|
|
<el-option label="线下培训进阶班" :value="1"></el-option> |
|
|
|
<el-option label="线下培训进阶班" :value="1"></el-option> |
|
|
|
<el-option label="可靠性人才培训班" :value="2"></el-option> |
|
|
|
<el-option label="可靠性人才培训班" :value="2"></el-option> |
|
|
@ -164,7 +165,8 @@ |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="班级代号" prop="trainClassCode" v-if="form.classType == 0"> |
|
|
|
<el-form-item label="班级代号" prop="trainClassCode" v-if="form.classType == 0"> |
|
|
|
<el-input v-model="form.trainClassCode" placeholder="请输入班级代号" clearable size="small" /> |
|
|
|
<el-input v-model="form.trainClassCode" placeholder="请输入班级代号" key="class-code" clearable |
|
|
|
|
|
|
|
size="small" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="班级名称" prop="trainClassName"> |
|
|
|
<el-form-item label="班级名称" prop="trainClassName"> |
|
|
@ -345,6 +347,7 @@ export default { |
|
|
|
// Json |
|
|
|
// Json |
|
|
|
signTable: false, |
|
|
|
signTable: false, |
|
|
|
activeRowId: '', |
|
|
|
activeRowId: '', |
|
|
|
|
|
|
|
classTypeDisabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -360,7 +363,81 @@ export default { |
|
|
|
this.$refs.jsontool.formatCode() |
|
|
|
this.$refs.jsontool.formatCode() |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.$refs.jsontool.jsonData = |
|
|
|
this.$refs.jsontool.jsonData = |
|
|
|
'[{"name":"姓名","type":"input","key":"name","value":""},{"title":"在校职务","type":"input","key":"title","value":""},{"mobile":"手机号","type":"input","key":"mobile","value":""},{"college":"院校全称","type":"input","key":"college","value":""},{"address":"院校所在地址","type":"input","key":"address","value":""},{"payType":"培训付款方式","type":"radio","key":"payType","value":["公对公转账,请于报到前提供截图","现场支付(公务卡、微信、支付宝、现金)"]},{"sex":"性别","type":"radio","key":"sex","value":["男","女"]},{"hotel":"是否需要统一安排住宿","type":"radio","key":"hotel","value":["大床房(付房费全额)","标间(独立居住、付全额房费)","标间(拼房、付房费一半),无指定合住人员","标间(拼房、付房费一半),指定合住人员","其他,请说明,包括非指定日期的订房","无须订房,自行安排"]},{"addWeixin":"是否添加业务负责人微信","type":"radio","key":"addWeixin","value":["是","否"]},{"suggestion":"针对此次培训,您还有什么建议","type":"textarea","key":"suggestion","value":""}]' |
|
|
|
` |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"name":"姓名", |
|
|
|
|
|
|
|
"type":"input", |
|
|
|
|
|
|
|
"key":"name", |
|
|
|
|
|
|
|
"value":"" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"title":"在校职务", |
|
|
|
|
|
|
|
"type":"input", |
|
|
|
|
|
|
|
"key":"title", |
|
|
|
|
|
|
|
"value":"" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"mobile":"手机号", |
|
|
|
|
|
|
|
"type":"input", |
|
|
|
|
|
|
|
"key":"mobile", |
|
|
|
|
|
|
|
"value":"" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"college":"院校全称", |
|
|
|
|
|
|
|
"type":"input", |
|
|
|
|
|
|
|
"key":"college", |
|
|
|
|
|
|
|
"value":"" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"address":"院校所在地址", |
|
|
|
|
|
|
|
"type":"input", |
|
|
|
|
|
|
|
"key":"address", |
|
|
|
|
|
|
|
"value":"" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"payType":"培训付款方式", |
|
|
|
|
|
|
|
"type":"radio", |
|
|
|
|
|
|
|
"key":"payType", |
|
|
|
|
|
|
|
"value":[ |
|
|
|
|
|
|
|
"公对公转账,请于报到前提供截图", |
|
|
|
|
|
|
|
"现场支付(公务卡、微信、支付宝、现金)"] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"sex":"性别", |
|
|
|
|
|
|
|
"type":"radio", |
|
|
|
|
|
|
|
"key":"sex", |
|
|
|
|
|
|
|
"value":[ |
|
|
|
|
|
|
|
"男", |
|
|
|
|
|
|
|
"女"] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"hotel":"是否需要统一安排住宿", |
|
|
|
|
|
|
|
"type":"radio", |
|
|
|
|
|
|
|
"key":"hotel", |
|
|
|
|
|
|
|
"value":[ |
|
|
|
|
|
|
|
"大床房(付房费全额)", |
|
|
|
|
|
|
|
"标间(独立居住、付全额房费)", |
|
|
|
|
|
|
|
"标间(拼房、付房费一半),无指定合住人员", |
|
|
|
|
|
|
|
"标间(拼房、付房费一半),指定合住人员", |
|
|
|
|
|
|
|
"其他,请说明,包括非指定日期的订房", |
|
|
|
|
|
|
|
"无须订房,自行安排"] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"addWeixin":"是否添加业务负责人微信", |
|
|
|
|
|
|
|
"type":"radio", |
|
|
|
|
|
|
|
"key":"addWeixin", |
|
|
|
|
|
|
|
"value":[ |
|
|
|
|
|
|
|
"是", |
|
|
|
|
|
|
|
"否"] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"suggestion":"针对此次培训,您还有什么建议", |
|
|
|
|
|
|
|
"type":"textarea", |
|
|
|
|
|
|
|
"key":"suggestion", |
|
|
|
|
|
|
|
"value":"" |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
` |
|
|
|
this.$refs.jsontool.formatCode() |
|
|
|
this.$refs.jsontool.formatCode() |
|
|
|
} |
|
|
|
} |
|
|
|
this.$refs.jsontool.formatCode() |
|
|
|
this.$refs.jsontool.formatCode() |
|
|
@ -429,6 +506,7 @@ export default { |
|
|
|
async modify(row) { |
|
|
|
async modify(row) { |
|
|
|
this.title = '修改班级' |
|
|
|
this.title = '修改班级' |
|
|
|
this.form = JSON.parse(JSON.stringify(row)) |
|
|
|
this.form = JSON.parse(JSON.stringify(row)) |
|
|
|
|
|
|
|
// this.classTypeDisabled = true |
|
|
|
// 线上培训班的时间为选填 |
|
|
|
// 线上培训班的时间为选填 |
|
|
|
if (row.classType == 4) { |
|
|
|
if (row.classType == 4) { |
|
|
|
this.rules.trainStartTime = [] |
|
|
|
this.rules.trainStartTime = [] |
|
|
@ -532,6 +610,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 关闭 |
|
|
|
// 关闭 |
|
|
|
colsedia() { |
|
|
|
colsedia() { |
|
|
|
|
|
|
|
// this.classTypeDisabled = false |
|
|
|
this.$refs['form']?.resetFields() |
|
|
|
this.$refs['form']?.resetFields() |
|
|
|
this.$refs['copyClassForm']?.resetFields() |
|
|
|
this.$refs['copyClassForm']?.resetFields() |
|
|
|
this.copyClassForm = { |
|
|
|
this.copyClassForm = { |
|
|
|