调整错误

This commit is contained in:
aixianling
2021-11-23 17:16:13 +08:00
parent fd8234cc87
commit f63ace3b70
4 changed files with 620 additions and 620 deletions

View File

@@ -8,9 +8,9 @@
<div class="form-info"> <div class="form-info">
<h2>文本选项</h2> <h2>文本选项</h2>
<div class="form-info__wrapper"> <div class="form-info__wrapper">
<textarea class="title" placeholder="请输入标题 (必填)" :maxlength="30" :auto-height="true" v-model="form.title"></textarea> <textarea class="title" placeholder="请输入标题 (必填)" :maxlength="30" :auto-height="true"
v-model="form.title"></textarea>
<textarea <textarea
style="wdith: 100%"
class="content" class="content"
border="none" border="none"
:clearable="false" :clearable="false"
@@ -33,14 +33,16 @@
}" }"
draggable=".components-item" draggable=".components-item"
:sort="true"> :sort="true">
<div class="components-item" v-for="(item, index) in targetList" :key="index" @click="toFiledSetting(item, index)"> <div class="components-item" v-for="(item, index) in targetList" :key="index"
@click="toFiledSetting(item, index)">
<div class="components-item__title"> <div class="components-item__title">
<div class="components-item__title--left"> <div class="components-item__title--left">
<em :style="{opacity: item.required ? 1 : 0}">*</em> <em :style="{opacity: item.required ? 1 : 0}">*</em>
<i>{{ index + 1 }}.</i> <i>{{ index + 1 }}.</i>
<h2>{{ item.label }}</h2> <h2>{{ item.label }}</h2>
</div> </div>
<image :src="`${$cdn}askform/sc1.png`" @click.stop="removeComponent(index)" @touchstart.stop="removeComponent(index)" /> <image :src="`${$cdn}askform/sc1.png`" @click.stop="removeComponent(index)"
@touchstart.stop="removeComponent(index)"/>
</div> </div>
<div class="components-item__filed"> <div class="components-item__filed">
<template v-if="(item.type === 'radio')"> <template v-if="(item.type === 'radio')">
@@ -111,7 +113,7 @@
</div> </div>
</div> </div>
</u-popup> </u-popup>
<AiBack custom @back="back"></AiBack> <AiBack custom @back="back"/>
</div> </div>
<div class="detail" v-if="isShowConfig"> <div class="detail" v-if="isShowConfig">
<component <component
@@ -131,11 +133,11 @@
</template> </template>
<script> <script>
import AiBack from "@/components/AiBack";
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' import PreviewForm from './PreviewForm'
import AiBack from "../../../components/AiBack";
export default { export default {
props: ['params'], props: ['params'],
@@ -442,6 +444,7 @@
.u-checkbox, .u-radio { .u-checkbox, .u-radio {
display: block; display: block;
image { image {
width: 100px; width: 100px;
height: 100px; height: 100px;
@@ -474,6 +477,7 @@
} }
} }
} }
span { span {
flex: 1; flex: 1;
color: #666; color: #666;

View File

@@ -83,14 +83,14 @@
</template> </template>
<script> <script>
import AiTopFixed from '@/components/AiTopFixed'
import AiEmpty from '@/components/AiEmpty'
import {mapActions} from 'vuex' import {mapActions} from 'vuex'
import AiTopFixed from "../../../components/AiTopFixed";
import AiEmpty from "../../../components/AiEmpty";
export default { export default {
name: 'formList', name: 'formList',
label: '表单列表', label: '表单列表',
components: {AiEmpty, AiTopFixed},
data() { data() {
return { return {
search: { search: {
@@ -106,12 +106,6 @@ export default {
isShow: false isShow: false
} }
}, },
components: {
AiEmpty,
AiTopFixed
},
mounted() { mounted() {
this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact']) this.injectJWeixin(['sendChatMessage', 'selectEnterpriseContact'])
this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType']).then(() => { this.$dict.load(['questionnaireStatus', 'questionnaireType', 'questionnaireFieldType']).then(() => {

View File

@@ -11,7 +11,7 @@
<script> <script>
import AddList from './AddList.vue' import AddList from './AddList.vue'
import List from './List.vue' import List from './List.vue'
import AiTabbar from '@/components/AiTabbar' import AiTabbar from "../../../components/AiTabbar";
export default { export default {
name: 'AppAskForm', name: 'AppAskForm',
@@ -24,8 +24,8 @@ export default {
}, },
components: { components: {
AddList,
AiTabbar, AiTabbar,
AddList,
List List
}, },

View File

@@ -7,7 +7,7 @@
<script> <script>
export default { export default {
name:"emptyData", name: "AiEmpty",
props: { props: {
description: { description: {
default: '暂无相关信息', default: '暂无相关信息',
@@ -24,11 +24,13 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.emptyImg { .emptyImg {
width: 400 rpx; width: 400 rpx;
height: 240 rpx; height: 240 rpx;
margin-top: 112px; margin-top: 112px;
} }
.emptyText { .emptyText {
font-size: 29 rpx; font-size: 29 rpx;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;