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">