Browse Source

添加登录登出时间

zhaoke 1 year ago
parent
commit
3b247964c8
1 changed files with 10 additions and 2 deletions
  1. 10 2
      src/views/newUserManagement/index.vue

+ 10 - 2
src/views/newUserManagement/index.vue

@@ -95,8 +95,16 @@
                   <div>{{ scope.row.user_status ? '启用' :'禁用' }}</div>
                 </template>
               </el-table-column>
-              <!-- <el-table-column prop="token_valid_duration" label="令牌有效时长">
-              </el-table-column> -->
+              <el-table-column prop="signInTime" label="登录时间">
+                <template slot-scope="scope">
+                  <div v-if="scope.row.signInTime">{{ scope.row.signInTime.replace('T',' ') }}</div>
+                </template>
+              </el-table-column>
+              <el-table-column prop="LogoutTime" label="登出时间">
+                <template slot-scope="scope">
+                  <div v-if="scope.row.LogoutTime">{{ scope.row.LogoutTime.replace('T',' ') }}</div>
+                </template>
+              </el-table-column>
               <el-table-column prop="user_comment" label="描述">
               </el-table-column>
               <el-table-column label="操作" width="235">