作业、测试、问卷卡片页面分页BUG调整

This commit is contained in:
曹磊 2024-05-23 11:16:28 +08:00
parent 06d06577f3
commit 3621cce165
3 changed files with 33 additions and 37 deletions

View File

@ -215,8 +215,7 @@
function handleFabu(record: Recordable) { function handleFabu(record: Recordable) {
defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "6" } }).then(res => { defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "6" } }).then(res => {
total.value = 1; total.value = 1;
pageNo.value = 0; handlePageChange(1);
reload();
}); });
} }
/** /**
@ -227,8 +226,8 @@
} }
function reload(){ function reload(){
queryParam.value.pageNo = pageNo; queryParam.value.pageNo = pageNo.value;
queryParam.value.pageSize = pageSize; queryParam.value.pageSize = pageSize.value;
queryParam.value.rwbh = rwbh; queryParam.value.rwbh = rwbh;
queryParam.value.xqxn = xqxn; queryParam.value.xqxn = xqxn;
queryParam.value.atype = "6"; queryParam.value.atype = "6";
@ -246,16 +245,15 @@
*/ */
function handleSuccess() { function handleSuccess() {
total.value = 1; total.value = 1;
pageNo.value = 0; handlePageChange(1);
reload();
} }
/** /**
* 查询 * 查询
*/ */
function searchQuery() { function searchQuery() {
pageNo.value = 0; total.value = 1;
reload(); handlePageChange(1);
} }
/** /**

View File

@ -217,8 +217,7 @@
function handleFabu(record: Recordable) { function handleFabu(record: Recordable) {
defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "1" } }).then(res => { defHttp.get({ url: '/wjxWjxx/wjxWjxx/fbwj', params: { id: record.id,wjlx: "1" } }).then(res => {
total.value = 1; total.value = 1;
pageNo.value = 0; handlePageChange(1);
reload();
}); });
} }
/** /**
@ -229,8 +228,8 @@
} }
function reload(){ function reload(){
queryParam.value.pageNo = pageNo; queryParam.value.pageNo = pageNo.value;
queryParam.value.pageSize = pageSize; queryParam.value.pageSize = pageSize.value;
queryParam.value.rwbh = rwbh; queryParam.value.rwbh = rwbh;
queryParam.value.xqxn = xqxn; queryParam.value.xqxn = xqxn;
queryParam.value.atype = "1"; queryParam.value.atype = "1";
@ -248,16 +247,15 @@
*/ */
function handleSuccess() { function handleSuccess() {
total.value = 1; total.value = 1;
pageNo.value = 0; handlePageChange(1);
reload();
} }
/** /**
* 查询 * 查询
*/ */
function searchQuery() { function searchQuery() {
pageNo.value = 0; total.value = 1;
reload(); handlePageChange(1);
} }
/** /**

View File

@ -205,7 +205,8 @@ import dayjs from 'dayjs';
* 成功回调 * 成功回调
*/ */
function handleSuccess() { function handleSuccess() {
reload() total.value = 1;
handlePageChange(1);
} }
function handleZySuccess(zyid){ function handleZySuccess(zyid){
@ -222,8 +223,8 @@ import dayjs from 'dayjs';
* 查询 * 查询
*/ */
function searchQuery() { function searchQuery() {
queryParam.value.pageNo = 1; total.value = 1;
reload(); handlePageChange(1);
} }
/** /**
@ -231,9 +232,8 @@ import dayjs from 'dayjs';
*/ */
function searchReset() { function searchReset() {
queryParam.value = {}; queryParam.value = {};
queryParam.value.pageNo = 1; total.value = 1;
// handlePageChange(1);
reload();
} }
function reload(){ function reload(){
@ -256,7 +256,7 @@ import dayjs from 'dayjs';
function handlePageChange(record){ function handlePageChange(record){
pageNo.value = record; pageNo.value = record;
searchQuery(); reload();
} }
onMounted(() => { onMounted(() => {