Revert "1"

This reverts commit f504cee74b.
This commit is contained in:
“zouyf” 2024-11-11 13:43:35 +08:00
parent f504cee74b
commit 768b3e7abf
1 changed files with 13 additions and 42 deletions

View File

@ -442,7 +442,7 @@ const handleQueryParamFromEntpCourseWork = (queryType) => {
* 1 - 按条件查询
* 2 - 按关键词查询
*/
const handleQueryFromEntpCourseWork= async (queryType, value) => {
const handleQueryFromEntpCourseWork= async (queryType) => {
pageParams.value.loading = true;
const queryForm = {
@ -476,20 +476,6 @@ const handleQueryFromEntpCourseWork= async (queryType, value) => {
// }
const entpcourseworkres = await listEntpcourseworkNew(queryForm);
// ,
if (nextLevelSecondId != -1) {
console.log('再次执行')
nextLevelSecondId = -1;
const debouncedFunction = debounceQueryData(10);
debouncedFunction();
return;
}
// ,
if (paginationParams.pageNum == 1) {
initPageParams();
}
const data = entpcourseworkres.data;
if(data && data.length>0){
// workResource.entpCourseWorkList = entpcourseworkres.data;
@ -501,11 +487,8 @@ const handleQueryFromEntpCourseWork= async (queryType, value) => {
}
})
//
processList(data);
workResource.entpCourseWorkList.push(...data);
//
@ -973,9 +956,7 @@ onMounted(async() => {
})
let nextLevelSecondId = -1;
const debounceQueryData = (wait) => {
const debouncedFunction = debounce(() => {
const debounceQueryData = debounce(() => {
console.log("防抖 加载数据中...")
//
initPageParams();
@ -985,9 +966,7 @@ const debounceQueryData = (wait) => {
getQueryFromEvaluationclue();
//
getEntpCourseWorkPointList();
}, wait);
return debouncedFunction;
}
}, 1000);
watch(() => props.propsformobj.uniquekey, (newVal) => {
@ -998,15 +977,7 @@ watch(() => props.propsformobj.uniquekey, (newVal) => {
})
watch(() => props.bookobj.levelSecondId, (newVal, oldVal) => {
console.log(props.bookobj,'课程选择')
console.log('更改章节id->', newVal);
//nextLevelSecondId = newVal;
if (pageParams.value.loading) {
console.log('更改章节id->', newVal);
nextLevelSecondId = newVal;
return;
}
const debouncedFunction = debounceQueryData(1000);
debouncedFunction();
debounceQueryData();
})
</script>