按钮级别的新版本,多级别的组织架构
loulijun2021
2023-08-25 3fce634eeb56f9425d5e745b1d4333da962fc3d7
src/views/basicSettings/personList.vue
@@ -22,6 +22,7 @@
          <el-tree
            ref="treeLeftRef"
            key="treeLeftKey"
            style="padding: 10px;overflow: auto;"
            :style="{height:(tableHeight+180)+'px'}"
            :data="treeLeft"
@@ -55,25 +56,24 @@
                <el-form-item label="用户名称" style=" display: flex;">
                  <el-input v-model="form.username" placeholder="请输入" style="width: 200px" />
                </el-form-item>
                <el-form-item label="用户编码" style=" display: flex;">
                  <el-input v-model="form.usercode" placeholder="请输入" style="width: 200px" />
                </el-form-item>
                <el-form-item v-show="isExpandForm" label="用户名称" style=" display: flex;">
                  <el-input v-model="form.username" placeholder="请输入" style="width: 200px" />
                </el-form-item>
                <el-form-item v-show="isExpandForm" label="用户编码" style=" display: flex;">
                  <el-input v-model="form.usercode" placeholder="请输入" style="width: 200px" />
                </el-form-item>
                <el-form-item v-show="isExpandForm" label="用户名称" style=" display: flex;">
                  <el-input v-model="form.username" placeholder="请输入" style="width: 200px" />
                </el-form-item>
                <el-form-item v-show="isExpandForm" label="用户编码" style=" display: flex;">
                  <el-input v-model="form.usercode" placeholder="请输入" style="width: 200px" />
                </el-form-item>
                <el-form-item v-show="isExpandForm" label="用户名称" style=" display: flex;">
                  <el-input v-model="form.username" placeholder="请输入" style="width: 200px" />
                </el-form-item>
                <!--                <el-form-item label="用户编码" style=" display: flex;">-->
                <!--                  <el-input v-model="form.usercode" placeholder="请输入" style="width: 200px" />-->
                <!--                </el-form-item>-->
                <!--                <el-form-item v-show="isExpandForm" label="用户名称" style=" display: flex;">-->
                <!--                  <el-input v-model="form.username" placeholder="请输入" style="width: 200px" />-->
                <!--                </el-form-item>-->
                <!--                <el-form-item v-show="isExpandForm" label="用户编码" style=" display: flex;">-->
                <!--                  <el-input v-model="form.usercode" placeholder="请输入" style="width: 200px" />-->
                <!--                </el-form-item>-->
                <!--                <el-form-item v-show="isExpandForm" label="用户名称" style=" display: flex;">-->
                <!--                  <el-input v-model="form.username" placeholder="请输入" style="width: 200px" />-->
                <!--                </el-form-item>-->
                <!--                <el-form-item v-show="isExpandForm" label="用户编码" style=" display: flex;">-->
                <!--                  <el-input v-model="form.usercode" placeholder="请输入" style="width: 200px" />-->
                <!--                </el-form-item>-->
                <!--                <el-form-item v-show="isExpandForm" label="用户名称" style=" display: flex;">-->
                <!--                  <el-input v-model="form.username" placeholder="请输入" style="width: 200px" />-->
                <!--                </el-form-item>-->
              </div>
              <div
                class="bodySearchReset"
@@ -85,20 +85,21 @@
            </el-form>
            <div
              class="bodyTopFormExpand"
              style="height: 5px;"
            >
              <svg-icon
                v-show="mouseHoverType==='mouseout'"
                style="cursor: pointer"
                :icon-class="!isExpandForm?'doubleDown3':'doubleUp3'"
                @mouseenter="mouseHoverType=$event.type"
              />
              <svg-icon
                v-show="mouseHoverType==='mouseenter'"
                style="cursor: pointer"
                :icon-class="!isExpandForm?'doubleDown':'doubleUp'"
                @click="isExpandForm=!isExpandForm"
                @mouseout="mouseHoverType=$event.type"
              />
              <!--              <svg-icon-->
              <!--                v-show="mouseHoverType==='mouseout'"-->
              <!--                style="cursor: pointer"-->
              <!--                :icon-class="!isExpandForm?'doubleDown3':'doubleUp3'"-->
              <!--                @mouseenter="mouseHoverType=$event.type"-->
              <!--              />-->
              <!--              <svg-icon-->
              <!--                v-show="mouseHoverType==='mouseenter'"-->
              <!--                style="cursor: pointer"-->
              <!--                :icon-class="!isExpandForm?'doubleDown':'doubleUp'"-->
              <!--                @click="isExpandForm=!isExpandForm"-->
              <!--                @mouseout="mouseHoverType=$event.type"-->
              <!--              />-->
            </div>
          </div>
@@ -156,6 +157,7 @@
                prop="email"
                label="邮箱"
                sortable="custom"
                show-overflow-tooltip
              >
                <template slot-scope="{row}">
                  {{ row.email ? row.email : '/' }}
@@ -165,6 +167,7 @@
                prop="mobile"
                label="号码"
                sortable="custom"
                show-overflow-tooltip
              >
                <template slot-scope="{row}">
                  {{ row.mobile ? row.mobile : '/' }}
@@ -174,6 +177,7 @@
                prop="postname"
                label="岗位"
                sortable="custom"
                show-overflow-tooltip
              >
                <template slot-scope="{row}">
                  {{ row.postname ? row.postname : '/' }}
@@ -183,6 +187,7 @@
                prop="rolename"
                label="角色"
                sortable="custom"
                show-overflow-tooltip
              >
                <template slot-scope="{row}">
                  {{ row.rolename ? row.rolename : '/' }}
@@ -192,6 +197,7 @@
                prop="group_name"
                label="班组"
                sortable="custom"
                show-overflow-tooltip
              >
                <template slot-scope="{row}">
                  {{ row.group_name ? row.group_name : '/' }}
@@ -521,8 +527,10 @@
        customID: 'torg_code',
        childrenProperty: 'children'
      })
      this.treeLeft = this.cascaderOptions
      this.$nextTick(() => {
        this.treeLeft = this.cascaderOptions
        this.$forceUpdate()
      })
    },
    // 岗位 角色 班组
    async getAllSelectData() {
@@ -693,7 +701,7 @@
    getHeight() {
      this.$nextTick(() => {
        this.mainHeight = window.innerHeight - 85
        this.tableHeight = this.mainHeight - 295
        this.tableHeight = this.mainHeight - 280
        this.$refs.tableDataRef.doLayout()
      })
    }