Commit b071a009 authored by Step_by_step's avatar Step_by_step
parents 09162977 b5c7aaa6
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</PullRefresh> </PullRefresh>
</section> </section>
<Plus @click="jump" /> <!-- <Plus @click="jump" />-->
</div> </div>
</template> </template>
...@@ -45,14 +45,13 @@ let listValue = $ref([]); ...@@ -45,14 +45,13 @@ let listValue = $ref([]);
const getList = async () => { const getList = async () => {
// 下拉重置参数,重新加载 // 下拉重置参数,重新加载
let res = await api.getProjectList({userId: window.localStorage.getItem('userId')}); let res = await api.getProjectList({userId: window.localStorage.getItem('userId')});
console.log('hha', res);
let list = [] let list = []
if(res.success){ if(res.success){
list = res.rows.map(item => ({ list = res.rows.map(item => ({
...item, ...item,
title: item.itemProjectNumber, title: item.itemProjectNumber,
other_title: item.creationDate?.split(' ')[0], other_title: item.creationDate?.split(' ')[0],
values: [["机型", "状态", "代理店"], [item.model, item.intentionStatusN, item.agencyBpName]] values: [["机型", "状态", "代理店"], [item.model, item.contractStatusN, item.agencyBpName]]
})) }))
}else { }else {
list = []; list = [];
......
...@@ -45,9 +45,10 @@ const finished = $ref(true); ...@@ -45,9 +45,10 @@ const finished = $ref(true);
const getList = async () => { const getList = async () => {
// 下拉重置参数,重新加载 // 下拉重置参数,重新加载
let list = await api.getRepayPlantList({userId: window.localStorage.getItem('userId')}); let res = await api.getRepayPlantList({userId: window.localStorage.getItem('userId')});
if(list.result === 'SUCCESS'){ let list = []
list = list.data.map(item => ({ if(res.success){
list = res.rows.map(item => ({
...item, ...item,
title: item.contractNumber, title: item.contractNumber,
other_title: item.applyDate?.split(' ')[0], other_title: item.applyDate?.split(' ')[0],
......
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