Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integral-mall
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
integralMall
integral-mall
Commits
22ef5091
Commit
22ef5091
authored
Jan 22, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 去掉测试数据
parent
744c09cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
24 deletions
+4
-24
ruleList.vue
src/views/goods/ruleList/ruleList.vue
+4
-24
No files found.
src/views/goods/ruleList/ruleList.vue
View file @
22ef5091
...
...
@@ -170,6 +170,7 @@
type=
"primary"
size=
"small"
v-if=
"type=='查看'"
:disabled=
"!multipleSelection.length"
slot=
"reference"
>
批量移除
...
...
@@ -180,6 +181,7 @@
size=
"small"
:loading=
"btnLoading"
@
click=
"submit"
:disabled=
"!multipleSelection.length"
v-if=
"type=='选择'"
>
批量添加
...
...
@@ -288,6 +290,8 @@ export default {
this
.
relateForm
.
currentPage
=
1
;
if
(
type
==
'查看'
)
{
this
.
relateForm
.
integralMallProRuleId
=
integralMallProRuleId
;
}
else
{
delete
this
.
relateForm
.
integralMallProRuleId
;
}
this
.
getRelatingGoodsTable
();
},
...
...
@@ -311,11 +315,6 @@ export default {
this
.
multipleSelection
=
val
;
},
multipleDel
()
{
if
(
!
this
.
multipleSelection
.
length
)
{
this
.
$message
.
warning
(
'请至少选择一件商品'
);
return
;
}
this
.
btnLoading
=
true
;
const
data
=
{};
data
.
integralMallProIdList
=
this
.
multipleSelection
.
map
(
item
=>
item
.
integralMallProId
);
...
...
@@ -346,34 +345,15 @@ export default {
},
getRelatingGoodsTable
()
{
this
.
loading
=
true
;
if
(
this
.
type
==
'选择'
)
{
delete
this
.
relateForm
.
integralMallProRuleId
;
}
const
params
=
this
.
relateForm
;
request
.
get
(
'/api-integral-mall/page-rule-pro'
,
{
params
}).
then
(
res
=>
{
this
.
relatingGoodsTable
=
res
.
data
.
result
.
result
||
[];
this
.
totalCount
=
res
.
data
.
result
.
totalCount
;
for
(
let
i
=
0
;
i
<
5
;
i
++
)
{
this
.
relatingGoodsTable
.
push
({
mallProImageUrl
:
'https://pic01-10001430.image.myqcloud.com/f39e4665-db45-487e-847a-673fedddab44'
,
proName
:
'上架规则说明内容内容上架规则说明内容内容上架规则说明内容内容'
,
proCode
:
236
,
proType
:
'实物礼品'
,
costValue
:
1000.00
,
virtualStock
:
1000
,
integralMallProId
:
i
,
ruleTitle
:
'新客积分兑换上架规则规则'
,
});
}
}).
finally
(
_
=>
{
this
.
loading
=
false
;
});
},
submit
()
{
if
(
!
this
.
multipleSelection
.
length
)
{
this
.
$message
.
warning
(
'请至少选择一件商品'
);
return
;
}
this
.
btnLoading
=
true
;
const
data
=
{};
data
.
integralMallProIdList
=
this
.
multipleSelection
.
map
(
item
=>
item
.
integralMallProId
);
...
...
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