diff --git a/src/utils/myUtils/exportToExcel.js b/src/utils/myUtils/exportToExcel.js index 9ec5417..d2a221e 100644 --- a/src/utils/myUtils/exportToExcel.js +++ b/src/utils/myUtils/exportToExcel.js @@ -6,7 +6,7 @@ const data = tableAry.map((user, index) => { const userArr = [] for (const key in tableAry[0]) { - const item = user[key] + let item = user[key] // console.log(item,typeof(item)); if(typeof(item)=="object"){ item = JSON.stringify(item) diff --git a/src/utils/myUtils/exportToExcel.js b/src/utils/myUtils/exportToExcel.js index 9ec5417..d2a221e 100644 --- a/src/utils/myUtils/exportToExcel.js +++ b/src/utils/myUtils/exportToExcel.js @@ -6,7 +6,7 @@ const data = tableAry.map((user, index) => { const userArr = [] for (const key in tableAry[0]) { - const item = user[key] + let item = user[key] // console.log(item,typeof(item)); if(typeof(item)=="object"){ item = JSON.stringify(item) diff --git a/src/views/product/brandList.vue b/src/views/product/brandList.vue index 0bb517e..fd9b13c 100644 --- a/src/views/product/brandList.vue +++ b/src/views/product/brandList.vue @@ -60,11 +60,12 @@ type="danger" icon="el-icon-delete-solid" class="btnItem bgred" - @click=" BatchDelete" + @click="BatchDelete" > 删除 - + 导出 + + @@ -109,7 +113,16 @@ - + + @@ -120,18 +133,20 @@