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
643cba91
Commit
643cba91
authored
Jul 16, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/huangyuanyuan/electricitysheep
parents
82b1015f
e95a4daf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
111 additions
and
0 deletions
+111
-0
fxCommission.vue
src/components/UserMan/fxCommission.vue
+105
-0
index.js
src/router/index.js
+6
-0
No files found.
src/components/UserMan/fxCommission.vue
0 → 100644
View file @
643cba91
<
style
>
.fxCommission
.fxCommTable
{
width
:
100%
;
border-collapse
:
collapse
;
}
.fxCommission
.fxCommTable
tr
th
{
height
:
48px
;
font-size
:
14px
;
color
:
#909399
;
border
:
1px
solid
#EBEEF5
;
font-weight
:
bold
;
}
.fxCommission
.fxCommTable
tr
{
background
:
#fff
;
text-align
:
center
;
height
:
50px
;
}
.fxCommission
.fxCommTable
tr
td
{
font-size
:
14px
;
border
:
1px
solid
#EBEEF5
;
}
.fxCommission
.fx_inner
:hover
td
{
background-color
:
#F5F7FA
;
}
.fxCommission
.fxCommTable
td
{
transition
:
background-color
.25s
ease
;
}
.fxCommission
.content
{
background
:
#fff
;
margin-top
:
10px
;
padding
:
20px
;
box-sizing
:
border-box
;
}
</
style
>
<
template
>
<div
class=
"fxCommission"
>
<div
class=
"head-title"
>
粉象返佣
<el-button
@
click=
"saveData"
style=
"float:right;margin-top: -5px;"
size=
"small"
type=
"primary"
>
保存
</el-button>
</div>
<div
class=
"content"
>
<table
class=
"fxCommTable"
v-loading=
"loading"
>
<tr>
<th>
级别标准
</th>
<th
v-for=
"(item,index) in titleList"
:key=
"index"
>
{{
item
.
GradeName
}}
</th>
</tr>
<tr
class=
"fx_inner"
v-for=
"(item,index) in dataList"
:key=
"index"
>
<td>
{{
item
.
GradeName
}}
</td>
<td
v-for=
"(subItem,subIndex) in item.FXCommissionList"
:key=
"subIndex"
>
<el-input
style=
"width:120px;"
@
keyup
.
native=
"checkPrice(subItem,'CommissionPrice')"
v-model=
"subItem.CommissionPrice"
></el-input>
</td>
</tr>
</table>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
loading
:
false
,
//横向data
dataList
:
[],
titleList
:
[],
};
},
created
()
{},
methods
:
{
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
"/api/User/GetFXFxCommissionList"
,
{},
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
.
resultList
;
this
.
titleList
=
res
.
data
.
data
.
titleList
;
}
})
},
//保存数据
saveData
(){
this
.
apipost
(
"/api/User/SetFXFxCommissionInfo"
,
this
.
dataList
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getList
();
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
})
}
},
mounted
()
{
this
.
getList
();
}
};
</
script
>
src/router/index.js
View file @
643cba91
...
@@ -226,6 +226,12 @@ export default new Router({
...
@@ -226,6 +226,12 @@ export default new Router({
name
:
'fxDistribution'
,
name
:
'fxDistribution'
,
component
:
resolve
=>
require
([
'@/components/UserMan/fxDistribution'
],
resolve
),
component
:
resolve
=>
require
([
'@/components/UserMan/fxDistribution'
],
resolve
),
},
},
//用户管理 分销商管理 粉象返佣
{
path
:
'/fxCommission'
,
name
:
'fxCommission'
,
component
:
resolve
=>
require
([
'@/components/UserMan/fxCommission'
],
resolve
),
},
// 用户管理 分销商管理 分销商等级
// 用户管理 分销商管理 分销商等级
{
{
path
:
'/distributorLevel'
,
path
:
'/distributorLevel'
,
...
...
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