Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
quantum-blocks
Commits
f1ac94b5
Commit
f1ac94b5
authored
Oct 20, 2022
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 调整优惠券弹窗数据格式
parent
0abf60b0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
index.vue
...onent/DynamicForm/component/CouponModalSelector/index.vue
+8
-7
index.ts
app/web/page/editor/component/DynamicPageForm/index.ts
+1
-0
state.ts
app/web/page/store/modules/editor/state.ts
+1
-1
No files found.
app/web/page/editor/component/DynamicForm/component/CouponModalSelector/index.vue
View file @
f1ac94b5
<
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
;
}
}
}
}
...
...
app/web/page/editor/component/DynamicPageForm/index.ts
View file @
f1ac94b5
...
@@ -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
})
...
...
app/web/page/store/modules/editor/state.ts
View file @
f1ac94b5
...
@@ -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
:
[
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment