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 @@
-
-
+
+
{{ field.label }}
-
-
+
+
-
-
+
+
{{ field.label }}
-
-
+
+
@@ -95,7 +95,7 @@
立即发布
-
+
@@ -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 @@