Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
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
youjj
cloud-platform-ui
Commits
0b7009ea
Commit
0b7009ea
authored
Nov 13, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员列表
parent
fc50c436
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
1 deletion
+51
-1
index.js
src/api/admin/member/index.js
+7
-0
index.vue
src/views/userManagement/userList/index.vue
+44
-1
No files found.
src/api/admin/member/index.js
View file @
0b7009ea
...
@@ -27,3 +27,10 @@ export function update(params) {
...
@@ -27,3 +27,10 @@ export function update(params) {
data
:
params
data
:
params
});
});
}
}
export
function
setBind
(
params
)
{
return
fetch
({
url
:
'api/admin/relation/admin/bind'
,
method
:
'post'
,
data
:
params
});
}
\ No newline at end of file
src/views/userManagement/userList/index.vue
View file @
0b7009ea
...
@@ -142,6 +142,9 @@
...
@@ -142,6 +142,9 @@
<!-- </el-table-column>-->
<!-- </el-table-column>-->
<el-table-column
align=
"center"
label=
"操作"
width=
"400"
fixed=
"right"
>
<el-table-column
align=
"center"
label=
"操作"
width=
"400"
fixed=
"right"
>
<
template
scope=
"scope"
>
<
template
scope=
"scope"
>
<el-button
size=
"small"
class=
"el-button el-button--text el-button--small"
v-show=
"!scope.row.nameOfSuperior || !scope.row.superiorMobileNumber"
@
click=
"setHigher(scope.row)"
>
设置上级
</el-button>
<el-button
size=
"small"
class=
"el-button el-button--text el-button--small"
@
click=
"viewDetails(scope.row)"
>
<el-button
size=
"small"
class=
"el-button el-button--text el-button--small"
@
click=
"viewDetails(scope.row)"
>
查看详情
查看详情
</el-button>
</el-button>
...
@@ -169,6 +172,18 @@
...
@@ -169,6 +172,18 @@
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<el-dialog
title=
"设置上级"
:visible
.
sync=
"setPop"
@
close=
'closeSet'
>
<!-- <el-form-item label="上级电话">
<el-input placeholder="请输入上级电话"></el-input>
</el-form-item> -->
<el-input
v-model=
"phone"
placeholder=
"请输入上级手机号"
style=
"width:300px"
></el-input>
<div
style=
"margin-top:20px"
>
<el-button
type=
"primary"
@
click=
"setHeighterBtn"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"setPop = false"
>
取消
</el-button>
</div>
</el-dialog>
<div
v-show=
"!listLoading"
class=
"pagination-container"
>
<div
v-show=
"!listLoading"
class=
"pagination-container"
>
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"listQuery.page"
:page-sizes=
"[10,20,30, 50]"
:page-size=
"listQuery.limit"
:current-page
.
sync=
"listQuery.page"
:page-sizes=
"[10,20,30, 50]"
:page-size=
"listQuery.limit"
...
@@ -549,7 +564,7 @@
...
@@ -549,7 +564,7 @@
getrewardSetting
getrewardSetting
}
from
'api/purseManage'
;
}
from
'api/purseManage'
;
import
{
formatDate
}
from
"../../../utils/dateFormattor"
;
import
{
formatDate
}
from
"../../../utils/dateFormattor"
;
import
{
getMembers
}
from
"src/api/admin/member/index"
import
{
getMembers
,
setBind
}
from
"src/api/admin/member/index"
import
tourOrderDetailModal
from
"src/views/userManagement/model/tourOrderDetailModal"
;
//旅游订单
import
tourOrderDetailModal
from
"src/views/userManagement/model/tourOrderDetailModal"
;
//旅游订单
import
rentOrderDetailModal
from
"src/views/userManagement/model/rentOrderDetailModal"
;
//租车订单详情
import
rentOrderDetailModal
from
"src/views/userManagement/model/rentOrderDetailModal"
;
//租车订单详情
import
memberOrderDetailModal
from
"src/views/userManagement/model/memberOrderDetailModal"
;
//会员订单详情
import
memberOrderDetailModal
from
"src/views/userManagement/model/memberOrderDetailModal"
;
//会员订单详情
...
@@ -563,6 +578,8 @@
...
@@ -563,6 +578,8 @@
},
},
data
()
{
data
()
{
return
{
return
{
setPop
:
false
,
activeId
:
''
,
//id
tourCostDetail
:
''
,
tourCostDetail
:
''
,
memberCostDetail
:
''
,
memberCostDetail
:
''
,
rentCostDetail
:
''
,
rentCostDetail
:
''
,
...
@@ -632,6 +649,7 @@
...
@@ -632,6 +649,7 @@
orderTotal
:
null
,
orderTotal
:
null
,
listLoading
:
true
,
listLoading
:
true
,
orderListLoading
:
true
,
orderListLoading
:
true
,
phone
:
null
,
//上级电话
newMemberObject
:
{
newMemberObject
:
{
phone
:
undefined
,
phone
:
undefined
,
memberLevel
:
undefined
,
memberLevel
:
undefined
,
...
@@ -882,6 +900,31 @@
...
@@ -882,6 +900,31 @@
},
},
methods
:
{
methods
:
{
//设置上级弹窗
setHigher
(
val
){
this
.
setPop
=
true
;
this
.
activeId
=
val
.
userId
;
},
//设置上级
setHeighterBtn
(){
if
(
!!
this
.
phone
)
{
setBind
({
"phone"
:
this
.
phone
,
"userId"
:
this
.
activeId
}).
then
(
data
=>
{
if
(
data
.
status
==
200
)
{
this
.
$message
.
success
(
'设置成功'
)
this
.
setPop
=
false
this
.
getList
();
}
else
{
this
.
$message
.
error
(
data
.
message
)
}
})
}
else
{
this
.
$message
.
error
(
'请输入上级手机号'
)
}
},
//设置上级弹窗关闭
closeSet
(){
this
.
phone
=
null
},
handleOrderDetail
(
row
)
{
handleOrderDetail
(
row
)
{
...
...
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