refactor: 修复登录状态,修改下载用户模板接口名
This commit is contained in:
parent
953b6b0589
commit
bd582b8dd9
@ -21,7 +21,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="状态" prop="status">
|
||||
<el-select v-model="queryParams.status" placeholder="登录状态" clearable style="width: 240px">
|
||||
<el-option v-for="dict in sys_operation_status" :key="dict.value" :label="dict.label" :value="dict.value" />
|
||||
<el-option v-for="dict in sys_login_status" :key="dict.value" :label="dict.label" :value="dict.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="登录时间" style="width: 308px">
|
||||
@ -94,7 +94,7 @@
|
||||
<el-table-column label="浏览器" align="center" prop="browser" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="登录状态" align="center" prop="status">
|
||||
<template #default="scope">
|
||||
<dict-tag :options="sys_operation_status" :value="scope.row.status" />
|
||||
<dict-tag :options="sys_login_status" :value="scope.row.status" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="描述" align="center" prop="msg" />
|
||||
@ -119,7 +119,7 @@
|
||||
import * as loginInfoApi from '@/api/monitor/loginInfoApi';
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { sys_operation_status } = proxy.useDict('sys_operation_status');
|
||||
const { sys_login_status } = proxy.useDict('sys_login_status');
|
||||
|
||||
const logininforList = ref([]);
|
||||
const loading = ref(true);
|
||||
|
||||
@ -355,7 +355,7 @@
|
||||
type="primary"
|
||||
:underline="false"
|
||||
style="font-size: 12px; vertical-align: baseline"
|
||||
@click="importTemplate"
|
||||
@click="downloadTemplate"
|
||||
>下载模板</el-link
|
||||
>
|
||||
</div>
|
||||
@ -586,8 +586,8 @@ function handleImport() {
|
||||
upload.open = true;
|
||||
}
|
||||
/** 下载模板操作 */
|
||||
function importTemplate() {
|
||||
proxy.download('system/user/importTemplate', {}, `user_template_${new Date().getTime()}.xlsx`);
|
||||
function downloadTemplate() {
|
||||
proxy.download('system/user/downloadTemplate', {}, `user_template_${new Date().getTime()}.xlsx`);
|
||||
}
|
||||
/** 文件上传中处理 */
|
||||
const handleFileUploadProgress = (event, file, fileList) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user