|
|
@ -210,25 +210,6 @@ |
|
|
|
flag: null |
|
|
|
}) |
|
|
|
|
|
|
|
async function getViewList() { |
|
|
|
if (status.value == 'nomore') return |
|
|
|
status.value = 'loading' |
|
|
|
proxy.$modal.loading('加载中') |
|
|
|
await workSchedulingListApi.getWorkSchedulingPDAPage(params.value).then((res) => { |
|
|
|
proxy.$modal.closeLoading() |
|
|
|
if (res.data.list.length > 0) { |
|
|
|
list.value = list.value.concat(res.data.list) |
|
|
|
params.value.pageNo++ |
|
|
|
status.value = 'loadmore' |
|
|
|
} else { |
|
|
|
status.value = 'nomore' |
|
|
|
} |
|
|
|
}).catch(() => { |
|
|
|
proxy.$modal.closeLoading() |
|
|
|
}) |
|
|
|
falg.value = 'view' |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function getFormattedDate(date) { |
|
|
|
const year = date.getFullYear(); |
|
|
@ -254,6 +235,25 @@ |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
async function getViewList() { |
|
|
|
if (status.value == 'nomore') return |
|
|
|
status.value = 'loading' |
|
|
|
proxy.$modal.loading('加载中') |
|
|
|
await workSchedulingListApi.getWorkSchedulingPDAPage(params.value).then((res) => { |
|
|
|
proxy.$modal.closeLoading() |
|
|
|
if (res.data.list.length > 0) { |
|
|
|
list.value = list.value.concat(res.data.list) |
|
|
|
params.value.pageNo++ |
|
|
|
status.value = 'loadmore' |
|
|
|
} else { |
|
|
|
status.value = 'nomore' |
|
|
|
} |
|
|
|
}).catch(() => { |
|
|
|
proxy.$modal.closeLoading() |
|
|
|
}) |
|
|
|
falg.value = 'view' |
|
|
|
} |
|
|
|
|
|
|
|
function getTabsList() { |
|
|
|
console.log(tabParams.value) |
|
|
|
if (status.value == 'nomore') return |
|
|
@ -329,7 +329,7 @@ |
|
|
|
getViewList() |
|
|
|
} |
|
|
|
|
|
|
|
if (falg.value == 'call') { |
|
|
|
if (falg.value == 'request') { |
|
|
|
status.value = 'loading' |
|
|
|
getRequestList() |
|
|
|
} |
|
|
@ -411,7 +411,7 @@ |
|
|
|
tabParams.value.status = '1'; |
|
|
|
break; |
|
|
|
case 4: |
|
|
|
falg.value == 'call' |
|
|
|
falg.value == 'request' |
|
|
|
list.value = []; |
|
|
|
status.value = 'loading'; |
|
|
|
tabParams.value.status = '0'; |
|
|
|