Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
a95805fa
Commit
a95805fa
authored
Jun 12, 2020
by
张俊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zj' into dev
parents
a6547379
d468624d
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
169 additions
and
79 deletions
+169
-79
src/components/service-header.vue
src/components/service-header.vue
+7
-1
src/components/upload_file.vue
src/components/upload_file.vue
+7
-0
src/pages/authority/organizationdetail.vue
src/pages/authority/organizationdetail.vue
+1
-1
src/pages/authority/organizationedit.vue
src/pages/authority/organizationedit.vue
+1
-7
src/pages/authority/organizationuser.vue
src/pages/authority/organizationuser.vue
+3
-3
src/pages/workbench/fwgl/approval_service_detail.vue
src/pages/workbench/fwgl/approval_service_detail.vue
+30
-3
src/pages/workbench/fwgl/serviceDetail.vue
src/pages/workbench/fwgl/serviceDetail.vue
+29
-8
src/pages/workbench/fwgl/serviceEdit.vue
src/pages/workbench/fwgl/serviceEdit.vue
+30
-9
src/pages/workbench/workPlace.vue
src/pages/workbench/workPlace.vue
+60
-46
src/pages/workbench/yygl/app_edit.vue
src/pages/workbench/yygl/app_edit.vue
+1
-1
No files found.
src/components/service-header.vue
View file @
a95805fa
<
template
>
<div
class=
"info_logo"
>
<div
class=
"logo"
:style=
"
{backgroundImage:'url('+data.url+')'}">
<div
class=
"logo"
>
<img
:src=
"data.url"
alt=
""
>
</div>
<div
class=
"info"
>
<p
class=
"info_title"
>
...
...
@@ -82,10 +83,15 @@ export default {
}
.logo
{
float
:
left
;
overflow
:
hidden
;
width
:
144px
;
height
:
144px
;
margin-right
:
13px
;
background-size
:
cover
;
text-align
:
center
;
}
.logo
img
{
width
:
100%
;
}
.info
{
float
:
left
;
...
...
src/components/upload_file.vue
View file @
a95805fa
...
...
@@ -5,6 +5,7 @@
</div>
<div
v-else
>
<el-upload
class=
"eeupload"
action=
"/apaas/static/image/upload"
:file-list=
"fileArray"
:list-type=
"type=='picture'?'picture-card':''"
...
...
@@ -173,6 +174,12 @@ export default {
this
.
hideUpload
=
fileList
.
length
>=
this
.
max
;
this
.
$emit
(
"
getNewList
"
,
this
.
fileArray
);
},
remove_pic
(){
document
.
querySelector
(
'
.eeupload
'
).
querySelector
(
'
.el-upload-list__item-delete
'
).
click
();
setTimeout
(()
=>
{
document
.
querySelector
(
'
.eeupload
'
).
querySelector
(
'
.el-upload
'
).
click
();
},
1000
)
},
getNewUrl
(
val
)
{
let
fileObj
=
{
name
:
val
,
url
:
val
};
this
.
$emit
(
"
getNewList
"
,
fileObj
);
...
...
src/pages/authority/organizationdetail.vue
View file @
a95805fa
...
...
@@ -3,7 +3,7 @@
<p
class=
"now_page_title"
>
权限管理 / 组织用户 /
<span>
用户管理
</span></p>
<div
class=
"info_contain"
>
<service-header
v-if=
"service_header_arr.
url
"
v-if=
"service_header_arr.
name
"
:data=
"service_header_arr"
></service-header>
</div>
...
...
src/pages/authority/organizationedit.vue
View file @
a95805fa
...
...
@@ -141,12 +141,6 @@ export default {
watch
:
{},
computed
:
{},
created
()
{
this
.
now_user
=
this
.
$store
.
state
.
role
getRole
().
then
(
data
=>
{
this
.
now_user
=
data
;
this
.
$store
.
commit
(
'
rolefun
'
,
data
)
this
.
getOriginArr
()
});
this
.
get_now_page
()
},
mounted
()
{},
...
...
@@ -254,7 +248,7 @@ export default {
});
},
removepic
(){
this
.
$refs
.
servicepic
.
handleRemove
()
this
.
$refs
.
servicepic
.
remove_pic
()
},
onSubmit
(
formName
)
{
console
.
log
(
'
submit!
'
);
...
...
src/pages/authority/organizationuser.vue
View file @
a95805fa
...
...
@@ -250,7 +250,7 @@ export default {
type
:
data
.
is_admin
,
systemname
:
data
.
system_name
,
contact
:
data
.
link_man
,
phone
:
data
.
phone
,
phone
:
data
.
phone
+
''
,
email
:
data
.
email
,
origin
:
data
.
department_id
,
able
:
data
.
state
,
...
...
@@ -294,7 +294,7 @@ export default {
"
user_id
"
:
this
.
form
.
account
,
// 用户名
"
user_name
"
:
this
.
form
.
nickname
,
// 昵称
"
system_name
"
:
this
.
form
.
systemname
,
//系统名称
"
phone
"
:
this
.
form
.
phone
,
// 电话号
"
phone
"
:
this
.
form
.
phone
+
''
,
// 电话号
"
email
"
:
this
.
form
.
email
,
// 邮箱
"
department_id
"
:
this
.
form
.
origin
,
// 组织id
"
is_admin
"
:
this
.
form
.
type
,
...
...
@@ -320,7 +320,7 @@ export default {
"
user_id
"
:
this
.
form
.
account
,
// 用户名
"
user_name
"
:
this
.
form
.
nickname
,
// 昵称
"
system_name
"
:
this
.
form
.
systemname
,
//系统名称
"
phone
"
:
this
.
form
.
phone
,
// 电话号
"
phone
"
:
this
.
form
.
phone
+
''
,
// 电话号
"
email
"
:
this
.
form
.
email
,
// 邮箱
"
department_id
"
:
this
.
form
.
origin
,
// 组织id
"
is_admin
"
:
this
.
form
.
type
,
...
...
src/pages/workbench/fwgl/approval_service_detail.vue
View file @
a95805fa
...
...
@@ -56,6 +56,7 @@ import serviceHeader from "@/components/service-header";
import
infoList
from
"
@/components/infoList
"
;
import
tableUm
from
"
@/components/table/table-um
"
;
import
processCard
from
"
@/components/process-card
"
;
import
{
mapGetters
,
mapState
}
from
'
vuex
'
export
default
{
props
:
{},
components
:
{
...
...
@@ -72,7 +73,7 @@ export default {
},
id
:
''
,
zd_table_arr
:[],
now_user
:
1
,
//0:普通用户,1:组织管理员,2:超级管理员
now_user
:
0
,
//0:普通用户,1:组织管理员,2:超级管理员
rules
:{
result
:[
{
required
:
true
,
message
:
'
请选择意见
'
,
trigger
:
'
change
'
},
...
...
@@ -155,7 +156,7 @@ export default {
align
:
"
left
"
}
],
color_arr
:[
'
#e15260
'
,
'
"#ef9433
'
,
'
#515fe7
'
],
service_header_arr
:
{
name
:
""
,
first
:
[
...
...
@@ -257,12 +258,37 @@ export default {
};
},
watch
:
{},
computed
:
{},
computed
:
{
...
mapGetters
([
'
level
'
,
]),
...
mapState
([
'
userInfo
'
]),
},
created
()
{
console
.
log
(
this
.
level
);
if
(
this
.
userInfo
){
this
.
now_user
=
this
.
level
}
else
{
this
.
getCurrentUser
()
}
this
.
get_service_info
()
},
mounted
()
{},
methods
:
{
getCurrentUser
()
{
this
.
$api
.
user
.
getNowUser
().
then
(({
data
})
=>
{
if
(
data
.
success
==
1
)
{
console
.
log
(
"
--- user info ---
"
);
console
.
log
(
data
.
data
);
console
.
log
(
"
--- user info ---
"
);
this
.
$store
.
commit
(
"
userInfofun
"
,
data
.
data
);
this
.
now_user
=
this
.
level
console
.
log
(
this
.
level
);
}
else
{
console
.
log
(
data
.
errMsg
);
}
});
},
onSubmit
(
formName
){
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
...
...
@@ -303,6 +329,7 @@ export default {
this
.
$set
(
this
.
service_header_arr
[
'
first
'
][
0
],
'
text
'
,
data
.
data_service_type1_name
);
this
.
$set
(
this
.
service_header_arr
[
'
first
'
][
1
],
'
text
'
,
data
.
data_service_type2_name
);
this
.
$set
(
this
.
service_header_arr
[
'
first
'
][
2
],
'
text
'
,
data
.
service_apply_info
.
approval_status
==
0
?
'
待审批
'
:
data
.
service_apply_info
.
approval_status
==
1
?
'
审批通过
'
:
'
审批未通过
'
);
this
.
$set
(
this
.
service_header_arr
[
'
first
'
][
2
],
'
color
'
,
this
.
color_arr
[
data
.
service_apply_info
.
approval_status
+
1
]);
this
.
$set
(
this
.
service_header_arr
[
'
second
'
][
0
],
"
text
"
,
data
.
service_apply_info
.
apply_time
.
replace
(
'
T
'
,
"
"
).
split
(
'
+
'
)[
0
]);
this
.
$set
(
this
.
service_header_arr
,
"
url
"
,
data
.
cover
);
this
.
$set
(
this
.
list_arr
[
0
],
"
info
"
,
data
.
service_apply_info
.
apply_user_info
.
department_name
);
...
...
src/pages/workbench/fwgl/serviceDetail.vue
View file @
a95805fa
...
...
@@ -146,6 +146,7 @@ import Topology from "@/components/topology.vue";
import
serviceHeader
from
"
@/components/service-header
"
;
import
dialogAction
from
"
@/components/dialog-action
"
;
import
{
getRole
,
formatDateTime_date
}
from
"
@/utils/common
"
;
import
{
mapGetters
,
mapState
}
from
'
vuex
'
export
default
{
components
:
{
infoList
,
...
...
@@ -519,6 +520,12 @@ export default {
],
};
},
computed
:{
...
mapGetters
([
'
level
'
,
]),
...
mapState
([
'
userInfo
'
]),
},
watch
:
{
now_service
(
n
,
o
)
{
if
(
n
==
2
)
{
...
...
@@ -527,16 +534,30 @@ export default {
},
},
created
()
{
this
.
now_user
=
this
.
$store
.
state
.
role
;
getRole
().
then
((
data
)
=>
{
this
.
now_user
=
data
;
this
.
$store
.
commit
(
"
rolefun
"
,
data
);
this
.
getServiceInfo
();
this
.
getServiceyxzt
Info
();
}
);
if
(
this
.
userInfo
){
this
.
now_user
=
this
.
level
}
else
{
this
.
getCurrentUser
()
}
this
.
getService
Info
();
this
.
getServiceyxztInfo
(
);
},
mounted
()
{},
methods
:
{
getCurrentUser
()
{
this
.
$api
.
user
.
getNowUser
().
then
(({
data
})
=>
{
if
(
data
.
success
==
1
)
{
console
.
log
(
"
--- user info ---
"
);
console
.
log
(
data
.
data
);
console
.
log
(
"
--- user info ---
"
);
this
.
$store
.
commit
(
"
userInfofun
"
,
data
.
data
);
this
.
now_user
=
this
.
level
console
.
log
(
this
.
level
);
}
else
{
console
.
log
(
data
.
errMsg
);
}
});
},
getData
()
{
let
url
=
"
/static/antv.json
"
;
this
.
$http
...
...
@@ -562,7 +583,7 @@ export default {
this
.
$set
(
this
.
service_header_arr
,
"
fixedurl
"
,
this
.
$route
.
path
.
replace
(
'
servicedetail
'
,
'
serviceedit
'
));
this
.
$set
(
this
.
list_arr
[
0
],
"
info
"
,
data
.
descript
);
this
.
$set
(
this
.
list_arr
[
1
],
"
info
"
,
this
.
scrvice_area_arr
[
data
.
sectors
-
1
]);
this
.
$set
(
this
.
list_arr
[
2
],
"
info
"
,
data
.
organization
);
this
.
$set
(
this
.
list_arr
[
2
],
"
info
"
,
data
.
organization
_name
);
this
.
$set
(
this
.
list_arr
[
3
],
"
info
"
,
data
.
openness_name
);
this
.
$set
(
this
.
list_arr
[
4
],
"
info
"
,
data
.
encode_method
);
this
.
$set
(
this
.
list_arr
[
5
],
"
info
"
,
data
.
create_time
.
replace
(
'
T
'
,
"
"
).
split
(
'
+
'
)[
0
]);
...
...
src/pages/workbench/fwgl/serviceEdit.vue
View file @
a95805fa
...
...
@@ -149,6 +149,7 @@
<
script
>
import
uploadFile
from
'
@/components/upload_file
'
import
{
getRole
}
from
"
@/utils/common
"
;
import
{
mapGetters
,
mapState
}
from
'
vuex
'
export
default
{
props
:
{},
components
:
{
...
...
@@ -263,18 +264,38 @@ export default {
};
},
watch
:
{},
computed
:
{},
computed
:
{
...
mapGetters
([
'
level
'
,
]),
...
mapState
([
'
userInfo
'
]),
},
created
()
{
this
.
now_user
=
this
.
$store
.
state
.
role
getRole
().
then
(
data
=>
{
this
.
now_user
=
data
;
this
.
$store
.
commit
(
'
rolefun
'
,
data
)
this
.
getOriginArr
()
this
.
getServiceInfo
()
});
console
.
log
(
this
.
level
);
if
(
this
.
userInfo
){
this
.
now_user
=
this
.
level
}
else
{
this
.
getCurrentUser
()
}
this
.
getOriginArr
()
this
.
getServiceInfo
()
},
mounted
()
{},
methods
:
{
getCurrentUser
()
{
this
.
$api
.
user
.
getNowUser
().
then
(({
data
})
=>
{
if
(
data
.
success
==
1
)
{
console
.
log
(
"
--- user info ---
"
);
console
.
log
(
data
.
data
);
console
.
log
(
"
--- user info ---
"
);
this
.
$store
.
commit
(
"
userInfofun
"
,
data
.
data
);
this
.
now_user
=
this
.
level
console
.
log
(
this
.
level
);
}
else
{
console
.
log
(
data
.
errMsg
);
}
});
},
getOriginArr
(){
this
.
$http
.
get
(
'
/static/serviceedit.json
'
)
...
...
@@ -371,7 +392,7 @@ export default {
}
},
removepic
(){
this
.
$refs
.
servicepic
.
handleRemove
()
this
.
$refs
.
servicepic
.
remove_pic
()
},
onSubmit
(
formName
)
{
console
.
log
(
'
submit!
'
);
...
...
src/pages/workbench/workPlace.vue
View file @
a95805fa
...
...
@@ -15,7 +15,7 @@
v-for=
"(item, index) in manage_arr"
:key=
"index + 800"
class=
"manage_box"
@
click=
"manage_func(i
ndex
)"
@
click=
"manage_func(i
tem.url
)"
v-if=
"item.role == now_user"
>
<img
:src=
"item.pic"
alt
/>
...
...
@@ -273,6 +273,7 @@
import
uuidv1
from
"
uuid/v1
"
;
import
tableUm
from
"
@/components/table/table-um
"
;
import
{
getRole
}
from
"
@/utils/common
"
;
import
{
mapGetters
,
mapState
}
from
'
vuex
'
var
echarts
=
require
(
"
echarts
"
);
export
default
{
data
()
{
...
...
@@ -899,74 +900,86 @@ export default {
],
app_arr
:
[],
manage_arr
:
[
{
pic
:
require
(
"
@/assets/imgs/home_tool_ic_key.png
"
),
text
:
"
我的密钥
"
,
role
:
0
,
},
{
pic
:
require
(
"
@/assets/imgs/home_tool_ic_organize.png
"
),
text
:
"
组织管理
"
,
role
:
1
,
},
{
pic
:
require
(
"
@/assets/imgs/home_tool_ic_key.png
"
),
text
:
"
密钥管理
"
,
role
:
1
,
url
:
''
,
},
{
pic
:
require
(
"
@/assets/imgs/home_tool_ic_quanxian.png
"
),
text
:
"
权限管理
"
,
role
:
2
,
url
:
'
/authority/organization
'
},
{
pic
:
require
(
"
@/assets/imgs/home_tool_ic_quanxian.png
"
),
text
:
"
容器管理
"
,
role
:
2
,
},
{
pic
:
require
(
"
@/assets/imgs/home_tool_ic_quanxian.png
"
),
text
:
"
数据管控
"
,
role
:
2
,
},
{
pic
:
require
(
"
@/assets/imgs/home_tool_ic_quanxian.png
"
),
text
:
"
消息新闻管理
"
,
role
:
2
,
},
// {
// pic: require("@/assets/imgs/home_tool_ic_quanxian.png"),
// text: "容器管理",
// role: 2,
// },
// {
// pic: require("@/assets/imgs/home_tool_ic_quanxian.png"),
// text: "数据管控",
// role: 2,
// },
],
};
},
components
:
{
tableUm
,
},
computed
:
{
...
mapGetters
([
'
level
'
,
]),
...
mapState
([
'
userInfo
'
]),
},
created
()
{
this
.
getUserData
();
this
.
getAppData
();
},
mounted
()
{
this
.
now_user
=
this
.
$store
.
getters
.
level
;
getRole
().
then
((
data
)
=>
{
this
.
now_user
=
data
;
this
.
$store
.
commit
(
"
rolefun
"
,
data
);
this
.
getInfoData
();
setTimeout
(()
=>
{
if
(
this
.
now_user
==
0
)
{
this
.
getHealth
();
this
.
getoperatingdata
();
}
else
if
(
this
.
now_user
==
1
)
{
this
.
getHealth
();
this
.
getoperatingdata
();
this
.
getappusedata
();
}
else
if
(
this
.
now_user
==
2
)
{
this
.
getoperatingdata
();
this
.
getfwlxdata
();
this
.
getyylxdata
();
}
},
500
);
});
console
.
log
(
this
.
level
);
if
(
this
.
userInfo
){
this
.
now_user
=
this
.
level
this
.
manage_arr
[
0
].
url
=
'
/authority/organization/detail/
'
+
this
.
userInfo
.
department_id
this
.
init_func
()
}
else
{
this
.
getCurrentUser
()
}
},
methods
:
{
init_func
(){
this
.
getInfoData
();
if
(
this
.
now_user
==
0
)
{
this
.
getHealth
();
this
.
getoperatingdata
();
}
else
if
(
this
.
now_user
==
1
)
{
this
.
getHealth
();
this
.
getoperatingdata
();
this
.
getappusedata
();
}
else
if
(
this
.
now_user
==
2
)
{
this
.
getoperatingdata
();
this
.
getfwlxdata
();
this
.
getyylxdata
();
}
},
getCurrentUser
()
{
this
.
$api
.
user
.
getNowUser
().
then
(({
data
})
=>
{
if
(
data
.
success
==
1
)
{
console
.
log
(
"
--- user info ---
"
);
console
.
log
(
data
.
data
);
console
.
log
(
"
--- user info ---
"
);
this
.
$store
.
commit
(
"
userInfofun
"
,
data
.
data
);
this
.
now_user
=
this
.
level
this
.
manage_arr
[
0
].
url
=
data
.
data
.
department_id
console
.
log
(
this
.
level
);
this
.
init_func
()
}
else
{
console
.
log
(
data
.
errMsg
);
}
});
},
gotoyy
()
{
this
.
$router
.
push
(
"
/yygl/
"
+
this
.
now_user
);
},
...
...
@@ -1076,6 +1089,7 @@ export default {
},
manage_func
(
n
)
{
console
.
log
(
n
);
this
.
$router
.
push
(
n
)
},
init_health
(
num
)
{
var
options
=
{
...
...
src/pages/workbench/yygl/app_edit.vue
View file @
a95805fa
...
...
@@ -217,7 +217,7 @@ export default {
});
},
removepic
(){
this
.
$refs
.
servicepic
.
handleRemove
()
this
.
$refs
.
servicepic
.
remove_pic
()
},
onSubmit
(
formName
)
{
console
.
log
(
'
submit!
'
);
...
...
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