Browse Source

2023-12-15 修改登录记录中的字段

zhiquz 1 year ago
parent
commit
536ae872be
2 changed files with 14 additions and 22 deletions
  1. BIN
      dist.zip
  2. 14 22
      src/pages/loginTime/index.vue

BIN
dist.zip


+ 14 - 22
src/pages/loginTime/index.vue

@@ -38,50 +38,42 @@
       style="margin: 20px 0"
     >
       <el-table-column
-        prop="nickname"
-        label="客户昵称"
+        prop="admin_name"
+        label="用户"
         align="center"
       />
       <el-table-column
-        prop="mobile"
-        label="客户手机号"
+        prop="address"
+        label="登录地址"
         align="center"
       />
       <el-table-column
-        prop="realname"
-        label="真实姓名"
+        prop="ip"
+        label="登录ip"
         align="center"
       />
       <el-table-column
-        label="客户类别"
+        prop="browser"
+        label="登录设备"
         align="center"
-      >
-        <template slot-scope="{ row }">
-          <el-tag
-            :color="levelStatus(row.level).color"
-            style="color:#ffffff;"
-          >
-            {{ levelStatus(row.level).name }}
-          </el-tag>
-        </template>
-      </el-table-column>
+      />
       <el-table-column
         prop="login_log_count"
         label="最近一次登录时间"
         align="center"
       >
-        <template slot-scope="{ row: { login_at } }">
-          {{ login_at || '暂未登录' }}
+        <template slot-scope="{ row: { time } }">
+          {{ time || '暂未登录' }}
         </template>
       </el-table-column>
-      <el-table-column
+      <!-- <el-table-column
         label="操作"
         align="center"
       >
         <template slot-scope="{ row }">
           <el-button type="text" @click="loginInfo.id = row.id;loginInfo.page = 1;getLoginInfo()">查看详情</el-button>
         </template>
-      </el-table-column>
+      </el-table-column> -->
     </el-table>
     <pagination
       :total="LoginTotal"
@@ -248,7 +240,7 @@ export default {
       apis.loginList(this.searchParams).then(res => {
         loading.close()
         if (res.code === 200) {
-          this.LoginList = res.data.list.data
+          this.LoginList = res.data.list
           this.LoginTotal = res.data.total
           // this.total.crown = res.data.list.crown
           // this.total.top = res.data.list.top