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
d468624d
Commit
d468624d
authored
Jun 12, 2020
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更换封面
parent
3c5199ea
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 @
d468624d
<
template
>
<
template
>
<div
class=
"info_logo"
>
<div
class=
"info_logo"
>
<div
class=
"logo"
:style=
"
{backgroundImage:'url('+data.url+')'}">
<div
class=
"logo"
>
<img
:src=
"data.url"
alt=
""
>
</div>
</div>
<div
class=
"info"
>
<div
class=
"info"
>
<p
class=
"info_title"
>
<p
class=
"info_title"
>
...
@@ -82,10 +83,15 @@ export default {
...
@@ -82,10 +83,15 @@ export default {
}
}
.logo
{
.logo
{
float
:
left
;
float
:
left
;
overflow
:
hidden
;
width
:
144px
;
width
:
144px
;
height
:
144px
;
height
:
144px
;
margin-right
:
13px
;
margin-right
:
13px
;
background-size
:
cover
;
background-size
:
cover
;
text-align
:
center
;
}
.logo
img
{
width
:
100%
;
}
}
.info
{
.info
{
float
:
left
;
float
:
left
;
...
...
src/components/upload_file.vue
View file @
d468624d
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
</div>
</div>
<div
v-else
>
<div
v-else
>
<el-upload
<el-upload
class=
"eeupload"
action=
"/apaas/static/image/upload"
action=
"/apaas/static/image/upload"
:file-list=
"fileArray"
:file-list=
"fileArray"
:list-type=
"type=='picture'?'picture-card':''"
:list-type=
"type=='picture'?'picture-card':''"
...
@@ -173,6 +174,12 @@ export default {
...
@@ -173,6 +174,12 @@ export default {
this
.
hideUpload
=
fileList
.
length
>=
this
.
max
;
this
.
hideUpload
=
fileList
.
length
>=
this
.
max
;
this
.
$emit
(
"
getNewList
"
,
this
.
fileArray
);
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
)
{
getNewUrl
(
val
)
{
let
fileObj
=
{
name
:
val
,
url
:
val
};
let
fileObj
=
{
name
:
val
,
url
:
val
};
this
.
$emit
(
"
getNewList
"
,
fileObj
);
this
.
$emit
(
"
getNewList
"
,
fileObj
);
...
...
src/pages/authority/organizationdetail.vue
View file @
d468624d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<p
class=
"now_page_title"
>
权限管理 / 组织用户 /
<span>
用户管理
</span></p>
<p
class=
"now_page_title"
>
权限管理 / 组织用户 /
<span>
用户管理
</span></p>
<div
class=
"info_contain"
>
<div
class=
"info_contain"
>
<service-header
<service-header
v-if=
"service_header_arr.
url
"
v-if=
"service_header_arr.
name
"
:data=
"service_header_arr"
:data=
"service_header_arr"
></service-header>
></service-header>
</div>
</div>
...
...
src/pages/authority/organizationedit.vue
View file @
d468624d
...
@@ -141,12 +141,6 @@ export default {
...
@@ -141,12 +141,6 @@ export default {
watch
:
{},
watch
:
{},
computed
:
{},
computed
:
{},
created
()
{
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
()
this
.
get_now_page
()
},
},
mounted
()
{},
mounted
()
{},
...
@@ -254,7 +248,7 @@ export default {
...
@@ -254,7 +248,7 @@ export default {
});
});
},
},
removepic
(){
removepic
(){
this
.
$refs
.
servicepic
.
handleRemove
()
this
.
$refs
.
servicepic
.
remove_pic
()
},
},
onSubmit
(
formName
)
{
onSubmit
(
formName
)
{
console
.
log
(
'
submit!
'
);
console
.
log
(
'
submit!
'
);
...
...
src/pages/authority/organizationuser.vue
View file @
d468624d
...
@@ -250,7 +250,7 @@ export default {
...
@@ -250,7 +250,7 @@ export default {
type
:
data
.
is_admin
,
type
:
data
.
is_admin
,
systemname
:
data
.
system_name
,
systemname
:
data
.
system_name
,
contact
:
data
.
link_man
,
contact
:
data
.
link_man
,
phone
:
data
.
phone
,
phone
:
data
.
phone
+
''
,
email
:
data
.
email
,
email
:
data
.
email
,
origin
:
data
.
department_id
,
origin
:
data
.
department_id
,
able
:
data
.
state
,
able
:
data
.
state
,
...
@@ -294,7 +294,7 @@ export default {
...
@@ -294,7 +294,7 @@ export default {
"
user_id
"
:
this
.
form
.
account
,
// 用户名
"
user_id
"
:
this
.
form
.
account
,
// 用户名
"
user_name
"
:
this
.
form
.
nickname
,
// 昵称
"
user_name
"
:
this
.
form
.
nickname
,
// 昵称
"
system_name
"
:
this
.
form
.
systemname
,
//系统名称
"
system_name
"
:
this
.
form
.
systemname
,
//系统名称
"
phone
"
:
this
.
form
.
phone
,
// 电话号
"
phone
"
:
this
.
form
.
phone
+
''
,
// 电话号
"
email
"
:
this
.
form
.
email
,
// 邮箱
"
email
"
:
this
.
form
.
email
,
// 邮箱
"
department_id
"
:
this
.
form
.
origin
,
// 组织id
"
department_id
"
:
this
.
form
.
origin
,
// 组织id
"
is_admin
"
:
this
.
form
.
type
,
"
is_admin
"
:
this
.
form
.
type
,
...
@@ -320,7 +320,7 @@ export default {
...
@@ -320,7 +320,7 @@ export default {
"
user_id
"
:
this
.
form
.
account
,
// 用户名
"
user_id
"
:
this
.
form
.
account
,
// 用户名
"
user_name
"
:
this
.
form
.
nickname
,
// 昵称
"
user_name
"
:
this
.
form
.
nickname
,
// 昵称
"
system_name
"
:
this
.
form
.
systemname
,
//系统名称
"
system_name
"
:
this
.
form
.
systemname
,
//系统名称
"
phone
"
:
this
.
form
.
phone
,
// 电话号
"
phone
"
:
this
.
form
.
phone
+
''
,
// 电话号
"
email
"
:
this
.
form
.
email
,
// 邮箱
"
email
"
:
this
.
form
.
email
,
// 邮箱
"
department_id
"
:
this
.
form
.
origin
,
// 组织id
"
department_id
"
:
this
.
form
.
origin
,
// 组织id
"
is_admin
"
:
this
.
form
.
type
,
"
is_admin
"
:
this
.
form
.
type
,
...
...
src/pages/workbench/fwgl/approval_service_detail.vue
View file @
d468624d
...
@@ -56,6 +56,7 @@ import serviceHeader from "@/components/service-header";
...
@@ -56,6 +56,7 @@ import serviceHeader from "@/components/service-header";
import
infoList
from
"
@/components/infoList
"
;
import
infoList
from
"
@/components/infoList
"
;
import
tableUm
from
"
@/components/table/table-um
"
;
import
tableUm
from
"
@/components/table/table-um
"
;
import
processCard
from
"
@/components/process-card
"
;
import
processCard
from
"
@/components/process-card
"
;
import
{
mapGetters
,
mapState
}
from
'
vuex
'
export
default
{
export
default
{
props
:
{},
props
:
{},
components
:
{
components
:
{
...
@@ -72,7 +73,7 @@ export default {
...
@@ -72,7 +73,7 @@ export default {
},
},
id
:
''
,
id
:
''
,
zd_table_arr
:[],
zd_table_arr
:[],
now_user
:
1
,
//0:普通用户,1:组织管理员,2:超级管理员
now_user
:
0
,
//0:普通用户,1:组织管理员,2:超级管理员
rules
:{
rules
:{
result
:[
result
:[
{
required
:
true
,
message
:
'
请选择意见
'
,
trigger
:
'
change
'
},
{
required
:
true
,
message
:
'
请选择意见
'
,
trigger
:
'
change
'
},
...
@@ -155,7 +156,7 @@ export default {
...
@@ -155,7 +156,7 @@ export default {
align
:
"
left
"
align
:
"
left
"
}
}
],
],
color_arr
:[
'
#e15260
'
,
'
"#ef9433
'
,
'
#515fe7
'
],
service_header_arr
:
{
service_header_arr
:
{
name
:
""
,
name
:
""
,
first
:
[
first
:
[
...
@@ -257,12 +258,37 @@ export default {
...
@@ -257,12 +258,37 @@ export default {
};
};
},
},
watch
:
{},
watch
:
{},
computed
:
{},
computed
:
{
...
mapGetters
([
'
level
'
,
]),
...
mapState
([
'
userInfo
'
]),
},
created
()
{
created
()
{
console
.
log
(
this
.
level
);
if
(
this
.
userInfo
){
this
.
now_user
=
this
.
level
}
else
{
this
.
getCurrentUser
()
}
this
.
get_service_info
()
this
.
get_service_info
()
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
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
){
onSubmit
(
formName
){
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
...
@@ -303,6 +329,7 @@ export default {
...
@@ -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
'
][
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
'
][
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
],
'
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
[
'
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
.
service_header_arr
,
"
url
"
,
data
.
cover
);
this
.
$set
(
this
.
list_arr
[
0
],
"
info
"
,
data
.
service_apply_info
.
apply_user_info
.
department_name
);
this
.
$set
(
this
.
list_arr
[
0
],
"
info
"
,
data
.
service_apply_info
.
apply_user_info
.
department_name
);
...
...
src/pages/workbench/fwgl/serviceDetail.vue
View file @
d468624d
...
@@ -146,6 +146,7 @@ import Topology from "@/components/topology.vue";
...
@@ -146,6 +146,7 @@ import Topology from "@/components/topology.vue";
import
serviceHeader
from
"
@/components/service-header
"
;
import
serviceHeader
from
"
@/components/service-header
"
;
import
dialogAction
from
"
@/components/dialog-action
"
;
import
dialogAction
from
"
@/components/dialog-action
"
;
import
{
getRole
,
formatDateTime_date
}
from
"
@/utils/common
"
;
import
{
getRole
,
formatDateTime_date
}
from
"
@/utils/common
"
;
import
{
mapGetters
,
mapState
}
from
'
vuex
'
export
default
{
export
default
{
components
:
{
components
:
{
infoList
,
infoList
,
...
@@ -519,6 +520,12 @@ export default {
...
@@ -519,6 +520,12 @@ export default {
],
],
};
};
},
},
computed
:{
...
mapGetters
([
'
level
'
,
]),
...
mapState
([
'
userInfo
'
]),
},
watch
:
{
watch
:
{
now_service
(
n
,
o
)
{
now_service
(
n
,
o
)
{
if
(
n
==
2
)
{
if
(
n
==
2
)
{
...
@@ -527,16 +534,30 @@ export default {
...
@@ -527,16 +534,30 @@ export default {
},
},
},
},
created
()
{
created
()
{
this
.
now_user
=
this
.
$store
.
state
.
role
;
if
(
this
.
userInfo
){
getRole
().
then
((
data
)
=>
{
this
.
now_user
=
this
.
level
this
.
now_user
=
data
;
}
else
{
this
.
$store
.
commit
(
"
rolefun
"
,
data
);
this
.
getCurrentUser
()
this
.
getServiceInfo
();
}
this
.
getServiceyxzt
Info
();
this
.
getService
Info
();
}
);
this
.
getServiceyxztInfo
(
);
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
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
()
{
getData
()
{
let
url
=
"
/static/antv.json
"
;
let
url
=
"
/static/antv.json
"
;
this
.
$http
this
.
$http
...
@@ -562,7 +583,7 @@ export default {
...
@@ -562,7 +583,7 @@ export default {
this
.
$set
(
this
.
service_header_arr
,
"
fixedurl
"
,
this
.
$route
.
path
.
replace
(
'
servicedetail
'
,
'
serviceedit
'
));
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
[
0
],
"
info
"
,
data
.
descript
);
this
.
$set
(
this
.
list_arr
[
1
],
"
info
"
,
this
.
scrvice_area_arr
[
data
.
sectors
-
1
]);
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
[
3
],
"
info
"
,
data
.
openness_name
);
this
.
$set
(
this
.
list_arr
[
4
],
"
info
"
,
data
.
encode_method
);
this
.
$set
(
this
.
list_arr
[
4
],
"
info
"
,
data
.
encode_method
);
this
.
$set
(
this
.
list_arr
[
5
],
"
info
"
,
data
.
create_time
.
replace
(
'
T
'
,
"
"
).
split
(
'
+
'
)[
0
]);
this
.
$set
(
this
.
list_arr
[
5
],
"
info
"
,
data
.
create_time
.
replace
(
'
T
'
,
"
"
).
split
(
'
+
'
)[
0
]);
...
...
src/pages/workbench/fwgl/serviceEdit.vue
View file @
d468624d
...
@@ -149,6 +149,7 @@
...
@@ -149,6 +149,7 @@
<
script
>
<
script
>
import
uploadFile
from
'
@/components/upload_file
'
import
uploadFile
from
'
@/components/upload_file
'
import
{
getRole
}
from
"
@/utils/common
"
;
import
{
getRole
}
from
"
@/utils/common
"
;
import
{
mapGetters
,
mapState
}
from
'
vuex
'
export
default
{
export
default
{
props
:
{},
props
:
{},
components
:
{
components
:
{
...
@@ -263,18 +264,38 @@ export default {
...
@@ -263,18 +264,38 @@ export default {
};
};
},
},
watch
:
{},
watch
:
{},
computed
:
{},
computed
:
{
...
mapGetters
([
'
level
'
,
]),
...
mapState
([
'
userInfo
'
]),
},
created
()
{
created
()
{
this
.
now_user
=
this
.
$store
.
state
.
role
console
.
log
(
this
.
level
);
getRole
().
then
(
data
=>
{
if
(
this
.
userInfo
){
this
.
now_user
=
data
;
this
.
now_user
=
this
.
level
this
.
$store
.
commit
(
'
rolefun
'
,
data
)
}
else
{
this
.
getOriginArr
()
this
.
getCurrentUser
()
this
.
getServiceInfo
()
}
});
this
.
getOriginArr
()
this
.
getServiceInfo
()
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
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
(){
getOriginArr
(){
this
.
$http
this
.
$http
.
get
(
'
/static/serviceedit.json
'
)
.
get
(
'
/static/serviceedit.json
'
)
...
@@ -371,7 +392,7 @@ export default {
...
@@ -371,7 +392,7 @@ export default {
}
}
},
},
removepic
(){
removepic
(){
this
.
$refs
.
servicepic
.
handleRemove
()
this
.
$refs
.
servicepic
.
remove_pic
()
},
},
onSubmit
(
formName
)
{
onSubmit
(
formName
)
{
console
.
log
(
'
submit!
'
);
console
.
log
(
'
submit!
'
);
...
...
src/pages/workbench/workPlace.vue
View file @
d468624d
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
v-for=
"(item, index) in manage_arr"
v-for=
"(item, index) in manage_arr"
:key=
"index + 800"
:key=
"index + 800"
class=
"manage_box"
class=
"manage_box"
@
click=
"manage_func(i
ndex
)"
@
click=
"manage_func(i
tem.url
)"
v-if=
"item.role == now_user"
v-if=
"item.role == now_user"
>
>
<img
:src=
"item.pic"
alt
/>
<img
:src=
"item.pic"
alt
/>
...
@@ -273,6 +273,7 @@
...
@@ -273,6 +273,7 @@
import
uuidv1
from
"
uuid/v1
"
;
import
uuidv1
from
"
uuid/v1
"
;
import
tableUm
from
"
@/components/table/table-um
"
;
import
tableUm
from
"
@/components/table/table-um
"
;
import
{
getRole
}
from
"
@/utils/common
"
;
import
{
getRole
}
from
"
@/utils/common
"
;
import
{
mapGetters
,
mapState
}
from
'
vuex
'
var
echarts
=
require
(
"
echarts
"
);
var
echarts
=
require
(
"
echarts
"
);
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -899,74 +900,86 @@ export default {
...
@@ -899,74 +900,86 @@ export default {
],
],
app_arr
:
[],
app_arr
:
[],
manage_arr
:
[
manage_arr
:
[
{
pic
:
require
(
"
@/assets/imgs/home_tool_ic_key.png
"
),
text
:
"
我的密钥
"
,
role
:
0
,
},
{
{
pic
:
require
(
"
@/assets/imgs/home_tool_ic_organize.png
"
),
pic
:
require
(
"
@/assets/imgs/home_tool_ic_organize.png
"
),
text
:
"
组织管理
"
,
text
:
"
组织管理
"
,
role
:
1
,
role
:
1
,
},
url
:
''
,
{
pic
:
require
(
"
@/assets/imgs/home_tool_ic_key.png
"
),
text
:
"
密钥管理
"
,
role
:
1
,
},
},
{
{
pic
:
require
(
"
@/assets/imgs/home_tool_ic_quanxian.png
"
),
pic
:
require
(
"
@/assets/imgs/home_tool_ic_quanxian.png
"
),
text
:
"
权限管理
"
,
text
:
"
权限管理
"
,
role
:
2
,
role
:
2
,
url
:
'
/authority/organization
'
},
},
{
// {
pic
:
require
(
"
@/assets/imgs/home_tool_ic_quanxian.png
"
),
// pic: require("@/assets/imgs/home_tool_ic_quanxian.png"),
text
:
"
容器管理
"
,
// text: "容器管理",
role
:
2
,
// role: 2,
},
// },
{
// {
pic
:
require
(
"
@/assets/imgs/home_tool_ic_quanxian.png
"
),
// pic: require("@/assets/imgs/home_tool_ic_quanxian.png"),
text
:
"
数据管控
"
,
// text: "数据管控",
role
:
2
,
// role: 2,
},
// },
{
pic
:
require
(
"
@/assets/imgs/home_tool_ic_quanxian.png
"
),
text
:
"
消息新闻管理
"
,
role
:
2
,
},
],
],
};
};
},
},
components
:
{
components
:
{
tableUm
,
tableUm
,
},
},
computed
:
{
...
mapGetters
([
'
level
'
,
]),
...
mapState
([
'
userInfo
'
]),
},
created
()
{
created
()
{
this
.
getUserData
();
this
.
getUserData
();
this
.
getAppData
();
this
.
getAppData
();
},
},
mounted
()
{
mounted
()
{
this
.
now_user
=
this
.
$store
.
getters
.
level
;
console
.
log
(
this
.
level
);
getRole
().
then
((
data
)
=>
{
if
(
this
.
userInfo
){
this
.
now_user
=
data
;
this
.
now_user
=
this
.
level
this
.
$store
.
commit
(
"
rolefun
"
,
data
);
this
.
manage_arr
[
0
].
url
=
'
/authority/organization/detail/
'
+
this
.
userInfo
.
department_id
this
.
getInfoData
();
this
.
init_func
()
setTimeout
(()
=>
{
}
else
{
if
(
this
.
now_user
==
0
)
{
this
.
getCurrentUser
()
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
);
});
},
},
methods
:
{
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
()
{
gotoyy
()
{
this
.
$router
.
push
(
"
/yygl/
"
+
this
.
now_user
);
this
.
$router
.
push
(
"
/yygl/
"
+
this
.
now_user
);
},
},
...
@@ -1076,6 +1089,7 @@ export default {
...
@@ -1076,6 +1089,7 @@ export default {
},
},
manage_func
(
n
)
{
manage_func
(
n
)
{
console
.
log
(
n
);
console
.
log
(
n
);
this
.
$router
.
push
(
n
)
},
},
init_health
(
num
)
{
init_health
(
num
)
{
var
options
=
{
var
options
=
{
...
...
src/pages/workbench/yygl/app_edit.vue
View file @
d468624d
...
@@ -217,7 +217,7 @@ export default {
...
@@ -217,7 +217,7 @@ export default {
});
});
},
},
removepic
(){
removepic
(){
this
.
$refs
.
servicepic
.
handleRemove
()
this
.
$refs
.
servicepic
.
remove_pic
()
},
},
onSubmit
(
formName
)
{
onSubmit
(
formName
)
{
console
.
log
(
'
submit!
'
);
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