From 6593aa7e93db29becfdd9572aa91546ee92fbe3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Thu, 23 May 2024 14:15:31 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E4=BB=8B=E7=BB=8D?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E5=B8=B8=E8=A7=81=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E5=AD=A6=E7=94=9F=E7=AB=AF=E8=B0=83=E6=95=B4=E5=88=86=E9=A1=B5?= =?UTF-8?q?=EF=BC=8C=E5=BA=8F=E5=8F=B7=E8=BF=9E=E7=BB=AD=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../checkKecheng/dqxqkcDetail.vue | 33 ++++++++--------- src/views/site/studentWdkc/studentZyxx.vue | 36 ++++++++++--------- 2 files changed, 36 insertions(+), 33 deletions(-) diff --git a/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcDetail.vue b/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcDetail.vue index 14d9a5b..e52764e 100644 --- a/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcDetail.vue +++ b/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcDetail.vue @@ -42,7 +42,7 @@ - {{index+1}}.{{item.question}} + {{(pageNo-1)*pageSize+index+1}}.{{item.question}} @@ -95,7 +95,7 @@ const globSetting = useGlobSetting(); const baseApiUrl = globSetting.domainUrl; - + //当前路由信息 const { currentRoute } = useRouter(); const { query } = unref(currentRoute); @@ -117,7 +117,7 @@ const baseApiUrl = globSetting.domainUrl; jxrlFilePath:null, kcjs:'' }); - + //引用功能 function handleYinyong(){ var record = {xqxn,rwbh} @@ -146,37 +146,38 @@ const baseApiUrl = globSetting.domainUrl; function openPdf(record){ var url2 = getFileAccessHttpUrl(record.pdfPath) - console.log(`🚀 ~ openPdf ~ url2:`, url2) + // console.log(`🚀 ~ openPdf ~ url2:`, url2) let url = baseApiUrl+"/generic/web/viewer.html?file="+encodeURIComponent(url2); window.open(url,"_blank") } function openJxrlPdf(record){ var url2 = getFileAccessHttpUrl(record.jxrlPdfPath) - console.log(`🚀 ~ openPdf ~ url2:`, url2) + // console.log(`🚀 ~ openPdf ~ url2:`, url2) let url = baseApiUrl+"/generic/web/viewer.html?file="+encodeURIComponent(url2); window.open(url,"_blank") } - - + + //常见问题回调刷新 function handleCjwtOk() { - console.log('--------cjwt ok -----------') + // console.log('--------cjwt ok -----------') cjwtData(1); } - + //常见问题新增翻页 function handlePageChange(page: number) { cjwtData(page); } function cjwtData(arg){ + pageNo.value = arg; defHttp.get({ url: '/zyCjwt/zyCjwt/list', params: { pageSize: 3,pageNo:arg, rwbh:rwbh,xqxn:xqxn,column:'createTime',order:'desc' } }).then((res) => { - console.log(`🚀 ~ defHttp.get ~ res:`, res) + // console.log(`🚀 ~ defHttp.get ~ res:`, res) cjwtSource.value = res.records; total.value = res.total; - console.log(`🚀 ~ defHttp.get ~ cjwtSource:`, cjwtSource) + // console.log(`🚀 ~ defHttp.get ~ cjwtSource:`, cjwtSource) }); } //获取课程简介和教学大纲内容 @@ -192,13 +193,13 @@ const baseApiUrl = globSetting.domainUrl; var model = jxdgInfo.value; model.rwbh = rwbh; model.xqxn = xqxn; - console.log(`🚀 ~ addKcjsHandle ~ model:`, model) + // console.log(`🚀 ~ addKcjsHandle ~ model:`, model) if(model.id){ if(type=='1'){ model.filePath = ''; } defHttp.post({ url: '/zyJxdg/zyJxdg/edit', params: model }).then((res) => { - console.log(`🚀 ~ defHttp.post 111~ res:`, res) + // console.log(`🚀 ~ defHttp.post 111~ res:`, res) getKcjsJxdg(); }); }else{ @@ -206,7 +207,7 @@ const baseApiUrl = globSetting.domainUrl; model.filePath = ''; } defHttp.post({ url: '/zyJxdg/zyJxdg/add', params: model }).then((res) => { - console.log(`🚀 ~ defHttp.post 222~ res:`, res) + // console.log(`🚀 ~ defHttp.post 222~ res:`, res) getKcjsJxdg(); }); } @@ -218,7 +219,7 @@ const baseApiUrl = globSetting.domainUrl; cjwtData(1); }); - + \ No newline at end of file + diff --git a/src/views/site/studentWdkc/studentZyxx.vue b/src/views/site/studentWdkc/studentZyxx.vue index b623720..b96cb16 100644 --- a/src/views/site/studentWdkc/studentZyxx.vue +++ b/src/views/site/studentWdkc/studentZyxx.vue @@ -44,7 +44,7 @@ - {{index+1}}.{{item.question}} + {{(pageNo-1)*pageSize+index+1}}.{{item.question}} 答:{{item.answer}} @@ -93,7 +93,7 @@ const globSetting = useGlobSetting(); const baseApiUrl = globSetting.domainUrl; - + //当前路由信息 const { currentRoute } = useRouter(); const { query } = unref(currentRoute); @@ -114,7 +114,7 @@ const baseApiUrl = globSetting.domainUrl; filePath:'', kcjs:'' }); - + //引用功能 function handleYinyong(){ var record = {xqxn,rwbh} @@ -143,41 +143,43 @@ const baseApiUrl = globSetting.domainUrl; function openPdf(record){ var url2 = getFileAccessHttpUrl(record.pdfPath) - console.log(`🚀 ~ openPdf ~ url2:`, url2) + // console.log(`🚀 ~ openPdf ~ url2:`, url2) let url = baseApiUrl+"/generic/web/viewer.html?file="+encodeURIComponent(url2); window.open(url,"_blank") } function openJxrlPdf(record){ var url2 = getFileAccessHttpUrl(record.jxrlPdfPath) - console.log(`🚀 ~ openPdf ~ url2:`, url2) + // console.log(`🚀 ~ openPdf ~ url2:`, url2) let url = baseApiUrl+"/generic/web/viewer.html?file="+encodeURIComponent(url2); window.open(url,"_blank") } - + //常见问题回调刷新 function handleCjwtOk() { - console.log('--------cjwt ok -----------') + // console.log('--------cjwt ok -----------') cjwtData(1); } - + //常见问题新增翻页 function handlePageChange(page: number) { cjwtData(page); } function cjwtData(arg){ - defHttp.get({ url: '/zyCjwt/zyCjwt/list', params: { pageSize: 3,pageNo:arg, rwbh:rwbh,xqxn:xqxn } }).then((res) => { - console.log(`🚀 ~ defHttp.get ~ res:`, res) + pageNo.value = arg; + defHttp.get({ url: '/zyCjwt/zyCjwt/list', params: { pageSize: 3,pageNo:arg, rwbh:rwbh,xqxn:xqxn,column:'createTime',order:'desc' } }).then((res) => { + // console.log(`🚀 ~ defHttp.get ~ res:`, res) cjwtSource.value = res.records; - console.log(`🚀 ~ defHttp.get ~ cjwtSource:`, cjwtSource) + total.value = res.total; + // console.log(`🚀 ~ defHttp.get ~ cjwtSource:`, cjwtSource) }); } //获取课程简介和教学大纲内容 function getKcjsJxdg(){ defHttp.get({ url: '/zyJxdg/zyJxdg/getKcjsJxdg', params: { rwbh:rwbh} }).then((res) => { - console.log(`🚀 1111111111111~ getKcjsJxdg ~ res:`, res) + // console.log(`🚀 1111111111111~ getKcjsJxdg ~ res:`, res) if(res){ jxdgInfo.value = res; } @@ -188,13 +190,13 @@ function openJxrlPdf(record){ var model = jxdgInfo.value; model.rwbh = rwbh; model.xqxn = xqxn; - console.log(`🚀 ~ addKcjsHandle ~ model:`, model) + // console.log(`🚀 ~ addKcjsHandle ~ model:`, model) if(model.id){ if(type=='1'){ model.filePath = ''; } defHttp.post({ url: '/zyJxdg/zyJxdg/edit', params: model }).then((res) => { - console.log(`🚀 ~ defHttp.post 111~ res:`, res) + // console.log(`🚀 ~ defHttp.post 111~ res:`, res) getKcjsJxdg(); }); }else{ @@ -202,7 +204,7 @@ function openJxrlPdf(record){ model.filePath = ''; } defHttp.post({ url: '/zyJxdg/zyJxdg/add', params: model }).then((res) => { - console.log(`🚀 ~ defHttp.post 222~ res:`, res) + // console.log(`🚀 ~ defHttp.post 222~ res:`, res) getKcjsJxdg(); }); } @@ -214,7 +216,7 @@ function openJxrlPdf(record){ cjwtData(1); }); - + \ No newline at end of file + From db0b90370a7e78e414b8e8fe21b3250842dcf29f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Thu, 23 May 2024 14:25:14 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E7=AB=AF=EF=BC=8C?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E3=80=81=E6=B5=8B=E8=AF=95=E3=80=81=E9=97=AE?= =?UTF-8?q?=E5=8D=B7=E5=8D=A1=E7=89=87=E9=A1=B5=E9=9D=A2=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/kc/wjxCswj/WjxCswjHisList.vue | 10 +++--- src/views/kc/wjxCswj/WjxCswjStuList.vue | 7 ++-- src/views/kc/wjxDcwj/WjxDcwjHisList.vue | 10 +++--- src/views/kc/wjxDcwj/WjxDcwjStuList.vue | 7 ++-- src/views/zy/zyInfo/StudentZyInfoList.vue | 29 ++++++++------- .../zy/zyInfo/SutdentZyInfoHistoryList.vue | 35 ++++++++++--------- 6 files changed, 49 insertions(+), 49 deletions(-) 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; From af8d6673d5dd8ce4933555bb241380e13fd60c32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Thu, 23 May 2024 17:30:43 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E9=AB=98=E5=BA=A6?= =?UTF-8?q?=E8=B0=83=E6=95=B4=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/kc/wjxCswj/WjxCswjHisList.vue | 5 ++- src/views/kc/wjxCswj/WjxCswjList.vue | 5 ++- src/views/kc/wjxCswj/WjxCswjStuList.vue | 5 ++- src/views/kc/wjxDcwj/WjxDcwjHisList.vue | 5 ++- src/views/kc/wjxDcwj/WjxDcwjList.vue | 5 ++- src/views/kc/wjxDcwj/WjxDcwjStuList.vue | 5 ++- .../checkKecheng/dqxqkcDetail.vue | 2 +- .../checkKecheng/dqxqkcMain.vue | 8 ++-- .../checkKecheng/dqxqkcMenu.vue | 10 ++--- .../checkKecheng/history/kcHistoryMenu.vue | 4 +- src/views/site/studentWdkc/studentMenu.vue | 4 +- src/views/site/studentWdkc/studentZyxx.vue | 2 +- src/views/zy/jiaoXueDanYuanNeiRong/index2.vue | 6 ++- .../zy/jiaoXueDanYuanNeiRong/stuIndex.vue | 6 ++- src/views/zy/zyGonggao/StudentGonggaoList.vue | 9 ++-- src/views/zy/zyGonggao/ZyGonggaoList.vue | 2 +- src/views/zy/zyInfo/StudentZyInfoList.vue | 5 ++- .../zy/zyInfo/SutdentZyInfoHistoryList.vue | 5 ++- src/views/zy/zyInfo/ZyInfoHisList.vue | 45 ++++++++++--------- src/views/zy/zyInfo/ZyInfoList.vue | 12 ++--- src/views/zy/zyTlq/StuZyTlqList.vue | 16 ++++--- src/views/zy/zyTlq/ZyTlqList.vue | 16 ++++--- 22 files changed, 100 insertions(+), 82 deletions(-) diff --git a/src/views/kc/wjxCswj/WjxCswjHisList.vue b/src/views/kc/wjxCswj/WjxCswjHisList.vue index 40ca703..9460bf6 100644 --- a/src/views/kc/wjxCswj/WjxCswjHisList.vue +++ b/src/views/kc/wjxCswj/WjxCswjHisList.vue @@ -1,5 +1,5 @@