修改
This commit is contained in:
@@ -35,8 +35,8 @@
|
||||
<uni-tag :text="item1.item_name" size="mini" type="primary" v-for="(item1, index) in item.item" :key="index"/>
|
||||
</view>
|
||||
<view class="card-info">
|
||||
<text class="info-item">申请人: {{ item.apply_user_name }}</text>
|
||||
<text class="info-item">归还时间: {{ item.return_at || '-' }}</text>
|
||||
<text class="info-item">申请人: {{ item.applicant_name }}</text>
|
||||
<text class="info-item">归还时间: {{ formatDate(item.return_at) }}</text>
|
||||
|
||||
</view>
|
||||
<view class="action-btns">
|
||||
@@ -128,6 +128,11 @@
|
||||
}
|
||||
return actionMap[status] || ''
|
||||
},
|
||||
// 格式化日期,只显示年月日
|
||||
formatDate(dateStr) {
|
||||
if (!dateStr) return '-'
|
||||
return dateStr.split(' ')[0]
|
||||
},
|
||||
handleAction(item) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/approval/return_approval_detils?id='+item.id
|
||||
|
||||
Reference in New Issue
Block a user