Commit f1ac94b5 authored by Xuguangxing's avatar Xuguangxing

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

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