Commit c523d306 authored by 郭志伟's avatar 郭志伟

fix: 调整逻辑

parent e9d72a98
...@@ -19,10 +19,12 @@ ...@@ -19,10 +19,12 @@
<script> <script>
import ComponentSelect from '../ComponentSelect/index.vue'; import ComponentSelect from '../ComponentSelect/index.vue';
import Upload from '../Upload/index.vue'; import Upload from '../Upload/index.vue';
import ColorSelector from '../ColorSelector/index.vue';
export default { export default {
components: { components: {
ComponentSelect, ComponentSelect,
Upload Upload,
ColorSelector
}, },
props: { props: {
value: { value: {
...@@ -88,8 +90,17 @@ ...@@ -88,8 +90,17 @@
/deep/ .ivu-card { /deep/ .ivu-card {
margin-bottom: 16px; margin-bottom: 16px;
.ivu-form { .ivu-form {
.ivu-form-item {
display: flex;
margin-bottom: 12px;
}
.ivu-form-item-label { .ivu-form-item-label {
text-align: left; text-align: left;
width: 60px !important;
font-size: 12px;
}
.ivu-form-item-content {
flex: 1 !important;
} }
} }
......
...@@ -25,14 +25,6 @@ export default class GoodsTableModal extends Vue { ...@@ -25,14 +25,6 @@ export default class GoodsTableModal extends Vue {
columns: goodsColumn.call(this), columns: goodsColumn.call(this),
query: this.query query: this.query
}, },
{
title: '选择商品专题',
type: 'goodsGroup',
key: 'id',
multiple: false,
columns: goodsSpecialColumn.call(this),
query: this.querySpecial
},
{ {
title: '选择商品标签', title: '选择商品标签',
type: 'goodsLabel', type: 'goodsLabel',
...@@ -40,6 +32,14 @@ export default class GoodsTableModal extends Vue { ...@@ -40,6 +32,14 @@ export default class GoodsTableModal extends Vue {
multiple: false, multiple: false,
columns: goodsLabelColumn.call(this), columns: goodsLabelColumn.call(this),
query: this.queryLabel query: this.queryLabel
},
{
title: '选择商品专题',
type: 'goodsGroup',
key: 'id',
multiple: false,
columns: goodsSpecialColumn.call(this),
query: this.querySpecial
} }
]; ];
......
...@@ -7,9 +7,10 @@ import ColorSelector from '../DynamicForm/component/ColorSelector/index.vue'; ...@@ -7,9 +7,10 @@ import ColorSelector from '../DynamicForm/component/ColorSelector/index.vue';
import BaseSelect from '../DynamicForm/component/BaseSelect/index.vue'; import BaseSelect from '../DynamicForm/component/BaseSelect/index.vue';
import Textarea from '../DynamicForm/component/Textarea/index.vue'; import Textarea from '../DynamicForm/component/Textarea/index.vue';
import Number from '../DynamicForm/component/Number/index.vue'; import Number from '../DynamicForm/component/Number/index.vue';
import FormList from '../DynamicForm/component/FormList/index.vue';
import { resizeDiv, getStyle } from '@/service/utils.service'; import { resizeDiv, getStyle } from '@/service/utils.service';
@Component({ components: { Upload, ColorSelector, BaseSelect, Textarea, Number }, name: 'DynamicForm' }) @Component({ components: { Upload, ColorSelector, BaseSelect, Textarea, Number, FormList }, name: 'DynamicForm' })
export default class DynamicPageForm extends Mixins(ContextMenuMixin) { export default class DynamicPageForm extends Mixins(ContextMenuMixin) {
@Getter('pageData') pageData; @Getter('pageData') pageData;
...@@ -30,16 +31,6 @@ export default class DynamicPageForm extends Mixins(ContextMenuMixin) { ...@@ -30,16 +31,6 @@ export default class DynamicPageForm extends Mixins(ContextMenuMixin) {
]; ];
propsSchame: object[] = [ propsSchame: object[] = [
{
key: 'showBackTop',
name: '返回顶部',
type: 'checkbox'
},
{
key: 'showShopCart',
name: '购物车',
type: 'checkbox'
},
{ {
key: 'showPageBottomTip', key: 'showPageBottomTip',
name: '底部提示', name: '底部提示',
...@@ -54,7 +45,45 @@ export default class DynamicPageForm extends Mixins(ContextMenuMixin) { ...@@ -54,7 +45,45 @@ export default class DynamicPageForm extends Mixins(ContextMenuMixin) {
key: 'pageBottomColor', key: 'pageBottomColor',
name: '提示颜色', name: '提示颜色',
type: 'ColorSelector' type: 'ColorSelector'
} },
{
key: 'showBackTop',
name: '返回顶部',
type: 'checkbox'
},
{
key: 'btAttachVal',
name: '添加按钮',
desc: '添加按钮',
type: 'FormList',
formControl: [
{
key: 'name',
name: '名称',
type: 'text'
},
{
key: 'url',
name: '链接',
type: 'text'
},
{
key: 'icon',
name: '图片',
type: 'Upload'
},
{
key: 'color',
name: '文字颜色',
type: 'ColorSelector'
},
{
key: 'background',
name: '背景颜色',
type: 'ColorSelector'
}
]
},
]; ];
@Watch('pageData', { immediate: true, deep: true }) @Watch('pageData', { immediate: true, deep: true })
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<h3>基础属性</h3> <h3>基础属性</h3>
<template v-for="(item, index) in propsSchame"> <template v-for="(item, index) in propsSchame">
<FormItem class="Df-component-formitem" :label="item.name" > <FormItem class="Df-component-formitem" :label="item.name" >
<component :is="item.type" :options="item.options" v-model="propsForm[item.key]" /> <component :is="item.type" :options="item.options" v-model="propsForm[item.key]" :formControl="item.formControl" />
</FormItem> </FormItem>
</template> </template>
</Form> </Form>
......
...@@ -82,17 +82,19 @@ export const defaultState = { ...@@ -82,17 +82,19 @@ export const defaultState = {
backgroundImage: '' backgroundImage: ''
}, },
props: { props: {
showPageBottomTip: true,
pageBottomTxt: '没有更多啦~',
pageBottomColor: '#fff',
showBackTop: true, showBackTop: true,
showShopCart: true, btAttachVal: [
backTopAttachInfo: [
{ {
name: '购物车',
icon: 'shopping-cart-o', icon: 'shopping-cart-o',
url: 'xyqb://shoppingCartTab' url: 'xyqb://shoppingCartTab',
color: '#333',
background: '#fff'
} }
], ],
showPageBottomTip: true,
pageBottomTxt: '没有更多啦~',
pageBottomColor: '#fff'
}, },
elements: [], elements: [],
} }
......
...@@ -1491,9 +1491,9 @@ ...@@ -1491,9 +1491,9 @@
"integrity": "sha512-uOCUKu5mvX3PWee+7ZFXQSNIR1V5SN2JVE2yANmW9/wQOgpEct291gXGok8VMw0009HlTWB4JATURPwyOP2DFg==" "integrity": "sha512-uOCUKu5mvX3PWee+7ZFXQSNIR1V5SN2JVE2yANmW9/wQOgpEct291gXGok8VMw0009HlTWB4JATURPwyOP2DFg=="
}, },
"@qg/cherry-ui": { "@qg/cherry-ui": {
"version": "2.21.1-beta9", "version": "2.21.1-beta10",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcherry-ui/-/cherry-ui-2.21.1-beta9.tgz", "resolved": "http://npmprivate.quantgroups.com/@qg%2fcherry-ui/-/cherry-ui-2.21.1-beta10.tgz",
"integrity": "sha512-evaqcwGPrg/RqgHZW3pFU2QpvmIlNZMA83QdGV7U58XrkTuQ4C4wE6FgB0M7kGTZzf/IpfjOZL5ZuGfSaOlGUw==", "integrity": "sha512-AP6XHWzqJmsfU8veNwtfQbDpjVtDG0yTJZDsetWGV+XBKJU0d7jrJRaoeAqsRvJ/YaAZwtsAs1LfRSd+k7a6xA==",
"requires": { "requires": {
"@popperjs/core": "^2.5.4", "@popperjs/core": "^2.5.4",
"vue-lazyload": "^1.3.3", "vue-lazyload": "^1.3.3",
...@@ -1501,9 +1501,9 @@ ...@@ -1501,9 +1501,9 @@
} }
}, },
"@qg/citrus-ui": { "@qg/citrus-ui": {
"version": "0.1.15-beta6", "version": "0.1.15-beta7",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.1.15-beta6.tgz", "resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.1.15-beta7.tgz",
"integrity": "sha512-SjzMlXC5L3ca+/BL0KfACju7njTO0hdU9OiHx+fIZEh1Z45ft59XUHWl5HY2+qMlGWlDxK7eVvJydtmBvNYVcA==", "integrity": "sha512-o0n726pSjG5b2Xgd9A5pE0ApM2KN0oo5nlaEeZPr18hYmBfNdVeHdMkonllkoUcHHvC3bf6Cgzp9qcLOGsN/hA==",
"requires": { "requires": {
"@better-scroll/core": "^2.1.1", "@better-scroll/core": "^2.1.1",
"@qg/cherry-ui": "^2.21.1-beta5", "@qg/cherry-ui": "^2.21.1-beta5",
...@@ -1515,6 +1515,18 @@ ...@@ -1515,6 +1515,18 @@
"swiper": "^4.5.1", "swiper": "^4.5.1",
"vuex": "^3.6.0", "vuex": "^3.6.0",
"weixin-js-sdk": "^1.6.0" "weixin-js-sdk": "^1.6.0"
},
"dependencies": {
"@qg/cherry-ui": {
"version": "2.21.1-beta9",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcherry-ui/-/cherry-ui-2.21.1-beta9.tgz",
"integrity": "sha512-evaqcwGPrg/RqgHZW3pFU2QpvmIlNZMA83QdGV7U58XrkTuQ4C4wE6FgB0M7kGTZzf/IpfjOZL5ZuGfSaOlGUw==",
"requires": {
"@popperjs/core": "^2.5.4",
"vue-lazyload": "^1.3.3",
"vue-video-player": "^5.0.2"
}
}
} }
}, },
"@qg/js-bridge": { "@qg/js-bridge": {
...@@ -20135,9 +20147,9 @@ ...@@ -20135,9 +20147,9 @@
"integrity": "sha1-8z/pz7Urv9UgqhgyO8ZdsRCht2w=" "integrity": "sha1-8z/pz7Urv9UgqhgyO8ZdsRCht2w="
}, },
"rollup": { "rollup": {
"version": "2.52.2", "version": "2.52.3",
"resolved": "http://npmprivate.quantgroups.com/rollup/-/rollup-2.52.2.tgz", "resolved": "http://npmprivate.quantgroups.com/rollup/-/rollup-2.52.3.tgz",
"integrity": "sha512-4RlFC3k2BIHlUsJ9mGd8OO+9Lm2eDF5P7+6DNQOp5sx+7N/1tFM01kELfbxlMX3MxT6owvLB1ln4S3QvvQlbUA==", "integrity": "sha512-QF3Sju8Kl2z0osI4unyOLyUudyhOMK6G0AeqJWgfiyigqLAlnNrfBcDWDx+f1cqn+JU2iIYVkDrgQ6/KtwEfrg==",
"requires": { "requires": {
"fsevents": "~2.3.2" "fsevents": "~2.3.2"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment