| | |
| | | style="width: 240px" |
| | | > |
| | | <el-option |
| | | v-for="dict in statusOptions" |
| | | :key="dict.dictValue" |
| | | :label="dict.dictLabel" |
| | | :value="dict.dictValue" |
| | | v-for="dict in dict.type.sys_common_status" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-table-column label="操作系统" align="center" prop="os" /> |
| | | <el-table-column label="登录状态" align="center" prop="status"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="statusOptions" :value="scope.row.status"/> |
| | | <dict-tag :options="dict.type.sys_common_status" :value="scope.row.status"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作信息" align="center" prop="msg" /> |
| | |
| | | |
| | | export default { |
| | | name: "Logininfor", |
| | | dicts: ['sys_common_status'], |
| | | data() { |
| | | return { |
| | | // 遮罩层 |
| | |
| | | total: 0, |
| | | // 表格数据 |
| | | list: [], |
| | | // 状态数据字典 |
| | | statusOptions: [], |
| | | // 日期范围 |
| | | dateRange: [], |
| | | // 默认排序 |
| | |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | this.getDicts("sys_common_status").then(response => { |
| | | this.statusOptions = response.data; |
| | | }); |
| | | }, |
| | | methods: { |
| | | /** 查询登录日志列表 */ |