|
|
|
@ -21,7 +21,8 @@ import { getAllfieldList, getfieldList } from '@/api/home/filter'
|
|
|
|
|
import { useTaskStore } from '@/store/modules/task'
|
|
|
|
|
import emitter from '@/utils/mitt'
|
|
|
|
|
import { useConfig } from '@/store/modules/asideConfig'
|
|
|
|
|
|
|
|
|
|
import { getConditionList } from "@/api/home/filter";
|
|
|
|
|
import type { FilterSearchParam } from "/#/api";
|
|
|
|
|
const CustomFieldModalRef = ref(null)
|
|
|
|
|
const collapse = ref(false)
|
|
|
|
|
const taskStore = useTaskStore()
|
|
|
|
@ -130,7 +131,30 @@ async function getshowFieldList() {
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
getshowFieldList()
|
|
|
|
|
window.addEventListener("keydown", handleKeydown);
|
|
|
|
|
init()
|
|
|
|
|
})
|
|
|
|
|
async function init(){
|
|
|
|
|
try {
|
|
|
|
|
const searchParam: FilterSearchParam = {
|
|
|
|
|
search_searchname: { value: "", op: "like", type: "string" },
|
|
|
|
|
};
|
|
|
|
|
const result = await getConditionList(1, searchParam,2);
|
|
|
|
|
const { data } = result;
|
|
|
|
|
if(data[0]){
|
|
|
|
|
AdvanceFilterRef.value.setCurrentlySelectedAdvanced(data[0].searchname);
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
filterHandler(data[0].id)
|
|
|
|
|
}, 1000);
|
|
|
|
|
//filterHandler(data[0].id);
|
|
|
|
|
}
|
|
|
|
|
// pagination.pageNo += 1
|
|
|
|
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
return [];
|
|
|
|
|
} finally {
|
|
|
|
|
}
|
|
|
|
|
//currentlySelectedAdvanced.value="邱霞"
|
|
|
|
|
}
|
|
|
|
|
function handleKeydown(event) {
|
|
|
|
|
if (event.key === "s") setShowSearch(true)}
|
|
|
|
|
// 滚动容器,让key对应模块处于可视区域
|
|
|
|
|