diff --git a/src/views/kc/wjxCswj/WjxCswjHisList.vue b/src/views/kc/wjxCswj/WjxCswjHisList.vue index 4883ec8..40ca703 100644 --- a/src/views/kc/wjxCswj/WjxCswjHisList.vue +++ b/src/views/kc/wjxCswj/WjxCswjHisList.vue @@ -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); } /** diff --git a/src/views/kc/wjxCswj/WjxCswjStuList.vue b/src/views/kc/wjxCswj/WjxCswjStuList.vue index dffb804..0e769fc 100644 --- a/src/views/kc/wjxCswj/WjxCswjStuList.vue +++ b/src/views/kc/wjxCswj/WjxCswjStuList.vue @@ -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); } /** diff --git a/src/views/kc/wjxDcwj/WjxDcwjHisList.vue b/src/views/kc/wjxDcwj/WjxDcwjHisList.vue index 394fdb2..9dd8671 100644 --- a/src/views/kc/wjxDcwj/WjxDcwjHisList.vue +++ b/src/views/kc/wjxDcwj/WjxDcwjHisList.vue @@ -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); } /** diff --git a/src/views/kc/wjxDcwj/WjxDcwjStuList.vue b/src/views/kc/wjxDcwj/WjxDcwjStuList.vue index ca619eb..b735970 100644 --- a/src/views/kc/wjxDcwj/WjxDcwjStuList.vue +++ b/src/views/kc/wjxDcwj/WjxDcwjStuList.vue @@ -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); } /** diff --git a/src/views/zy/zyInfo/StudentZyInfoList.vue b/src/views/zy/zyInfo/StudentZyInfoList.vue index 44c311e..4777977 100644 --- a/src/views/zy/zyInfo/StudentZyInfoList.vue +++ b/src/views/zy/zyInfo/StudentZyInfoList.vue @@ -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(0); const pageSize = ref(6); const tableData = ref([]); - + 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 { @@ -258,7 +261,7 @@ .zyCon{ line-height: 30px; } -.rotate { +.rotate { transform: rotate(45deg); background: rgb(28, 132, 198); color: #fff; diff --git a/src/views/zy/zyInfo/SutdentZyInfoHistoryList.vue b/src/views/zy/zyInfo/SutdentZyInfoHistoryList.vue index 0b0f698..ab6c185 100644 --- a/src/views/zy/zyInfo/SutdentZyInfoHistoryList.vue +++ b/src/views/zy/zyInfo/SutdentZyInfoHistoryList.vue @@ -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(0); const pageSize = ref(6); const tableData = ref([]); - + 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;