Commit 10dafa76 authored by WangRui's avatar WangRui

[feature]关联项目列表调整

parent 7bdd091c
...@@ -41,9 +41,8 @@ const queryList = async () => { ...@@ -41,9 +41,8 @@ const queryList = async () => {
let res = await api.contractQueryAll({ receivets: + new Date() + '', ...pager }) let res = await api.contractQueryAll({ receivets: + new Date() + '', ...pager })
if (res.success) { if (res.success) {
pager.page++ // if (res.total == 0) finished = true
if (res.total == 0) finished = true listValue = res.rows.map(item => {
listValue = res.rows.forEach(item => {
return { return {
title: item.contractNumber + '' || '', title: item.contractNumber + '' || '',
other_title: item.acceptDate?.split(' ')[0] || '', other_title: item.acceptDate?.split(' ')[0] || '',
...@@ -53,26 +52,25 @@ const queryList = async () => { ...@@ -53,26 +52,25 @@ const queryList = async () => {
}) })
} else { } else {
listValue = [] listValue = []
finished = true // finished = true
} }
refreshing = false refreshing = false
} }
queryList() queryList()
const onRefresh = () => { // const onRefresh = () => {
listValue = []; // listValue = [];
pager.page = 1; // pager.page = 1;
pager.pageSize = 10; // pager.pageSize = 10;
finished = false // finished = false
queryList() // queryList()
}; // };
//
const loadApproval = () => { // const loadApproval = () => {
pager.page++; // pager.page++;
queryList() // queryList()
} // }
const router = useRouter(); const router = useRouter();
const jump = () => { 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