调查问卷

This commit is contained in:
yanran200730
2021-11-23 14:42:05 +08:00
parent 8cada828a9
commit 0e1868ff5c
6 changed files with 24 additions and 21 deletions

View File

@@ -119,6 +119,8 @@
:index="filedIndex" :index="filedIndex"
:filed="filed" :filed="filed"
@change="onChange" @change="onChange"
:targetListData="targetList"
:formData="form"
:filedType="filedType" :filedType="filedType"
@back="isShowConfig = false" @back="isShowConfig = false"
:id="id" :id="id"
@@ -133,6 +135,7 @@
import draggable from 'vuedraggable' import draggable from 'vuedraggable'
import FiledConfig from './FiledConfig' import FiledConfig from './FiledConfig'
import FormSetting from './FormSetting' import FormSetting from './FormSetting'
import PreviewForm from './PreviewForm'
export default { export default {
props: ['params'], props: ['params'],
@@ -178,6 +181,7 @@
components: { components: {
AiBack, AiBack,
draggable, draggable,
PreviewForm,
FormSetting, FormSetting,
FiledConfig FiledConfig
}, },
@@ -237,9 +241,8 @@
}, },
toPreview () { toPreview () {
uni.navigateTo({ this.component = 'PreviewForm'
url: `/pages/askForm/previewForm?targetList=${JSON.stringify(this.targetList)}&form=${JSON.stringify(this.form)}` this.isShowConfig = true
})
}, },
upload() { upload() {
@@ -336,9 +339,8 @@
this.$u.toast('提交成功') this.$u.toast('提交成功')
setTimeout(() => { setTimeout(() => {
uni.$emit('reload') this.$emit('change', {
uni.navigateBack({ type: 'Tabbar'
delta: 1
}) })
}, 600) }, 600)
} }
@@ -374,7 +376,6 @@
}, },
toFiledSetting (type, index) { toFiledSetting (type, index) {
console.log(index)
this.isShow = false this.isShow = false
if (index > -1) { if (index > -1) {
this.filed = type this.filed = type
@@ -427,10 +428,6 @@
box-sizing: border-box; box-sizing: border-box;
} }
::v-deep .u-drawer-bottom {
background-color: transparent;
}
.components-list { .components-list {
padding: 0 20px; padding: 0 20px;

View File

@@ -145,8 +145,7 @@ export default {
}, },
mounted () { mounted () {
console.log('11' + this.index) if (this.index !== '') {
if (this.index != undefined) {
this.config = this.filed this.config = this.filed
this.index = this.index this.index = this.index

View File

@@ -29,7 +29,7 @@
</div> </div>
<ai-empty v-if="!list.length && isMore"></ai-empty> <ai-empty v-if="!list.length && isMore"></ai-empty>
</div> </div>
<u-popup v-model="isShow" :closeable="false" mode="bottom"> <u-popup v-model="isShow" :closeable="false" mode="bottom" :z-index="11">
<div class="popup"> <div class="popup">
<h2>{{ info.title }}</h2> <h2>{{ info.title }}</h2>
<div class="operate-list"> <div class="operate-list">
@@ -84,6 +84,7 @@
<script> <script>
import AiTopFixed from '@/components/AiTopFixed' import AiTopFixed from '@/components/AiTopFixed'
import AiEmpty from '@/components/AiEmpty'
import {mapActions} from 'vuex' import {mapActions} from 'vuex'
export default { export default {
@@ -107,6 +108,7 @@ export default {
}, },
components: { components: {
AiEmpty,
AiTopFixed AiTopFixed
}, },

View File

@@ -60,13 +60,15 @@
</div> </div>
</div> </div>
</div> </div>
<AiBack></AiBack> <AiBack custom @back="$emit('back')"></AiBack>
</div> </div>
</template> </template>
<script> <script>
import AiBack from "@/components/AiBack"; import AiBack from "@/components/AiBack";
export default { export default {
props: ['formData', 'targetListData'],
data () { data () {
return { return {
form: { form: {
@@ -96,9 +98,10 @@
touchStart: 0 touchStart: 0
} }
}, },
onLoad (query) {
this.form = JSON.parse(query.form) mounted () {
this.targetList = JSON.parse(query.targetList) this.form = this.formData
this.targetList = this.targetListData
}, },
components: { components: {

View File

@@ -29,7 +29,7 @@
</div> </div>
<ai-empty v-if="!list.length && isMore"></ai-empty> <ai-empty v-if="!list.length && isMore"></ai-empty>
</div> </div>
<u-popup v-model="isShow" :closeable="false" mode="bottom"> <u-popup v-model="isShow" :closeable="false" mode="bottom" :z-index="11">
<div class="popup"> <div class="popup">
<h2>{{ info.title }}</h2> <h2>{{ info.title }}</h2>
<div class="operate-list"> <div class="operate-list">
@@ -84,6 +84,7 @@
<script> <script>
import AiTopFixed from '@/components/AiTopFixed' import AiTopFixed from '@/components/AiTopFixed'
import AiEmpty from '@/components/AiEmpty'
import {mapActions} from 'vuex' import {mapActions} from 'vuex'
export default { export default {
@@ -107,6 +108,7 @@ export default {
}, },
components: { components: {
AiEmpty,
AiTopFixed AiTopFixed
}, },

View File

@@ -28,7 +28,7 @@
"port": "10323", "port": "10323",
"proxy": { "proxy": {
"/lan": { "/lan": {
"target": "http://192.168.1.87:9000", "target": "http://192.168.1.39:9998",
"changeOrigin": true, "changeOrigin": true,
"pathRewrite": { "pathRewrite": {
"^/lan": "/" "^/lan": "/"
@@ -43,4 +43,4 @@
} }
} }
} }
} }