From 8cbe2b4e7c708fb6fef901915b8081a19c49213b Mon Sep 17 00:00:00 2001
From: futian.liu <liufutianyoo@163.com>
Date: 星期四, 21 十二月 2023 14:33:35 +0800
Subject: [PATCH] 仓库增加机构显示

---
 admin-web/src/views/foundation/store/person.vue |   25 +++++++++++++++----------
 1 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/admin-web/src/views/foundation/store/person.vue b/admin-web/src/views/foundation/store/person.vue
index 1a4e5dc..92b0ed7 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>
@@ -35,11 +35,9 @@
 </template>
 
 <script>
-import { departmentListAll } from '@/api/system/deptment';
-import { userSelectDepartment, warehouseManagerAdd, warehouseManagerList } from '@/api/foudation/store';
+import {userSelectDepartment, warehouseManagerList, warehouseManagerAdd} from '@/api/foudation/store';
 import winMd from '@/components/win/win-md';
 import myButton from '@/components/myButton/myButton';
-import * as finsystenant from '@/api/baseSetting/finsystenant';
 
 export default {
   name: 'person',
@@ -52,6 +50,8 @@
   },
   data() {
     return {
+      loading:true,
+      loadingText:'鍔犺浇涓�',
       selectdSections: [],
       treeData: [],
       formData: {},
@@ -64,15 +64,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 +79,7 @@
         return item;
       });
       this.key = Math.random();
+    this.loading = false
     });
   },
   methods: {
@@ -145,7 +141,16 @@
           managerName: item.name,
         });
       });
-      debugger;
+      // setTimeout(()=>{
+      //   warehouseManagerAdd(params).then((res) => {
+      //     this.$message.success('淇濆瓨鎴愬姛锛�');
+      //     this.close();
+      //     this.$emit('search');
+      //   });
+      //   this.$message.success('淇濆瓨鎴愬姛锛�');
+      //   this.close();
+      //   this.$emit('search');
+      // },6000)
       warehouseManagerAdd(params).then((res) => {
         this.$message.success('淇濆瓨鎴愬姛锛�');
         this.close();

--
Gitblit v1.9.1