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
b463da54
authored
Aug 28, 2025
by
孙美琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的资源 列表只展示规格数组的前4-5个,有效期限expTime、创建时间展示。详情页需要把鉴权信息auth展示
parent
4a38cc9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletions
+26
-1
src/views/console/naturalResources.vue
+26
-1
No files found.
src/views/console/naturalResources.vue
View file @
b463da54
...
...
@@ -4,7 +4,7 @@
<el-table-column
label=
"订单编号"
align=
"center"
prop=
"tradeOrderNo"
/>
<el-table-column
label=
"商品类别"
align=
"center"
prop=
"categoryName"
/>
<el-table-column
v-for=
"(item, index) in resourcesList[0]?.properties.length!==0?resourcesList[0]?.properties.slice(0,
6
):resourcesList[0]?.properties"
v-for=
"(item, index) in resourcesList[0]?.properties.length!==0?resourcesList[0]?.properties.slice(0,
4
):resourcesList[0]?.properties"
:key=
"index"
:label=
"item.propertyName"
>
...
...
@@ -13,6 +13,16 @@
{{
row
.
properties
[
index
].
valueName
}}
</
template
>
</el-table-column>
<el-table-column
label=
"申请时间"
align=
"center"
prop=
"createTime"
width=
"180"
>
<
template
#
default=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
,
'
{
y
}
-
{
m
}
-
{
d
}'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"有效期限"
align
=
"center"
prop
=
"expTime"
width
=
"180"
>
<
template
#
default
=
"scope"
>
<
span
>
{{
parseTime
(
scope
.
row
.
expTime
,
'
{
y
}
-
{
m
}
-
{
d
}'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"操作"
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
template
#
default
=
"scope"
>
<
el
-
button
link
type
=
"primary"
@
click
=
"handleUpdate(scope.row,scope.$index)"
>
详情
<
/el-button
>
...
...
@@ -51,6 +61,20 @@
<
div
class
=
"value"
>
{{
i
.
valueName
}}
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"info-item flex-align-center flex-space-between"
>
<
div
class
=
"label"
>
申请时间
<
/div
>
<
div
class
=
"value"
>
{{
parseTime
(
form
.
createTime
,
'
{
y
}
-
{
m
}
-
{
d
}'
)
}}
<
/div
>
<
/div
>
<
div
class
=
"info-item flex-align-center flex-space-between"
>
<
div
class
=
"label"
>
有效期限
<
/div
>
<
div
class
=
"value"
>
{{
parseTime
(
form
.
expTime
,
'
{
y
}
-
{
m
}
-
{
d
}'
)
}}
<
/div
>
<
/div
>
<
div
class
=
"info-item flex-align-center flex-space-between"
>
<
div
class
=
"label"
>
鉴权信息
<
/div
>
<
div
class
=
"value"
>
{{
form
.
auth
}}
<
/div
>
<
/div
>
<
/div
>
<
template
#
footer
>
<
div
class
=
"dialog-footer"
>
...
...
@@ -63,6 +87,7 @@
<
script
setup
name
=
"NaturalResources"
>
import
{
listResources
,
getResources
}
from
'@/api/computility/resources'
import
{
parseTime
}
from
"../../utils/ruoyi.js"
;
const
resourcesList
=
ref
([])
const
open
=
ref
(
false
)
...
...
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