spring
2025-03-19 07a41ade45c962e93a9d449ce1be0eec52e66a6a
src/components/view/a6-personnel-detail.vue
@@ -67,7 +67,7 @@
    background-color: #fff;
    height: 100%;
    display: flex;
    align-items: center;
    align-items: right;
    justify-content: end;
  }
@@ -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>
@@ -170,6 +170,13 @@
      </span>
    </el-dialog>
    <el-dialog title="选择用户" :visible.sync="selectUserDia" width="70%">
      <div class="search" style="margin-bottom: 9px;">
        <div class="search_thing">
          <div class="search_label">用户名:</div>
          <div class="search_input"><el-input size="small" placeholder="请输入" clearable
              v-model="componentData2.entity.name" @keyup.enter.native="$refs.ValueTable2.selectList()"></el-input></div>
        </div>
      </div>
       <div class="body" style="height: 60vh;" v-if="selectUserDia">
          <ValueTable ref="ValueTable2" :url="$api.user.selectUserList" :componentData="componentData2"/>
       </div>
@@ -245,6 +252,7 @@
        expandedKeys: [],
        selectUserDia: false,
        componentData2: {
          name: null,
           entity: {
              orderBy: {
                 field: 'id',
@@ -271,6 +279,7 @@
           selectField: {},
          upUserDepardLimsIdPower: true
        },
        currentCompaniesList: []
      }
    },
    mounted() {
@@ -285,8 +294,8 @@
      searchFilter() {
        this.$refs.tree.filter(this.search)
      },
      refreshTable() {
        this.$refs.ValueTable.selectList()
      refreshTable(e) {
        this.$refs.ValueTable.selectList(e)
      },
      refresh() {
        this.upIndex++;
@@ -309,6 +318,7 @@
      },
      getNodeParent(val) {
        if (val.parent != null) {
          this.currentCompaniesList[val.level-1] = val.data.id
          this.selectTree += ' - ' + val.label
          this.getNodeParent(val.parent)
        }
@@ -423,16 +433,20 @@
        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
          }
          this.$message.success('添加成功')
          this.refreshTable()
          this.refreshTable('page')
        })
      }
    }