石广澎
2023-11-29 20913c80c3f5fc8e533cb92b90e6f20bcd68e032
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} 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,12 +141,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');
      // });
    },
  },
};