diff --git a/src/apps/AppAskForm/components/AddForm.vue b/src/apps/AppAskForm/components/AddForm.vue
index 3999a93b..6363c854 100644
--- a/src/apps/AppAskForm/components/AddForm.vue
+++ b/src/apps/AppAskForm/components/AddForm.vue
@@ -119,6 +119,8 @@
:index="filedIndex"
:filed="filed"
@change="onChange"
+ :targetListData="targetList"
+ :formData="form"
:filedType="filedType"
@back="isShowConfig = false"
:id="id"
@@ -133,6 +135,7 @@
import draggable from 'vuedraggable'
import FiledConfig from './FiledConfig'
import FormSetting from './FormSetting'
+ import PreviewForm from './PreviewForm'
export default {
props: ['params'],
@@ -178,6 +181,7 @@
components: {
AiBack,
draggable,
+ PreviewForm,
FormSetting,
FiledConfig
},
@@ -237,9 +241,8 @@
},
toPreview () {
- uni.navigateTo({
- url: `/pages/askForm/previewForm?targetList=${JSON.stringify(this.targetList)}&form=${JSON.stringify(this.form)}`
- })
+ this.component = 'PreviewForm'
+ this.isShowConfig = true
},
upload() {
@@ -336,9 +339,8 @@
this.$u.toast('ζδΊ€ζε')
setTimeout(() => {
- uni.$emit('reload')
- uni.navigateBack({
- delta: 1
+ this.$emit('change', {
+ type: 'Tabbar'
})
}, 600)
}
@@ -374,7 +376,6 @@
},
toFiledSetting (type, index) {
- console.log(index)
this.isShow = false
if (index > -1) {
this.filed = type
@@ -427,10 +428,6 @@
box-sizing: border-box;
}
- ::v-deep .u-drawer-bottom {
- background-color: transparent;
- }
-
.components-list {
padding: 0 20px;
diff --git a/src/apps/AppAskForm/components/FiledConfig.vue b/src/apps/AppAskForm/components/FiledConfig.vue
index cfad181b..d5098567 100644
--- a/src/apps/AppAskForm/components/FiledConfig.vue
+++ b/src/apps/AppAskForm/components/FiledConfig.vue
@@ -145,8 +145,7 @@ export default {
},
mounted () {
- console.log('11' + this.index)
- if (this.index != undefined) {
+ if (this.index !== '') {
this.config = this.filed
this.index = this.index
diff --git a/src/apps/AppAskForm/components/List.vue b/src/apps/AppAskForm/components/List.vue
index 4c16a999..235ce445 100644
--- a/src/apps/AppAskForm/components/List.vue
+++ b/src/apps/AppAskForm/components/List.vue
@@ -29,7 +29,7 @@
-
+