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
b734f1e4
Commit
b734f1e4
authored
Aug 28, 2022
by
黄冷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: dist
parent
7c91c264
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
20 deletions
+7
-20
form.js
src/views/card/form.js
+6
-19
form.vue
src/views/card/form.vue
+1
-1
No files found.
src/views/card/form.js
View file @
b734f1e4
...
...
@@ -153,7 +153,6 @@ export default {
uuid
:
''
,
currentPage
:
1
,
pageSize
:
50
,
search
:
''
,
wmPid
:
''
,
idx
:
''
,
totalPage
:
0
,
...
...
@@ -1352,27 +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
)
{
...
...
@@ -1385,15 +1383,13 @@ export default {
},
remoteMethod
(
val
){
console
.
log
(
val
)
this
.
search
=
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
();
...
...
@@ -1404,16 +1400,7 @@ export default {
this
.
listEntepriseWeimobCoupon
();
}
},
handleBlur
(){
console
.
log
(
'失焦'
)
if
(
this
.
search
){
this
.
search
=
''
;
this
.
currentPage
=
1
;
this
.
weimobDemoCodeList
[
this
.
idx
].
cardList
=
[];
this
.
listEntepriseWeimobCoupon
();
}
},
// ---------微盟店铺结束--------
// ------微盟适用商品开始-------
// 获取第一层数据
...
...
src/views/card/form.vue
View file @
b734f1e4
...
...
@@ -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