houzhongjian
6 天以前 120d0238d72741de4feec283b7c67c99dcd436d6
src/views/system/loginlog/index.vue
@@ -45,7 +45,7 @@
          plain
          @click="handleExport"
          :loading="exportLoading"
          v-hasPermi="['infra:login-log:export']"
          v-hasPermi="['system:login-log:export']"
        >
          <Icon icon="ep:download" class="mr-5px" /> 导出
        </el-button>
@@ -56,16 +56,16 @@
  <!-- 列表 -->
  <ContentWrap>
    <el-table v-loading="loading" :data="list">
      <el-table-column label="日志编号" align="center" prop="id" />
      <el-table-column label="操作类型" align="center" prop="logType">
      <el-table-column label="日志编号" align="center" prop="id" width="100" />
      <el-table-column label="操作类型" align="center" prop="logType" width="100">
        <template #default="scope">
          <dict-tag :type="DICT_TYPE.SYSTEM_LOGIN_TYPE" :value="scope.row.logType" />
        </template>
      </el-table-column>
      <el-table-column label="用户名称" align="center" prop="username" width="180" />
      <el-table-column label="登录地址" align="center" prop="userIp" width="180" />
      <el-table-column label="浏览器" align="center" prop="userAgent" />
      <el-table-column label="登陆结果" align="center" prop="result">
      <el-table-column label="浏览器" align="center" prop="userAgent" :show-overflow-tooltip="true"/>
      <el-table-column label="登录结果" align="center" prop="result" width="100">
        <template #default="scope">
          <dict-tag :type="DICT_TYPE.SYSTEM_LOGIN_RESULT" :value="scope.row.result" />
        </template>
@@ -77,13 +77,13 @@
        width="180"
        :formatter="dateFormatter"
      />
      <el-table-column label="操作" align="center">
      <el-table-column label="操作" align="center" width="80">
        <template #default="scope">
          <el-button
            link
            type="primary"
            @click="openDetail(scope.row)"
            v-hasPermi="['infra:login-log:query']"
            v-hasPermi="['system:login-log:query']"
          >
            详情
          </el-button>