Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saasio
Project
Overview
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
reyun
saasio
Commits
4f9d3365
Commit
4f9d3365
authored
Mar 15, 2018
by
carrieyzzhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.minrow.com:reyun/saasio
parents
dd1e7b5e
348eb21b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
2 deletions
+29
-2
auth.js
src/main/websrc/js/manage/auth.js
+18
-1
auth.html
src/main/websrc/template/manage/auth.html
+11
-1
No files found.
src/main/websrc/js/manage/auth.js
View file @
4f9d3365
...
@@ -45,8 +45,21 @@
...
@@ -45,8 +45,21 @@
$scope
.
$on
(
'flipinfo'
,
function
(
e
,
msg
){
$scope
.
$on
(
'flipinfo'
,
function
(
e
,
msg
){
$scope
.
flipPage
=
msg
;
$scope
.
flipPage
=
msg
;
});
});
$scope
.
wantOn
=
false
;
$scope
.
doOpen
=
function
(
info
){
$scope
.
curOnId
=
info
.
id
;
if
(
info
.
isSpecialAccount
==
"1"
){
$scope
.
wantOn
=
true
;
ToolService
.
showAlp
();
}
else
{
$scope
.
onUser
(
$scope
.
curOnId
);
}
}
$scope
.
onUser
=
function
(
id
){
$scope
.
onUser
=
function
(
id
){
if
(
$scope
.
wantOn
){
$scope
.
closeOn
();
}
ToolService
.
showLoading
();
ToolService
.
showLoading
();
var
userPM
=
HttpService
.
putInfo
(
"mng/auth"
+
$scope
.
getSuburl
()
+
"/"
+
id
+
"/enable"
);
var
userPM
=
HttpService
.
putInfo
(
"mng/auth"
+
$scope
.
getSuburl
()
+
"/"
+
id
+
"/enable"
);
userPM
.
then
(
function
(
data
){
userPM
.
then
(
function
(
data
){
...
@@ -56,6 +69,10 @@
...
@@ -56,6 +69,10 @@
$scope
.
query
();
$scope
.
query
();
});
});
}
}
$scope
.
closeOn
=
function
(){
$scope
.
wantOn
=
false
;
ToolService
.
hideAlp
();
}
$scope
.
offUser
=
function
(
id
){
$scope
.
offUser
=
function
(
id
){
var
userPM
=
HttpService
.
putInfo
(
"mng/auth"
+
$scope
.
getSuburl
()
+
"/"
+
id
+
"/disable"
);
var
userPM
=
HttpService
.
putInfo
(
"mng/auth"
+
$scope
.
getSuburl
()
+
"/"
+
id
+
"/disable"
);
ToolService
.
showLoading
();
ToolService
.
showLoading
();
...
...
src/main/websrc/template/manage/auth.html
View file @
4f9d3365
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
已启用
<div
class=
"onOffBtn on"
ng-click=
"offUser(info.id)"
></div>
已启用
<div
class=
"onOffBtn on"
ng-click=
"offUser(info.id)"
></div>
</div>
</div>
<div
ng-if=
"info.status!=-3 && findName=='disable' && info.valid"
>
<div
ng-if=
"info.status!=-3 && findName=='disable' && info.valid"
>
已停用
<div
class=
"onOffBtn"
ng-click=
"
onUser(info.id
)"
></div>
已停用
<div
class=
"onOffBtn"
ng-click=
"
doOpen(info
)"
></div>
</div>
</div>
</td>
</td>
<td>
<td>
...
@@ -72,6 +72,16 @@
...
@@ -72,6 +72,16 @@
<div
class=
"btn8"
ng-click=
"doDelete()"
>
确定
</div>
<div
class=
"btn8"
ng-click=
"doDelete()"
>
确定
</div>
</div>
</div>
</div>
</div>
<div
class=
"openTipWin"
ng-show=
"wantOn"
>
<div
class=
"closeGray"
ng-click=
"closeOn()"
></div>
<div
class=
"tipCont"
>
由于系统权限升级,不支持自定义账号权限,该账号启用后将会拥有对应产品的子应用管理员权限,请谨慎操作。是否确定启用?
</div>
<div
class=
"openBtnGroup clearfix"
>
<div
class=
"btn8 mr20"
ng-click=
"closeOn()"
>
取消
</div>
<div
class=
"btn8"
ng-click=
"onUser(curOnId)"
>
确定
</div>
</div>
</div>
<div
class=
"leftTipsSlider"
ng-class=
"{'sliderSw':isdetail}"
stop-event
>
<div
class=
"leftTipsSlider"
ng-class=
"{'sliderSw':isdetail}"
stop-event
>
<div
class=
"slideHeader"
>
<div
class=
"slideHeader"
>
操作记录
操作记录
...
...
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