Admin.UI/src/views/admin/user/index.vue

(开头部分) 20KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<template>
  <my-container
    left-aside-width="280px"
    :left-aside-resize-options="resizeOptions"
    :show-left-aside="true"
    :resizable="true"
    :show-header="false"
    :show-footer="false"
    :main-style="'padding:0px;'"
  >
    <template #left-aside>
      <my-user-org @change="onOrgChange" />
    </template>
    <my-container v-loading="pageLoading">
      <!--顶部操作-->
      <template #header>
        <el-form class="ad-form-query" :inline="true" @submit.native.prevent>
          <el-form-item>
            <my-search :fields="fields" @click="onSearch" />
          </el-form-item>
          <el-form-item>
            <el-button type="primary" @click="onsearchWindowVisible">高级查询</el-button>
          </el-form-item>
          <el-form-item v-if="checkPermission(['api:admin:user:add'])">
            <el-button type="primary" @click="onAdd">新增</el-button>
          </el-form-item>
          <el-form-item v-if="checkPermission(['api:admin:user:batchdelete'])">
            <my-confirm-button
              :disabled="sels.length === 0"
              :type="'delete'"
              :placement="'bottom-end'"
              :loading="deleteLoading"
              :validate="batchDeleteValidate"
              style="margin-left: 0px;"
              @click="onBatchDelete"
            >
              <template #content>
                <p>确定要批量删除吗?</p>
              </template>
              批量删除
            </my-confirm-button>
          </el-form-item>
        </el-form>
      </template>

      <!--列表-->
      <el-table
        v-loading="listLoading"
        :data="users"
        highlight-current-row
        height="'100%'"
        style="width: 100%;height:100%;"
        :row-key="(row)=>row.id"
        @selection-change="onSelsChange"
      >
        <template #empty>
          <el-empty :image-size="100" />
        </template>
        <el-table-column type="selection" reserve-selection width="50" />
        <el-table-column prop="userName" label="用户名" width>
后面还有 607 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。