pull/64/head
Dragon 1 year ago
parent 508eb09709
commit fec125d72c

@ -74,10 +74,10 @@ export async function getRepeatList(params: FinalParam) {
params,
})
const { data: { records, totalPage, totalCount } } = res
const { data: { records, total, pages } } = res
return {
pageCount: 3,
pageCount: pages,
data: records,
totalCount: 20,
totalCount: total,
}
}

@ -441,7 +441,7 @@ async function query(page: number, pageSize: number, filterId?: any) {
tableData.value = data
total.value = totalCount
pagination.page = page
pagination.pageCount = pageCount
pagination.pageCount = Math.ceil(totalCount / pageSize)
loading.value = false
}

@ -165,6 +165,8 @@ function approvalHandler(items?: any) {
return
}
console.log(processItems)
const list: any = []
processItems.forEach((item) => {
list.push({

@ -310,6 +310,10 @@ function reset() {
layout()
}
function onChange() {
reload()
}
async function refreshHandler() {
reset()
if (!taskId.value)
@ -397,11 +401,11 @@ defineExpose({
<div
class="status-tag"
:class="{
'status-red': taskDetailInfo?.states === 3,
'status-green': taskDetailInfo?.states === 2,
'status-tag-red': taskDetailInfo?.userapprove?.statshis === 3,
'status-tag-green': taskDetailInfo?.userapprove?.statshis === 2,
}"
>
{{ TASK_STATUS_OBJ[taskDetailInfo?.states] }}
{{ TASK_STATUS_OBJ[taskDetailInfo?.userapprove?.statshis] }}
</div>
</td>
<td>{{ taskDetailInfo?.ocrPicture?.createTime }}</td>
@ -418,7 +422,7 @@ defineExpose({
<div class="wrapper-content">
<div class="wrapper-content-form wrapper-m32">
<div>
<n-popselect v-model:value="timeRange" :options="timeOptions" trigger="click">
<n-popselect v-model:value="timeRange" :options="timeOptions" trigger="click" @change="onChange">
<div class="wrapper-content-form-dropdown">
<span>{{ timeLabel || '时间模式' }}</span>
<SvgIcon class="wrapper-content-form-dropdown-gap" name="arrow-botton" size="14" />

Loading…
Cancel
Save