From b3c12d720430d0dd54419f27685f466cb1d981d5 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Tue, 23 Nov 2021 14:18:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=9F=A5=E9=97=AE=E5=8D=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppAskForm/components/AddForm.vue | 57 ++++++++++++------- .../AppAskForm/components/FiledConfig.vue | 28 ++++----- .../AppAskForm/components/FormSetting.vue | 14 ++--- src/apps/AppAskForm/components/List.vue | 5 ++ src/apps/AppAskForm/components/Tabbar.vue | 2 +- src/apps/AppAskForm/components/list.vue | 5 ++ 6 files changed, 68 insertions(+), 43 deletions(-) diff --git a/src/apps/AppAskForm/components/AddForm.vue b/src/apps/AppAskForm/components/AddForm.vue index bc776c73..3999a93b 100644 --- a/src/apps/AppAskForm/components/AddForm.vue +++ b/src/apps/AppAskForm/components/AddForm.vue @@ -44,20 +44,20 @@
@@ -156,6 +165,9 @@ isShow: false, type: 0, id: '', + filedType: '', + filed: {}, + filedIndex: '', isQuote: false, touchStart: 0, component: '', @@ -167,7 +179,7 @@ AiBack, draggable, FormSetting, - // FiledConfig + FiledConfig }, mounted () { @@ -195,6 +207,7 @@ }) uni.$on('filedConfig', res => { + console.log(33) if (res.index === '-1') { this.targetList.push(res.config) } else { @@ -205,9 +218,6 @@ methods: { toSetting () { - // uni.navigateTo({ - // url: `/pages/askForm/formSetting?id=${this.id}&formConfig=${JSON.stringify(this.formConfig)}` - // }) this.component = 'FormSetting' this.isShowConfig = true }, @@ -364,18 +374,21 @@ }, toFiledSetting (type, index) { - if (index != undefined) { - uni.navigateTo({ - url: `/pages/askForm/filedConfig?config=${JSON.stringify(type)}&index=${index}` - }) + console.log(index) + this.isShow = false + if (index > -1) { + this.filed = type + this.filedIndex = index + this.component = 'FiledConfig' + this.isShowConfig = true return false } - this.isShow = false - uni.navigateTo({ - url: `/pages/askForm/filedConfig?type=${type}` - }) + this.filedIndex = '' + this.filedType = type + this.component = 'FiledConfig' + this.isShowConfig = true }, init () { diff --git a/src/apps/AppAskForm/components/FiledConfig.vue b/src/apps/AppAskForm/components/FiledConfig.vue index fe59b245..cfad181b 100644 --- a/src/apps/AppAskForm/components/FiledConfig.vue +++ b/src/apps/AppAskForm/components/FiledConfig.vue @@ -133,9 +133,10 @@