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

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

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

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

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

Loading…
Cancel
Save