licp
2024-05-29 1f1f6b2f9c8b3614cc8c182b8c4a204cda0e0a9b
src/components/view/person-manage.vue
@@ -252,9 +252,6 @@
</template>
<script>
  import {
    compileToFunctions
  } from 'vue-template-compiler'
  import ValueTable from '../tool/value-table.vue'
  export default {
    components: {
@@ -438,6 +435,7 @@
        })
      },
      opeaAdd() {
        console.log(this.addOb.fatherId,this.selectTree)
        if (!this.addOb.fatherId || this.selectTree == '' || this.selectTree == '全部') {
          this.$message.error('请选择一个组织')
          return
@@ -538,7 +536,7 @@
      },
      getNodeParent(val) {
        if (val.parent != null) {
          this.selectTree += ' - ' + val.label
          this.selectTree += ' - ' + val.data.name
          this.getNodeParent(val.parent)
        }
      },
@@ -600,7 +598,7 @@
        })
      },
      nodeClick2(ob, node, el) {
        this.getNodeParent(node)
        this.getNodeParent0(node)
        if (ob.id !== 'SC21') {
          this.personLoad = true
          this.$axios.post(this.$api.companies.selectSimpleList, {
@@ -613,10 +611,10 @@
          })
        }
      },
      getNodeParent(val){
      getNodeParent0(val){
        this.currentCompaniesList[val.level-1] = val.data.id
        if(val.parent!=null){
          this.getNodeParent(val.parent)
          this.getNodeParent0(val.parent)
        }
      },
      handleSelectionChange(val) {