Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_REFACTORING
Project
Project
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
zhangyusheng
YX_IDENT_REFACTORING
Commits
91614877
Commit
91614877
authored
Nov 22, 2018
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
1b4297e6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
updateUser.html
src/main/resources/static/dialogs/updateUser.html
+3
-2
userList.js
src/main/resources/static/tpl/layout/userList/userList.js
+2
-2
No files found.
src/main/resources/static/dialogs/updateUser.html
View file @
91614877
...
@@ -14,11 +14,11 @@
...
@@ -14,11 +14,11 @@
<div
class=
"form-group pull-in clearfix"
ng-if=
"thisUser.username!='admin'"
>
<div
class=
"form-group pull-in clearfix"
ng-if=
"thisUser.username!='admin'"
>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<label>
角色
</label>
<label>
角色
</label>
<select
class=
"form-control w-md"
ng-model=
"roleId"
ng-options=
"role.id as role.role for role in activeRoleList"
></select>
<select
class=
"form-control w-md"
ng-model=
"
thisUser.
roleId"
ng-options=
"role.id as role.role for role in activeRoleList"
></select>
</div>
</div>
</div>
</div>
</form>
</form>
</div>
</div>
<div
class=
"ui-dialog-confirm"
>
<div
class=
"ui-dialog-confirm"
>
<button
type=
"submit"
class=
"btn btn-info"
ng-click=
"userUpdate(
roleId
)&&closeThisDialog()"
>
确认修改
</button>
<button
type=
"submit"
class=
"btn btn-info"
ng-click=
"userUpdate()&&closeThisDialog()"
>
确认修改
</button>
</div>
</div>
\ No newline at end of file
src/main/resources/static/tpl/layout/userList/userList.js
View file @
91614877
...
@@ -73,13 +73,13 @@ app.controller('userListCtrl', ['$scope','$rootScope', '$http', '$state', '$filt
...
@@ -73,13 +73,13 @@ app.controller('userListCtrl', ['$scope','$rootScope', '$http', '$state', '$filt
HttpService
.
getAllActiveRoleList
(
function
(
data
)
{
HttpService
.
getAllActiveRoleList
(
function
(
data
)
{
$scope
.
activeRoleList
=
data
;
$scope
.
activeRoleList
=
data
;
})
})
$scope
.
userUpdate
=
function
(
roleId
){
$scope
.
userUpdate
=
function
(){
var
jsonUser
=
{};
var
jsonUser
=
{};
jsonUser
.
username
=
$scope
.
thisUser
.
username
;
jsonUser
.
username
=
$scope
.
thisUser
.
username
;
jsonUser
.
name
=
$scope
.
thisUser
.
name
;
jsonUser
.
name
=
$scope
.
thisUser
.
name
;
jsonUser
.
id
=
$scope
.
thisUser
.
id
;
jsonUser
.
id
=
$scope
.
thisUser
.
id
;
jsonUser
.
oldRoleId
=
$scope
.
thisUser
.
roleList
[
0
].
id
;
jsonUser
.
oldRoleId
=
$scope
.
thisUser
.
roleList
[
0
].
id
;
jsonUser
.
roleId
=
roleId
;
jsonUser
.
roleId
=
$scope
.
thisUser
.
roleId
;
console
.
log
(
jsonUser
)
console
.
log
(
jsonUser
)
HttpService
.
updateUser
(
jsonUser
,
function
(
data
){
HttpService
.
updateUser
(
jsonUser
,
function
(
data
){
$scope
.
closeThisDialog
();
$scope
.
closeThisDialog
();
...
...
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