Commit 10dafa76 authored by WangRui's avatar WangRui

[feature]关联项目列表调整

parent 7bdd091c
......@@ -41,9 +41,8 @@ const queryList = async () => {
let res = await api.contractQueryAll({ receivets: + new Date() + '', ...pager })
if (res.success) {
pager.page++
if (res.total == 0) finished = true
listValue = res.rows.forEach(item => {
// if (res.total == 0) finished = true
listValue = res.rows.map(item => {
return {
title: item.contractNumber + '' || '',
other_title: item.acceptDate?.split(' ')[0] || '',
......@@ -53,26 +52,25 @@ const queryList = async () => {
})
} else {
listValue = []
finished = true
// finished = true
}
refreshing = false
}
queryList()
const onRefresh = () => {
listValue = [];
pager.page = 1;
pager.pageSize = 10;
finished = false
queryList()
};
const loadApproval = () => {
pager.page++;
queryList()
}
// const onRefresh = () => {
// listValue = [];
// pager.page = 1;
// pager.pageSize = 10;
// finished = false
// queryList()
// };
//
// const loadApproval = () => {
// pager.page++;
// queryList()
// }
const router = useRouter();
const jump = () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment