From 34ab46fd7fcf319e0a3405285652b05a62722f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Tue, 22 Mar 2022 09:27:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E6=8B=86=E5=88=86=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E5=88=A0=E9=99=A4=2051986?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/localTool/standAutoSplit/index.vue | 31 ++++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/src/pages/localTool/standAutoSplit/index.vue b/src/pages/localTool/standAutoSplit/index.vue index d7dc6b2fd..d4850fe67 100644 --- a/src/pages/localTool/standAutoSplit/index.vue +++ b/src/pages/localTool/standAutoSplit/index.vue @@ -993,19 +993,24 @@ export default { }, { _this: this, loading: 'loading' }, res => { - res.data.list.map((item, index) => { - if (item.collectId != null && item.collectId !== '') { - item.showNumber= item.splitStatus=='0' ? item.showNumber : item.standNumSplit - item.standName=item.splitStatus=='0' ? item.standName : item.standNameSplit - item.collectBtn = false - } else { - item.showNumber= item.splitStatus=='0' ? item.showNumber : item.standNumSplit - item.standName=item.splitStatus=='0' ? item.standName : item.standNameSplit - item.collectBtn = true - } - }) - this.standInfoList = res.data.list - this.total = res.data.count + if(res.data.list.length){ + res.data.list.map((item, index) => { + if (item.collectId != null && item.collectId !== '') { + item.showNumber= item.splitStatus=='0' ? item.showNumber : item.standNumSplit + item.standName=item.splitStatus=='0' ? item.standName : item.standNameSplit + item.collectBtn = false + } else { + item.showNumber= item.splitStatus=='0' ? item.showNumber : item.standNumSplit + item.standName=item.splitStatus=='0' ? item.standName : item.standNameSplit + item.collectBtn = true + } + }) + this.standInfoList = res.data.list + this.total = res.data.count + }else{ + this.splitInfoPage = 1 + this.getSarFileSplitInfoEOPage() + } }, e => { }) },