haoyahui
2023-11-20 025dafb9892a8ff8f8a855343660f837a0f231d3
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');
      // });
    },
  },
};