|
|
|
@ -78,7 +78,7 @@ const finishPackageModal = ref(null)
|
|
|
|
|
const loading = ref(false)
|
|
|
|
|
const message = useMessage()
|
|
|
|
|
const totalCount = ref(0)
|
|
|
|
|
|
|
|
|
|
const loadref=ref(true)
|
|
|
|
|
const sortBy: PictureSortParam = {
|
|
|
|
|
orderbyname: 'desc',
|
|
|
|
|
orderbyvalue: 'pictureResult',
|
|
|
|
@ -107,14 +107,15 @@ const listStyle = computed(() => {
|
|
|
|
|
height: `${deviceHeight.value}px`,
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
async function init() {
|
|
|
|
|
async function inittask() {
|
|
|
|
|
let result = await getLastCheckNox()
|
|
|
|
|
console.log(result.data)
|
|
|
|
|
if(result.data){
|
|
|
|
|
let res=await getCheckDuplicateStatusx({checkDuplicateNo:result.data})
|
|
|
|
|
if(res.data.status==1){
|
|
|
|
|
const checkingTaskModal = checkingTaskModalRef.value as any
|
|
|
|
|
checkingTaskModal.showModal()
|
|
|
|
|
checkingTaskModal.showModal()
|
|
|
|
|
loadref.value=false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -169,14 +170,7 @@ onBeforeMount(async () => {
|
|
|
|
|
cols.value = 5
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
onUpdated(() => {
|
|
|
|
|
init()
|
|
|
|
|
// nextTick(() => {
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
// layout()
|
|
|
|
|
// }, 50)
|
|
|
|
|
// })
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const timeRange = ref('')
|
|
|
|
|
const timeLabel = computed(() => {
|
|
|
|
@ -406,6 +400,7 @@ const gridMinHeight = computed(() => {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
async function oneCheck() {
|
|
|
|
|
loadref.value=false
|
|
|
|
|
const asideVal = cloneDeep(configStore.getAsideValue)
|
|
|
|
|
asideVal.upUserName = searchValue.value
|
|
|
|
|
|
|
|
|
@ -434,9 +429,11 @@ async function oneCheck() {
|
|
|
|
|
configStore.setTimeNum(calNum.value)
|
|
|
|
|
if (checkTaskStatus.value === 2 || checkTaskStatus.value === 3) {
|
|
|
|
|
if (checkTaskStatus.value === 2)
|
|
|
|
|
message.success('任务执行完毕,正在刷新数据...')
|
|
|
|
|
else message.error('查询异常')
|
|
|
|
|
|
|
|
|
|
{ message.success('任务执行完毕,正在刷新数据...')
|
|
|
|
|
loadref.value=true
|
|
|
|
|
}else{ message.error('查询异常')
|
|
|
|
|
loadref.value=true
|
|
|
|
|
}
|
|
|
|
|
tasksLoadingModal.closeOnlyModal()
|
|
|
|
|
configStore.setTimeNum(100)
|
|
|
|
|
if (timer.value)
|
|
|
|
@ -529,6 +526,7 @@ async function commitHandler(settingParam) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
inittask()
|
|
|
|
|
emitter.on('filter', refreshHandler)
|
|
|
|
|
// emitter.on("filter", (searchId)=>{
|
|
|
|
|
// console.log("emitter on filter" + searchId)
|
|
|
|
@ -676,10 +674,13 @@ function refresh(val?: any) {
|
|
|
|
|
checkingTaskModal.closeModal()
|
|
|
|
|
isRefresh.value = false
|
|
|
|
|
if (checkTaskStatus.value === 2)
|
|
|
|
|
message.success('任务执行完毕,正在刷新数据...')
|
|
|
|
|
else message.error('查询异常')
|
|
|
|
|
|
|
|
|
|
if (timer.value)
|
|
|
|
|
{
|
|
|
|
|
message.success('任务执行完毕,正在刷新数据...')
|
|
|
|
|
loadref.value=true
|
|
|
|
|
}
|
|
|
|
|
else{ message.error('查询异常')
|
|
|
|
|
loadref.value=true
|
|
|
|
|
}if (timer.value)
|
|
|
|
|
clearInterval(timer.value)
|
|
|
|
|
reset()
|
|
|
|
|
loadMore()
|
|
|
|
@ -702,6 +703,7 @@ function cancel() {
|
|
|
|
|
checkDuplicateNo.value = ''
|
|
|
|
|
checkTaskStatus.value = null
|
|
|
|
|
message.success('查重任务取消成功')
|
|
|
|
|
loadref.value=true
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -776,11 +778,18 @@ defineExpose({
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex-btn-icon">
|
|
|
|
|
<SvgIcon
|
|
|
|
|
v-show="checkTaskStatus !== 2"
|
|
|
|
|
v-show="checkTaskStatus !== 2&& loadref"
|
|
|
|
|
style="cursor: pointer"
|
|
|
|
|
size="105"
|
|
|
|
|
name="yijianchachong"
|
|
|
|
|
@click="oneCheck"
|
|
|
|
|
/>
|
|
|
|
|
<SvgIcon
|
|
|
|
|
v-show="checkTaskStatus !== 2&& !loadref"
|
|
|
|
|
style="cursor:not-allowed"
|
|
|
|
|
size="105"
|
|
|
|
|
name="yijianchachong"
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
<SvgIcon
|
|
|
|
|
v-show="checkTaskStatus === 2"
|
|
|
|
@ -798,7 +807,7 @@ defineExpose({
|
|
|
|
|
</n-dropdown>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="wrapper-content" style="margin-bottom: 16px;">
|
|
|
|
|
<div class="wrapper-content" >
|
|
|
|
|
<div style="display: flex; justify-content: space-between">
|
|
|
|
|
<div class="form">
|
|
|
|
|
<n-popselect v-model:value="viewMode" :options="viewOptions" trigger="click">
|
|
|
|
|