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 => { }) },