Mr.Zhang
2023-10-28 805fcd4d881ac13d0fe9961076ead66a71c20b2d
admin/src/views/system/user.vue
@@ -44,15 +44,9 @@
    </el-form>
    <!-- 表格和分页 -->
    <template v-slot:table-wrap>
      <div style="display: flex;">
        <div style="width: 15%; border-right: 1px solid #ececec;">
          <Tree
            :list="data"
            :defaultProps="defaultProps"
            @callback="callback"
          ></Tree>
        </div>
        <div style="width: 84%; margin-left: 1%;">
        <div>
          <div class="zdy_box">
            <div style="display: flex; align-items: center;">
              <span>{{name ? name : '全部'}} ({{tableData.pagination.total}})</span>
@@ -68,7 +62,7 @@
                />
              </li>
              <li v-permissions="['system:user:create']"><el-button type="primary" @click="$refs.operaUserWindow.open('新建用户')">添加用户</el-button></li>
              <li v-permissions="['system:user:create']"><el-button type="primary" @click="changeZZ">更换组织</el-button></li>
              <!-- <li v-permissions="['system:user:create']"><el-button type="primary" @click="changeZZ">更换组织</el-button></li> -->
              <li v-permissions="['system:user:delete']"><el-button @click="deleteByIdInBatch">删除</el-button></li>
            </ul>
          </div>
@@ -136,7 +130,6 @@
            @current-change="handlePageChange"
            :pagination="tableData.pagination"
          ></pagination>
        </div>
      </div>
    </template>
    <!-- 新建/修改 -->
@@ -275,7 +268,11 @@
        id: item.id,
        status: item.status
      }).then(res => {
        this.search()
      }).catch(e => {
        this.$tip.apiFailed(e)
      }).finally(() => {
        this.handlePageChange()
      })
    },
    resPwd() {