|
@@ -38,10 +38,10 @@
|
|
|
<view class="info-row">
|
|
|
<text class="label">进度:</text>
|
|
|
<text class="process-value" :class="{
|
|
|
- 'bg-green': item.status === 3,
|
|
|
- 'bg-yellow': item.status === 2,
|
|
|
- 'bg-black': item.status === 1
|
|
|
- }">{{ item.progress }}</text>
|
|
|
+ 'bg-green': item.statusRecordCount === item.totalRecord,
|
|
|
+ 'bg-yellow': item.statusRecordCount < item.totalRecord,
|
|
|
+ 'bg-black': item.statusRecordCount === 0
|
|
|
+ }">{{ item.statusRecordCount}} / {{item.totalRecord}} </text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- #ifdef APP -->
|
|
@@ -53,7 +53,7 @@
|
|
|
import {
|
|
|
ref
|
|
|
} from 'vue'
|
|
|
- import { getList } from '@/api/work';
|
|
|
+ import { getRecordInfoList } from '@/api/work';
|
|
|
|
|
|
const backPressOptions = reactive({
|
|
|
from: 'backbutton'
|
|
@@ -79,7 +79,10 @@
|
|
|
processno : string,
|
|
|
updatetime : string,
|
|
|
progress : string,
|
|
|
- status : number
|
|
|
+ status : number,
|
|
|
+ totalRecord: number,
|
|
|
+ statusRecordCount: number,
|
|
|
+ status4RecordCount: number
|
|
|
}
|
|
|
|
|
|
var initDownloads = [] as Download[]
|
|
@@ -87,7 +90,7 @@
|
|
|
const map = ref(new Map<number, string>([[1, '未执行'], [2, '执行中'], [3, '执行完'], [4, '有错误']]))
|
|
|
|
|
|
// #ifdef APP-ANDROID
|
|
|
- getList('app_media_info', null, null, null, null, null).then((res : UTSJSONObject) => {
|
|
|
+ getRecordInfoList(null).then((res : UTSJSONObject) => {
|
|
|
console.log(res)
|
|
|
let dataList = res?.['data'] as UTSJSONObject[] ?? Array<UTSJSONObject>()
|
|
|
if (dataList != null && dataList.length > 0) {
|