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

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

@ -88,7 +88,7 @@
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
//
const { currentRoute } = useRouter();
const { query } = unref(currentRoute);
@ -106,7 +106,7 @@
const pageNo = ref<number>(0);
const pageSize = ref<number>(6);
const tableData = ref<any>([]);
const labelCol = reactive({
xs: { span: 24 },
@ -117,7 +117,7 @@
sm: { span: 16 },
});
function classFun(record){
if(record.score){
return "background: #1f77f8";
@ -147,7 +147,7 @@
//
function handleShangchuan(record){
let timestamp = new Date().getTime();
let startTimestamp = Date.parse(record.startTime);
if(timestamp<startTimestamp){
@ -171,30 +171,33 @@
XxhbbksListModalPage.value.disableSubmit = false;
XxhbbksListModalPage.value.init(record);
}
/**
* 成功回调
*/
function handleSuccess() {
reload()
total.value = 1;
handlePageChange(1);
}
/**
* 查询
*/
function searchQuery() {
reload();
total.value = 1;
handlePageChange(1);
}
/**
* 重置
*/
function searchReset() {
queryParam.value = {};
//
reload();
total.value = 1;
handlePageChange(1);
}
function reload(){
@ -213,11 +216,11 @@
tableData.value = res.records;
});
}
function handlePageChange(record){
pageNo.value = record;
searchQuery();
reload();
}
onMounted(() => {
@ -258,7 +261,7 @@
.zyCon{
line-height: 30px;
}
.rotate {
.rotate {
transform: rotate(45deg);
background: rgb(28, 132, 198);
color: #fff;

View File

@ -89,7 +89,7 @@
import XxhbbksListModal from '/@/views/kc/xxhbbks/XxhbbksListModal.vue';
//
const { currentRoute } = useRouter();
const { query } = unref(currentRoute);
@ -107,7 +107,7 @@
const pageNo = ref<number>(0);
const pageSize = ref<number>(6);
const tableData = ref<any>([]);
const labelCol = reactive({
xs: { span: 24 },
@ -125,7 +125,7 @@
registerModal.value.disableSubmit = false;
registerModal.value.add();
}
/**
* 编辑事件
*/
@ -133,7 +133,7 @@
registerModal.value.disableSubmit = false;
registerModal.value.edit(record);
}
/**
* 详情
*/
@ -141,7 +141,7 @@
registerModal.value.disableSubmit = true;
registerModal.value.edit(record);
}
//
function openXkrs(record){
console.log(`🚀 ~ openXkrs ~ record:`, record)
@ -152,7 +152,7 @@
function handleZyxx(record){
ZyInfoStudentListModalPage.value.disableSubmit = true;
ZyInfoStudentListModalPage.value.init(record);
}
function handleShangchuan(record){
@ -160,7 +160,7 @@
var param = {mainId:record.id,zyfj:record.filePath}
ZyInfoStudentModalPage.value.edit(param);
}
/**
* 删除事件
*/
@ -184,30 +184,33 @@
}
});
}
/**
* 成功回调
*/
function handleSuccess() {
reload()
total.value = 1;
handlePageChange(1);
}
/**
* 查询
*/
function searchQuery() {
reload();
total.value = 1;
handlePageChange(1);
}
/**
* 重置
*/
function searchReset() {
queryParam.value = {};
//
reload();
total.value = 1;
handlePageChange(1);
}
function reload(){
@ -226,11 +229,11 @@
tableData.value = res.records;
});
}
function handlePageChange(record){
pageNo.value = record;
searchQuery();
reload();
}
onMounted(() => {
@ -271,7 +274,7 @@
.zyCon{
line-height: 30px;
}
.rotate {
.rotate {
transform: rotate(45deg);
background: rgb(28, 132, 198);
color: #fff;