学生端,作业、测试、问卷卡片页面分页调整

This commit is contained in:
曹磊 2024-05-23 14:25:14 +08:00
parent 6593aa7e93
commit db0b90370a
6 changed files with 49 additions and 49 deletions

View File

@ -210,8 +210,7 @@
function handleFabu(record: Recordable) {
defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "6" } }).then(res => {
total.value = 1;
pageNo.value = 0;
reload();
handlePageChange(1);
});
}
/**
@ -241,16 +240,15 @@
*/
function handleSuccess() {
total.value = 1;
pageNo.value = 0;
reload();
handlePageChange(1);
}
/**
* 查询
*/
function searchQuery() {
pageNo.value = 0;
reload();
total.value = 1;
handlePageChange(1);
}
/**

View File

@ -152,16 +152,15 @@
*/
function handleSuccess() {
total.value = 1;
pageNo.value = 0;
reload();
handlePageChange(1);
}
/**
* 查询
*/
function searchQuery() {
pageNo.value = 0;
reload();
total.value = 1;
handlePageChange(1);
}
/**

View File

@ -207,8 +207,7 @@
function handleFabu(record: Recordable) {
defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "1" } }).then(res => {
total.value = 1;
pageNo.value = 0;
reload();
handlePageChange(1);
});
}
/**
@ -238,16 +237,15 @@
*/
function handleSuccess() {
total.value = 1;
pageNo.value = 0;
reload();
handlePageChange(1);
}
/**
* 查询
*/
function searchQuery() {
pageNo.value = 0;
reload();
total.value = 1;
handlePageChange(1);
}
/**

View File

@ -152,16 +152,15 @@
*/
function handleSuccess() {
total.value = 1;
pageNo.value = 0;
reload();
handlePageChange(1);
}
/**
* 查询
*/
function searchQuery() {
pageNo.value = 0;
reload();
total.value = 1;
handlePageChange(1);
}
/**

View File

@ -177,7 +177,8 @@
* 成功回调
*/
function handleSuccess() {
reload()
total.value = 1;
handlePageChange(1);
}
@ -185,7 +186,8 @@
* 查询
*/
function searchQuery() {
reload();
total.value = 1;
handlePageChange(1);
}
/**
@ -194,7 +196,8 @@
function searchReset() {
queryParam.value = {};
//
reload();
total.value = 1;
handlePageChange(1);
}
function reload(){
@ -217,7 +220,7 @@
function handlePageChange(record){
pageNo.value = record;
searchQuery();
reload();
}
onMounted(() => {

View File

@ -190,7 +190,8 @@
* 成功回调
*/
function handleSuccess() {
reload()
total.value = 1;
handlePageChange(1);
}
@ -198,7 +199,8 @@
* 查询
*/
function searchQuery() {
reload();
total.value = 1;
handlePageChange(1);
}
/**
@ -207,7 +209,8 @@
function searchReset() {
queryParam.value = {};
//
reload();
total.value = 1;
handlePageChange(1);
}
function reload(){
@ -230,7 +233,7 @@
function handlePageChange(record){
pageNo.value = record;
searchQuery();
reload();
}
onMounted(() => {