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
8755cec3
Commit
8755cec3
authored
May 27, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ldx' into dev
parents
61618199
ce4c8d29
Changes
16
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
1538 additions
and
189 deletions
+1538
-189
src/assets/imgs/ic_CPU.png
src/assets/imgs/ic_CPU.png
+0
-0
src/assets/imgs/ic_neicun.png
src/assets/imgs/ic_neicun.png
+0
-0
src/assets/imgs/ic_rongqi.png
src/assets/imgs/ic_rongqi.png
+0
-0
src/components/codes.vue
src/components/codes.vue
+3
-3
src/components/order-list/order-list-cell.vue
src/components/order-list/order-list-cell.vue
+5
-2
src/components/order-list/order-list-com.vue
src/components/order-list/order-list-com.vue
+1
-1
src/components/shop-cloud/shop-cloud.vue
src/components/shop-cloud/shop-cloud.vue
+903
-163
src/components/table-um.vue
src/components/table-um.vue
+1
-1
src/pages/example/example_table.vue
src/pages/example/example_table.vue
+3
-3
src/pages/service_shop/service_application_successfully.vue
src/pages/service_shop/service_application_successfully.vue
+112
-0
src/pages/user/order/order_detail.vue
src/pages/user/order/order_detail.vue
+481
-0
src/pages/user/order/order_list.vue
src/pages/user/order/order_list.vue
+0
-0
src/pages/workbench/fwzc_fwcs.vue
src/pages/workbench/fwzc_fwcs.vue
+3
-4
src/request/http.js
src/request/http.js
+11
-7
src/router/index.js
src/router/index.js
+11
-1
static/data.json
static/data.json
+4
-4
No files found.
src/assets/imgs/ic_CPU.png
0 → 100644
View file @
8755cec3
1.18 KB
src/assets/imgs/ic_neicun.png
0 → 100644
View file @
8755cec3
1.11 KB
src/assets/imgs/ic_rongqi.png
0 → 100644
View file @
8755cec3
1.2 KB
src/components/codes.vue
View file @
8755cec3
...
@@ -69,15 +69,15 @@ export default {
...
@@ -69,15 +69,15 @@ export default {
}
}
</
style
>
</
style
>
<
style
>
<
style
>
.ace-container
/
deep
/
.ace-editor
{
.ace-container
.ace-editor
{
width
:
100%
!important
;
width
:
100%
!important
;
height
:
430px
!important
;
height
:
430px
!important
;
}
}
.ace-container
/
deep
/
.ace_content
{
.ace-container
.ace_content
{
/* width: 100% !important; */
/* width: 100% !important; */
height
:
430px
!important
;
height
:
430px
!important
;
}
}
.ace-container
/
deep
/
.ace_text-layer
{
.ace-container
.ace_text-layer
{
/* width: 100% !important; */
/* width: 100% !important; */
word-break
:
break-all
;
word-break
:
break-all
;
/* background:yellowgreen; */
/* background:yellowgreen; */
...
...
src/components/order-list/order-list-cell.vue
View file @
8755cec3
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
v-model=
"textarea"
v-model=
"textarea"
maxlength=
"200"
maxlength=
"200"
show-word-limit
show-word-limit
:autosize=
"
{ minRows:
4
, maxRows: 10 }"
:autosize=
"
{ minRows:
6
, maxRows: 10 }"
>
</el-input>
>
</el-input>
</div>
</div>
<div
class=
"pop_btn_group"
>
<div
class=
"pop_btn_group"
>
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
</el-col>
</el-col>
<el-col
:span=
"4"
class=
"cell_option"
>
<el-col
:span=
"4"
class=
"cell_option"
>
<div>
<div>
<el-button
size=
"madium"
class=
"cell_option_btn"
>
查看详情
</el-button>
<el-button
size=
"madium"
class=
"cell_option_btn"
@
click=
"viewDetail(cellItem.id)"
>
查看详情
</el-button>
<div
class=
"cell_option_spec"
>
再次申请
</div>
<div
class=
"cell_option_spec"
>
再次申请
</div>
</div>
</div>
</el-col>
</el-col>
...
@@ -128,6 +128,9 @@ export default {
...
@@ -128,6 +128,9 @@ export default {
addEvaluation
()
{
addEvaluation
()
{
console
.
log
(
this
.
serviceRate
,
this
.
textarea
);
console
.
log
(
this
.
serviceRate
,
this
.
textarea
);
this
.
visible
=
false
;
this
.
visible
=
false
;
},
viewDetail
(
val
)
{
this
.
$router
.
push
(
"
/user/order_detail/
"
+
val
)
}
}
}
}
};
};
...
...
src/components/order-list/order-list-com.vue
View file @
8755cec3
...
@@ -223,7 +223,7 @@ export default {
...
@@ -223,7 +223,7 @@ export default {
padding
:
17px
10px
;
padding
:
17px
10px
;
}
}
.btn_actice
{
.btn_actice
{
background-color
:
blue
;
background-color
:
#515fe7
;
color
:
#fff
;
color
:
#fff
;
}
}
.input_right
{
.input_right
{
...
...
src/components/shop-cloud/shop-cloud.vue
View file @
8755cec3
This diff is collapsed.
Click to expand it.
src/components/table-um.vue
View file @
8755cec3
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
:id=
"scope.row.id"
:id=
"scope.row.id"
:name=
"scope.row.name"
:name=
"scope.row.name"
:rowId=
"scope.$index"
:rowId=
"scope.$index"
:type=
"scope.row
.type ? scope.row.type
: ''"
:type=
"scope.row
[item.uploadKey] ? scope.row[item.uploadKey]
: ''"
:typeHead=
"item.type"
:typeHead=
"item.type"
:couldNotEdit=
"couldNotEdit"
:couldNotEdit=
"couldNotEdit"
@
changeInputValue=
"changeInputValue"
@
changeInputValue=
"changeInputValue"
...
...
src/pages/example/example_table.vue
View file @
8755cec3
...
@@ -118,7 +118,7 @@ export default {
...
@@ -118,7 +118,7 @@ export default {
],
],
headers1
:
[
headers1
:
[
{
label
:
"
服务url
"
,
prop
:
"
date
"
,
type
:
"
input
"
,
align
:
"
left
"
},
{
label
:
"
服务url
"
,
prop
:
"
date
"
,
type
:
"
input
"
,
align
:
"
left
"
},
{
label
:
"
服务名称
"
,
prop
:
"
ssss
"
,
type
:
"
upload
"
,
align
:
"
center
"
},
{
label
:
"
服务名称
"
,
prop
:
"
ssss
"
,
type
:
"
upload
"
,
align
:
"
center
"
,
uploadKey
:
"
type
"
},
{
{
label
:
"
文件类型
"
,
label
:
"
文件类型
"
,
prop
:
"
type
"
,
prop
:
"
type
"
,
...
@@ -126,8 +126,8 @@ export default {
...
@@ -126,8 +126,8 @@ export default {
align
:
"
center
"
,
align
:
"
center
"
,
width
:
100
,
width
:
100
,
selectArr
:
[
selectArr
:
[
{
label
:
"
Text
"
,
value
:
"
T
ext
"
},
{
label
:
"
text
"
,
value
:
"
t
ext
"
},
{
label
:
"
File
"
,
value
:
"
F
ile
"
}
{
label
:
"
file
"
,
value
:
"
f
ile
"
}
]
]
}
}
],
],
...
...
src/pages/service_shop/service_application_successfully.vue
0 → 100644
View file @
8755cec3
<
template
>
<div>
<block-radius
class=
"success_block"
>
<div
class=
"success_in"
>
<div
class=
"step_block"
>
<div
class=
"success"
>
<i
class=
"el-icon-success"
></i>
</div>
<div
class=
"line"
></div>
<div
class=
"next"
></div>
</div>
<div
class=
"step_text"
>
<div
class=
"step_text_1"
>
服务申请提交成功
</div>
<div
class=
"step_text_2"
>
您的申请已提交进入审核,审核通过后即可获取相应服务
</div>
</div>
</div>
<div
class=
"btn_footer"
>
<el-button
class=
"cancel"
@
click=
"goto('/services_shop')"
>
进入首页
</el-button>
<el-button
class=
"submit"
@
click=
"goto('/user/order_list')"
>
查看订单
</el-button>
</div>
</block-radius>
</div>
</
template
>
<
script
>
import
BlockRadius
from
"
@/components/block-radius
"
;
export
default
{
components
:
{
BlockRadius
},
data
:
()
=>
({}),
mounted
()
{},
methods
:
{
goto
(
url
)
{
this
.
$router
.
push
(
url
);
}
}
};
</
script
>
<
style
scoped
>
.success_block
{
width
:
1200px
;
height
:
560px
;
margin
:
130px
auto
0
;
}
.success_in
{
width
:
460px
;
display
:
flex
;
justify-content
:
space-around
;
margin
:
120px
auto
0
;
}
.step_block
{
position
:
relative
;
}
.success
{
font-size
:
36px
;
color
:
#25bdb1
;
}
.line
{
height
:
100px
;
width
:
2px
;
background-color
:
#d3d7e3
;
position
:
absolute
;
left
:
17px
;
top
:
36px
;
}
.line
::after
{
content
:
""
;
position
:
absolute
;
height
:
50px
;
width
:
2px
;
background-color
:
#25bdb1
;
top
:
0
;
}
.next
{
width
:
20px
;
height
:
20px
;
border-radius
:
10px
;
background-color
:
#d3d7e3
;
position
:
absolute
;
left
:
8px
;
top
:
136px
;
}
.step_text
{
width
:
380px
;
height
:
150px
;
}
.step_text_1
{
color
:
#25bdb1
;
margin-top
:
16px
;
margin-bottom
:
102px
;
}
.step_text_2
{
color
:
#8890a7
;
}
.btn_footer
{
width
:
460px
;
margin
:
80px
auto
;
display
:
flex
;
justify-content
:
space-between
;
}
.submit
{
width
:
200px
;
background-color
:
#0f2683
;
color
:
#f8f9fd
;
}
.cancel
{
width
:
200px
;
background-color
:
#c3caf8
;
color
:
#0f2683
;
}
</
style
>
\ No newline at end of file
src/pages/user/order/order_detail.vue
0 → 100644
View file @
8755cec3
This diff is collapsed.
Click to expand it.
src/pages/user/order_list.vue
→
src/pages/user/order
/order
_list.vue
View file @
8755cec3
File moved
src/pages/workbench/fwzc_fwcs.vue
View file @
8755cec3
...
@@ -461,11 +461,11 @@ export default {
...
@@ -461,11 +461,11 @@ export default {
align
:
"
center
"
,
align
:
"
center
"
,
width
:
100
,
width
:
100
,
selectArr
:
[
selectArr
:
[
{
label
:
"
T
ext
"
,
value
:
"
text
"
},
{
label
:
"
t
ext
"
,
value
:
"
text
"
},
{
label
:
"
F
ile
"
,
value
:
"
file
"
}
{
label
:
"
f
ile
"
,
value
:
"
file
"
}
]
]
},
},
{
label
:
"
请求值
"
,
prop
:
"
val
"
,
type
:
"
upload
"
,
align
:
"
center
"
},
{
label
:
"
请求值
"
,
prop
:
"
val
"
,
type
:
"
upload
"
,
align
:
"
center
"
,
uploadKey
:
"
field_type
"
},
{
{
label
:
"
操作
"
,
label
:
"
操作
"
,
type
:
"
Button
"
,
type
:
"
Button
"
,
...
@@ -745,7 +745,6 @@ export default {
...
@@ -745,7 +745,6 @@ export default {
request_fields
:
this
.
request_fields
,
request_fields
:
this
.
request_fields
,
response_fields
:
this
.
response_fields
response_fields
:
this
.
response_fields
};
};
let
url
=
`/apaas/service/v3/service/manager`
;
this
.
$api
.
workbench
.
serviceAdd
(
query
).
then
(
response
=>
{
this
.
$api
.
workbench
.
serviceAdd
(
query
).
then
(
response
=>
{
if
(
response
.
data
.
success
==
1
)
{
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
.
success
(
"
服务注册成功
"
);
this
.
$message
.
success
(
"
服务注册成功
"
);
...
...
src/request/http.js
View file @
8755cec3
...
@@ -30,6 +30,7 @@ const toLogin = () => {
...
@@ -30,6 +30,7 @@ const toLogin = () => {
const
errorHandle
=
(
status
,
other
)
=>
{
const
errorHandle
=
(
status
,
other
)
=>
{
// 状态码判断
// 状态码判断
switch
(
status
)
{
switch
(
status
)
{
case
400
:
tip
(
'
请求错误(400)
'
);
break
;
// 401: 未登录状态,跳转登录页
// 401: 未登录状态,跳转登录页
case
401
:
case
401
:
toLogin
();
toLogin
();
...
@@ -44,12 +45,15 @@ const errorHandle = (status, other) => {
...
@@ -44,12 +45,15 @@ const errorHandle = (status, other) => {
toLogin
();
toLogin
();
},
1000
);
},
1000
);
break
;
break
;
// 404请求不存在
case
404
:
tip
(
'
请求的资源不存在
'
);
break
;
case
404
:
case
408
:
tip
(
'
请求超时(408)
'
);
tip
(
'
请求的资源不存在
'
);
case
500
:
tip
(
'
服务器错误(500)
'
);
break
;
case
501
:
tip
(
'
服务未实现(501)
'
);
default
:
case
502
:
tip
(
'
网络错误(502)
'
);
console
.
log
(
other
);
case
503
:
tip
(
'
服务不可用(503)
'
);
case
504
:
tip
(
'
网络超时(504)
'
);
case
505
:
tip
(
'
HTTP版本不受支持(505)
'
);
default
:
tip
(
`连接出错,
${
other
}
`
);
}
}
}
}
...
@@ -78,7 +82,7 @@ instance.interceptors.response.use(
...
@@ -78,7 +82,7 @@ instance.interceptors.response.use(
const
{
response
}
=
error
;
const
{
response
}
=
error
;
if
(
response
)
{
if
(
response
)
{
// 请求已发出,但是不在2xx的范围
// 请求已发出,但是不在2xx的范围
errorHandle
(
response
.
status
,
response
.
data
.
message
);
errorHandle
(
response
.
status
,
response
.
data
.
err
message
);
return
Promise
.
reject
(
response
);
return
Promise
.
reject
(
response
);
}
}
});
});
...
...
src/router/index.js
View file @
8755cec3
...
@@ -142,6 +142,11 @@ export default new Router({
...
@@ -142,6 +142,11 @@ export default new Router({
name
:
"
shopCloud
"
,
name
:
"
shopCloud
"
,
component
:
()
=>
import
(
"
@/pages/service_shop/shop_cloud
"
),
component
:
()
=>
import
(
"
@/pages/service_shop/shop_cloud
"
),
},
},
{
path
:
"
/shop/service_application_successfully
"
,
// 云资源服务
name
:
"
shopSuccess
"
,
component
:
()
=>
import
(
"
@/pages/service_shop/service_application_successfully
"
),
},
{
{
path
:
"
/shop/app_store_list
"
,
// 应用商店列表页
path
:
"
/shop/app_store_list
"
,
// 应用商店列表页
name
:
"
shopAppStoreList
"
,
name
:
"
shopAppStoreList
"
,
...
@@ -213,7 +218,12 @@ export default new Router({
...
@@ -213,7 +218,12 @@ export default new Router({
{
{
path
:
"
/user/order_list
"
,
// 订单管理页
path
:
"
/user/order_list
"
,
// 订单管理页
name
:
"
orderList
"
,
name
:
"
orderList
"
,
component
:
()
=>
import
(
"
@/pages/user/order_list
"
),
component
:
()
=>
import
(
"
@/pages/user/order/order_list
"
),
},
{
path
:
"
/user/order_detail/:id
"
,
// 订单管理页
name
:
"
orderDetail
"
,
component
:
()
=>
import
(
"
@/pages/user/order/order_detail
"
),
},
},
],
],
},
// 个人中心
},
// 个人中心
...
...
static/data.json
View file @
8755cec3
...
@@ -4,28 +4,28 @@
...
@@ -4,28 +4,28 @@
{
{
"date"
:
"2016-05-02"
,
"date"
:
"2016-05-02"
,
"name"
:
"王小虎"
,
"name"
:
"王小虎"
,
"type"
:
"
F
ile"
,
"type"
:
"
f
ile"
,
"id"
:
"ssss2722"
,
"id"
:
"ssss2722"
,
"state"
:
0
"state"
:
0
},
},
{
{
"date"
:
"2016-05-04"
,
"date"
:
"2016-05-04"
,
"name"
:
"王小虎"
,
"name"
:
"王小虎"
,
"type"
:
"
T
ext"
,
"type"
:
"
t
ext"
,
"id"
:
"ssss2224"
,
"id"
:
"ssss2224"
,
"state"
:
0
"state"
:
0
},
},
{
{
"date"
:
"2016-05-01"
,
"date"
:
"2016-05-01"
,
"name"
:
"王小虎"
,
"name"
:
"王小虎"
,
"type"
:
"
T
ext"
,
"type"
:
"
t
ext"
,
"id"
:
"ssss222"
,
"id"
:
"ssss222"
,
"state"
:
1
"state"
:
1
},
},
{
{
"date"
:
"2016-05-03"
,
"date"
:
"2016-05-03"
,
"name"
:
"王小虎"
,
"name"
:
"王小虎"
,
"type"
:
"
F
ile"
,
"type"
:
"
f
ile"
,
"id"
:
"ssss22"
,
"id"
:
"ssss22"
,
"state"
:
2
"state"
:
2
}
}
...
...
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