Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
marketing-web
marketing
Commits
e1e6b128
Commit
e1e6b128
authored
Aug 28, 2022
by
黄冷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugfix/微盟卡券' into master
parents
36894ab4
b734f1e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
17 deletions
+10
-17
form.js
src/views/card/form.js
+9
-16
form.vue
src/views/card/form.vue
+1
-1
No files found.
src/views/card/form.js
View file @
e1e6b128
...
...
@@ -153,7 +153,6 @@ export default {
uuid
:
''
,
currentPage
:
1
,
pageSize
:
50
,
search
:
''
,
wmPid
:
''
,
idx
:
''
,
totalPage
:
0
,
...
...
@@ -1352,26 +1351,26 @@ export default {
this
.
weimobDemoCodeList
[
idx
].
cardList
=
[];
this
.
weimobDemoCodeList
[
idx
].
card
=
''
;
this
.
currentPage
=
1
;
this
.
search
=
''
;
this
.
wmPid
=
wmPid
;
this
.
idx
=
idx
;
this
.
weimobDemoCodeList
[
this
.
idx
].
loading
=
true
;
this
.
listEntepriseWeimobCoupon
();
},
listEntepriseWeimobCoupon
(){
listEntepriseWeimobCoupon
(
val
){
let
params
=
{
wmPid
:
this
.
wmPid
,
pageSize
:
this
.
pageSize
,
currentPage
:
this
.
currentPage
}
if
(
this
.
search
!=
''
){
params
.
search
=
this
.
search
;
if
(
val
){
params
.
search
=
val
;
}
console
.
log
(
params
)
listEntepriseWeimobCoupon
(
params
)
.
then
(
res
=>
{
console
.
log
(
res
.
result
)
const
{
result
,
totalPage
,
currentPage
}
=
res
.
result
;
this
.
totalPage
=
totalPage
;
this
.
currentPage
=
currentPage
;
if
(
val
){
this
.
currentPage
=
totalPage
}
this
.
weimobDemoCodeList
[
this
.
idx
].
cardList
=
this
.
weimobDemoCodeList
[
this
.
idx
].
cardList
.
concat
(
result
||
[])
;
this
.
weimobDemoCodeList
[
this
.
idx
].
loading
=
false
;
if
(
this
.
weimobDemoCodeList
[
this
.
idx
].
cardList
.
length
===
0
)
{
...
...
@@ -1383,31 +1382,25 @@ export default {
});
},
remoteMethod
(
val
){
this
.
search
=
val
;
console
.
log
(
val
)
this
.
currentPage
=
1
;
this
.
weimobDemoCodeList
[
this
.
idx
].
cardList
=
[];
this
.
weimobDemoCodeList
[
this
.
idx
].
loading
=
true
;
this
.
listEntepriseWeimobCoupon
();
this
.
listEntepriseWeimobCoupon
(
val
);
},
handleClear
(){
this
.
currentPage
=
1
;
this
.
search
=
''
;
this
.
weimobDemoCodeList
[
this
.
idx
].
cardList
=
[];
this
.
weimobDemoCodeList
[
this
.
idx
].
loading
=
true
;
this
.
listEntepriseWeimobCoupon
();
},
getMore
(){
if
(
this
.
currentPage
<
this
.
totalPage
){
if
(
this
.
currentPage
<
this
.
totalPage
){
this
.
currentPage
++
this
.
listEntepriseWeimobCoupon
();
}
},
handleBlur
(){
this
.
search
=
''
;
this
.
currentPage
=
1
;
this
.
weimobDemoCodeList
[
this
.
idx
].
cardList
=
[];
this
.
listEntepriseWeimobCoupon
();
},
// ---------微盟店铺结束--------
// ------微盟适用商品开始-------
// 获取第一层数据
...
...
src/views/card/form.vue
View file @
e1e6b128
...
...
@@ -55,7 +55,7 @@
<el-select
class=
"w200"
:disabled=
"saveItem.save || isEdit || isInfo"
v-model=
"saveItem.pid"
filterable
placeholder=
"请选择店铺"
clearable
@
change=
"handleShopChange($event, idx)"
>
<el-option
:disabled=
"wmShopIds.includes(item.wmPid)"
v-for=
"item in weimobShopList"
:key=
"item.wmPid"
:label=
"item.wmPidName"
:value=
"item.wmPid"
></el-option>
</el-select>
<el-select
v-loadmore=
"getMore"
@
blur=
"handleBlur"
:disabled=
"!saveItem.pid || saveItem.save || isEdit || isInfo"
:loading=
"saveItem.loading"
class=
"w200"
v-model=
"saveItem.card"
remote
filterable
placeholder=
"请选择微盟卡券"
:remote-method=
"remoteMethod"
@
clear=
"handleClear"
clearable
>
<el-select
v-loadmore=
"getMore"
:disabled=
"!saveItem.pid || saveItem.save || isEdit || isInfo"
:loading=
"saveItem.loading"
class=
"w200"
v-model=
"saveItem.card"
remote
filterable
placeholder=
"请选择微盟卡券"
:remote-method=
"remoteMethod"
@
clear=
"handleClear"
clearable
>
<el-option
v-for=
"item in saveItem.cardList"
:key=
"item.cardTemplateId"
:label=
"item.name"
:value=
"item.cardTemplateId"
></el-option>
</el-select>
<template
v-if=
"isAdd || isCopy"
>
...
...
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