|
|
@ -28,6 +28,12 @@ |
|
|
|
<el-date-picker v-model="queryParams.createTime" value-format="YYYY-MM-DD HH:mm:ss" type="datetimerange" |
|
|
|
start-placeholder="开始日期" end-placeholder="结束日期" class="!w-240px" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="是否冻结" prop="frozenStatus"> |
|
|
|
<el-select v-model="queryParams.frozenStatus" placeholder="请选择"> |
|
|
|
<el-option label="是" value="TRUE"></el-option> |
|
|
|
<el-option label="否" value="FALSE"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-form-item label="用户昵称" prop="nickeName"> |
|
|
|
<el-input v-model="queryParams.nickeName" placeholder="请输入用户昵称" clearable @keyup.enter="handleQuery" |
|
|
@ -123,6 +129,7 @@ import DeptTree from './DeptTree.vue' |
|
|
|
|
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
|
import { el } from 'element-plus/es/locale' |
|
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
|
defineOptions({ name: 'SystemUser' }) |
|
|
|
|
|
|
@ -138,21 +145,21 @@ const queryParams = reactive({ |
|
|
|
username: undefined, |
|
|
|
mobile: undefined, |
|
|
|
status: undefined, |
|
|
|
frozenStatus: undefined, |
|
|
|
deptId: undefined, |
|
|
|
createTime: [], |
|
|
|
nickeName:undefined |
|
|
|
}) |
|
|
|
const queryFormRef = ref() // 搜索的表单 |
|
|
|
|
|
|
|
/** 查询列表 */ |
|
|
|
const getList = async () => { |
|
|
|
loading.value = true |
|
|
|
try { |
|
|
|
const data = await UserApi.getUserPage(queryParams) |
|
|
|
for(let i=0;i<data.list.length; i++){ |
|
|
|
if(data.list[i].frozenEndTime){ |
|
|
|
if(data.list[i].frozenStatus == "TRUE"){ |
|
|
|
data.list[i].frozenStatus = "是" |
|
|
|
}else{ |
|
|
|
}else if(data.list[i].frozenStatus == "false"){ |
|
|
|
data.list[i].frozenStatus = "否" |
|
|
|
} |
|
|
|
} |
|
|
|