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
2a193e6a
Commit
2a193e6a
authored
Jun 23, 2020
by
张俊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zj' into dev
parents
91536314
9b7131f0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
29 deletions
+61
-29
src/components/e-charts/dashboard.vue
src/components/e-charts/dashboard.vue
+2
-0
src/pages/service_shop/shop_car_apply.vue
src/pages/service_shop/shop_car_apply.vue
+27
-3
src/pages/workbench/workPlace.vue
src/pages/workbench/workPlace.vue
+23
-23
src/pages/workbench/yygl/app_detail.vue
src/pages/workbench/yygl/app_detail.vue
+2
-1
src/pages/workbench/yygl/app_edit.vue
src/pages/workbench/yygl/app_edit.vue
+7
-2
No files found.
src/components/e-charts/dashboard.vue
View file @
2a193e6a
...
@@ -161,5 +161,7 @@ export default {
...
@@ -161,5 +161,7 @@ export default {
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.dashboard
{
.dashboard
{
width
:
100%
;
height
:
100%
;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/pages/service_shop/shop_car_apply.vue
View file @
2a193e6a
...
@@ -114,7 +114,7 @@ export default {
...
@@ -114,7 +114,7 @@ export default {
if
(
this
.
$route
.
query
.
service_id
){
if
(
this
.
$route
.
query
.
service_id
){
this
.
get_one_service
(
this
.
$route
.
query
)
this
.
get_one_service
(
this
.
$route
.
query
)
}
else
if
(
this
.
$route
.
query
.
app_id
){
}
else
if
(
this
.
$route
.
query
.
app_id
){
this
.
get_one_app
()
this
.
get_one_app
(
this
.
$route
.
query
)
}
else
{
}
else
{
console
.
log
(
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
'
shoppingCart
'
)));
console
.
log
(
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
'
shoppingCart
'
)));
var
temp_arr
=
[]
var
temp_arr
=
[]
...
@@ -128,8 +128,32 @@ export default {
...
@@ -128,8 +128,32 @@ export default {
},
},
methods
:
{
methods
:
{
get_one_app
(){
get_one_app
(
app_data
){
this
.
$http
.
get
(
`/apaas/serviceapp/v3/shopcart/appinfo?app_id=
${
app_data
.
app_id
}
`
)
.
then
(
response
=>
{
console
.
log
(
response
);
let
data
=
response
.
data
.
data
if
(
response
.
data
.
success
&&
data
){
//应用
this
.
post_arr
=
[
data
]
this
.
post_arr
[
0
].
app_id
=
parseInt
(
pp_data
.
app_id
)
this
.
post_arr
[
0
].
spec_id
=
parseInt
(
pp_data
.
spec_id
)
this
.
post_arr
[
0
].
duration_method
=
parseInt
(
pp_data
.
duration_unit
)
this
.
post_arr
[
0
].
duration
=
parseInt
(
pp_data
.
duration
)
this
.
post_arr
[
0
].
id
=
''
this
.
service_arr
.
push
({})
this
.
service_arr
[
0
][
'
img
'
]
=
data
.
logo
this
.
service_arr
[
0
][
'
title
'
]
=
data
.
app_name
this
.
service_arr
[
0
][
'
type
'
]
=
data
.
type_name
this
.
service_arr
[
0
][
'
auth
'
]
=
data
.
org_name
this
.
service_arr
[
0
][
'
size
'
]
=
pp_data
.
spec_id
==
0
?
'
部署
'
:
'
开发
'
this
.
service_arr
[
0
][
'
applytype
'
]
=
'
申请方式:
'
+
pp_data
.
duration_unit
==
1
?
'
月
'
:
'
年
'
this
.
service_arr
[
0
][
'
num
'
]
=
pp_data
.
duration
this
.
service_arr
[
0
][
'
isMg
'
]
=
false
this
.
service_arr
[
0
][
'
isapp
'
]
=
true
}
})
},
},
get_one_service
(
service_data
){
get_one_service
(
service_data
){
this
.
$http
this
.
$http
...
...
src/pages/workbench/workPlace.vue
View file @
2a193e6a
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div
class=
"preson"
>
<div
class=
"preson"
>
<div
class=
"person_text"
>
<div
class=
"person_text"
>
<img
src=
"@/assets/imgs/img_head.png"
alt
/>
<img
src=
"@/assets/imgs/img_head.png"
alt
/>
<span>
你好,
{{
person
}}
!
最近登录
{{
login_time
}}
</span>
<span>
你好,
{{
person
}}
!
{{
login_time
?
'
最近登录
'
:
''
}}
{{
login_time
}}
</span>
</div>
</div>
<div
class=
"person_menu"
>
<div
class=
"person_menu"
>
管理功能
管理功能
...
@@ -89,7 +89,21 @@
...
@@ -89,7 +89,21 @@
></el-option>
></el-option>
</el-select>
</el-select>
</p>
</p>
<div
:id=
"health"
class=
"health"
style=
"width:calc(100% - 40px)"
></div>
<!-- 仪表盘 -->
<div
class=
"health"
style=
"width:calc(100% - 40px)"
>
<div
style=
"width:25%;float:left;height:180px;"
>
<dash-board></dash-board>
</div>
<div
style=
"width:25%;float:left;height:180px;"
>
<dash-board></dash-board>
</div>
<div
style=
"width:25%;float:left;height:180px;"
>
<dash-board></dash-board>
</div>
<div
style=
"width:25%;float:left;height:180px;"
>
<dash-board></dash-board>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -299,7 +313,8 @@ import uuidv1 from "uuid/v1";
...
@@ -299,7 +313,8 @@ import uuidv1 from "uuid/v1";
import
tableUm
from
"
@/components/table/table-um
"
;
import
tableUm
from
"
@/components/table/table-um
"
;
import
ListPagination
from
"
@/components/comments-pagination
"
;
import
ListPagination
from
"
@/components/comments-pagination
"
;
import
helper
from
"
@/services/helper.js
"
;
import
helper
from
"
@/services/helper.js
"
;
import
{
getRole
}
from
"
@/utils/common
"
;
import
dashBoard
from
'
../../components/e-charts/dashboard
'
import
{
formatDateTime_date
}
from
"
@/utils/common
"
;
import
{
mapGetters
,
mapState
}
from
'
vuex
'
import
{
mapGetters
,
mapState
}
from
'
vuex
'
var
echarts
=
require
(
"
echarts
"
);
var
echarts
=
require
(
"
echarts
"
);
export
default
{
export
default
{
...
@@ -992,6 +1007,7 @@ export default {
...
@@ -992,6 +1007,7 @@ export default {
components
:
{
components
:
{
tableUm
,
tableUm
,
ListPagination
,
ListPagination
,
dashBoard
,
},
},
computed
:
{
computed
:
{
...
mapGetters
([
...
mapGetters
([
...
@@ -1000,7 +1016,7 @@ export default {
...
@@ -1000,7 +1016,7 @@ export default {
...
mapState
([
'
userInfo
'
]),
...
mapState
([
'
userInfo
'
]),
},
},
created
()
{
created
()
{
this
.
getUserData
();
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
level
);
console
.
log
(
this
.
level
);
...
@@ -1105,6 +1121,7 @@ export default {
...
@@ -1105,6 +1121,7 @@ export default {
this
.
getInfoData
();
this
.
getInfoData
();
this
.
get_service_list
()
this
.
get_service_list
()
this
.
get_app_list
()
this
.
get_app_list
()
this
.
getUserData
();
if
(
this
.
now_user
==
0
||
this
.
now_user
==
4
)
{
if
(
this
.
now_user
==
0
||
this
.
now_user
==
4
)
{
this
.
getHealth
();
this
.
getHealth
();
this
.
getoperatingdata
();
this
.
getoperatingdata
();
...
@@ -1144,15 +1161,8 @@ export default {
...
@@ -1144,15 +1161,8 @@ export default {
this
.
$router
.
push
(
"
/fwzc/fwcs
"
);
this
.
$router
.
push
(
"
/fwzc/fwcs
"
);
},
},
getUserData
()
{
getUserData
()
{
this
.
$http
this
.
person
=
this
.
userInfo
.
user_name
;
.
get
(
"
./static/workpalce.json
"
)
this
.
login_time
=
this
.
userInfo
.
last_login
;
.
then
((
response
)
=>
{
console
.
log
(
response
);
let
data
=
response
.
data
.
data
;
this
.
person
=
data
.
userdata
.
person
;
this
.
login_time
=
data
.
userdata
.
login_time
;
})
.
catch
(
function
(
response
)
{});
},
},
getoperatingdata
()
{
getoperatingdata
()
{
this
.
$http
this
.
$http
...
@@ -1222,16 +1232,6 @@ export default {
...
@@ -1222,16 +1232,6 @@ export default {
})
})
.
catch
(
function
(
response
)
{});
.
catch
(
function
(
response
)
{});
},
},
getAppData
()
{
this
.
$http
.
get
(
"
./static/workpalce.json
"
)
.
then
((
response
)
=>
{
console
.
log
(
response
);
let
data
=
response
.
data
.
data
;
this
.
app_arr
=
data
.
appdata
;
})
.
catch
(
function
(
response
)
{});
},
getInfoData
()
{
getInfoData
()
{
this
.
$http
this
.
$http
.
get
(
"
/apaas/service/v3/workplace/statistics/basic
"
)
.
get
(
"
/apaas/service/v3/workplace/statistics/basic
"
)
...
...
src/pages/workbench/yygl/app_detail.vue
View file @
2a193e6a
...
@@ -273,12 +273,12 @@ export default {
...
@@ -273,12 +273,12 @@ export default {
created
()
{
created
()
{
if
(
this
.
userInfo
){
if
(
this
.
userInfo
){
this
.
now_user
=
this
.
level
this
.
now_user
=
this
.
level
this
.
getServiceInfo
();
}
else
{
}
else
{
this
.
getCurrentUser
()
this
.
getCurrentUser
()
}
}
this
.
asynLoad
=
false
this
.
asynLoad
=
false
this
.
commentsUrl
=
`/apaas/hubApi/market/comments/
${
this
.
$route
.
params
.
id
}
`
this
.
commentsUrl
=
`/apaas/hubApi/market/comments/
${
this
.
$route
.
params
.
id
}
`
this
.
getServiceInfo
();
this
.
getServiceBaseInfo
();
this
.
getServiceBaseInfo
();
this
.
get_image_list
()
this
.
get_image_list
()
this
.
get_options
()
this
.
get_options
()
...
@@ -294,6 +294,7 @@ export default {
...
@@ -294,6 +294,7 @@ export default {
console
.
log
(
"
--- user info ---
"
);
console
.
log
(
"
--- user info ---
"
);
this
.
$store
.
commit
(
"
userInfofun
"
,
data
.
data
);
this
.
$store
.
commit
(
"
userInfofun
"
,
data
.
data
);
this
.
now_user
=
this
.
level
this
.
now_user
=
this
.
level
this
.
getServiceInfo
();
console
.
log
(
this
.
level
);
console
.
log
(
this
.
level
);
}
else
{
}
else
{
console
.
log
(
data
.
errMsg
);
console
.
log
(
data
.
errMsg
);
...
...
src/pages/workbench/yygl/app_edit.vue
View file @
2a193e6a
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"onSubmit('form')"
class=
"right"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit('form')"
class=
"right"
>
保存
</el-button>
<el-button
class=
"right"
>
取消
</el-button>
<el-button
class=
"right"
@
click=
"back_page()"
>
取消
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -169,7 +169,9 @@ export default {
...
@@ -169,7 +169,9 @@ export default {
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
back_page
(){
this
.
$router
.
back
(
-
1
)
},
getOriginArr
(){
getOriginArr
(){
this
.
$http
this
.
$http
.
get
(
'
/apaas/hubApi/market/departments
'
)
.
get
(
'
/apaas/hubApi/market/departments
'
)
...
@@ -220,6 +222,7 @@ export default {
...
@@ -220,6 +222,7 @@ export default {
example
:
data
.
cjsl
,
example
:
data
.
cjsl
,
fileList
:
data
.
logo
fileList
:
data
.
logo
}
}
this
.
imgList
=
[
data
.
logo
]
}
}
})
})
.
catch
(
function
(
response
)
{});
.
catch
(
function
(
response
)
{});
...
@@ -240,6 +243,7 @@ export default {
...
@@ -240,6 +243,7 @@ export default {
formData
.
append
(
'
yyjj
'
,
this
.
form
.
appdesc
)
formData
.
append
(
'
yyjj
'
,
this
.
form
.
appdesc
)
formData
.
append
(
'
gnjj
'
,
this
.
form
.
actiondesc
)
formData
.
append
(
'
gnjj
'
,
this
.
form
.
actiondesc
)
formData
.
append
(
'
cjsl
'
,
this
.
form
.
example
)
formData
.
append
(
'
cjsl
'
,
this
.
form
.
example
)
formData
.
append
(
'
app_id
'
,
this
.
$route
.
params
.
id
)
this
.
$http
this
.
$http
.
post
(
'
/apaas/hubApi/market/app
'
,
formData
)
.
post
(
'
/apaas/hubApi/market/app
'
,
formData
)
.
then
(
response
=>
{
.
then
(
response
=>
{
...
@@ -249,6 +253,7 @@ export default {
...
@@ -249,6 +253,7 @@ export default {
return
return
}
}
this
.
$message
.
success
(
'
操作成功
'
)
this
.
$message
.
success
(
'
操作成功
'
)
this
.
back_page
()
})
})
.
catch
(
function
(
response
)
{
.
catch
(
function
(
response
)
{
...
...
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