Commit e7cacde4 authored by WangRui's avatar WangRui

[feature]关联项目列表调整

parent 58e583aa
......@@ -30,11 +30,11 @@ import Plus from '@/components/Plus.vue'
import api from "../api";
import { useRouter } from "vue-router";
const listValue = $ref([])
let listValue = $ref([])
let pager = { page: 1, pageSize: 10 }
const refreshing = $ref(false);
const finished = $ref(false);
let refreshing = $ref(false);
let finished = $ref(false);
const queryList = async () => {
refreshing = true
......@@ -43,15 +43,16 @@ const queryList = async () => {
if (res.success) {
pager.page++
if (res.total == 0) finished = true
res.rows.forEach(item => {
listValue.push({
listValue = res.rows.forEach(item => {
return {
title: item.contractNumber + '' || '',
other_title: item.acceptDate.split(' ')[0] || '',
other_title: item.acceptDate?.split(' ')[0] || '',
values: [["机型", "机号", "状态", "代理店"], [item.model, item.machineNumber, item.contractStatus, item.agencyName]],
...item
})
}
})
} else {
listValue = []
finished = true
}
......
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