From f12d2962b9b13185d07d5a52b07fc4dc51f32370 Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期四, 19 十月 2023 14:01:16 +0800
Subject: [PATCH] feat: 产品新建弹窗产品类别添加兜底数据
---
src/views/productManage/productCategory/AddProductCategoryDialog.vue | 1 -
src/views/productManage/product/AddProductDialog.vue | 6 +++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/views/productManage/product/AddProductDialog.vue b/src/views/productManage/product/AddProductDialog.vue
index 8622c9d..a1d1117 100644
--- a/src/views/productManage/product/AddProductDialog.vue
+++ b/src/views/productManage/product/AddProductDialog.vue
@@ -165,7 +165,7 @@
:disabled="!showFooter"
>
<el-option
- v-for="item in productCategoryOptions"
+ v-for="item in productCategoryListWithDefault"
:key="item.id"
:label="item.name"
:value="item.id"
@@ -482,6 +482,9 @@
},
components: {},
computed: {
+ productCategoryListWithDefault(){
+ return [{id:0,name:'璇烽�夋嫨'},...(this.productCategoryOptions ?? [])]
+ },
modalTitle(){
if (this.editConfig.title === '缂栬緫' && this.editConfig.autoEdit){
return '缂栬緫'
@@ -505,6 +508,7 @@
memberOptions: [{ name: "绠$悊鍛�", id: 1 }],
productCategoryOptions: [], // 浜у搧绫诲埆
productTypeOptions: [
+ { name: "璇烽�夋嫨", id: 0 },
{ name: "鑳芥秷鑰�", id: 1 },
{ name: "鏈嶅姟", id: 2 },
{ name: "鍙簱瀛樹骇鍝�", id: 3 }
diff --git a/src/views/productManage/productCategory/AddProductCategoryDialog.vue b/src/views/productManage/productCategory/AddProductCategoryDialog.vue
index 1bcd7f4..2f86a71 100644
--- a/src/views/productManage/productCategory/AddProductCategoryDialog.vue
+++ b/src/views/productManage/productCategory/AddProductCategoryDialog.vue
@@ -198,7 +198,6 @@
components: {},
computed: {
productCategoryListWithDefault(){
- console.log(this.productCategoryList)
return [{id:0,name:'璇烽�夋嫨'},...(this.productCategoryList?? [])]
},
modalTitle(){
--
Gitblit v1.8.0