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
3874bc80
Commit
3874bc80
authored
Oct 27, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的金币接口,订单so on
parent
0b1eaed6
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
591 additions
and
305 deletions
+591
-305
src/components/order-list/order-list-cell.vue
src/components/order-list/order-list-cell.vue
+194
-195
src/components/order-list/order-list-list.vue
src/components/order-list/order-list-list.vue
+2
-2
src/components/shop-cloud/shop-cloud.vue
src/components/shop-cloud/shop-cloud.vue
+17
-3
src/pages/user/my-coin.vue
src/pages/user/my-coin.vue
+27
-19
src/pages/user/order/order_detail.vue
src/pages/user/order/order_detail.vue
+343
-82
src/pages/workbench/fwzc_fwcs.vue
src/pages/workbench/fwzc_fwcs.vue
+5
-1
src/request/api/user.js
src/request/api/user.js
+3
-3
No files found.
src/components/order-list/order-list-cell.vue
View file @
3874bc80
This diff is collapsed.
Click to expand it.
src/components/order-list/order-list-list.vue
View file @
3874bc80
...
...
@@ -2,11 +2,11 @@
<div
class=
"order_list"
>
<div
class=
"order_th_pad"
>
<el-row
class=
"order_th"
>
<el-col
:span=
"
8
"
>
服务信息
</el-col>
<el-col
:span=
"
7
"
>
服务信息
</el-col>
<el-col
:span=
"5"
>
规格
</el-col>
<el-col
:span=
"3"
>
购买时长
</el-col>
<el-col
:span=
"3"
>
总价
</el-col>
<el-col
:span=
"
2
"
>
申请状态
</el-col>
<el-col
:span=
"
3
"
>
申请状态
</el-col>
<el-col
:span=
"3"
>
操作
</el-col>
</el-row>
</div>
...
...
src/components/shop-cloud/shop-cloud.vue
View file @
3874bc80
...
...
@@ -66,7 +66,7 @@
<el-col
:span=
"6"
>
<el-form-item
prop=
"cpu"
class=
"form_item input_has_right"
>
<div
class=
"form_item_title"
>
CPU:
</div>
<el-select
v-model=
"formNew.cpu"
placeholder=
"请选择CPU使用量"
>
<el-select
v-model=
"formNew.cpu"
@
change=
"changeCPU"
placeholder=
"请选择CPU使用量"
>
<el-option
v-for=
"item in optionsCPU"
:key=
"item.value"
...
...
@@ -1101,7 +1101,6 @@ export default {
}
,
tabClick
()
{
}
,
getNewList
(
val
)
{
console
.
log
(
val
);
this
.
formNew
.
apply_file_name
=
val
[
0
].
name
;
this
.
formNew
.
apply_file
=
val
[
0
].
url
;
}
,
...
...
@@ -1111,7 +1110,6 @@ export default {
}
,
handleChange
()
{
}
,
getForm
(
val
)
{
console
.
log
(
val
);
if
(
val
!==
""
)
{
let
paramsOld
=
this
.
workSpaceOptions
[
val
];
this
.
workSpaceId
=
paramsOld
.
Id
;
...
...
@@ -1328,6 +1326,22 @@ export default {
}
}
}
,
changeCPU
(
val
)
{
console
.
log
(
val
);
this
.
formOld
.
memory
=
""
;
this
.
formNew
.
memory
=
""
;
if
(
val
==
"
8
"
)
{
this
.
optionsRAM
=
[
{
value
:
"
16
"
,
label
:
"
16
"
}
,
{
value
:
"
32
"
,
label
:
"
32
"
}
,
]
}
else
if
(
val
==
"
16
"
)
{
this
.
optionsRAM
=
[
{
value
:
"
32
"
,
label
:
"
32
"
}
,
{
value
:
"
64
"
,
label
:
"
64
"
}
,
]
}
}
}
,
}
;
<
/script
>
...
...
src/pages/user/my-coin.vue
View file @
3874bc80
...
...
@@ -24,8 +24,8 @@
<div
class=
"card_word"
>
<p
class=
"card_name"
>
账户余额
</p>
<p>
{{
helper
.
numberFormat
(
user_info
.
a
nswer_num
)
}}
<span
v-if=
"user_info.a
nswer_num
> 10000"
class=
"card_wan"
>
{{
helper
.
numberFormat
(
user_info
.
a
ccount_balance
)
}}
<span
v-if=
"user_info.a
ccount_balance
> 10000"
class=
"card_wan"
>
万
</span>
</p>
...
...
@@ -36,8 +36,8 @@
<div
class=
"card_word"
>
<p
class=
"card_name"
>
充值笔数
</p>
<p>
{{
helper
.
numberFormat
(
user_info
.
view_num
)
}}
<span
v-if=
"user_info.
view_num
> 10000"
class=
"card_wan"
>
{{
helper
.
numberFormat
(
user_info
.
recharge_count
)
}}
<span
v-if=
"user_info.
recharge_count
> 10000"
class=
"card_wan"
>
万
</span>
</p>
...
...
@@ -67,6 +67,7 @@
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:clearable=
"false"
@
change=
"getCoinList"
></el-date-picker>
</div>
<apass-table
...
...
@@ -103,12 +104,11 @@ export default {
user_info
:
{
user_name
:
""
,
role
:
""
,
question_num
:
0
,
answer_num
:
0
,
view_num
:
0
,
account_balance
:
0
,
recharge_count
:
0
,
picture_path
:
""
,
},
tableData
:
[
{},
{}
],
tableData
:
[],
table_header
:
[],
total_list
:
0
,
currentPage
:
1
,
...
...
@@ -125,8 +125,8 @@ export default {
this
.
pagination
.
page
+=
val
;
this
.
refreshData
();
},
getUserCoin
()
{
this
.
$api
.
user
.
getUser
QA
().
then
((
response
)
=>
{
getUserCoin
s
()
{
this
.
$api
.
user
.
getUser
Coins
().
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
user_info
=
response
.
data
.
data
;
}
...
...
@@ -140,39 +140,47 @@ export default {
let
query
=
{
start
:
this
.
date
.
length
!=
0
?
this
.
date
[
0
]
:
""
,
end
:
this
.
date
.
length
!=
0
?
this
.
date
[
1
]
:
""
,
limit
:
this
.
currentlimit
,
page
:
this
.
currentPage
,
};
console
.
log
(
query
)
this
.
$api
.
user
.
getUserQA
().
then
((
response
)
=>
{
this
.
$api
.
user
.
getCoinList
(
query
).
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
user_info
=
response
.
data
.
data
;
if
(
response
.
data
.
data
&&
response
.
data
.
data
.
length
!=
0
)
{
this
.
tableData
=
response
.
data
.
data
}
else
{
this
.
tableData
=
[];
this
.
currentPage
=
1
;
}
this
.
total_list
=
response
.
data
.
total
;
}
});
},
},
mounted
()
{
this
.
getUserCoin
();
this
.
getUserCoin
s
();
this
.
getCoinList
();
this
.
table_header
=
[
{
prop
:
"
title
"
,
prop
:
"
serial_number
"
,
label
:
"
充值流水ID
"
,
align
:
"
center
"
,
type
:
"
html
"
,
getHtml
:
(
str
)
=>
{
return
`<span style="color:#0f2683;font-weight:bold;width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;" title="
${
str
.
title
}
">123123
</span>`
;
return
`<span style="color:#0f2683;font-weight:bold;width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;" title="
${
str
.
serial_number
}
">
${
str
.
serial_number
}
</span>`
;
},
},
{
prop
:
"
conte
nt
"
,
prop
:
"
amou
nt
"
,
label
:
"
充值金额(金币/个)
"
,
align
:
"
center
"
,
type
:
"
html
"
,
getHtml
:
(
str
)
=>
{
return
`<span style="width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
123123123
</span>`
;
return
`<span style="width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
${
str
.
amount
}
</span>`
;
},
},
{
prop
:
"
answer_num
"
,
prop
:
"
balance
"
,
label
:
"
账户余额(金币/个)
"
,
align
:
"
center
"
,
},
...
...
src/pages/user/order/order_detail.vue
View file @
3874bc80
This diff is collapsed.
Click to expand it.
src/pages/workbench/fwzc_fwcs.vue
View file @
3874bc80
...
...
@@ -1144,8 +1144,12 @@ export default {
bodys
=
JSON
.
stringify
(
request
);
}
else
if
(
this
.
zhfwQqt
==
"
x-www-form-urlencoded
"
)
{
let
request
=
this
.
$refs
.
fwcs_zhfw_www
.
getTableData
().
concat
();
let
arr
=
[];
request
.
pop
();
bodys
=
JSON
.
stringify
(
request
);
request
.
forEach
(
item
=>
{
arr
.
push
({
key
:
item
.
requestEncoding
,
val
:
item
.
requestValue
,
field_type
:
"
text
"
})
});
bodys
=
JSON
.
stringify
(
arr
);
}
}
}
...
...
src/request/api/user.js
View file @
3874bc80
...
...
@@ -71,10 +71,10 @@ const user = {
// my coins
getUserCoins
()
{
return
axios
.
get
(
``
)
return
axios
.
get
(
`
/apaas/backmgt/user/myAccount
`
)
},
getCoinList
()
{
return
axios
.
get
(
``
)
getCoinList
(
params
)
{
return
axios
.
get
(
`
/apaas/backmgt/user/rechargeRecords?start=
${
params
.
start
}
&end=
${
params
.
end
}
&limit=
${
params
.
limit
}
&page=
${
params
.
page
}
`
)
}
}
...
...
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