Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
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
黄媛媛
ElectricitySheep
Commits
01861514
Commit
01861514
authored
Apr 28, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
7092084b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1298 additions
and
12 deletions
+1298
-12
common.css
src/assets/css/common.css
+3
-0
add_remark.png
src/assets/img/userman/add_remark.png
+0
-0
nopass.png
src/assets/img/userman/nopass.png
+0
-0
pass.png
src/assets/img/userman/pass.png
+0
-0
customSet.vue
src/components/UserMan/customSet.vue
+14
-12
distributorLevel.vue
src/components/UserMan/distributorLevel.vue
+294
-0
distributors.vue
src/components/UserMan/distributors.vue
+721
-0
setDistributorLevel.vue
src/components/UserMan/setDistributorLevel.vue
+248
-0
index.js
src/router/index.js
+18
-0
No files found.
src/assets/css/common.css
View file @
01861514
...
@@ -34,6 +34,9 @@
...
@@ -34,6 +34,9 @@
.w100
{
.w100
{
width
:
100px
!important
;
width
:
100px
!important
;
}
}
.w200
{
width
:
200px
!important
;
}
.el-icon-search
{
.el-icon-search
{
cursor
:
pointer
;
cursor
:
pointer
;
}
}
...
...
src/assets/img/userman/add_remark.png
0 → 100644
View file @
01861514
1.58 KB
src/assets/img/userman/nopass.png
0 → 100644
View file @
01861514
1.54 KB
src/assets/img/userman/pass.png
0 → 100644
View file @
01861514
1.5 KB
src/components/UserMan/customSet.vue
View file @
01861514
...
@@ -379,13 +379,15 @@
...
@@ -379,13 +379,15 @@
<div
flex=
"dir:left cross:center"
style=
"background: rgb(255, 255, 255); color: rgb(102, 102, 102); height: 80px; padding: 0px 12px; font-size: 13pt; border-top: 1px solid rgb(226, 226, 226); border-bottom: 1px solid rgb(226, 226, 226);"
>
<div
flex=
"dir:left cross:center"
style=
"background: rgb(255, 255, 255); color: rgb(102, 102, 102); height: 80px; padding: 0px 12px; font-size: 13pt; border-top: 1px solid rgb(226, 226, 226); border-bottom: 1px solid rgb(226, 226, 226);"
>
<div
style=
"color: rgb(255, 69, 68); font-size: 30pt;"
>
¥
</div>
<div
style=
"color: rgb(255, 69, 68); font-size: 30pt;"
>
¥
</div>
<div
style=
"padding-left: 20px; color: rgb(205, 205, 205); font-size: 19pt;"
>
<div
style=
"padding-left: 20px; color: rgb(205, 205, 205); font-size: 19pt;"
>
请输入
100
请输入
{{
addMsg
.
WithdrawalAmountName
}}
</div>
</div>
</div>
</div>
<div
flex=
"dir:top main:center"
style=
"padding: 10px 12px; color: rgb(102, 102, 102); font-size: 12pt;"
>
<div
flex=
"dir:top main:center"
style=
"padding: 10px 12px; color: rgb(102, 102, 102); font-size: 12pt;"
>
<div>
说明: 100必须不能大于¥80
</div>
<div>
说明:
{{
addMsg
.
WithdrawalAmountName
}}
必须不能大于¥80
</div>
</div>
<div
style=
"background: rgb(255, 255, 255); padding: 16px 12px;"
>
{{
addMsg
.
WithdrawalWayName
}}
</div>
</div>
<div
style=
"background: rgb(255, 255, 255); padding: 16px 12px;"
></div>
<div
flex=
"dir:left cross:center"
style=
"margin-bottom: 10px; padding-left: 8px; padding-bottom: 10px; background: rgb(255, 255, 255);"
>
<div
flex=
"dir:left cross:center"
style=
"margin-bottom: 10px; padding-left: 8px; padding-bottom: 10px; background: rgb(255, 255, 255);"
>
<div
flex=
"dir:left cross:center"
style=
"margin-left: 10px; padding: 0px 16px; height: 34px; border: 1px solid rgb(255, 69, 68); border-radius: 19px;"
>
<div
flex=
"dir:left cross:center"
style=
"margin-left: 10px; padding: 0px 16px; height: 34px; border: 1px solid rgb(255, 69, 68); border-radius: 19px;"
>
<img
src=
"../../assets/img/userman/wx.png"
style=
"width:20px;height:20px"
alt=
""
>
<img
src=
"../../assets/img/userman/wx.png"
style=
"width:20px;height:20px"
alt=
""
>
...
@@ -420,14 +422,14 @@
...
@@ -420,14 +422,14 @@
<div
flex=
"dir:left cross:center"
class=
"share-text"
>
<div
flex=
"dir:left cross:center"
class=
"share-text"
>
<div
class=
"default"
>
提现金额
</div>
<div
class=
"default"
>
提现金额
</div>
<img
style=
"width:12px;height:12px;margin-right:8px"
src=
"../../assets/img/userman/customize_jp.png"
alt=
""
>
<img
style=
"width:12px;height:12px;margin-right:8px"
src=
"../../assets/img/userman/customize_jp.png"
alt=
""
>
<el-input
v-model=
"addMsg.
val
"
style=
"width:40%"
size=
"small"
placeholder=
"请输入内容"
></el-input>
<el-input
v-model=
"addMsg.
WithdrawalAmountName
"
style=
"width:40%"
size=
"small"
placeholder=
"请输入内容"
></el-input>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
""
>
<el-form-item
label=
""
>
<div
flex=
"dir:left cross:center"
class=
"share-text"
>
<div
flex=
"dir:left cross:center"
class=
"share-text"
>
<div
class=
"default"
>
提现方式
</div>
<div
class=
"default"
>
提现方式
</div>
<img
style=
"width:12px;height:12px;margin-right:8px"
src=
"../../assets/img/userman/customize_jp.png"
alt=
""
>
<img
style=
"width:12px;height:12px;margin-right:8px"
src=
"../../assets/img/userman/customize_jp.png"
alt=
""
>
<el-input
v-model=
"addMsg.
val
"
style=
"width:40%"
size=
"small"
placeholder=
"请输入内容"
></el-input>
<el-input
v-model=
"addMsg.
WithdrawalWayName
"
style=
"width:40%"
size=
"small"
placeholder=
"请输入内容"
></el-input>
</div>
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -446,14 +448,14 @@
...
@@ -446,14 +448,14 @@
<div
flex=
"dir:left box:mean cross:center"
style=
"height: 50px; border: 1px solid rgb(226, 226, 226); background: rgb(255, 255, 255);"
>
<div
flex=
"dir:left box:mean cross:center"
style=
"height: 50px; border: 1px solid rgb(226, 226, 226); background: rgb(255, 255, 255);"
>
<div
flex=
"main:center"
>
<div
flex=
"main:center"
>
<div
flex=
"cross:center"
style=
"height: 50px; border-bottom: 1px solid rgb(255, 69, 68); color: rgb(255, 69, 68);"
>
<div
flex=
"cross:center"
style=
"height: 50px; border-bottom: 1px solid rgb(255, 69, 68); color: rgb(255, 69, 68);"
>
一级分销名称
(0)
{{
addMsg
.
OneDistributionName
}}
(0)
</div>
</div>
</div>
</div>
<div
flex=
"main:center"
>
<div
flex=
"main:center"
>
<div>
二级分销名称
(10)
</div>
<div>
{{
addMsg
.
TwoDistributionName
}}
(10)
</div>
</div>
</div>
<div
flex=
"main:center"
>
<div
flex=
"main:center"
>
<div>
三级分销名称
(0)
</div>
<div>
{{
addMsg
.
ThreeDistributionName
}}
(0)
</div>
</div>
</div>
</div>
</div>
<div
flex=
"dir:top"
style=
"margin-bottom: 10px;"
>
<div
flex=
"dir:top"
style=
"margin-bottom: 10px;"
>
...
@@ -506,21 +508,21 @@
...
@@ -506,21 +508,21 @@
<div
flex=
"dir:left cross:center"
class=
"share-text"
>
<div
flex=
"dir:left cross:center"
class=
"share-text"
>
<div
class=
"default"
>
一级分销名称
</div>
<div
class=
"default"
>
一级分销名称
</div>
<img
style=
"width:12px;height:12px;margin-right:8px"
src=
"../../assets/img/userman/customize_jp.png"
alt=
""
>
<img
style=
"width:12px;height:12px;margin-right:8px"
src=
"../../assets/img/userman/customize_jp.png"
alt=
""
>
<el-input
v-model=
"addMsg.
val
"
style=
"width:40%"
size=
"small"
placeholder=
"请输入内容"
></el-input>
<el-input
v-model=
"addMsg.
OneDistributionName
"
style=
"width:40%"
size=
"small"
placeholder=
"请输入内容"
></el-input>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
""
>
<el-form-item
label=
""
>
<div
flex=
"dir:left cross:center"
class=
"share-text"
>
<div
flex=
"dir:left cross:center"
class=
"share-text"
>
<div
class=
"default"
>
二级分销名称
</div>
<div
class=
"default"
>
二级分销名称
</div>
<img
style=
"width:12px;height:12px;margin-right:8px"
src=
"../../assets/img/userman/customize_jp.png"
alt=
""
>
<img
style=
"width:12px;height:12px;margin-right:8px"
src=
"../../assets/img/userman/customize_jp.png"
alt=
""
>
<el-input
v-model=
"addMsg.
val
"
style=
"width:40%"
size=
"small"
placeholder=
"请输入内容"
></el-input>
<el-input
v-model=
"addMsg.
TwoDistributionName
"
style=
"width:40%"
size=
"small"
placeholder=
"请输入内容"
></el-input>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
""
>
<el-form-item
label=
""
>
<div
flex=
"dir:left cross:center"
class=
"share-text"
>
<div
flex=
"dir:left cross:center"
class=
"share-text"
>
<div
class=
"default"
>
三级分销名称
</div>
<div
class=
"default"
>
三级分销名称
</div>
<img
style=
"width:12px;height:12px;margin-right:8px"
src=
"../../assets/img/userman/customize_jp.png"
alt=
""
>
<img
style=
"width:12px;height:12px;margin-right:8px"
src=
"../../assets/img/userman/customize_jp.png"
alt=
""
>
<el-input
v-model=
"addMsg.
val
"
style=
"width:40%"
size=
"small"
placeholder=
"请输入内容"
></el-input>
<el-input
v-model=
"addMsg.
ThreeDistributionName
"
style=
"width:40%"
size=
"small"
placeholder=
"请输入内容"
></el-input>
</div>
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -566,7 +568,7 @@ export default {
...
@@ -566,7 +568,7 @@ export default {
},
},
data
(){
data
(){
return
{
return
{
activeName
:
'
second
'
,
activeName
:
'
five
'
,
addMsg
:{},
addMsg
:{},
HeadImagePath
:
''
,
HeadImagePath
:
''
,
BottomImagePath
:
''
,
BottomImagePath
:
''
,
...
...
src/components/UserMan/distributorLevel.vue
0 → 100644
View file @
01861514
<
template
>
<div
class=
"usersList"
>
<div
class=
"head-title"
>
分销商等级
<el-button
@
click=
"EditgoUrl"
style=
"float:right;margin-top: -5px;"
size=
"small"
type=
"primary"
>
添加分销商等级
</el-button>
</div>
<div
class=
"content"
>
<div>
<!--
<el-select
class=
"w100"
@
change=
"getList"
style=
"margin-right: 10px;"
v-model=
"msg.Source"
size=
"small"
placeholder=
"请选择"
>
<el-option
label=
"全部平台"
:value=
"0"
></el-option>
<el-option
v-for=
"item in platList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
-->
<div
class=
"searchInput"
style=
"width:230px"
>
<el-input
style=
"display:inline-block;width:205px;height:30px"
placeholder=
"请输入分销商等级名称查询"
v-model=
"msg.Name"
size=
"small"
clearable
>
</el-input>
<span
@
click=
"getList"
class=
"el-icon-search"
style=
"color:#979dad;font-size:14px;position:relative;top:1px"
></span>
</div>
</div>
<el-table
:data=
"tableData"
v-loading=
"loading"
border
style=
"width: 100%;margin:20px 0"
>
<el-table-column
prop=
"Id"
label=
"ID"
>
</el-table-column>
<el-table-column
prop=
"address"
label=
"分销商等级"
>
<template
slot-scope=
"scope"
>
等级
{{
scope
.
row
.
Grade
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"Name"
label=
"分销商等级名称"
>
</el-table-column>
<el-table-column
prop=
"UpGradeCondition"
label=
"升级条件"
>
<
template
slot-scope=
"scope"
>
<el-tag
v-if=
"scope.row.IsAutoUpGrade==2"
type=
"warning"
>
不可自动升级
</el-tag>
<el-tag
v-if=
"scope.row.IsAutoUpGrade==1"
type=
"success"
>
可自动升级
</el-tag>
</
template
>
</el-table-column>
<el-table-column
prop=
"OneCommission"
label=
"一级佣金"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.DistributionCommissionType==1"
>
{{
scope
.
row
.
OneCommission
}}
%
</span>
<span
v-if=
"scope.row.DistributionCommissionType==2"
>
{{
scope
.
row
.
OneCommission
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"二级佣金"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"tierInfo.DistributorTier==2 || tierInfo.DistributorTier==3"
>
<span
v-if=
"scope.row.DistributionCommissionType==1"
>
{{
scope
.
row
.
TwoCommission
}}
%
</span>
<span
v-if=
"scope.row.DistributionCommissionType==2"
>
{{
scope
.
row
.
TwoCommission
}}
</span>
</span>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"三级佣金"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"tierInfo.DistributorTier==3"
>
<span
v-if=
"scope.row.DistributionCommissionType==1"
>
{{
scope
.
row
.
ThreeCommission
}}
%
</span>
<span
v-if=
"scope.row.DistributionCommissionType==2"
>
{{
scope
.
row
.
ThreeCommission
}}
</span>
</span>
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"启用状态"
>
<
template
slot-scope=
"scope"
>
<el-switch
@
change=
"SetEnabled(scope.row)"
v-model=
"scope.row.Enabled"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"2"
>
</el-switch>
</
template
>
</el-table-column>
<el-table-column
prop=
"address"
width=
"150"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<img
@
click=
"EditgoUrl(scope.row)"
style=
"width:32px;height:32px"
src=
"../../assets/img/userman/edit.png"
alt=
""
>
<img
v-if=
"scope.row.Enabled==2"
@
click=
"Delete(scope.row,1)"
style=
"width:32px;height:32px;margin:0 10px"
src=
"../../assets/img/userman/del.png"
alt=
""
>
</
template
>
</el-table-column>
</el-table>
<el-pagination
style=
"text-align:right"
background
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
layout=
"prev, pager, next"
:total=
"total"
>
</el-pagination>
</div>
</div>
</template>
<
script
>
export
default
{
data
()
{
return
{
czType
:
1
,
czjfDig
:
false
,
changeState
:
false
,
loading
:
false
,
isIndeterminate
:
true
,
addMsg
:{},
dialogVisible
:
false
,
value
:
''
,
options
:[],
tableData
:[],
msg
:{
pageIndex
:
1
,
pageSize
:
15
,
Name
:
''
,
Grade
:
0
,
MemberGrade
:
0
,
Enabled
:
0
,
},
total
:
0
,
addMsg
:{
MallBaseId
:
0
,
Type
:
1
,
UserId
:
0
,
Integral
:
0
,
Image
:
''
,
Description
:
''
,
},
tierInfo
:{},
};
},
created
()
{
this
.
getList
();
this
.
GetTierInfo
();
this
.
addMsg
.
MallBaseId
=
this
.
getLocalStorage
().
MallBaseId
;
},
methods
:
{
SetEnabled
(
row
){
let
that
=
this
;
that
.
apipost
(
"/api/user/SetDistributorGradeEnabledStatus"
,
{
GradeId
:
row
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
res
.
data
.
message
);
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
},
null
);
},
Delete
(
row
){
let
that
=
this
;
that
.
Confirm
(
"是否删除?"
,
function
()
{
that
.
apipost
(
"/api/user/DelDistributorGradeInfo"
,
{
GradeId
:
row
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
res
.
data
.
message
);
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
message
);
}
},
null
);
});
},
EditgoUrl
(
row
){
if
(
row
){
this
.
$router
.
push
({
name
:
'setDistributorLevel'
,
query
:
{
UserId
:
row
.
Id
}
});
}
else
{
this
.
$router
.
push
({
name
:
'setDistributorLevel'
,
});
}
},
getList
(){
this
.
loading
=
true
;
this
.
apipost
(
"/api/user/GetDistributorGradePageList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
){
this
.
total
=
res
.
data
.
data
.
count
;
let
pageData
=
res
.
data
.
data
.
pageData
;
this
.
tableData
=
pageData
;
}
})
},
GetTierInfo
(){
this
.
apipost
(
"/api/user/GetDistributorTierInfo"
,{},
res
=>
{
this
.
tierInfo
=
res
.
data
.
data
;
})
},
handleCheckAllChange
(
val
)
{
this
.
checkedCities
=
val
?
this
.
cityOptions
:
[];
this
.
isIndeterminate
=
false
;
},
handleCheckedCitiesChange
(
value
)
{
let
checkedCount
=
value
.
length
;
this
.
checkAll
=
checkedCount
===
this
.
cities
.
length
;
this
.
isIndeterminate
=
checkedCount
>
0
&&
checkedCount
<
this
.
cities
.
length
;
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
},
mounted
()
{
}
};
</
script
>
<
style
>
.usersList
.remark_name
{
color
:
#888888
;
font-size
:
12px
;
margin-left
:
10px
;
float
:
right
;
}
.usersList
.app-image
{
background-position
:
center
center
;
width
:
50px
;
height
:
50px
;
border-radius
:
0%
;
float
:
left
;
margin-right
:
8px
;
}
.usersList
.blue
{
color
:
#409EFF
;
}
.usersList
.content
.searchInput
{
border
:
1px
solid
#DCDFE6
;
border-radius
:
4px
;
}
.usersList
.content
.searchInput
.el-input__inner
{
border
:
none
;
outline
:
none
;
height
:
30px
;
line-height
:
30px
;
}
.usersList
.content
.searchInput
{
line-height
:
normal
;
display
:
inline-table
;
width
:
100%
;
border-collapse
:
separate
;
border-spacing
:
0
;
width
:
250px
;
margin-right
:
20px
;
}
.usersList
.content
{
background
:
#fff
;
margin-top
:
10px
;
padding
:
20px
;
box-sizing
:
border-box
;
}
</
style
>
src/components/UserMan/distributors.vue
0 → 100644
View file @
01861514
This diff is collapsed.
Click to expand it.
src/components/UserMan/setDistributorLevel.vue
0 → 100644
View file @
01861514
<
template
>
<div
v-loading=
"loading"
class=
"setMember usersList usersListEdit"
>
<div
class=
"head-title"
>
<span
@
click=
"goUrl"
class=
"blue point"
>
分销商等级
</span>
/ 编辑分销商等级
</div>
<div
class=
"content"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"150px"
>
<el-form-item
label=
"分销商等级选择"
prop=
"Grade"
>
<el-select
style=
"width:500px;"
size=
"small"
v-model=
"addMsg.Grade"
placeholder=
"请选择"
>
<el-option
v-for=
"(item,index) in 10"
:key=
"index"
:label=
"`等级$
{index+1}`"
:value="index+1">
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"分销商等级名称"
prop=
"Name"
>
<el-input
v-model=
"addMsg.Name"
style=
"width:500px"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
label=
"是否启用自动升级"
>
{{
addMsg
.
IsAutoUpGrade
}}
<el-switch
v-model=
"addMsg.IsAutoUpGrade"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"2"
>
</el-switch>
</el-form-item>
<el-form-item
v-if=
"addMsg.IsAutoUpGrade==1"
label=
"升级条件"
>
<el-radio
v-for=
"(item,index) in gradeList"
v-model=
"addMsg.UpGradeCondition"
:key=
"index"
:label=
"item.Id"
>
{{
item
.
Name
}}
</el-radio>
</el-form-item>
<el-form-item
prop=
"ReferralsNumber"
v-if=
"addMsg.IsAutoUpGrade==1 && addMsg.UpGradeCondition==1"
class=
"commonLabel"
label=
"下线用户数"
>
<el-input
v-model=
"addMsg.ReferralsNumber"
style=
"width:500px;"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入内容"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
%
</el-button>
</el-input>
</el-form-item>
<el-form-item
prop=
"TotalCommission"
v-if=
"addMsg.IsAutoUpGrade==1 && addMsg.UpGradeCondition==2"
class=
"commonLabel"
label=
"累积佣金"
>
<el-input
v-model=
"addMsg.TotalCommission"
style=
"width:500px;"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入内容"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
%
</el-button>
</el-input>
</el-form-item>
<el-form-item
prop=
"CommissionWithdrawn"
v-if=
"addMsg.IsAutoUpGrade==1 && addMsg.UpGradeCondition==3"
class=
"commonLabel"
label=
"已提现佣金"
>
<el-input
v-model=
"addMsg.CommissionWithdrawn"
style=
"width:500px;"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入内容"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
%
</el-button>
</el-input>
</el-form-item>
<el-form-item
label=
"分销佣金类型"
>
<el-radio
v-model=
"addMsg.DistributionCommissionType"
:label=
"1"
>
百分比
</el-radio>
<el-radio
v-model=
"addMsg.DistributionCommissionType"
:label=
"2"
>
固定金额
</el-radio>
</el-form-item>
<el-form-item
class=
"commonLabel"
label=
"一级佣金"
>
<el-input
v-model=
"addMsg.OneCommission"
style=
"width:500px;"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入内容"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
%
</el-button>
</el-input>
</el-form-item>
<el-form-item
v-if=
"tierInfo.DistributorTier==2 || tierInfo.DistributorTier==3"
class=
"commonLabel"
label=
"二级佣金"
>
<el-input
v-model=
"addMsg.TwoCommission"
style=
"width:500px;"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入内容"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
%
</el-button>
</el-input>
</el-form-item>
<el-form-item
v-if=
"tierInfo.DistributorTier==3"
class=
"commonLabel"
label=
"三级佣金"
>
<el-input
v-model=
"addMsg.ThreeCommission"
style=
"width:500px;"
type=
"number"
min=
"1"
size=
"small"
placeholder=
"请输入内容"
class=
"input-with-select"
>
<el-button
slot=
"append"
>
%
</el-button>
</el-input>
</el-form-item>
<el-form-item
label=
"是否启用"
prop=
"Enabled"
>
<el-switch
v-model=
"addMsg.Enabled"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"2"
>
</el-switch>
</el-form-item>
<el-form-item
label=
"等级说明"
prop=
"GradeExplain"
>
<el-input
type=
"textarea"
row=
"2"
v-model=
"addMsg.GradeExplain"
style=
"width:500px"
maxlength=
"80"
show-word-limit
></el-input>
</el-form-item>
</el-form>
</div>
<div
style=
"margin-top:20px"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"Save('addMsg')"
>
保存
</el-button>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
addMsg
:{
Id
:
''
,
Grade
:
1
,
Name
:
''
,
IsAutoUpGrade
:
1
,
UpGradeCondition
:
1
,
ReferralsNumber
:
0
,
TotalCommission
:
0
,
CommissionWithdrawn
:
0
,
DistributionCommissionType
:
1
,
OneCommission
:
0
,
TwoCommission
:
0
,
ThreeCommission
:
0
,
Enabled
:
1
,
GradeExplain
:
''
,
},
val
:
''
,
value
:
''
,
total
:
0
,
rules
:
{
Grade
:
[
{
required
:
true
,
message
:
'请选择分销商等级'
,
trigger
:
'change'
}
],
Name
:
[
{
required
:
true
,
message
:
'请输入分销商等级名称'
,
trigger
:
'blur'
}
],
GradeExplain
:
[
{
required
:
true
,
message
:
'请输入等级说明'
,
trigger
:
'blur'
}
],
ReferralsNumber
:
[
{
required
:
true
,
message
:
'请输入下线用户数'
,
trigger
:
'blur'
}
],
TotalCommission
:
[
{
required
:
true
,
message
:
'请输入累积佣金'
,
trigger
:
'blur'
}
],
CommissionWithdrawn
:
[
{
required
:
true
,
message
:
'请输入已提现佣金'
,
trigger
:
'blur'
}
],
Enabled
:[
{
required
:
true
,
message
:
'请选择是否启用'
,
trigger
:
'change'
}
],
},
GradeId
:
''
,
loading
:
false
,
tierInfo
:{},
gradeList
:[],
};
},
created
()
{
if
(
this
.
$route
.
query
.
UserId
){
this
.
GradeId
=
this
.
$route
.
query
.
UserId
;
this
.
getData
()
}
this
.
GetTierInfo
();
this
.
getgradeList
();
},
methods
:
{
Save
(
formName
){
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
apipost
(
"/api/user/SetDistributorGradeInfo"
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
goUrl
();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
})
}
else
{
return
false
;
}
});
},
openChangeDig
(){
this
.
changeState
=
true
;
},
goUrl
(){
this
.
$router
.
push
({
name
:
'distributorLevel'
,
query
:
{
blank
:
"y"
}
});
},
GetTierInfo
(){
this
.
apipost
(
"/api/user/GetDistributorTierInfo"
,{},
res
=>
{
this
.
tierInfo
=
res
.
data
.
data
;
})
},
getData
(){
this
.
loading
=
true
;
this
.
apipost
(
"/api/user/GetDistributorGradeInfo"
,{
GradeId
:
this
.
GradeId
},
res
=>
{
this
.
loading
=
false
;
this
.
addMsg
=
res
.
data
.
data
;
})
},
getgradeList
(){
this
.
apipost
(
"/api/user/GetDistrbutorGradeUpdateEnumList"
,{},
res
=>
{
this
.
gradeList
=
res
.
data
.
data
;
console
.
log
(
"this.gradeList"
,
this
.
gradeList
)
})
},
},
mounted
()
{
}
};
</
script
>
<
style
>
.usersListEdit
.tip
{
margin-left
:
10px
;
display
:
inline-block
;
height
:
30px
;
line-height
:
30px
;
color
:
#ff4544
;
background-color
:
#FEF0F0
;
padding
:
0
20px
;
border-radius
:
5px
;
}
.usersListEdit
.app-image
{
background-size
:
cover
;
background-position
:
center
center
;
width
:
80px
;
height
:
80px
;
border-radius
:
0%
;
}
.setMember
.setTable
.el-table__body
.cell
{
display
:
flex
;
align-items
:
center
;
}
.setMember
.commonLabel
.el-form-item__label
{
margin-top
:
-4px
;
}
.setMember
.discount
.el-form-item__label
{
padding-right
:
30px
;
margin-top
:
-4px
;
}
.setMember
.el-form-item
.elzk
{
position
:
absolute
;
left
:
-25px
;
top
:
8px
;
}
.setMember
.el-form-item
{
position
:
relative
;
}
.usersList
.blue
{
color
:
#409EFF
;
}
.usersList
.content
{
background
:
#fff
;
margin-top
:
10px
;
padding
:
20px
;
box-sizing
:
border-box
;
}
</
style
>
src/router/index.js
View file @
01861514
...
@@ -102,6 +102,24 @@ export default new Router({
...
@@ -102,6 +102,24 @@ export default new Router({
name
:
'customSet'
,
name
:
'customSet'
,
component
:
resolve
=>
require
([
'@/components/UserMan/customSet'
],
resolve
),
component
:
resolve
=>
require
([
'@/components/UserMan/customSet'
],
resolve
),
},
},
// 用户管理 分销商管理 分销商等级
{
path
:
'/distributorLevel'
,
name
:
'distributorLevel'
,
component
:
resolve
=>
require
([
'@/components/UserMan/distributorLevel'
],
resolve
),
},
// 用户管理 分销商管理 新增或编辑分销商等级
{
path
:
'/setDistributorLevel'
,
name
:
'setDistributorLevel'
,
component
:
resolve
=>
require
([
'@/components/UserMan/setDistributorLevel'
],
resolve
),
},
// 用户管理 分销商管理 分销商
{
path
:
'/distributors'
,
name
:
'distributors'
,
component
:
resolve
=>
require
([
'@/components/UserMan/distributors'
],
resolve
),
},
// 商品管理 素材管理
// 商品管理 素材管理
{
{
...
...
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