|
@@ -33,7 +33,7 @@
|
|
|
</view>
|
|
|
<view class="info-row">
|
|
|
<text class="label">最近更新时间:</text>
|
|
|
- <text class="value">{{ item.updatetime }}</text>
|
|
|
+ <text class="value">{{ item.updatetime == "" ? item.createtime : item.updatetime }}</text>
|
|
|
</view>
|
|
|
<view class="info-row">
|
|
|
<text class="label">进度:</text>
|
|
@@ -79,6 +79,7 @@
|
|
|
cardno : string,
|
|
|
processno : string,
|
|
|
updatetime : string,
|
|
|
+ createtime: string,
|
|
|
progress : string,
|
|
|
status : number,
|
|
|
totalRecord : number,
|
|
@@ -105,6 +106,7 @@
|
|
|
});
|
|
|
}
|
|
|
downloads.value = initDownloads
|
|
|
+ console.log(initDownloads)
|
|
|
})
|
|
|
// #endif
|
|
|
|
|
@@ -149,26 +151,10 @@
|
|
|
// 调用数据处理工具中的方法下载数据
|
|
|
// 调用数据处理工具中的方法下载数据
|
|
|
await downloadDataFromAPI(() => {
|
|
|
- // 重新加载页面数据的回调函数
|
|
|
- getRecordInfoList(null).then((res : UTSJSONObject) => {
|
|
|
- console.log('下载完成后刷新数据:', res)
|
|
|
- let dataList = res?.['data'] as UTSJSONObject[] ?? Array<UTSJSONObject>()
|
|
|
- // 清空现有数据,确保不重复添加
|
|
|
- initDownloads = []
|
|
|
- if (dataList != null && dataList.length > 0) {
|
|
|
- dataList.forEach(item => {
|
|
|
- if (item != null) {
|
|
|
- let download = JSON.parse<Download>(item.toJSONString());
|
|
|
- if (download != null) {
|
|
|
- initDownloads.push(download)
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- console.log('刷新后的数据列表:', initDownloads)
|
|
|
- // 更新响应式数据,触发页面刷新
|
|
|
- downloads.value = [...initDownloads]
|
|
|
- })
|
|
|
+
|
|
|
+ }).then((res) => {
|
|
|
+ // 刷新整个页面
|
|
|
+ uni.reLaunch({ url: '/pages/work/record/InfoList' })
|
|
|
})
|
|
|
}
|
|
|
const upload = (e : any) => {
|