Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
06a9e9bc
authored
Aug 06, 2025
by
Jony.L
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品展示 初步提交
parent
f8389862
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/views/computingResource/resourceList.vue
+5
-2
No files found.
src/views/computingResource/resourceList.vue
View file @
06a9e9bc
...
...
@@ -63,6 +63,7 @@
<el-table-column
prop=
"memory"
label=
"内存"
sortable
/>
<el-table-column
prop=
"storage"
label=
"存储"
sortable
/>
<el-table-column
prop=
"publicPrice"
label=
"报价"
sortable
/>
<el-table-column
prop=
"term"
label=
"时长"
sortable
/>
<el-table-column
label=
"操作"
width=
"204px"
>
<template
#
default=
"
{row}">
<el-button
class=
"action-button"
@
click=
"selectedProduct(1,row.id)"
>
加入购物车
</el-button>
...
...
@@ -79,6 +80,7 @@
<div
class=
"product-card"
>
<div
class=
"top-info"
>
<div
class=
"title"
>
{{ item.model }}
</div>
<div
class=
"title"
>
{{item.term}}
</div>
<div
class=
"tag"
>
<!--<el-tag type="warning" effect="dark">性价比</el-tag>-->
<!--<el-tag type="info" effect="plain">专家推荐</el-tag>-->
...
...
@@ -284,9 +286,10 @@ function tabChange() {
}
function
getList
()
{
getRListByCategory
({
nav
:
tabActive
.
value
,
pageNum
:
pageNum
.
value
,
pageSize
:
pageSize
.
value
}).
then
(
res
=>
{
getRListByCategory
({
categoryId
:
tabActive
.
value
,
pageNum
:
pageNum
.
value
,
pageSize
:
pageSize
.
value
}).
then
(
res
=>
{
total
.
value
=
res
.
total
tableData
.
value
=
res
.
rows
// tableData.value = res.rows
tableData
.
value
=
res
.
data
})
}
...
...
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