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
eb14d451
Commit
eb14d451
authored
Jun 03, 2020
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务详情页
parent
0278c8e3
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
156 additions
and
110 deletions
+156
-110
src/components/codes.vue
src/components/codes.vue
+4
-1
src/components/service-header.vue
src/components/service-header.vue
+4
-1
src/components/table-input.vue
src/components/table-input.vue
+1
-1
src/components/table-select.vue
src/components/table-select.vue
+3
-3
src/components/table-um.vue
src/components/table-um.vue
+1
-0
src/pages/workbench/fwgl/serviceDetail.vue
src/pages/workbench/fwgl/serviceDetail.vue
+124
-101
src/utils/common.js
src/utils/common.js
+19
-3
No files found.
src/components/codes.vue
View file @
eb14d451
...
...
@@ -17,7 +17,7 @@ import ace from "ace-builds";
import
"
ace-builds/webpack-resolver
"
;
// 在 webpack 环境中使用必须要导入
import
"
ace-builds/src-noconflict/mode-json
"
;
// 默认设置的语言模式
export
default
{
props
:
[
"
url
"
],
props
:
[
"
url
"
,
"
datas
"
],
data
()
{
return
{
aceEditor
:
null
,
...
...
@@ -39,6 +39,9 @@ export default {
if
(
this
.
url
)
{
this
.
getValue
();
}
if
(
this
.
datas
)
{
this
.
aceEditor
.
setValue
(
this
.
datas
);
}
},
watch
:
{},
methods
:
{
...
...
src/components/service-header.vue
View file @
eb14d451
...
...
@@ -10,7 +10,7 @@
<span
class=
"right underline"
v-if=
"data.yydetail"
@
click=
"subevent(2)"
title=
"申请下线至开发者应用"
>
申请下线
</span>
<span
class=
"right undersell"
v-if=
"data.yydetail"
@
click=
"subevent(3)"
>
申请下架
</span>
<span
class=
"right undersell undermy"
v-if=
"data.bsdetail"
@
click=
"subevent(4)"
>
申请密钥
</span>
<span
class=
"info_fix"
v-if=
"data.fixed"
>
我要修改
</span>
<span
class=
"info_fix"
v-if=
"data.fixed"
@
click=
"goto_page(data.fixedurl)"
>
我要修改
</span>
</p>
<div
class=
"info_detail"
>
<p>
...
...
@@ -63,6 +63,9 @@ export default {
}
else
if
(
val
==
4
){
this
.
$emit
(
'
applymy
'
,
1
)
}
},
goto_page
(
url
){
this
.
$router
.
push
(
url
)
}
},
};
...
...
src/components/table-input.vue
View file @
eb14d451
...
...
@@ -55,7 +55,7 @@ export default {
default
:
""
},
id
:
{
type
:
String
,
type
:
[
String
,
Number
]
,
default
:
""
},
name
:
{
...
...
src/components/table-select.vue
View file @
eb14d451
...
...
@@ -32,7 +32,6 @@ export default {
}
},
item
:
{
type
:
String
,
default
:
""
},
header
:
{
...
...
@@ -40,7 +39,7 @@ export default {
default
:
""
},
id
:
{
type
:
String
,
type
:
[
String
,
Number
]
,
default
:
""
},
name
:
{
...
...
@@ -61,7 +60,8 @@ export default {
this
.
selectValue
=
this
.
item
;
if
(
this
.
selectValue
==
null
||
!
this
.
selectValue
||
this
.
selectValue
==
""
)
{
if
(
this
.
selectArr
&&
this
.
selectArr
.
length
!=
0
)
{
this
.
selectValue
=
this
.
selectArr
[
0
].
value
;
this
.
selectValue
=
""
// this.selectValue = this.selectArr[0].value;//去掉默认值
}
else
{
this
.
selectValue
=
""
;
}
...
...
src/components/table-um.vue
View file @
eb14d451
...
...
@@ -653,6 +653,7 @@ export default {
arr
.
forEach
(
item
=>
{
newRow
[
item
.
prop
]
=
""
})
newRow
.
flag
=
true
//新增标记
newRow
.
id
=
parseInt
(
Math
.
random
()
*
100000
,
10
)
+
""
+
...
...
src/pages/workbench/fwgl/serviceDetail.vue
View file @
eb14d451
This diff is collapsed.
Click to expand it.
src/utils/common.js
View file @
eb14d451
function
getRole
(){
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
true
){
resolve
(
2
)
resolve
(
1
)
}
else
{
reject
(
'
error
'
)
}
})
}
//时间戳转时间格式
var
formatDateTime_date
=
function
(
date
)
{
debugger
var
y
=
date
.
getFullYear
();
var
M
=
date
.
getMonth
()
+
1
;
M
=
M
<
10
?
(
'
0
'
+
M
)
:
M
;
var
d
=
date
.
getDate
();
d
=
d
<
10
?
(
'
0
'
+
d
)
:
d
;
var
h
=
date
.
getHours
();
h
=
h
<
10
?
(
'
0
'
+
h
)
:
h
;
var
m
=
date
.
getMinutes
();
m
=
m
<
10
?
(
'
0
'
+
m
)
:
m
;
var
s
=
date
.
getSeconds
();
s
=
s
<
10
?
(
'
0
'
+
s
)
:
s
;
return
y
+
'
-
'
+
M
+
'
-
'
+
d
+
'
'
+
h
+
'
:
'
+
m
+
'
:
'
+
s
;
};
export
{
getRole
getRole
,
formatDateTime_date
}
\ 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