Commit b463da54 by 孙美琪

我的资源 列表只展示规格数组的前4-5个,有效期限expTime、创建时间展示。详情页需要把鉴权信息auth展示

parent 4a38cc9e
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<el-table-column label="订单编号" align="center" prop="tradeOrderNo"/> <el-table-column label="订单编号" align="center" prop="tradeOrderNo"/>
<el-table-column label="商品类别" align="center" prop="categoryName"/> <el-table-column label="商品类别" align="center" prop="categoryName"/>
<el-table-column <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" :key="index"
:label="item.propertyName" :label="item.propertyName"
> >
...@@ -13,6 +13,16 @@ ...@@ -13,6 +13,16 @@
{{ row.properties[index].valueName }} {{ row.properties[index].valueName }}
</template> </template>
</el-table-column> </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"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope"> <template #default="scope">
<el-button link type="primary" @click="handleUpdate(scope.row,scope.$index)">详情</el-button> <el-button link type="primary" @click="handleUpdate(scope.row,scope.$index)">详情</el-button>
...@@ -51,6 +61,20 @@ ...@@ -51,6 +61,20 @@
<div class="value">{{ i.valueName }}</div> <div class="value">{{ i.valueName }}</div>
</div> </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> </div>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
...@@ -63,6 +87,7 @@ ...@@ -63,6 +87,7 @@
<script setup name="NaturalResources"> <script setup name="NaturalResources">
import {listResources, getResources} from '@/api/computility/resources' import {listResources, getResources} from '@/api/computility/resources'
import {parseTime} from "../../utils/ruoyi.js";
const resourcesList = ref([]) const resourcesList = ref([])
const open = ref(false) const open = ref(false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment