From dd2aa7c558eae88c171836dd274308656ba41443 Mon Sep 17 00:00:00 2001 From: lwh <2679599887@qq.com> Date: Tue, 27 Jun 2023 15:33:11 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E4=BF=AE=E6=94=B9=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E9=80=89=E4=B8=AD=E5=AF=BC=E5=87=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Custom/CustomerAddresses/index.vue | 7 +-- src/views/business/Custom/Customers/index.vue | 7 +-- src/views/business/Custom/Regions/index.vue | 7 +-- .../GoodsManager/GoodsCategorys/index.vue | 7 +-- .../GoodsManager/GoodsServicess/index.vue | 7 +-- .../Goodss/components/AddDialog.vue | 6 +- .../Goodss/components/EditDialog.vue | 6 +- .../business/GoodsManager/Goodss/index.vue | 62 +++++++++++++++---- .../GoodsManager/ShopGoodsCategorys/index.vue | 7 +-- .../LogisticsManage/Deliverys/index.vue | 7 +-- .../LogisticsCompanys/index.vue | 7 +-- .../ShopManager/ShopAddresss/index.vue | 7 +-- .../business/ShopManager/Shops/index.vue | 7 +-- 13 files changed, 76 insertions(+), 68 deletions(-) diff --git a/src/views/business/Custom/CustomerAddresses/index.vue b/src/views/business/Custom/CustomerAddresses/index.vue index 74afc4f..ff10ce0 100644 --- a/src/views/business/Custom/CustomerAddresses/index.vue +++ b/src/views/business/Custom/CustomerAddresses/index.vue @@ -213,11 +213,8 @@ function handleExport(row) { const name = ref("所有") if (Ids.length != 0) { - let str = '' - for (const key in Ids) { - str += Ids[key] + ',' - } - str = str.slice(0, str.length - 1) + const ids = Object.values(Ids).map(value => String(value)); + const str = ids.join(','); queryParams.value.ids = str name.value = "选中" } diff --git a/src/views/business/Custom/Customers/index.vue b/src/views/business/Custom/Customers/index.vue index 2539690..cda81fc 100644 --- a/src/views/business/Custom/Customers/index.vue +++ b/src/views/business/Custom/Customers/index.vue @@ -236,11 +236,8 @@ function handleExport(row) { const name = ref("所有") if (Ids.length != 0) { - let str = '' - for (const key in Ids) { - str += Ids[key] + ',' - } - str = str.slice(0, str.length - 1) + const ids = Object.values(Ids).map(value => String(value)); + const str = ids.join(','); queryParams.value.ids = str name.value = "选中" } diff --git a/src/views/business/Custom/Regions/index.vue b/src/views/business/Custom/Regions/index.vue index 86d96cd..a343dff 100644 --- a/src/views/business/Custom/Regions/index.vue +++ b/src/views/business/Custom/Regions/index.vue @@ -214,11 +214,8 @@ function handleExport(row) { const name = ref("所有") if (Ids.length != 0) { - let str = '' - for (const key in Ids) { - str += Ids[key] + ',' - } - str = str.slice(0, str.length - 1) + const ids = Object.values(Ids).map(value => String(value)); + const str = ids.join(','); queryParams.value.ids = str name.value = "选中" } diff --git a/src/views/business/GoodsManager/GoodsCategorys/index.vue b/src/views/business/GoodsManager/GoodsCategorys/index.vue index 83a7477..2bd0e92 100644 --- a/src/views/business/GoodsManager/GoodsCategorys/index.vue +++ b/src/views/business/GoodsManager/GoodsCategorys/index.vue @@ -261,11 +261,8 @@ function handleExport(row) { const name = ref("所有") if (Ids.length != 0) { - let str = '' - for (const key in Ids) { - str += Ids[key] + ',' - } - str = str.slice(0, str.length - 1) + const ids = Object.values(Ids).map(value => String(value)); + const str = ids.join(','); queryParams.value.ids = str name.value = "选中" } diff --git a/src/views/business/GoodsManager/GoodsServicess/index.vue b/src/views/business/GoodsManager/GoodsServicess/index.vue index 1704445..5cfef04 100644 --- a/src/views/business/GoodsManager/GoodsServicess/index.vue +++ b/src/views/business/GoodsManager/GoodsServicess/index.vue @@ -227,11 +227,8 @@ function handleExport(row) { const name = ref("所有") if (Ids.length != 0) { - let str = '' - for (const key in Ids) { - str += Ids[key] + ',' - } - str = str.slice(0, str.length - 1) + const ids = Object.values(Ids).map(value => String(value)); + const str = ids.join(','); queryParams.value.ids = str name.value = "选中" } diff --git a/src/views/business/GoodsManager/Goodss/components/AddDialog.vue b/src/views/business/GoodsManager/Goodss/components/AddDialog.vue index 30379c6..3c5ca06 100644 --- a/src/views/business/GoodsManager/Goodss/components/AddDialog.vue +++ b/src/views/business/GoodsManager/Goodss/components/AddDialog.vue @@ -29,10 +29,10 @@ - + + placeholder="请选择商品类目" clearable v-model="formData.shopGoodsCategoryGuid">