From a8e8ae3ba98dc0d843b5f59ff83a77a0e21d65b0 Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期四, 03 八月 2023 18:15:18 +0800 Subject: [PATCH] 1、对模板升版版本值进行了修改 --- Source/UBCS-WEB/src/components/Master/MasterTransfer.vue | 45 ++++++++++++++++++++++++--------------------- 1 files changed, 24 insertions(+), 21 deletions(-) diff --git a/Source/UBCS-WEB/src/components/Master/MasterTransfer.vue b/Source/UBCS-WEB/src/components/Master/MasterTransfer.vue index ef65f83..b876bab 100644 --- a/Source/UBCS-WEB/src/components/Master/MasterTransfer.vue +++ b/Source/UBCS-WEB/src/components/Master/MasterTransfer.vue @@ -66,28 +66,31 @@ this.dialogPush = this.visible; }, //琛ㄥご鏁版嵁 鐢ㄦ潵娓叉煋绌挎妗� - tableHeadData:{ - handler(newval,oldval){ + tableHeadData: { + handler(newval, oldval) { console.log(newval) - if(newval){ - //excel琛ㄥご鏁版嵁杞崲 - this.tableHeadFindData=newval.map(obj => obj.label); - this.tableHeadFindData.forEach((city, index) => { - this.data.push({ - label: city, - key: index, - }); - }); - //excel琛ㄦ牸鏁版嵁杞崲 - this.option.column[0].children=newval.map(obj => { - return { - label: obj.label, - prop: obj.prop - } - }) - } + if (newval) { + // 娓呯┖data鏁扮粍 + this.data = []; + // excel琛ㄥご鏁版嵁杞崲 + this.tableHeadFindData = newval.map(obj => obj.label); + this.tableHeadFindData.forEach((city, index) => { + this.data.push({ + label: city, + key: index, + }); + }); + console.log(this.data) + // excel琛ㄦ牸鏁版嵁杞崲 + this.option.column[0].children = newval.map(obj => { + return { + label: obj.label, + prop: obj.prop + } + }) + } } -}, + }, tableData(){ // 灏嗗�奸噷闈㈢殑true鎴杅alse鏀瑰彉涓烘槸鎴栧惁 this.option.data = this.tableData.map(obj => { @@ -188,7 +191,7 @@ exportCode({ codeClassifyOid: this.codeClassifyOid, ...this.exportArr, limit: this.limit, page: start, endPage: end }).then((res) => { // console.log('res',res) if (res) { - func.downloadFileByBlob(res); + func.downloadFileByBlobHandler(res); this.escHandler() } }); -- Gitblit v1.9.3