From db5f18c8d02881bbf8b8b43d45236bc59bd2f958 Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期三, 13 十二月 2023 18:36:49 +0800
Subject: [PATCH] feat: 物品规格管理 接口对接

---
 admin-web/src/views/foundation/material/specs/list.vue |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/admin-web/src/views/foundation/material/specs/list.vue b/admin-web/src/views/foundation/material/specs/list.vue
index eadc4a7..3ac7c61 100644
--- a/admin-web/src/views/foundation/material/specs/list.vue
+++ b/admin-web/src/views/foundation/material/specs/list.vue
@@ -1,7 +1,7 @@
 <template>
   <win-md title="瑙勬牸鍨嬪彿" @close="close" :width="'800px'">
     <!--鍒楄〃-->
-    <my-table-v2 ref="myTable" :table="table"/>
+    <my-table-v2 ref="myTable" :filter="{goodsTemplatesId: setting.goodsTemplatesId}" :table="table"/>
     <div slot="footer" align="center" class="dialog-footer">
       <my-button name="鍙栨秷" site="form" @click="close"/>
     </div>
@@ -122,13 +122,13 @@
     ...mapGetters(['userInfo'])
   },
   mounted() {
-    this.$nextTick(()=>{
+    this.$nextTick(() => {
       this.search()
     })
 
   },
   methods: {
-    showAdd(){
+    showAdd() {
       this.specsSetting.goodsTemplatesId = this.setting.goodsTemplatesId;//鐗╁搧ID
       this.specsSetting.show = true;
     },
@@ -151,19 +151,22 @@
       this.$modal
         .confirm('鏄惁纭鍒犻櫎鍚嶇О涓�"' + row.modelName + '"鐨勮鏍煎悧锛�')
         .then(function () {
-          delSpecs({ id: row.id }).then((res) => {});
+          delSpecs({id: row.id}).then((res) => {
+          });
         })
         .then((res) => {
-          this.$message.success('鍒犻櫎鎴愬姛锛�');this.$refs.myTable.search();
+          this.$message.success('鍒犻櫎鎴愬姛锛�');
+          this.$refs.myTable.search();
         })
-        .catch(() => {});
+        .catch(() => {
+        });
     },
     close() {
       this.$emit('close')
     },
     // 鏌ヨtable鍒楄〃
     search() {
-      this.$refs.myTable.search({goodsTemplatesId:this.specsSetting.goodsTemplatesId})
+      this.$refs.myTable.search()
     },
 
   }

--
Gitblit v1.9.1