value
2024-05-27 c19f03bbbe232602bbf7cde343a2d4f58c31a5fd
src/components/view/a6-personnel-detail.vue
@@ -160,7 +160,7 @@
            <span class="required-span">* </span>架构名称:
          </el-col>
          <el-col :span="16" :offset="1">
            <el-input v-model="addOb.name" placeholder="请输入架构名称" clearable size="small"></el-input>
            <el-input v-model="addOb.name" placeholder="请输入架构名称" clearable size="small" @keyup.enter.native="addStandardTree"></el-input>
          </el-col>
        </el-row>
      </div>
@@ -271,6 +271,7 @@
           selectField: {},
          upUserDepardLimsIdPower: true
        },
        currentCompaniesList: []
      }
    },
    mounted() {
@@ -304,11 +305,12 @@
        }
        this.selectTree = data2.replace(' - ', '')
        this.addOb.fatherId = val.id;
        this.componentData.entity.departLimsId = val.id;
        this.componentData.entity.departLimsId = val.id+',';
        this.refreshTable()
      },
      getNodeParent(val) {
        if (val.parent != null) {
          this.currentCompaniesList[val.level-1] = val.data.id
          this.selectTree += ' - ' + val.label
          this.getNodeParent(val.parent)
        }
@@ -423,10 +425,14 @@
        selects.forEach(a=>{
          ids.push(a.id)
        })
        let str = ''
        this.currentCompaniesList.forEach(a=>{
          str+=(a+',')
        })
         this.selectUserDia = false
        this.$axios.post(this.$api.user.upUserDepardLimsId,{
          ids: JSON.stringify(ids),
          id: this.componentData.entity.departLimsId
          id: str
        }).then(res=>{
          if (res.code === 201) {
            return