|
@@ -9,13 +9,13 @@ import { ref } from 'vue';
|
|
|
|
|
|
|
|
export const usePersonGroupFilterList = () => {
|
|
export const usePersonGroupFilterList = () => {
|
|
|
const FILTER_TYPES = [
|
|
const FILTER_TYPES = [
|
|
|
- { type: 'nickname', label: '姓名' },
|
|
|
|
|
|
|
+ { type: 'realname', label: '姓名' },
|
|
|
{ type: 'staffNo', label: '工号' },
|
|
{ type: 'staffNo', label: '工号' },
|
|
|
{ type: 'deptName', label: '部门' },
|
|
{ type: 'deptName', label: '部门' },
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
// 复用输入框类型及标签
|
|
// 复用输入框类型及标签
|
|
|
- const personFilterType = ref({ type: 'nickname', label: '姓名' });
|
|
|
|
|
|
|
+ const personFilterType = ref({ type: 'realname', label: '姓名' });
|
|
|
// 输入框绑定数据
|
|
// 输入框绑定数据
|
|
|
const personFilterValue = ref<string>();
|
|
const personFilterValue = ref<string>();
|
|
|
// 查询参数
|
|
// 查询参数
|
|
@@ -31,7 +31,7 @@ export const usePersonGroupFilterList = () => {
|
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
|
queryParam: {}
|
|
queryParam: {}
|
|
|
};
|
|
};
|
|
|
- personFilterParams.value[personFilterType.value.type] = personFilterValue.value;
|
|
|
|
|
|
|
+ personFilterParams.value.queryParam[personFilterType.value.type] = personFilterValue.value;
|
|
|
const res = await queryPersonFilterList(personFilterParams.value);
|
|
const res = await queryPersonFilterList(personFilterParams.value);
|
|
|
personFilterList.value = res;
|
|
personFilterList.value = res;
|
|
|
// 如果有返回且搜索到则添加选中标记
|
|
// 如果有返回且搜索到则添加选中标记
|