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
91714f48
Commit
91714f48
authored
Jul 22, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用户列表
parent
61f0c127
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
index.vue
src/views/userManagement/userList/index.vue
+16
-7
No files found.
src/views/userManagement/userList/index.vue
View file @
91714f48
...
@@ -862,10 +862,19 @@
...
@@ -862,10 +862,19 @@
*/
*/
setMember
(
row
)
{
setMember
(
row
)
{
this
.
userMembershipInformation
=
{}
this
.
userMembershipInformation
=
{
memberLevel
:
undefined
,
validTime
:
''
,
buyCount
:
undefined
,
totalNumber
:
undefined
,
rentFreeDays
:
undefined
,
id
:
undefined
,
userId
:
row
.
userId
}
this
.
saveUserId
=
row
.
userId
this
.
saveUserId
=
row
.
userId
getUserMemberByUserId
(
row
.
userId
).
then
(
response
=>
{
getUserMemberByUserId
(
row
.
userId
).
then
(
response
=>
{
console
.
log
(
JSON
.
stringify
(
response
))
if
(
response
.
data
){
if
(
response
.
data
.
validTime
==
0
)
{
if
(
response
.
data
.
validTime
==
0
)
{
this
.
validityType
=
'永久'
this
.
validityType
=
'永久'
}
else
if
(
response
.
data
.
validTime
)
{
}
else
if
(
response
.
data
.
validTime
)
{
...
@@ -874,13 +883,13 @@
...
@@ -874,13 +883,13 @@
}
else
{
}
else
{
this
.
validityType
=
'无'
this
.
validityType
=
'无'
}
}
this
.
userMembershipInformation
=
response
.
data
this
.
validTime
=
response
.
data
.
validTime
// this.userMembershipInformation.memberLevel= this.userMembershipInformation.memberLevel?this.userMembershipInformation.memberLevel:undefined
this
.
userMembershipInformation
=
response
.
data
// this.userMembershipInformation.memberLevel= this.userMembershipInformation.memberLevel?this.userMembershipInformation.memberLevel:undefined
this
.
validTime
=
response
.
data
.
validTime
}
console
.
log
(
'this.userMembershipInformation:'
+
JSON
.
stringify
(
this
.
userMembershipInformation
))
this
.
setMemberArea
=
true
this
.
setMemberArea
=
true
})
})
console
.
log
(
'this.userMembershipInformation:'
+
JSON
.
stringify
(
this
.
userMembershipInformation
))
this
.
userMembershipInformation
.
userId
=
this
.
saveUserId
this
.
userMembershipInformation
.
userId
=
this
.
saveUserId
},
},
/**
/**
...
...
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