From ed891d2d4491dbed3d26d5addb1c37e7255d41cb Mon Sep 17 00:00:00 2001 From: lijingyu007 <904564792@qq.com> Date: Fri, 28 Jun 2024 15:53:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=88=E8=B5=84=E5=88=9B=E5=BB=BAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/trainService/signlist.vue | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/views/trainService/signlist.vue b/src/views/trainService/signlist.vue index cec2bb6..a648992 100644 --- a/src/views/trainService/signlist.vue +++ b/src/views/trainService/signlist.vue @@ -292,7 +292,9 @@ append-to-body > -
例:name为标题;type为类型(input输入框;radio单选框;textarea文本域);key为标题标识须一致;value为单选框选项
+
+ 例:name为标题;type为类型(input输入框;radio单选框;textarea文本域);key为标题标识须一致;value为单选框选项 +
取 消 确 定 @@ -379,17 +381,16 @@ export default { setSignTab(row) { this.signTable = true this.activeRowId = row.trainClassId - if (row.data) { - this.$nextTick(() => { - if (row.data) { - this.$refs.jsontool.jsonData = row.data - } else { - 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":""}]' - } + this.$nextTick(() => { + if (row.data) { + this.$refs.jsontool.jsonData = row.data + } else { + 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":""}]' this.$refs.jsontool.formatCode() - }) - } + } + this.$refs.jsontool.formatCode() + }) }, jsoncancle() { this.signTable = false