调查问卷

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"
: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;

View File

@@ -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

View File

@@ -29,7 +29,7 @@
</div>
<ai-empty v-if="!list.length && isMore"></ai-empty>
</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">
<h2>{{ info.title }}</h2>
<div class="operate-list">
@@ -84,6 +84,7 @@
<script>
import AiTopFixed from '@/components/AiTopFixed'
import AiEmpty from '@/components/AiEmpty'
import {mapActions} from 'vuex'
export default {
@@ -107,6 +108,7 @@ export default {
},
components: {
AiEmpty,
AiTopFixed
},

View File

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

View File

@@ -29,7 +29,7 @@
</div>
<ai-empty v-if="!list.length && isMore"></ai-empty>
</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">
<h2>{{ info.title }}</h2>
<div class="operate-list">
@@ -84,6 +84,7 @@
<script>
import AiTopFixed from '@/components/AiTopFixed'
import AiEmpty from '@/components/AiEmpty'
import {mapActions} from 'vuex'
export default {
@@ -107,6 +108,7 @@ export default {
},
components: {
AiEmpty,
AiTopFixed
},

View File

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