Commit f1ac94b5 authored by Xuguangxing's avatar Xuguangxing

feat: 调整优惠券弹窗数据格式

parent 0abf60b0
<template> <template>
<div class="couponModalSeletor"> <div class="couponModalSeletor">
<Select v-model="modalId" filterable clearable> <Select v-model="modalId" filterable clearable multiple>
<Option v-for="item in list" :value="item.id" :key="item.id">{{ `id ${item.id} - ${item.name}` }}</Option> <Option v-for="item in list" :value="item.appConfigPushNo" :key="item.appConfigPushNo">{{ `id ${item.id} - ${item.name}` }}</Option>
</Select> </Select>
<!-- <Button type="primary" @click="save">保存</Button> --> <!-- <Button type="primary" @click="save">保存</Button> -->
</div> </div>
...@@ -11,8 +11,8 @@ import operationApi from '@api/operation.api'; ...@@ -11,8 +11,8 @@ import operationApi from '@api/operation.api';
export default { export default {
props: { props: {
value: { value: {
type: String, type: Array,
default: '' default: []
} }
}, },
watch: { watch: {
...@@ -20,7 +20,7 @@ export default { ...@@ -20,7 +20,7 @@ export default {
this.modalId = val; this.modalId = val;
}, },
modalId(val) { modalId(val) {
this.$emit('input', val ? val : ''); this.$emit('input', val);
} }
}, },
components: { components: {
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
data() { data() {
return { return {
list: [], list: [],
modalId: '' modalId: []
} }
}, },
created() { created() {
...@@ -44,10 +44,11 @@ export default { ...@@ -44,10 +44,11 @@ export default {
const list = res.list.map(item => { const list = res.list.map(item => {
let obj = {}; let obj = {};
obj.id = item.id.toString(); obj.id = item.id.toString();
obj.appConfigPushNo = item.appConfigPushNo.toString();
obj.name = item.componentName; obj.name = item.componentName;
return obj; return obj;
}) })
console.log(list) // console.log(list)
this.list = list; this.list = list;
} }
} }
......
...@@ -197,6 +197,7 @@ export default class DynamicPageForm extends Mixins(ContextMenuMixin) { ...@@ -197,6 +197,7 @@ export default class DynamicPageForm extends Mixins(ContextMenuMixin) {
this.propsSchema.forEach(schame => { this.propsSchema.forEach(schame => {
this.$set(this.propsForm, schame.key, this.pageData?.props?.[schame.key]); this.$set(this.propsForm, schame.key, this.pageData?.props?.[schame.key]);
}); });
// console.log(this.propsForm);
} }
@Watch('commonStyleForm', { immediate: true, deep: true }) @Watch('commonStyleForm', { immediate: true, deep: true })
......
...@@ -100,7 +100,7 @@ export const defaultState = { ...@@ -100,7 +100,7 @@ export const defaultState = {
showPageBottomTip: true, showPageBottomTip: true,
pageBottomTxt: '没有更多啦~', pageBottomTxt: '没有更多啦~',
pageBottomColor: '#333', pageBottomColor: '#333',
couponModal: '', couponModal: [],
showBackTop: true, showBackTop: true,
btAttachVal: [ btAttachVal: [
{ {
......
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