From 025dafb9892a8ff8f8a855343660f837a0f231d3 Mon Sep 17 00:00:00 2001
From: haoyahui <2032914783@qq.com>
Date: 星期一, 20 十一月 2023 16:31:11 +0800
Subject: [PATCH] 库存管理前端

---
 admin-web/src/views/foundation/store/person.vue |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/admin-web/src/views/foundation/store/person.vue b/admin-web/src/views/foundation/store/person.vue
index 1a4e5dc..9c153c4 100644
--- a/admin-web/src/views/foundation/store/person.vue
+++ b/admin-web/src/views/foundation/store/person.vue
@@ -1,5 +1,5 @@
 <template>
-  <win-md :title="setting.title" @close="close" :width="'800px'">
+  <win-md :title="setting.title" @close="close" :width="'800px'" :loading="loading">
     <div class="section-container">
       <div class="section-left">
         <div class="header-row"><span class="title">閫夋嫨浜哄憳锛�</span></div>
@@ -52,6 +52,8 @@
   },
   data() {
     return {
+      loading:true,
+      loadingText:'鍔犺浇涓�',
       selectdSections: [],
       treeData: [],
       formData: {},
@@ -64,15 +66,10 @@
   },
   computed: {
     checkedKeys() {
-      console.log(
-        1111,
-        this.selectdSections.map((v) => v.id),
-      );
       return this.selectdSections.map((v) => v.id);
     },
   },
   created() {
-    console.log(this.setting);
     if (this.setting.info) {
       this.formData = Object.assign({}, JSON.parse(this.setting.info));
     }
@@ -84,6 +81,7 @@
         return item;
       });
       this.key = Math.random();
+    this.loading = false
     });
   },
   methods: {
@@ -145,12 +143,16 @@
           managerName: item.name,
         });
       });
-      debugger;
-      warehouseManagerAdd(params).then((res) => {
+      setTimeout(()=>{
         this.$message.success('淇濆瓨鎴愬姛锛�');
         this.close();
         this.$emit('search');
-      });
+      },6000)
+      // warehouseManagerAdd(params).then((res) => {
+      //   this.$message.success('淇濆瓨鎴愬姛锛�');
+      //   this.close();
+      //   this.$emit('search');
+      // });
     },
   },
 };

--
Gitblit v1.9.1