From d6b952ecc5c6a1f4e9d89ad58cdcf11abde7e4ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=8A=E9=92=8A?= <13512071256@163.com> Date: Fri, 27 Dec 2024 15:12:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=95=86=E5=93=81=E5=92=8C?= =?UTF-8?q?=E6=99=AF=E7=82=B9=E7=AE=A1=E7=90=86=EF=BC=8C=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=98=BE=E7=A4=BA=E5=8F=8A=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage/mkConfig/index.vue | 18 +++++++++++------- src/views/manage/mkPostcard/index.vue | 19 +++++++++++-------- src/views/manage/product/index.vue | 8 ++++---- src/views/manage/scenic/index.vue | 6 +++--- src/views/manage/tag/index.vue | 2 +- 5 files changed, 30 insertions(+), 23 deletions(-) diff --git a/src/views/manage/mkConfig/index.vue b/src/views/manage/mkConfig/index.vue index ca4ecef..0861ada 100644 --- a/src/views/manage/mkConfig/index.vue +++ b/src/views/manage/mkConfig/index.vue @@ -116,7 +116,7 @@ + + :disabled="dialog.type == 'preview'" clearable @visible-change="getProductAllList"> @@ -223,9 +223,9 @@ import { listProductCategory } from '@/api/manage/productCategory'; import { listVendor } from '@/api/manage/vendor'; onMounted(() => { getList(); + getProductAllList(true); //商品列表 getlistVendor(); //供应商列表 getProductCategoryList(); //商品类别列表 - getProductAllList(); //商品列表 下拉选择 不分页 }); const { proxy } = getCurrentInstance() as ComponentInternalInstance; const mkConfigList = ref([]); @@ -505,13 +505,17 @@ const getlistVendor = async () => { listVendorList.value = res.rows; } /** - * 商品列表 下拉选择 + * 商品列表 下拉选择 //商品列表 下拉选择 不分页 */ const productAllList=ref([]); -const getProductAllList=()=>{ - productAll({status:1}).then(res=>{ - Object.assign(productAllList.value,res.data) - }) +const getProductAllList=(e:any)=>{ + console.log(e); + + if (e) { + productAll({status:1}).then(res=>{ + Object.assign(productAllList.value,res.data) + }) + } } /** * 格式化商品类别名称 diff --git a/src/views/manage/mkPostcard/index.vue b/src/views/manage/mkPostcard/index.vue index 6ea5605..3abcef9 100644 --- a/src/views/manage/mkPostcard/index.vue +++ b/src/views/manage/mkPostcard/index.vue @@ -14,8 +14,9 @@ - + + @@ -58,7 +59,8 @@ @@ -67,7 +69,7 @@