Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
Overview
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
office
haoban-4
Commits
20a1c75e
Commit
20a1c75e
authored
Oct 22, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改工作台
parent
f58dde25
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
chunk-2fbe3eb2.f4b7a71d.css
dist/css/chunk-2fbe3eb2.f4b7a71d.css
+2
-2
index.html
dist/index.html
+0
-0
app.d0c91133.js
dist/js/app.d0c91133.js
+0
-0
chunk-2fbe3eb2.cc294aee.js
dist/js/chunk-2fbe3eb2.cc294aee.js
+2
-2
app-auth.vue
src/views/apps/app-auth.vue
+2
-2
No files found.
dist/css/chunk-
6e31a8a0.e96bb264
.css
→
dist/css/chunk-
2fbe3eb2.f4b7a71d
.css
View file @
20a1c75e
.line-h-22
[
data-v-68b1d33a
]
{
line-height
:
22px
}
.line-h-20
[
data-v-68b1d33a
]
{
line-height
:
20px
}
.app-auth-body
[
data-v-68b1d33a
]
{
width
:
100%
}
.app-auth-body
.app-auth-head
[
data-v-68b1d33a
]
{
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
-webkit-box-pack
:
start
;
-ms-flex-pack
:
start
;
justify-content
:
flex-start
;
text-align
:
left
;
padding
:
0
20px
;
height
:
46px
;
color
:
#fff
;
background-color
:
#fff
;
-webkit-box-shadow
:
0
4px
6px
0
rgba
(
221
,
227
,
237
,
.29
);
box-shadow
:
0
4px
6px
0
rgba
(
221
,
227
,
237
,
.29
)}
.app-auth-body
.app-auth-head
img
[
data-v-68b1d33a
]
{
width
:
22px
}
.app-auth-body
.app-auth-head
.web-name
[
data-v-68b1d33a
]
{
padding-left
:
10px
;
font-size
:
16px
;
font-weight
:
600
;
color
:
#303133
;
line-height
:
22px
;
background
:
-webkit-gradient
(
linear
,
right
top
,
left
top
,
from
(
#5b4adb
),
to
(
#2da8ff
));
background
:
linear-gradient
(
270deg
,
#5b4adb
,
#2da8ff
);
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
}
.app-auth-body
.app-auth-info
[
data-v-68b1d33a
]
{
width
:
100%
}
.app-auth-body
.app-auth-info
.app-info-body
[
data-v-68b1d33a
]
{
width
:
498px
;
min-height
:
374px
;
margin
:
50px
auto
;
padding
:
20px
30px
;
background
:
#fff
;
-webkit-box-shadow
:
0
5px
9px
0
hsla
(
0
,
0%
,
87.1%
,
.28
);
box-shadow
:
0
5px
9px
0
hsla
(
0
,
0%
,
87.1%
,
.28
);
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
}
.app-auth-body
.app-auth-info
.app-info-body
.app-info-title
[
data-v-68b1d33a
]
{
font-size
:
16px
;
font-weight
:
600
;
color
:
#303133
;
line-height
:
22px
}
.app-auth-body
.app-auth-info
.app-info-body
.app-info-detail
[
data-v-68b1d33a
]
{
min-height
:
227px
;
margin-top
:
25px
;
padding
:
15px
20px
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
border
:
1px
solid
#e4e7ed
}
.app-auth-body
.app-auth-info
.app-info-body
.app-info-detail
.app-top
[
data-v-68b1d33a
]
{
border-bottom
:
1px
solid
#ebecf0
;
padding-bottom
:
15px
}
.app-auth-body
.app-auth-info
.app-info-body
.app-info-detail
.app-img
[
data-v-68b1d33a
]
{
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
-webkit-box-pack
:
center
;
-ms-flex-pack
:
center
;
justify-content
:
center
;
width
:
42px
;
height
:
42px
;
max-width
:
42px
;
max-height
:
42px
;
border-radius
:
6px
}
.app-auth-body
.app-auth-info
.app-info-body
.app-info-detail
.app-img
img
[
data-v-68b1d33a
]
{
max-width
:
42px
;
max-height
:
42px
;
border-radius
:
6px
}
.app-auth-body
.app-auth-info
.app-info-body
.app-info-detail
.app-name
[
data-v-68b1d33a
]
{
font-weight
:
600
}
.app-auth-body
.app-auth-info
.app-info-body
.app-info-detail
.auth-rights
.auth-rights-title
[
data-v-68b1d33a
]
{
padding
:
10px
0
}
.app-auth-body
.app-auth-info
.app-info-body
.app-info-detail
.auth-rights
ul
li
[
data-v-68b1d33a
]
{
line-height
:
20px
;
margin-bottom
:
5px
}
.app-auth-body
.app-info-btn
[
data-v-68b1d33a
]
{
margin-top
:
30px
;
text-align
:
right
}
\ No newline at end of file
.line-h-22
[
data-v-63ba46aa
]
{
line-height
:
22px
}
.line-h-20
[
data-v-63ba46aa
]
{
line-height
:
20px
}
.app-auth-body
[
data-v-63ba46aa
]
{
width
:
100%
}
.app-auth-body
.app-auth-head
[
data-v-63ba46aa
]
{
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
-webkit-box-pack
:
start
;
-ms-flex-pack
:
start
;
justify-content
:
flex-start
;
text-align
:
left
;
padding
:
0
20px
;
height
:
46px
;
color
:
#fff
;
background-color
:
#fff
;
-webkit-box-shadow
:
0
4px
6px
0
rgba
(
221
,
227
,
237
,
.29
);
box-shadow
:
0
4px
6px
0
rgba
(
221
,
227
,
237
,
.29
)}
.app-auth-body
.app-auth-head
img
[
data-v-63ba46aa
]
{
width
:
22px
}
.app-auth-body
.app-auth-head
.web-name
[
data-v-63ba46aa
]
{
padding-left
:
10px
;
font-size
:
16px
;
font-weight
:
600
;
color
:
#303133
;
line-height
:
22px
;
background
:
-webkit-gradient
(
linear
,
right
top
,
left
top
,
from
(
#5b4adb
),
to
(
#2da8ff
));
background
:
linear-gradient
(
270deg
,
#5b4adb
,
#2da8ff
);
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
}
.app-auth-body
.app-auth-info
[
data-v-63ba46aa
]
{
width
:
100%
}
.app-auth-body
.app-auth-info
.app-info-body
[
data-v-63ba46aa
]
{
width
:
498px
;
min-height
:
374px
;
margin
:
50px
auto
;
padding
:
20px
30px
;
background
:
#fff
;
-webkit-box-shadow
:
0
5px
9px
0
hsla
(
0
,
0%
,
87.1%
,
.28
);
box-shadow
:
0
5px
9px
0
hsla
(
0
,
0%
,
87.1%
,
.28
);
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
}
.app-auth-body
.app-auth-info
.app-info-body
.app-info-title
[
data-v-63ba46aa
]
{
font-size
:
16px
;
font-weight
:
600
;
color
:
#303133
;
line-height
:
22px
}
.app-auth-body
.app-auth-info
.app-info-body
.app-info-detail
[
data-v-63ba46aa
]
{
min-height
:
227px
;
margin-top
:
25px
;
padding
:
15px
20px
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
border
:
1px
solid
#e4e7ed
}
.app-auth-body
.app-auth-info
.app-info-body
.app-info-detail
.app-top
[
data-v-63ba46aa
]
{
border-bottom
:
1px
solid
#ebecf0
;
padding-bottom
:
15px
}
.app-auth-body
.app-auth-info
.app-info-body
.app-info-detail
.app-img
[
data-v-63ba46aa
]
{
display
:
-webkit-box
;
display
:
-ms-flexbox
;
display
:
flex
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
-webkit-box-pack
:
center
;
-ms-flex-pack
:
center
;
justify-content
:
center
;
width
:
42px
;
height
:
42px
;
max-width
:
42px
;
max-height
:
42px
;
border-radius
:
6px
}
.app-auth-body
.app-auth-info
.app-info-body
.app-info-detail
.app-img
img
[
data-v-63ba46aa
]
{
max-width
:
42px
;
max-height
:
42px
;
border-radius
:
6px
}
.app-auth-body
.app-auth-info
.app-info-body
.app-info-detail
.app-name
[
data-v-63ba46aa
]
{
font-weight
:
600
}
.app-auth-body
.app-auth-info
.app-info-body
.app-info-detail
.auth-rights
.auth-rights-title
[
data-v-63ba46aa
]
{
padding
:
10px
0
}
.app-auth-body
.app-auth-info
.app-info-body
.app-info-detail
.auth-rights
ul
li
[
data-v-63ba46aa
]
{
line-height
:
20px
;
margin-bottom
:
5px
}
.app-auth-body
.app-info-btn
[
data-v-63ba46aa
]
{
margin-top
:
30px
;
text-align
:
right
}
\ No newline at end of file
dist/index.html
View file @
20a1c75e
This diff is collapsed.
Click to expand it.
dist/js/app.
999247f6
.js
→
dist/js/app.
d0c91133
.js
View file @
20a1c75e
This diff is collapsed.
Click to expand it.
dist/js/chunk-
6e31a8a0.d46339b
e.js
→
dist/js/chunk-
2fbe3eb2.cc294ae
e.js
View file @
20a1c75e
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-6e31a8a0"
],{
"415e"
:
function
(
t
,
a
,
i
){
"use strict"
;
var
n
=
i
(
"71f6"
),
o
=
{
getAuthAppDetail
:
"/business/authorize/get-application-info"
,
getAppAuthInfo
:
"/business/authorize/right-list"
,
postAuthRights
:
"/oauth/authorize"
};
a
[
"a"
]
=
Object
(
n
[
"a"
])(
o
,
"/hb-application-web"
)},
"6b76"
:
function
(
t
,
a
,
i
){},
"71f6"
:
function
(
t
,
a
,
i
){
"use strict"
;
i
.
d
(
a
,
"a"
,(
function
(){
return
o
}));
i
(
"ac6a"
),
i
(
"456d"
);
var
n
=
i
(
"b775"
);
function
o
(
t
,
a
){
t
=
t
||
{};
var
i
=
Object
.
keys
(
t
);
return
i
.
forEach
((
function
(
i
){
var
o
=
t
[
i
];
"string"
===
typeof
o
&&
(
o
=
{
url
:
o
}),
o
.
url
=
""
.
concat
(
a
).
concat
(
o
.
url
),
t
[
i
]
=
function
(
t
,
a
){
return
Object
(
n
[
"a"
])(
o
,
t
,
a
)}})),
t
}},
af9e
:
function
(
t
,
a
,
i
){
"use strict"
;
var
n
=
i
(
"6b76"
),
o
=
i
.
n
(
n
);
o
.
a
},
c686
:
function
(
t
,
a
,
i
){
"use strict"
;
i
.
r
(
a
);
var
n
=
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
n
=
t
.
_self
.
_c
||
a
;
return
n
(
"div"
,{
staticClass
:
"app-auth-body"
},[
n
(
"div"
,{
staticClass
:
"app-auth-head cursor-pointer"
,
on
:{
click
:
t
.
toHome
}},[
n
(
"img"
,{
attrs
:{
src
:
i
(
"cf05"
),
alt
:
"logo"
}}),
n
(
"span"
,{
staticClass
:
"web-name"
},[
t
.
_v
(
"好办管理平台"
)])]),
n
(
"div"
,{
staticClass
:
"app-auth-info"
},[
n
(
"div"
,{
staticClass
:
"app-info-body"
},[
n
(
"div"
,{
staticClass
:
"app-info-title"
},[
t
.
_v
(
"应用授权"
)]),
n
(
"div"
,{
staticClass
:
"app-info-detail"
},[
n
(
"div"
,{
staticClass
:
"flex app-top"
},[
n
(
"div"
,{
staticClass
:
"app-img"
},[
n
(
"img"
,{
attrs
:{
src
:
t
.
appInfo
.
iconUrl
,
alt
:
"app"
}})]),
n
(
"div"
,{
staticClass
:
"flex flex-column p-l-12 flex-space-between"
},[
n
(
"div"
,{
staticClass
:
"font-14 color-303133 line-h-22"
},[
t
.
_v
(
t
.
_s
(
t
.
appInfo
.
name
||
"--"
))]),
n
(
"div"
,{
staticClass
:
"font-12 color-606266 line-h-20"
},[
t
.
_v
(
t
.
_s
(
t
.
appInfo
.
introduction
||
"--"
))])])]),
n
(
"div"
,{
staticClass
:
"auth-rights"
},[
n
(
"div"
,{
staticClass
:
"auth-rights-title font-14 color-909399"
},[
t
.
_v
(
"授权后将允许"
+
t
.
_s
(
t
.
appInfo
.
name
||
""
)
+
"应用进行以下权限操作"
)]),
n
(
"div"
,[
n
(
"ul"
,
t
.
_l
(
t
.
rightsList
,(
function
(
a
,
i
){
return
n
(
"li"
,{
key
:
i
+
"right"
,
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
t
.
_s
(
i
+
1
)
+
". "
+
t
.
_s
(
a
.
rightsName
))])})),
0
)])])]),
n
(
"form"
,{
attrs
:{
action
:
"/application-auth-center/oauth/authorize"
,
method
:
"post"
}},[
n
(
"input"
,{
staticStyle
:{
display
:
"none"
},
attrs
:{
type
:
"text"
,
name
:
"appId"
},
domProps
:{
value
:
t
.
appInfo
.
appId
}}),
n
(
"input"
,{
staticStyle
:{
display
:
"none"
},
attrs
:{
type
:
"text"
,
name
:
"authorize"
},
domProps
:{
value
:
t
.
appInfo
.
authorize
}}),
n
(
"input"
,{
staticStyle
:{
display
:
"none"
},
attrs
:{
type
:
"text"
,
name
:
"user_oauth_approval"
},
domProps
:{
value
:
t
.
appInfo
.
user_oauth_approval
}}),
n
(
"input"
,{
staticStyle
:{
display
:
"none"
},
attrs
:{
type
:
"text"
,
name
:
"rights"
},
domProps
:{
value
:
t
.
appInfo
.
rights
}}),
n
(
"div"
,{
staticClass
:
"app-info-btn"
},[
n
(
"el-checkbox"
,{
staticClass
:
"p-r-10"
,
model
:{
value
:
t
.
checkAuth
,
callback
:
function
(
a
){
t
.
checkAuth
=
a
},
expression
:
"checkAuth"
}}),
n
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
t
.
toProtocol
}},[
t
.
_v
(
"授权同意《达摩授权服务协议》"
)]),
n
(
"button"
,{
ref
:
"submitBtn"
,
class
:[
"el-button el-button--primary"
,
t
.
checkAuth
?
""
:
"is-disabled"
],
attrs
:{
id
:
"btn"
,
disabled
:
!
t
.
checkAuth
,
type
:
"submit"
}},[
t
.
_v
(
"
\
n 授权
\
n "
)])],
1
)])])])])},
o
=
[],
s
=
i
(
"415e"
),
e
=
s
[
"a"
].
getAuthAppDetail
,
p
=
s
[
"a"
].
getAppAuthInfo
,
c
=
{
name
:
"AppAuth"
,
components
:{},
data
:
function
(){
return
{
appInfo
:{
appId
:
""
,
authorize
:
"authorize"
,
user_oauth_approval
:
!
0
,
name
:
""
,
introduction
:
""
,
iconUrl
:
""
,
rights
:
"[]"
},
checkAuth
:
!
1
,
rightsList
:[]}},
mounted
:
function
(){
var
t
=
this
;
t
.
getAppData
()},
methods
:{
toHome
:
function
(){
var
t
=
this
;
t
.
$router
.
push
(
"/app-list"
)},
toProtocol
:
function
(){
window
.
open
(
"/haoban-4/#/gic-protocol"
,
"_blank"
,
"noopener"
)},
toAuthRights
:
function
(){
var
t
=
this
;
t
.
$router
.
push
(
"/"
)},
getAppData
:
function
(){
var
t
=
this
,
a
=
{
appId
:
t
.
$route
.
query
.
client_id
};
e
(
a
).
then
((
function
(
a
){
t
.
appInfo
=
Object
.
assign
(
t
.
appInfo
,
a
.
result
||
{}),
t
.
getAuthInfo
()})).
catch
((
function
(
t
){}))},
getAuthInfo
:
function
(){
var
t
=
this
,
a
=
{
appId
:
t
.
$route
.
query
.
appId
};
p
(
a
).
then
((
function
(
a
){
t
.
rightsList
=
a
.
result
||
[],
t
.
appInfo
.
rights
=
JSON
.
stringify
(
a
.
result
)
||
"[]"
})).
catch
((
function
(
t
){}))}},
watch
:{}},
u
=
c
,
r
=
(
i
(
"af9e"
),
i
(
"2877"
)),
l
=
Object
(
r
[
"a"
])(
u
,
n
,
o
,
!
1
,
null
,
"68b1d33a"
,
null
);
a
[
"default"
]
=
l
.
exports
},
cf05
:
function
(
t
,
a
,
i
){
t
.
exports
=
i
.
p
+
"img/logo.861ef5c7.png"
}}]);
\ No newline at end of file
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-2fbe3eb2"
],{
"415e"
:
function
(
t
,
a
,
i
){
"use strict"
;
var
n
=
i
(
"71f6"
),
o
=
{
getAuthAppDetail
:
"/business/authorize/get-application-info"
,
getAppAuthInfo
:
"/business/authorize/right-list"
,
postAuthRights
:
"/oauth/authorize"
};
a
[
"a"
]
=
Object
(
n
[
"a"
])(
o
,
"/hb-application-web"
)},
"71f6"
:
function
(
t
,
a
,
i
){
"use strict"
;
i
.
d
(
a
,
"a"
,(
function
(){
return
o
}));
i
(
"ac6a"
),
i
(
"456d"
);
var
n
=
i
(
"b775"
);
function
o
(
t
,
a
){
t
=
t
||
{};
var
i
=
Object
.
keys
(
t
);
return
i
.
forEach
((
function
(
i
){
var
o
=
t
[
i
];
"string"
===
typeof
o
&&
(
o
=
{
url
:
o
}),
o
.
url
=
""
.
concat
(
a
).
concat
(
o
.
url
),
t
[
i
]
=
function
(
t
,
a
){
return
Object
(
n
[
"a"
])(
o
,
t
,
a
)}})),
t
}},
"752e"
:
function
(
t
,
a
,
i
){},
a4c9
:
function
(
t
,
a
,
i
){
"use strict"
;
var
n
=
i
(
"752e"
),
o
=
i
.
n
(
n
);
o
.
a
},
c686
:
function
(
t
,
a
,
i
){
"use strict"
;
i
.
r
(
a
);
var
n
=
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
n
=
t
.
_self
.
_c
||
a
;
return
n
(
"div"
,{
staticClass
:
"app-auth-body"
},[
n
(
"div"
,{
staticClass
:
"app-auth-head cursor-pointer"
,
on
:{
click
:
t
.
toHome
}},[
n
(
"img"
,{
attrs
:{
src
:
i
(
"cf05"
),
alt
:
"logo"
}}),
n
(
"span"
,{
staticClass
:
"web-name"
},[
t
.
_v
(
"好办管理平台"
)])]),
n
(
"div"
,{
staticClass
:
"app-auth-info"
},[
n
(
"div"
,{
staticClass
:
"app-info-body"
},[
n
(
"div"
,{
staticClass
:
"app-info-title"
},[
t
.
_v
(
"应用授权"
)]),
n
(
"div"
,{
staticClass
:
"app-info-detail"
},[
n
(
"div"
,{
staticClass
:
"flex app-top"
},[
n
(
"div"
,{
staticClass
:
"app-img"
},[
n
(
"img"
,{
attrs
:{
src
:
t
.
appInfo
.
iconUrl
,
alt
:
"app"
}})]),
n
(
"div"
,{
staticClass
:
"flex flex-column p-l-12 flex-space-between"
},[
n
(
"div"
,{
staticClass
:
"font-14 color-303133 line-h-22"
},[
t
.
_v
(
t
.
_s
(
t
.
appInfo
.
name
||
"--"
))]),
n
(
"div"
,{
staticClass
:
"font-12 color-606266 line-h-20"
},[
t
.
_v
(
t
.
_s
(
t
.
appInfo
.
introduction
||
"--"
))])])]),
n
(
"div"
,{
staticClass
:
"auth-rights"
},[
n
(
"div"
,{
staticClass
:
"auth-rights-title font-14 color-909399"
},[
t
.
_v
(
"授权后将允许"
+
t
.
_s
(
t
.
appInfo
.
name
||
""
)
+
"应用进行以下权限操作"
)]),
n
(
"div"
,[
n
(
"ul"
,
t
.
_l
(
t
.
rightsList
,(
function
(
a
,
i
){
return
n
(
"li"
,{
key
:
i
+
"right"
,
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
t
.
_s
(
i
+
1
)
+
". "
+
t
.
_s
(
a
.
rightsName
))])})),
0
)])])]),
n
(
"form"
,{
attrs
:{
action
:
"/application-auth-center/oauth/authorize"
,
method
:
"post"
}},[
n
(
"input"
,{
staticStyle
:{
display
:
"none"
},
attrs
:{
type
:
"text"
,
name
:
"appId"
},
domProps
:{
value
:
t
.
appInfo
.
appId
}}),
n
(
"input"
,{
staticStyle
:{
display
:
"none"
},
attrs
:{
type
:
"text"
,
name
:
"authorize"
},
domProps
:{
value
:
t
.
appInfo
.
authorize
}}),
n
(
"input"
,{
staticStyle
:{
display
:
"none"
},
attrs
:{
type
:
"text"
,
name
:
"user_oauth_approval"
},
domProps
:{
value
:
t
.
appInfo
.
user_oauth_approval
}}),
n
(
"input"
,{
staticStyle
:{
display
:
"none"
},
attrs
:{
type
:
"text"
,
name
:
"rights"
},
domProps
:{
value
:
t
.
appInfo
.
rights
}}),
n
(
"div"
,{
staticClass
:
"app-info-btn"
},[
n
(
"el-checkbox"
,{
staticClass
:
"p-r-10"
,
model
:{
value
:
t
.
checkAuth
,
callback
:
function
(
a
){
t
.
checkAuth
=
a
},
expression
:
"checkAuth"
}}),
n
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
t
.
toProtocol
}},[
t
.
_v
(
"授权同意《达摩授权服务协议》"
)]),
n
(
"button"
,{
ref
:
"submitBtn"
,
class
:[
"el-button el-button--primary"
,
t
.
checkAuth
?
""
:
"is-disabled"
],
attrs
:{
id
:
"btn"
,
disabled
:
!
t
.
checkAuth
,
type
:
"submit"
}},[
t
.
_v
(
"
\
n 授权
\
n "
)])],
1
)])])])])},
o
=
[],
e
=
i
(
"415e"
),
s
=
e
[
"a"
].
getAuthAppDetail
,
p
=
e
[
"a"
].
getAppAuthInfo
,
c
=
{
name
:
"AppAuth"
,
components
:{},
data
:
function
(){
return
{
appInfo
:{
appId
:
""
,
authorize
:
"authorize"
,
user_oauth_approval
:
!
0
,
name
:
""
,
introduction
:
""
,
iconUrl
:
""
,
rights
:
"[]"
},
checkAuth
:
!
1
,
rightsList
:[]}},
mounted
:
function
(){
var
t
=
this
;
t
.
getAppData
()},
methods
:{
toHome
:
function
(){
var
t
=
this
;
t
.
$router
.
push
(
"/app-list"
)},
toProtocol
:
function
(){
window
.
open
(
"/haoban-4/#/gic-protocol"
,
"_blank"
,
"noopener"
)},
toAuthRights
:
function
(){
var
t
=
this
;
t
.
$router
.
push
(
"/"
)},
getAppData
:
function
(){
var
t
=
this
,
a
=
{
appId
:
t
.
$route
.
query
.
client_id
};
s
(
a
).
then
((
function
(
a
){
t
.
appInfo
=
Object
.
assign
(
t
.
appInfo
,
a
.
result
||
{}),
t
.
getAuthInfo
()})).
catch
((
function
(
t
){}))},
getAuthInfo
:
function
(){
var
t
=
this
,
a
=
{
appId
:
t
.
$route
.
query
.
client_id
};
p
(
a
).
then
((
function
(
a
){
t
.
rightsList
=
a
.
result
||
[],
t
.
appInfo
.
rights
=
JSON
.
stringify
(
a
.
result
)
||
"[]"
})).
catch
((
function
(
t
){}))}},
watch
:{}},
u
=
c
,
r
=
(
i
(
"a4c9"
),
i
(
"2877"
)),
l
=
Object
(
r
[
"a"
])(
u
,
n
,
o
,
!
1
,
null
,
"63ba46aa"
,
null
);
a
[
"default"
]
=
l
.
exports
},
cf05
:
function
(
t
,
a
,
i
){
t
.
exports
=
i
.
p
+
"img/logo.861ef5c7.png"
}}]);
\ No newline at end of file
src/views/apps/app-auth.vue
View file @
20a1c75e
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-10-16 10:18:02
* @LastEditors: 无尘
* @LastEditTime: 2020-10-22 15:3
4:1
5
* @LastEditTime: 2020-10-22 15:3
5:5
5
-->
<
template
>
<div
class=
"app-auth-body"
>
...
...
@@ -147,7 +147,7 @@ export default {
getAuthInfo
()
{
const
that
=
this
;
const
param
=
{
appId
:
that
.
$route
.
query
.
appI
d
appId
:
that
.
$route
.
query
.
client_i
d
};
getAppAuthInfo
(
param
)
.
then
(
res
=>
{
...
...
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