|
|
|
@ -161,7 +161,6 @@ useInfiniteScroll(
|
|
|
|
|
el as any,
|
|
|
|
|
() => {
|
|
|
|
|
// loading = false
|
|
|
|
|
console.log('加载了000000000000000---------------------------')
|
|
|
|
|
loadMore()
|
|
|
|
|
},
|
|
|
|
|
{ distance: 10, canLoadMore: () => canloadMore },
|
|
|
|
@ -172,7 +171,7 @@ async function featchList() {
|
|
|
|
|
try {
|
|
|
|
|
// const result = await dubiousfilelist({ ...pagination, orderbyname: timeRange.value })
|
|
|
|
|
pagination.pageNo += 1
|
|
|
|
|
console.log('pagination.pageNo------------', pagination.pageNo)
|
|
|
|
|
// console.log('pagination.pageNo------------', pagination.pageNo)
|
|
|
|
|
const result = await dubiousfilelist({ ...pagination, ...sortObj })
|
|
|
|
|
// TODO:测试数据
|
|
|
|
|
// result.data = Array.from({ length: 30 })
|
|
|
|
@ -180,7 +179,7 @@ async function featchList() {
|
|
|
|
|
pagination.pageNo = data.current
|
|
|
|
|
// canloadMore = pageCount >= pagination.pageNo && pageCount > 0;
|
|
|
|
|
canloadMore = data.pages >= pagination.pageNo && data.pages > 0
|
|
|
|
|
console.log('canloadMore------------', canloadMore)
|
|
|
|
|
// console.log('canloadMore------------', canloadMore)
|
|
|
|
|
loading = false
|
|
|
|
|
return result.data.records
|
|
|
|
|
// const list = data.map((item) => {
|
|
|
|
@ -211,8 +210,8 @@ async function loadMore() {
|
|
|
|
|
if (pagination.pageNo <= 2) {
|
|
|
|
|
listData.value = []
|
|
|
|
|
listData.value = listData.value.concat(more)
|
|
|
|
|
console.log('listData.value出来了11111111111111', listData.value)
|
|
|
|
|
if (pagination.pageNo == 1)
|
|
|
|
|
console.log('listData.value出来了11111111111111', listData.value, pagination.pageNo)
|
|
|
|
|
if (pagination.pageNo <= 2)
|
|
|
|
|
waterfallRef.value?.resize()
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
@ -299,7 +298,7 @@ function imUpdateSelectIds(x: number, y: number, w: number, h: number) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function isSelected(pictureId: number) {
|
|
|
|
|
console.log('selectIds.value多少只啊啊啊啊啊啊啊啊啊啊啊啊啊', selectIds.value, pictureId)
|
|
|
|
|
// console.log('selectIds.value多少只啊啊啊啊啊啊啊啊啊啊啊啊啊', selectIds.value, pictureId)
|
|
|
|
|
return selectIds.value.includes(String(pictureId))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -499,7 +498,7 @@ function setBatch(value) {
|
|
|
|
|
batch.value = !value
|
|
|
|
|
else
|
|
|
|
|
batch.value = value
|
|
|
|
|
|
|
|
|
|
waterfallRef.value?.resize()
|
|
|
|
|
if (value === false) {
|
|
|
|
|
selectIds.value = []
|
|
|
|
|
selectedApproveItems.value.forEach(item => (item.checked = false))
|
|
|
|
@ -566,7 +565,6 @@ function approvalHandler(items?: any) {
|
|
|
|
|
// 任务包图片 => 点击 => 通过/不通过按钮
|
|
|
|
|
if (items !== undefined && !(items instanceof PointerEvent))
|
|
|
|
|
processItems = [items]
|
|
|
|
|
console.log('batch-------------', batch.value, selectedApproveItems.value, processItems)
|
|
|
|
|
const msg = validate(processItems)
|
|
|
|
|
|
|
|
|
|
if (msg !== null) {
|
|
|
|
@ -612,13 +610,17 @@ function doAudit(param: any) {
|
|
|
|
|
if (code === 'OK') {
|
|
|
|
|
message.info(res.message)
|
|
|
|
|
// emitter.emit('refresh')
|
|
|
|
|
refreshHandler()
|
|
|
|
|
// refreshHandler()
|
|
|
|
|
reset()
|
|
|
|
|
loadMore()
|
|
|
|
|
}
|
|
|
|
|
else { message.error(res.message) }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
function reloadList() {
|
|
|
|
|
refreshHandler()
|
|
|
|
|
// refreshHandler()
|
|
|
|
|
reset()
|
|
|
|
|
loadMore()
|
|
|
|
|
}
|
|
|
|
|
async function refreshHandler(filtersearchId?: any) {
|
|
|
|
|
// 注释 rao start
|
|
|
|
@ -650,7 +652,7 @@ async function refreshHandler(filtersearchId?: any) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function finish() {
|
|
|
|
|
console.log('finish')
|
|
|
|
|
// console.log('finish')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onBeforeMount(async () => {
|
|
|
|
@ -738,7 +740,7 @@ watch(() => show.value, async (newVal) => {
|
|
|
|
|
批量审批
|
|
|
|
|
</div>
|
|
|
|
|
<div v-show="showActions" class="batch">
|
|
|
|
|
<n-button text @click="setBatch(false)">
|
|
|
|
|
<n-button text style="margin-left: 20px;" @click="setBatch(false)">
|
|
|
|
|
<template #icon>
|
|
|
|
|
<SvgIcon name="revoke" />
|
|
|
|
|
</template>
|
|
|
|
@ -853,7 +855,7 @@ watch(() => show.value, async (newVal) => {
|
|
|
|
|
:style="{ backgroundImage: `url(${loading ? bgLoadingImg : 'none'})`, display: 'none' }"
|
|
|
|
|
/>
|
|
|
|
|
<n-checkbox
|
|
|
|
|
v-if="batch && item.historyStates === 1" v-model:checked="item.checked"
|
|
|
|
|
v-if="batch && item.historyStates === 1"
|
|
|
|
|
style="position:absolute;left:20px;top:20px" @click.prevent.stop
|
|
|
|
|
@update:checked="onCheckChange($event, item)"
|
|
|
|
|
/>
|
|
|
|
@ -1039,7 +1041,7 @@ watch(() => show.value, async (newVal) => {
|
|
|
|
|
width: 46px;
|
|
|
|
|
height: 22px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 16px;
|
|
|
|
|
left: 2px;
|
|
|
|
|
top: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1056,8 +1058,8 @@ watch(() => show.value, async (newVal) => {
|
|
|
|
|
background: #6f92fd;
|
|
|
|
|
border-radius: 6px 0px 6px 0px;
|
|
|
|
|
z-index: 5;
|
|
|
|
|
right: 28px;
|
|
|
|
|
top: 0px;
|
|
|
|
|
right: 16px;
|
|
|
|
|
top: 6px;
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
|
|
|
@ -1073,10 +1075,10 @@ watch(() => show.value, async (newVal) => {
|
|
|
|
|
.time {
|
|
|
|
|
position: absolute;
|
|
|
|
|
width: 182px;
|
|
|
|
|
// padding-left: 10px;
|
|
|
|
|
padding-left: 10px;
|
|
|
|
|
z-index: 3;
|
|
|
|
|
left: 6px;
|
|
|
|
|
bottom: 0px;
|
|
|
|
|
bottom: 6px;
|
|
|
|
|
background: linear-gradient(180deg,rgba(6,0,0,0.01),rgba(0, 0, 0, 0.44) 100%);
|
|
|
|
|
border-radius: 0 0 7px 7px;
|
|
|
|
|
.time-item {
|
|
|
|
@ -1100,6 +1102,7 @@ watch(() => show.value, async (newVal) => {
|
|
|
|
|
|
|
|
|
|
.scroll {
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
// height: calc(100vh - 282px);
|
|
|
|
|
height: 800px;
|
|
|
|
|
margin-left: 20px;
|
|
|
|
|