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
223cb2d2
Commit
223cb2d2
authored
Jul 08, 2020
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用调试
parent
c9d95096
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
358 additions
and
175 deletions
+358
-175
src/assets/imgs/btn_front_page.png
src/assets/imgs/btn_front_page.png
+0
-0
src/assets/imgs/btn_front_page_dis.png
src/assets/imgs/btn_front_page_dis.png
+0
-0
src/assets/imgs/btn_last_page.png
src/assets/imgs/btn_last_page.png
+0
-0
src/assets/imgs/btn_last_page_dis.png
src/assets/imgs/btn_last_page_dis.png
+0
-0
src/assets/imgs/btn_next_page.png
src/assets/imgs/btn_next_page.png
+0
-0
src/assets/imgs/btn_next_page_dis.png
src/assets/imgs/btn_next_page_dis.png
+0
-0
src/assets/imgs/btn_previous_page.png
src/assets/imgs/btn_previous_page.png
+0
-0
src/assets/imgs/btn_previous_page_dis.png
src/assets/imgs/btn_previous_page_dis.png
+0
-0
src/components/apass-dialog.vue
src/components/apass-dialog.vue
+1
-1
src/components/service-header.vue
src/components/service-header.vue
+1
-2
src/pages/workbench/fwgl/approval_service_detail.vue
src/pages/workbench/fwgl/approval_service_detail.vue
+0
-1
src/pages/workbench/yygl/app_debugger.vue
src/pages/workbench/yygl/app_debugger.vue
+18
-16
src/pages/workbench/yygl/app_debugger_detail.vue
src/pages/workbench/yygl/app_debugger_detail.vue
+331
-155
src/services/helper.js
src/services/helper.js
+7
-0
No files found.
src/assets/imgs/btn_front_page.png
0 → 100644
View file @
223cb2d2
1.03 KB
src/assets/imgs/btn_front_page_dis.png
0 → 100644
View file @
223cb2d2
1.03 KB
src/assets/imgs/btn_last_page.png
0 → 100644
View file @
223cb2d2
1.03 KB
src/assets/imgs/btn_last_page_dis.png
0 → 100644
View file @
223cb2d2
1.03 KB
src/assets/imgs/btn_next_page.png
0 → 100644
View file @
223cb2d2
1.01 KB
src/assets/imgs/btn_next_page_dis.png
0 → 100644
View file @
223cb2d2
1.01 KB
src/assets/imgs/btn_previous_page.png
0 → 100644
View file @
223cb2d2
1.01 KB
src/assets/imgs/btn_previous_page_dis.png
0 → 100644
View file @
223cb2d2
1.01 KB
src/components/apass-dialog.vue
View file @
223cb2d2
...
...
@@ -72,7 +72,7 @@ export default {
default
:
()
=>
false
,
},
submit
:
{
type
:
Function
,
type
:
[
Function
,
String
]
,
default
:
()
=>
null
,
},
},
...
...
src/components/service-header.vue
View file @
223cb2d2
...
...
@@ -92,8 +92,7 @@ export default {
},
mounted
()
{},
methods
:
{
subevent
(
val
){
debugger
subevent
(
val
){
if
(
val
==
0
){
// this.$emit('deploy',this.data)
this
.
$router
.
push
(
`/yygl/
${
this
.
$route
.
params
.
level
}
/
${
this
.
$route
.
params
.
type
}
/deployment/
${
this
.
$route
.
params
.
id
}
`
)
...
...
src/pages/workbench/fwgl/approval_service_detail.vue
View file @
223cb2d2
...
...
@@ -352,7 +352,6 @@ export default {
this
.
$set
(
this
.
list_arr
[
5
],
"
info
"
,
data
.
service_apply_info
.
business_url
);
this
.
$set
(
this
.
list_arr
[
6
],
"
info
"
,
data
.
service_apply_info
.
apply_file
.
split
(
'
/
'
)[
data
.
service_apply_info
.
apply_file
.
split
(
'
/
'
).
length
-
1
]);
this
.
$set
(
this
.
list_arr
[
6
],
"
url
"
,
data
.
service_apply_info
.
apply_file
);
debugger
this
.
$set
(
this
.
list_arr
[
8
],
"
info
"
,
data
.
service_apply_info
.
duration
+
(
data
.
service_apply_info
.
duration_unit
==
1
?
'
月
'
:
'
年
'
));
this
.
$set
(
this
.
list_arr
[
9
],
"
info
"
,
"
访问次数:
"
+
data
.
service_apply_info
.
request_spcs
.
pv
+
"
/日 访问量:
"
+
data
.
service_apply_info
.
request_spcs
.
count
+
"
/日
"
);
this
.
id
=
data
.
service_apply_info
.
id
...
...
src/pages/workbench/yygl/app_debugger.vue
View file @
223cb2d2
...
...
@@ -53,7 +53,8 @@
<div
class=
"tips"
>
<i
class=
"el-icon-warning-outline"
></i><span>
此操作相当于:kubectl apply -f
{{
'
<
'
+
'
spec.yaml
'
+
'
>
'
}}
</span>
</div>
<v-apaas-code
:datas=
"code_arr"
></v-apaas-code>
<v-apaas-code
:datas=
"code_arr"
v-show=
"now_yaml==1"
></v-apaas-code>
<v-apaas-code
:datas=
"yaml_arr"
v-show=
"now_yaml==0"
></v-apaas-code>
</div>
</div>
...
...
@@ -93,6 +94,7 @@ export default {
now_yaml
:
0
,
pod_name
:
''
,
code_arr
:
''
,
yaml_arr
:
''
,
area_arr
:[],
app_arr
:[],
tableData
:[],
...
...
@@ -126,14 +128,12 @@ export default {
{
prop
:
"
name
"
,
label
:
"
名称
"
,
minWidth
:
"
40%
"
,
align
:
"
left
"
,
type
:
"
button
"
},
{
prop
:
"
tag
"
,
label
:
"
标签
"
,
minWidth
:
"
60%
"
,
align
:
"
left
"
,
type
:
"
tag
"
,
},
...
...
@@ -206,13 +206,6 @@ export default {
methods
:
{
changyaml
(
n
){
this
.
now_yaml
=
n
if
(
n
==
0
){
this
.
code_arr
=
yaml
.
stringify
(
this
.
code_arr
)
}
else
{
console
.
log
(
json
.
load
(
this
.
code_arr
));
console
.
log
(
JSON
.
stringify
(
json
.
load
(
this
.
code_arr
),
null
,
2
));
this
.
code_arr
=
JSON
.
stringify
(
json
.
load
(
this
.
code_arr
),
null
,
2
);
}
},
get_namespace_list
(){
this
.
$http
...
...
@@ -232,11 +225,20 @@ export default {
}
})
},
gotopage
(){
this
.
$router
.
push
(
`/yygl/
${
this
.
$route
.
params
.
level
}
/
${
this
.
$route
.
params
.
type
}
/appdebuggerdetail/
${
this
.
$route
.
params
.
deploy_id
}
?content=0`
)
gotopage
(
val
){
this
.
$http
.
get
(
`/awecloud/rest/kubernetes/api/v1/_raw/pod/namespace/
${
val
.
namespace
}
/name/
${
val
.
name
}
`
)
.
then
(
response
=>
{
this
.
$router
.
push
(
`/yygl/
${
this
.
$route
.
params
.
level
}
/
${
this
.
$route
.
params
.
type
}
/appdebuggerdetail/
${
this
.
$route
.
params
.
deploy_id
}
?content=0&namespace=
${
val
.
namespace
}
&name=
${
val
.
name
}
&container=
${
response
.
data
.
spec
.
containers
[
0
].
name
}
`
)
})
},
gotopage1
(){
this
.
$router
.
push
(
`/yygl/
${
this
.
$route
.
params
.
level
}
/
${
this
.
$route
.
params
.
type
}
/appdebuggerdetail/
${
this
.
$route
.
params
.
deploy_id
}
?content=1`
)
gotopage1
(
val
){
this
.
$http
.
get
(
`/awecloud/rest/kubernetes/api/v1/_raw/pod/namespace/
${
val
.
namespace
}
/name/
${
val
.
name
}
`
)
.
then
(
response
=>
{
this
.
$router
.
push
(
`/yygl/
${
this
.
$route
.
params
.
level
}
/
${
this
.
$route
.
params
.
type
}
/appdebuggerdetail/
${
this
.
$route
.
params
.
deploy_id
}
?content=1&namespace=
${
val
.
namespace
}
&name=
${
val
.
name
}
&container=
${
response
.
data
.
spec
.
containers
[
0
].
name
}
`
)
})
},
get_list_pod
(){
this
.
$http
...
...
@@ -301,8 +303,8 @@ export default {
.
get
(
`/awecloud/rest/kubernetes/api/v1/_raw/pod/namespace/
${
val
.
namespace
}
/name/
${
val
.
name
}
`
)
.
then
(
response
=>
{
console
.
log
(
response
.
data
);
debugger
this
.
code_arr
=
yaml
.
stringify
(
response
.
data
)
this
.
yaml_arr
=
yaml
.
stringify
(
response
.
data
)
this
.
code_arr
=
JSON
.
stringify
(
json
.
load
(
this
.
yaml_arr
),
null
,
2
);
this
.
$refs
.
actiondialog
.
show
();
})
...
...
src/pages/workbench/yygl/app_debugger_detail.vue
View file @
223cb2d2
This diff is collapsed.
Click to expand it.
src/services/helper.js
View file @
223cb2d2
...
...
@@ -77,4 +77,11 @@ module.exports.numberFormat = function (num, decimals) {
}
else
{
return
num
;
}
}
module
.
exports
.
CreationDateDesc
=
function
(
timestamp
)
{
let
date
=
new
Date
(
timestamp
);
return
date
.
toLocaleDateString
(
"
zh-CN
"
,
{
timeZone
:
"
Asia/Shanghai
"
});
}
\ No newline at end of file
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