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
06a84822
Commit
06a84822
authored
Oct 29, 2020
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用详情
parent
3b6abece
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
215 additions
and
64 deletions
+215
-64
src/assets/imgs/money_table_ico.png
src/assets/imgs/money_table_ico.png
+0
-0
src/components/shop-car-apply/apply_service_state.vue
src/components/shop-car-apply/apply_service_state.vue
+17
-15
src/components/shop-car-apply/service_list.vue
src/components/shop-car-apply/service_list.vue
+8
-4
src/components/table/table-input.vue
src/components/table/table-input.vue
+10
-0
src/components/table/table-um.vue
src/components/table/table-um.vue
+16
-4
src/pages/service_shop/shop_car_apply.vue
src/pages/service_shop/shop_car_apply.vue
+59
-6
src/pages/workbench/fwgl/serviceDetail.vue
src/pages/workbench/fwgl/serviceDetail.vue
+3
-3
src/pages/workbench/yygl/app_detail.vue
src/pages/workbench/yygl/app_detail.vue
+98
-30
src/pages/workbench/yygl/apply_app_detail.vue
src/pages/workbench/yygl/apply_app_detail.vue
+2
-1
src/pages/workbench/yygl/approval_app_detail.vue
src/pages/workbench/yygl/approval_app_detail.vue
+2
-1
No files found.
src/assets/imgs/money_table_ico.png
0 → 100644
View file @
06a84822
1.2 KB
src/components/shop-car-apply/apply_service_state.vue
View file @
06a84822
...
@@ -37,10 +37,10 @@
...
@@ -37,10 +37,10 @@
</div>
</div>
</div>
</div>
<div
class=
"size"
>
<div
class=
"size"
>
<p>
{{
data
.
size
}}
</p>
<p>
{{
data
.
size
}}
</p>
<P>
{{
data
.
applytype
}}
</P>
</div>
</div>
<div
class=
"num"
>
{{
data
.
num
}}
</div>
<div
class=
"num"
>
{{
data
.
num
}}
</div>
<div
class=
"count"
>
{{
data
.
count
}}
</div>
<div
class=
"oprate"
>
<div
class=
"oprate"
>
<upload-file
<upload-file
v-if=
"data.isMg"
v-if=
"data.isMg"
...
@@ -156,7 +156,7 @@ export default {
...
@@ -156,7 +156,7 @@ export default {
}
}
.serviceinfo
{
.serviceinfo
{
width
:
415px
;
width
:
415px
;
margin-right
:
90
px
;
margin-right
:
66
px
;
}
}
.pic
{
.pic
{
width
:
116px
;
width
:
116px
;
...
@@ -193,27 +193,29 @@ export default {
...
@@ -193,27 +193,29 @@ export default {
.size
{
.size
{
width
:
240px
;
width
:
240px
;
height
:
107px
;
height
:
107px
;
background-color
:
rgba
(
249
,
250
,
252
,
1
)
;
line-height
:
107px
;
border-radius
:
8px
;
border-radius
:
8px
;
margin-right
:
70px
;
color
:
#242c43
;
padding
:
20px
;
color
:
rgba
(
136
,
144
,
167
,
1
);
}
.size
p
:nth-of-type
(
1
)
{
line-height
:
22px
;
margin-bottom
:
10px
;
}
}
.num
{
.num
{
width
:
138px
;
width
:
138px
;
height
:
107px
;
height
:
107px
;
line-height
:
107px
;
line-height
:
107px
;
font-size
:
16px
;
font-size
:
14px
;
color
:
rgba
(
88
,
97
,
122
,
1
);
color
:
#242c43
;
margin-right
:
55px
;
margin-right
:
20px
;
text-align
:
center
;
}
.count
{
width
:
108px
;
height
:
107px
;
line-height
:
107px
;
font-size
:
14px
;
color
:
#242c43
;
text-align
:
center
;
text-align
:
center
;
}
}
.oprate
{
.oprate
{
width
:
1
3
0px
;
width
:
1
5
0px
;
height
:
107px
;
height
:
107px
;
padding-top
:
34px
;
padding-top
:
34px
;
padding-left
:
30px
;
padding-left
:
30px
;
...
...
src/components/shop-car-apply/service_list.vue
View file @
06a84822
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
<p
class=
"list_title"
>
<p
class=
"list_title"
>
<span>
服务信息
</span>
<span>
服务信息
</span>
<span>
规格
</span>
<span>
规格
</span>
<span>
数量
</span>
<span>
购买时长
</span>
<span>
小计
</span>
<span>
操作
</span>
<span>
操作
</span>
</p>
</p>
<apply-service-state
ref=
"apply_service_state"
v-for=
"(item,index) in service_arr"
:idx=
"index"
:key=
"index+5000"
:data=
"item"
></apply-service-state>
<apply-service-state
ref=
"apply_service_state"
v-for=
"(item,index) in service_arr"
:idx=
"index"
:key=
"index+5000"
:data=
"item"
></apply-service-state>
...
@@ -67,13 +68,16 @@ export default {
...
@@ -67,13 +68,16 @@ export default {
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.list_title
span
:nth-of-type
(
1
)
{
.list_title
span
:nth-of-type
(
1
)
{
margin-right
:
4
60
px
;
margin-right
:
4
14
px
;
}
}
.list_title
span
:nth-of-type
(
2
)
{
.list_title
span
:nth-of-type
(
2
)
{
margin-right
:
315
px
;
margin-right
:
246
px
;
}
}
.list_title
span
:nth-of-type
(
3
)
{
.list_title
span
:nth-of-type
(
3
)
{
margin-right
:
155px
;
margin-right
:
96px
;
}
.list_title
span
:nth-of-type
(
4
)
{
margin-right
:
124px
;
}
}
</
style
>
</
style
>
src/components/table/table-input.vue
View file @
06a84822
...
@@ -11,6 +11,16 @@
...
@@ -11,6 +11,16 @@
class=
"table_in_input"
class=
"table_in_input"
></el-input>
></el-input>
</div>
</div>
<div
v-else-if=
"typeHead == 'inputMoney'"
class=
"text-xs-center"
>
<el-input
ref=
"inpNum"
v-model=
"inputText"
:disabled=
"couldNotEdit || name == ''||itemEdit"
size=
"small"
@
input=
"changeValue"
class=
"table_in_input"
></el-input>
</div>
<div
<div
v-else-if=
"typeHead == 'input' || type == '' || (typeHead == 'upload' && type == 'text')"
v-else-if=
"typeHead == 'input' || type == '' || (typeHead == 'upload' && type == 'text')"
class=
"text-xs-center"
class=
"text-xs-center"
...
...
src/components/table/table-um.vue
View file @
06a84822
...
@@ -154,7 +154,7 @@
...
@@ -154,7 +154,7 @@
></v-apaas-table-umhref>
></v-apaas-table-umhref>
<!-- could edit -->
<!-- could edit -->
<v-apaas-table-input
<v-apaas-table-input
v-else-if=
"item.type === 'input' || item.type === 'upload' || item.type === 'inputNumber'"
v-else-if=
"item.type === 'input' || item.type === 'upload' || item.type === 'inputNumber'
||item.type ==='inputMoney'
"
:item=
"helper.GetProperty(scope.row, item.prop)"
:item=
"helper.GetProperty(scope.row, item.prop)"
:header=
"item.prop"
ref=
""
:header=
"item.prop"
ref=
""
:id=
"scope.row.id"
:id=
"scope.row.id"
...
@@ -162,7 +162,7 @@
...
@@ -162,7 +162,7 @@
:rowId=
"scope.$index"
:rowId=
"scope.$index"
:type=
"scope.row[item.uploadKey] ? scope.row[item.uploadKey] : ''"
:type=
"scope.row[item.uploadKey] ? scope.row[item.uploadKey] : ''"
:typeHead=
"item.type"
:typeHead=
"item.type"
:itemEdit=
"scope.row[item.prop]=='不限次数'||scope.row[item.prop]=='申请获取应用镜像部署权限'
||scope.row[item.prop]=='提供2核4G,4核8G等多种规格'
"
:itemEdit=
"scope.row[item.prop]=='不限次数'||scope.row[item.prop]=='申请获取应用镜像部署权限'"
:couldNotEdit=
"couldNotEdit"
:couldNotEdit=
"couldNotEdit"
@
changeInputValue=
"changeInputValue"
@
changeInputValue=
"changeInputValue"
@
changeUpFile=
"changeUpFile"
@
changeUpFile=
"changeUpFile"
...
@@ -381,6 +381,10 @@ export default {
...
@@ -381,6 +381,10 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
limitEditLength
:{
type
:
Number
,
default
:
0
},
params
:
{
params
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{}
...
@@ -483,7 +487,11 @@ export default {
...
@@ -483,7 +487,11 @@ export default {
this
.
selectedTabsPage
=
JSON
.
parse
(
JSON
.
stringify
(
data
.
newArr
));
this
.
selectedTabsPage
=
JSON
.
parse
(
JSON
.
stringify
(
data
.
newArr
));
this
.
pagination
.
total
=
data
.
total
;
this
.
pagination
.
total
=
data
.
total
;
if
(
this
.
autoAdd
)
{
if
(
this
.
autoAdd
)
{
this
.
addRow
();
if
(
this
.
limitEditLength
!==
0
&&
this
.
limitEditLength
<=
this
.
selectedTabsPage
.
length
){
}
else
{
this
.
addRow
();
}
}
}
if
(
this
.
selectedTabsPage
[
0
]
&&
this
.
selectedTabsPage
[
0
].
id
)
{
if
(
this
.
selectedTabsPage
[
0
]
&&
this
.
selectedTabsPage
[
0
].
id
)
{
}
else
{
}
else
{
...
@@ -676,7 +684,11 @@ export default {
...
@@ -676,7 +684,11 @@ export default {
val
.
inputValue
!=
""
&&
val
.
inputValue
!=
""
&&
val
.
rowId
+
1
==
this
.
selectedTabsPage
.
length
val
.
rowId
+
1
==
this
.
selectedTabsPage
.
length
)
{
)
{
this
.
addRow
();
if
(
this
.
limitEditLength
!==
0
&&
this
.
limitEditLength
<=
this
.
selectedTabsPage
.
length
){
}
else
{
this
.
addRow
();
}
}
}
},
},
// 根据id修改该行数据
// 根据id修改该行数据
...
...
src/pages/service_shop/shop_car_apply.vue
View file @
06a84822
...
@@ -6,8 +6,15 @@
...
@@ -6,8 +6,15 @@
</info-list>
</info-list>
<div
class=
"footout"
>
<div
class=
"footout"
>
<span>
共
{{
service_arr
.
length
}}
项服务
</span>
<span
class=
"applybtn"
@
click=
"sub_service()"
>
提交申请
</span>
<span
class=
"applybtn"
@
click=
"sub_service()"
>
提交申请
</span>
<div
class=
"count_money"
>
<p>
费用总计:
<span>
{{
all_cost
}}
</span><span>
金币
</span>
</p>
<p>
<span>
共
{{
service_arr
.
length
}}
项服务
</span><span>
|
账户余额:
{{
now_money
}}
金币
</span>
</p>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -30,6 +37,8 @@ export default {
...
@@ -30,6 +37,8 @@ export default {
preson
:
""
,
preson
:
""
,
phone
:
""
,
phone
:
""
,
},
},
all_cost
:
''
,
now_money
:
''
,
module_arr
:
[
module_arr
:
[
{
{
title
:
"
服务申请
"
,
title
:
"
服务申请
"
,
...
@@ -120,9 +129,19 @@ export default {
...
@@ -120,9 +129,19 @@ export default {
});
});
this
.
get_car_list
(
temp_arr
);
this
.
get_car_list
(
temp_arr
);
}
}
this
.
get_account_money
()
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
get_account_money
(){
this
.
$http
.
get
(
`/apaas/backmgt/user/myAccount`
).
then
(
res
=>
{
console
.
log
(
res
);
if
(
res
.
data
.
success
){
this
.
now_money
=
res
.
data
.
data
.
account_balance
}
})
},
get_one_app
(
app_data
)
{
get_one_app
(
app_data
)
{
this
.
$http
this
.
$http
.
get
(
`/apaas/serviceapp/v3/shopcart/appinfo?app_id=
${
app_data
.
app_id
}
`
)
.
get
(
`/apaas/serviceapp/v3/shopcart/appinfo?app_id=
${
app_data
.
app_id
}
`
)
...
@@ -142,13 +161,14 @@ export default {
...
@@ -142,13 +161,14 @@ export default {
this
.
service_arr
[
0
][
"
title
"
]
=
data
.
app_name
;
this
.
service_arr
[
0
][
"
title
"
]
=
data
.
app_name
;
this
.
service_arr
[
0
][
"
type
"
]
=
data
.
type_name
;
this
.
service_arr
[
0
][
"
type
"
]
=
data
.
type_name
;
this
.
service_arr
[
0
][
"
auth
"
]
=
data
.
org_name
;
this
.
service_arr
[
0
][
"
auth
"
]
=
data
.
org_name
;
this
.
service_arr
[
0
][
"
size
"
]
=
this
.
service_arr
[
0
][
"
size
"
]
=
"
应用镜像部署权限:
"
+
data
.
price
+
"
金币/月
"
;
"
规格:
"
+
(
app_data
.
spec_id
==
0
?
"
部署
"
:
"
开发
"
);
this
.
service_arr
[
0
][
"
applytype
"
]
=
this
.
service_arr
[
0
][
"
applytype
"
]
=
"
申请方式:
"
+
(
app_data
.
duration_unit
==
1
?
"
月
"
:
"
年
"
);
"
申请方式:
"
+
(
app_data
.
duration_unit
==
1
?
"
月
"
:
"
年
"
);
this
.
service_arr
[
0
][
"
num
"
]
=
app_data
.
duration
;
this
.
service_arr
[
0
][
"
num
"
]
=
app_data
.
duration
;
this
.
service_arr
[
0
][
"
count
"
]
=
app_data
.
duration
*
parseFloat
(
data
.
price
)
+
'
金币
'
;
this
.
service_arr
[
0
][
"
isMg
"
]
=
false
;
this
.
service_arr
[
0
][
"
isMg
"
]
=
false
;
this
.
service_arr
[
0
][
"
isapp
"
]
=
true
;
this
.
service_arr
[
0
][
"
isapp
"
]
=
true
;
this
.
all_cost
=
app_data
.
duration
*
parseFloat
(
data
.
price
)
}
}
});
});
},
},
...
@@ -237,6 +257,10 @@ export default {
...
@@ -237,6 +257,10 @@ export default {
});
});
},
},
sub_service
()
{
sub_service
()
{
if
(
this
.
all_cost
>
this
.
now_money
){
this
.
$message
.
error
(
'
余额不足,请进行充值
'
)
return
}
let
formInline
=
this
.
$refs
.
apply_info
.
formInline
;
let
formInline
=
this
.
$refs
.
apply_info
.
formInline
;
let
flag
=
null
;
let
flag
=
null
;
this
.
$refs
.
apply_info
.
$refs
.
ruleForm
.
validate
((
valid
)
=>
{
this
.
$refs
.
apply_info
.
$refs
.
ruleForm
.
validate
((
valid
)
=>
{
...
@@ -327,6 +351,7 @@ export default {
...
@@ -327,6 +351,7 @@ export default {
get_car_list
(
car_arr
)
{
get_car_list
(
car_arr
)
{
this
.
service_arr
=
[];
this
.
service_arr
=
[];
this
.
post_arr
=
[];
this
.
post_arr
=
[];
var
temp_cost
=
0
this
.
$http
this
.
$http
.
get
(
`/apaas/serviceapp/v3/shopcart/list`
)
.
get
(
`/apaas/serviceapp/v3/shopcart/list`
)
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
...
@@ -345,13 +370,14 @@ export default {
...
@@ -345,13 +370,14 @@ export default {
this
.
service_arr
[
l
][
"
title
"
]
=
e
.
application
.
app_name
;
this
.
service_arr
[
l
][
"
title
"
]
=
e
.
application
.
app_name
;
this
.
service_arr
[
l
][
"
type
"
]
=
e
.
application
.
type_name
;
this
.
service_arr
[
l
][
"
type
"
]
=
e
.
application
.
type_name
;
this
.
service_arr
[
l
][
"
auth
"
]
=
e
.
application
.
org_name
;
this
.
service_arr
[
l
][
"
auth
"
]
=
e
.
application
.
org_name
;
this
.
service_arr
[
l
][
"
size
"
]
=
this
.
service_arr
[
l
][
"
size
"
]
=
"
应用镜像部署权限:
"
+
e
.
application
.
price
+
"
金币/月
"
;
"
规格:
"
+
(
e
.
spec_id
==
0
?
"
部署
"
:
"
开发
"
);
this
.
service_arr
[
l
][
"
applytype
"
]
=
this
.
service_arr
[
l
][
"
applytype
"
]
=
"
申请方式:
"
+
(
e
.
duration_method
==
1
?
"
月
"
:
"
年
"
);
"
申请方式:
"
+
(
e
.
duration_method
==
1
?
"
月
"
:
"
年
"
);
this
.
service_arr
[
l
][
"
num
"
]
=
e
.
duration
;
this
.
service_arr
[
l
][
"
num
"
]
=
e
.
duration
;
this
.
service_arr
[
l
][
"
count
"
]
=
e
.
duration
*
parseFloat
(
e
.
application
.
price
)
+
'
金币
'
;
this
.
service_arr
[
l
][
"
isMg
"
]
=
false
;
this
.
service_arr
[
l
][
"
isMg
"
]
=
false
;
this
.
service_arr
[
l
][
"
isapp
"
]
=
true
;
this
.
service_arr
[
l
][
"
isapp
"
]
=
true
;
temp_cost
=
temp_cost
+
e
.
duration
*
parseFloat
(
e
.
application
.
price
)
}
else
{
}
else
{
//服务
//服务
this
.
service_arr
[
l
][
"
img
"
]
=
e
.
service
.
cover
;
this
.
service_arr
[
l
][
"
img
"
]
=
e
.
service
.
cover
;
...
@@ -387,6 +413,7 @@ export default {
...
@@ -387,6 +413,7 @@ export default {
this
.
service_arr
[
l
][
"
isapp
"
]
=
false
;
this
.
service_arr
[
l
][
"
isapp
"
]
=
false
;
}
}
});
});
this
.
all_cost
=
temp_cost
// this.service_arr =
// this.service_arr =
})
})
.
catch
((
response
)
=>
{});
.
catch
((
response
)
=>
{});
...
@@ -417,10 +444,36 @@ export default {
...
@@ -417,10 +444,36 @@ export default {
height
:
44px
;
height
:
44px
;
line-height
:
44px
;
line-height
:
44px
;
text-align
:
center
;
text-align
:
center
;
display
:
inline-block
;
float
:
right
;
background-color
:
rgba
(
229
,
102
,
0
,
1
);
background-color
:
rgba
(
229
,
102
,
0
,
1
);
border-radius
:
8px
;
border-radius
:
8px
;
margin-left
:
20px
;
margin-left
:
20px
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.count_money
{
float
:
right
;
margin-top
:
-10px
;
}
.count_money
p
:nth-of-type
(
1
)
{
font-size
:
18px
;
color
:
#242c43
;
margin-bottom
:
10px
;
}
.count_money
p
:nth-of-type
(
1
)
span
{
color
:
#e56600
;
}
.count_money
p
:nth-of-type
(
1
)
span
:nth-of-type
(
1
)
{
font-size
:
24px
;
}
.count_money
p
:nth-of-type
(
1
)
span
:nth-of-type
(
2
)
{
font-size
:
14px
;
}
.count_money
p
:nth-of-type
(
2
)
{
font-size
:
14px
;
color
:
#58617a
;
}
.count_money
p
:nth-of-type
(
2
)
span
:nth-of-type
(
2
)
{
color
:
#a9aec0
;
margin-left
:
20px
;
}
</
style
>
</
style
>
src/pages/workbench/fwgl/serviceDetail.vue
View file @
06a84822
...
@@ -876,7 +876,7 @@ export default {
...
@@ -876,7 +876,7 @@ export default {
edit_size_arr
:
[
edit_size_arr
:
[
{
{
prop
:
"
type
"
,
prop
:
"
type
"
,
label
:
'
规格类型<span title="计
费计时"><img style="width:20px;" src="
'
+
require
(
'
../../../assets/imgs/demo_log
o.png
'
)
+
'
" alt=""></span>
'
,
label
:
'
规格类型<span title="计
次收费规格:仅依据服务调用次数进行收费,不限时长。 时长收费规格:按月为时间单位进行收费,每月使用次数不限。"><img style="margin-left:5px;vertical-align:-3px;" src="
'
+
require
(
'
../../../assets/imgs/money_table_ic
o.png
'
)
+
'
" alt=""></span>
'
,
width
:
"
180px
"
,
width
:
"
180px
"
,
align
:
"
center
"
,
align
:
"
center
"
,
type
:
"
select
"
,
type
:
"
select
"
,
...
@@ -896,11 +896,11 @@ export default {
...
@@ -896,11 +896,11 @@ export default {
label
:
"
价格/金币
"
,
label
:
"
价格/金币
"
,
width
:
"
200px
"
,
width
:
"
200px
"
,
align
:
"
center
"
,
align
:
"
center
"
,
type
:
"
input
Number
"
,
type
:
"
input
Money
"
,
},
},
{
{
prop
:
"
pv
"
,
prop
:
"
pv
"
,
label
:
"
调用次数
"
,
label
:
'
调用次数<span title="该规格提供的服务调用次数。"><img style="margin-left:5px;vertical-align:-3px;" src="
'
+
require
(
'
../../../assets/imgs/money_table_ico.png
'
)
+
'
" alt=""></span>
'
,
width
:
"
200px
"
,
width
:
"
200px
"
,
align
:
"
center
"
,
align
:
"
center
"
,
type
:
"
input
"
,
type
:
"
input
"
,
...
...
src/pages/workbench/yygl/app_detail.vue
View file @
06a84822
...
@@ -222,6 +222,7 @@
...
@@ -222,6 +222,7 @@
:couldNotEdit=
"false"
:couldNotEdit=
"false"
:radius=
"true"
:radius=
"true"
:isIndex=
"true"
:isIndex=
"true"
:limitEditLength=
"1"
:datas=
"service_size_data"
:datas=
"service_size_data"
@
changeTable=
"now_size_data"
@
changeTable=
"now_size_data"
></table-um>
></table-um>
...
@@ -298,6 +299,7 @@ import { mapGetters, mapState } from "vuex";
...
@@ -298,6 +299,7 @@ import { mapGetters, mapState } from "vuex";
import
apassTable
from
"
@/components/apass-table
"
;
import
apassTable
from
"
@/components/apass-table
"
;
import
imageDetail
from
"
@/components/image-detail
"
;
import
imageDetail
from
"
@/components/image-detail
"
;
import
ListPagination
from
"
@/components/comments-pagination
"
;
import
ListPagination
from
"
@/components/comments-pagination
"
;
import
helper
from
"
@/services/helper
"
;
export
default
{
export
default
{
components
:
{
components
:
{
infoList
,
infoList
,
...
@@ -367,59 +369,49 @@ export default {
...
@@ -367,59 +369,49 @@ export default {
fileList
:
[],
fileList
:
[],
trans_log_header
:[
trans_log_header
:[
{
{
prop
:
"
d
ydw
"
,
prop
:
"
d
epartment_name
"
,
label
:
"
申请单位
"
,
label
:
"
申请单位
"
,
minWidth
:
"
20%
"
,
minWidth
:
"
20%
"
,
align
:
"
left
"
,
align
:
"
left
"
,
},
},
{
{
prop
:
"
dyyw
"
,
prop
:
"
system_name
"
,
label
:
"
业务系统
"
,
label
:
"
业务系统
"
,
minWidth
:
"
20%
"
,
minWidth
:
"
20%
"
,
align
:
"
left
"
,
align
:
"
left
"
,
},
},
{
{
prop
:
"
sqr
"
,
prop
:
"
user_name
"
,
label
:
"
申请人
"
,
label
:
"
申请人
"
,
minWidth
:
"
20%
"
,
minWidth
:
"
20%
"
,
align
:
"
center
"
,
align
:
"
center
"
,
},
},
{
{
prop
:
"
gg
"
,
prop
:
"
spcs_descript
"
,
label
:
"
规格
"
,
label
:
"
规格
"
,
minWidth
:
"
20%
"
,
minWidth
:
"
20%
"
,
align
:
"
left
"
,
align
:
"
left
"
,
},
},
{
{
prop
:
"
sqsc
"
,
prop
:
"
duration
"
,
label
:
"
购买时长
"
,
label
:
"
购买时长
"
,
width
:
"
110px
"
,
width
:
"
110px
"
,
align
:
"
center
"
,
align
:
"
center
"
,
},
},
{
{
prop
:
"
price
"
,
prop
:
"
total_money
"
,
label
:
"
订单总价
"
,
label
:
"
订单总价
"
,
width
:
"
150px
"
,
width
:
"
150px
"
,
align
:
"
center
"
,
align
:
"
center
"
,
},
},
{
{
prop
:
"
sqsj
"
,
prop
:
"
add_time_name
"
,
label
:
"
交易时间
"
,
label
:
"
交易时间
"
,
width
:
"
160px
"
,
width
:
"
160px
"
,
align
:
"
center
"
,
align
:
"
center
"
,
},
},
],
],
trans_log_data
:[
trans_log_data
:[],
{
dydw
:
'
机关事务局
'
,
dyyw
:
'
业务系统
'
,
sqr
:
'
超管用户
'
,
gg
:
'
申请获取应用镜像部署权限(3000/月)
'
,
sqsc
:
'
1
'
,
price
:
'
3000金币
'
,
sqsj
:
'
2020-10-12 10:30:52
'
}
],
trans_log_arr
:[
trans_log_arr
:[
{
{
title
:
"
应用交易概览
"
,
title
:
"
应用交易概览
"
,
...
@@ -437,16 +429,16 @@ export default {
...
@@ -437,16 +429,16 @@ export default {
},
},
],
],
trans_all_obj
:{
trans_all_obj
:{
all
:
1123
,
all
:
0
,
times
:
13215
,
times
:
0
,
month
:
1312
,
month
:
0
,
},
},
service_size_data
:[],
service_size_data
:[],
service_size_arr
:
[
service_size_arr
:
[
{
{
prop
:
"
type
"
,
prop
:
"
type
"
,
label
:
"
规格类别
"
,
label
:
"
规格类别
"
,
minWidth
:
"
33.33%
"
,
width
:
"
300px
"
,
align
:
"
center
"
,
align
:
"
center
"
,
},
},
{
{
...
@@ -457,7 +449,7 @@ export default {
...
@@ -457,7 +449,7 @@ export default {
},
},
{
{
prop
:
"
price
"
,
prop
:
"
price
"
,
label
:
"
价格
"
,
label
:
"
价格
(金币)
"
,
width
:
"
200px
"
,
width
:
"
200px
"
,
align
:
"
center
"
,
align
:
"
center
"
,
},
},
...
@@ -472,16 +464,16 @@ export default {
...
@@ -472,16 +464,16 @@ export default {
{
{
prop
:
"
type
"
,
prop
:
"
type
"
,
label
:
"
规格类别
"
,
label
:
"
规格类别
"
,
width
:
"
1
50px
"
,
width
:
"
2
50px
"
,
align
:
"
left
"
,
align
:
"
left
"
,
type
:
'
input
'
type
:
'
input
'
},
},
{
{
prop
:
"
price
"
,
prop
:
"
price
"
,
label
:
"
价格
"
,
label
:
"
价格
(金币)
"
,
width
:
"
200px
"
,
width
:
"
200px
"
,
align
:
"
center
"
,
align
:
"
center
"
,
type
:
"
input
Number
"
,
type
:
"
input
Money
"
,
},
},
{
{
prop
:
"
time
"
,
prop
:
"
time
"
,
...
@@ -653,21 +645,93 @@ export default {
...
@@ -653,21 +645,93 @@ export default {
];
];
},
},
methods
:
{
methods
:
{
get_app_size
(){
this
.
$http
.
get
(
`/apaas/hubApi/market/appSpecification?id=
${
this
.
$route
.
params
.
id
}
`
).
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
data
.
success
){
var
data
=
res
.
data
.
data
var
temp
=
[{
id
:
data
.
id
,
type
:
'
申请获取应用镜像部署权限
'
,
time
:
'
按月
'
,
price
:
data
.
price
,
des
:
data
.
specifications
}]
this
.
service_size_data
=
temp
this
.
size_arr_down
=
temp
}
})
},
transchangePageSize
(
value
)
{
transchangePageSize
(
value
)
{
this
.
transpageSize
=
value
;
this
.
transpageSize
=
value
;
this
.
transcurrentPage
=
1
;
this
.
transcurrentPage
=
1
;
this
.
get_app_trans_data
()
},
},
transchangeCurrentPage
(
value
)
{
transchangeCurrentPage
(
value
)
{
this
.
transcurrentPage
=
value
;
this
.
transcurrentPage
=
value
;
this
.
get_app_trans_data
()
},
change_service_size
(){
console
.
log
(
this
.
size_arr_down
);
this
.
$http
.
put
(
`/apaas/hubApi/market/appSpecification`
,{
"
id
"
:
parseInt
(
this
.
$route
.
params
.
id
),
"
price
"
:
this
.
size_arr_down
[
0
].
price
,
"
price_style
"
:
0
,
"
specification_category
"
:
"
申请获取应用镜像部署权限
"
,
"
specifications
"
:
this
.
size_arr_down
[
0
].
des
}
).
then
(
res
=>
{
if
(
res
.
data
.
success
){
this
.
$message
.
success
(
'
修改成功
'
)
this
.
sizeset_flag
=
false
this
.
get_app_size
()
}
else
{
this
.
$message
.
error
(
this
.
data
.
errMsg
)
}
})
},
get_app_trans_all
(){
this
.
$http
.
get
(
`/apaas/hubApi/market/incomeStatistics?id=
${
this
.
$route
.
params
.
id
}
&limit=
${
this
.
transpageSize
}
&page=
${
this
.
transcurrentPage
}
`
).
then
(
res
=>
{
if
(
res
.
data
.
success
){
var
data
=
res
.
data
.
data
this
.
trans_all_obj
=
{
all
:
data
.
sum
,
times
:
data
.
count
,
month
:
data
.
month_count
,
}
}
})
},
get_app_trans_data
(){
this
.
$http
.
get
(
`/apaas/hubApi/market/transactionRecord?app_id=
${
this
.
$route
.
params
.
id
}
&limit=
${
this
.
transpageSize
}
&page=
${
this
.
transcurrentPage
}
`
).
then
(
res
=>
{
console
.
log
(
res
);
if
(
res
.
data
.
success
){
res
.
data
.
data
.
forEach
(
e
=>
{
e
.
add_time_name
=
helper
.
dateStringTransform
(
e
.
add_time
)
});
this
.
trans_log_data
=
res
.
data
.
data
this
.
translistTotal
=
res
.
data
.
total
}
})
},
},
change_service_size
(){},
now_size_data
(
val
){
now_size_data
(
val
){
val
.
forEach
(
e
=>
{
val
.
forEach
(
e
=>
{
e
.
type
=
'
申请获取应用镜像部署权限
'
e
.
type
=
'
申请获取应用镜像部署权限
'
e
.
time
=
'
按月
'
e
.
time
=
'
按月
'
e
.
des
=
'
提供2核4G,4核8G等多种规格
'
})
})
this
.
size_arr_down
=
val
this
.
size_arr_down
=
val
},
},
...
@@ -1032,6 +1096,9 @@ export default {
...
@@ -1032,6 +1096,9 @@ export default {
if
(
this
.
$route
.
query
.
source
==
"
apply
"
){
if
(
this
.
$route
.
query
.
source
==
"
apply
"
){
}
else
{
}
else
{
this
.
get_app_size
()
this
.
get_app_trans_data
()
this
.
get_app_trans_all
()
this
.
service_arr
[
this
.
now_user
].
push
(...[
"
应用计费规则
"
,
"
应用交易记录
"
]);
this
.
service_arr
[
this
.
now_user
].
push
(...[
"
应用计费规则
"
,
"
应用交易记录
"
]);
}
}
}
}
...
@@ -1154,6 +1221,7 @@ export default {
...
@@ -1154,6 +1221,7 @@ export default {
text-align
:
center
;
text-align
:
center
;
cursor
:
pointer
;
cursor
:
pointer
;
margin-bottom
:
30px
;
margin-bottom
:
30px
;
margin-top
:
30px
;
}
}
.savebtn
{
.savebtn
{
margin-top
:
50px
;
margin-top
:
50px
;
...
...
src/pages/workbench/yygl/apply_app_detail.vue
View file @
06a84822
...
@@ -136,7 +136,7 @@ export default {
...
@@ -136,7 +136,7 @@ export default {
},
},
{
{
title
:
"
总价:
"
,
title
:
"
总价:
"
,
info
:
"
2000
"
,
info
:
""
,
},
},
{
{
title
:
"
审批信息
"
,
title
:
"
审批信息
"
,
...
@@ -231,6 +231,7 @@ export default {
...
@@ -231,6 +231,7 @@ export default {
this
.
$set
(
this
.
servicead_arr
[
2
],
"
url
"
,
data
.
apply_file
);
this
.
$set
(
this
.
servicead_arr
[
2
],
"
url
"
,
data
.
apply_file
);
this
.
$set
(
this
.
servicead_arr
[
3
],
"
info
"
,
data
.
apply_type_name
);
this
.
$set
(
this
.
servicead_arr
[
3
],
"
info
"
,
data
.
apply_type_name
);
this
.
$set
(
this
.
servicead_arr
[
4
],
"
info
"
,
data
.
apply_time
);
this
.
$set
(
this
.
servicead_arr
[
4
],
"
info
"
,
data
.
apply_time
);
this
.
$set
(
this
.
servicead_arr
[
5
],
"
info
"
,
data
.
total_money
);
})
})
.
catch
(
function
(
response
)
{});
.
catch
(
function
(
response
)
{});
},
},
...
...
src/pages/workbench/yygl/approval_app_detail.vue
View file @
06a84822
...
@@ -247,7 +247,7 @@ export default {
...
@@ -247,7 +247,7 @@ export default {
},
},
{
{
title
:
"
订单总价:
"
,
title
:
"
订单总价:
"
,
info
:
"
30000
"
info
:
""
}
}
]
]
};
};
...
@@ -344,6 +344,7 @@ export default {
...
@@ -344,6 +344,7 @@ export default {
this
.
$set
(
this
.
list_arr
[
4
],
"
info
"
,
data
.
apply_file
.
split
(
'
/
'
)[
0
]);
this
.
$set
(
this
.
list_arr
[
4
],
"
info
"
,
data
.
apply_file
.
split
(
'
/
'
)[
0
]);
this
.
$set
(
this
.
list_arr
[
4
],
"
url
"
,
data
.
apply_file
);
this
.
$set
(
this
.
list_arr
[
4
],
"
url
"
,
data
.
apply_file
);
this
.
$set
(
this
.
list_arr
[
5
],
"
info
"
,
data
.
apply_time
.
replace
(
'
Z
'
,
'
'
).
replace
(
'
T
'
,
'
'
));
this
.
$set
(
this
.
list_arr
[
5
],
"
info
"
,
data
.
apply_time
.
replace
(
'
Z
'
,
'
'
).
replace
(
'
T
'
,
'
'
));
this
.
$set
(
this
.
list_arr
[
6
],
"
info
"
,
data
.
total_money
);
})
})
.
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