|
@ -210,25 +210,6 @@ |
|
|
flag: null |
|
|
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) { |
|
|
function getFormattedDate(date) { |
|
|
const year = date.getFullYear(); |
|
|
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() { |
|
|
function getTabsList() { |
|
|
console.log(tabParams.value) |
|
|
console.log(tabParams.value) |
|
|
if (status.value == 'nomore') return |
|
|
if (status.value == 'nomore') return |
|
@ -329,7 +329,7 @@ |
|
|
getViewList() |
|
|
getViewList() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (falg.value == 'call') { |
|
|
if (falg.value == 'request') { |
|
|
status.value = 'loading' |
|
|
status.value = 'loading' |
|
|
getRequestList() |
|
|
getRequestList() |
|
|
} |
|
|
} |
|
@ -411,7 +411,7 @@ |
|
|
tabParams.value.status = '1'; |
|
|
tabParams.value.status = '1'; |
|
|
break; |
|
|
break; |
|
|
case 4: |
|
|
case 4: |
|
|
falg.value == 'call' |
|
|
falg.value == 'request' |
|
|
list.value = []; |
|
|
list.value = []; |
|
|
status.value = 'loading'; |
|
|
status.value = 'loading'; |
|
|
tabParams.value.status = '0'; |
|
|
tabParams.value.status = '0'; |
|
|