师资创建bug

main
lijingyu007 5 months ago
parent 67b15e0c3c
commit ed891d2d44
  1. 7
      src/views/trainService/signlist.vue

@ -292,7 +292,9 @@
append-to-body append-to-body
> >
<JsonTool ref="jsontool" /> <JsonTool ref="jsontool" />
<div>name为标题type为类型(input输入框;radio单选框;textarea文本域)key为标题标识须一致value为单选框选项</div> <div>
name为标题type为类型(input输入框;radio单选框;textarea文本域)key为标题标识须一致value为单选框选项
</div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="jsoncancle"> </el-button> <el-button @click="jsoncancle"> </el-button>
<el-button type="primary" @click="jsonsubmit"> </el-button> <el-button type="primary" @click="jsonsubmit"> </el-button>
@ -379,17 +381,16 @@ export default {
setSignTab(row) { setSignTab(row) {
this.signTable = true this.signTable = true
this.activeRowId = row.trainClassId this.activeRowId = row.trainClassId
if (row.data) {
this.$nextTick(() => { this.$nextTick(() => {
if (row.data) { if (row.data) {
this.$refs.jsontool.jsonData = row.data this.$refs.jsontool.jsonData = row.data
} 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()
}) })
}
}, },
jsoncancle() { jsoncancle() {
this.signTable = false this.signTable = false

Loading…
Cancel
Save