From 09530e076b375e4fc851d297a28b4324c0713e4a Mon Sep 17 00:00:00 2001
From: yangjun <1173114630@qq.com>
Date: Fri, 17 May 2024 22:15:18 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8E=86=E5=8F=B2=E8=AF=BE?=
=?UTF-8?q?=E7=A8=8B=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.production | 2 +-
.../routes/modules/zyHistory/zyHistory.ts | 16 +
src/views/kc/wjxCswj/WjxCswjHisList.vue | 329 ++++++++++++++++++
src/views/kc/wjxCswj/WjxCswjHisMainList.vue | 27 ++
src/views/kc/wjxCswj/WjxCswjHisTableList.vue | 297 ++++++++++++++++
src/views/kc/wjxDcwj/WjxDcwjHisList.vue | 326 +++++++++++++++++
src/views/kc/wjxDcwj/WjxDcwjHisMainList.vue | 27 ++
src/views/kc/wjxDcwj/WjxDcwjHisTableList.vue | 297 ++++++++++++++++
.../kc/wjxWjxx/components/WjxWjxxTmlbForm.vue | 12 +-
src/views/site/common/header.vue | 18 +-
.../checkKecheng/history/kcHistoryMenu.vue | 4 +-
src/views/site/studentJlrkb/index.vue | 2 +-
src/views/site/studentJrkb/index.vue | 2 +-
src/views/site/studentWdkc/studentWdkc.vue | 2 +-
.../zy/zyInfoStudent/ZyInfoStudent.api.ts | 8 +
.../zy/zyInfoStudent/ZyInfoStudentList.vue | 20 +-
.../components/ZyInfoStudentForm.vue | 6 +-
src/views/zy/zyJxdg/ZyJxdg.data.ts | 12 +-
src/views/zy/zyJxdg/ZyJxdgList.vue | 2 +-
19 files changed, 1382 insertions(+), 27 deletions(-)
create mode 100644 src/views/kc/wjxCswj/WjxCswjHisList.vue
create mode 100644 src/views/kc/wjxCswj/WjxCswjHisMainList.vue
create mode 100644 src/views/kc/wjxCswj/WjxCswjHisTableList.vue
create mode 100644 src/views/kc/wjxDcwj/WjxDcwjHisList.vue
create mode 100644 src/views/kc/wjxDcwj/WjxDcwjHisMainList.vue
create mode 100644 src/views/kc/wjxDcwj/WjxDcwjHisTableList.vue
diff --git a/.env.production b/.env.production
index 51ab7ea..363729d 100644
--- a/.env.production
+++ b/.env.production
@@ -20,7 +20,7 @@ VITE_GLOB_API_URL=/jeecg-boot
#后台接口全路径地址(必填)
#VITE_GLOB_DOMAIN_URL=https://zxkccx.webvpn.nenu.edu.cn/jeecg-boot
-VITE_GLOB_DOMAIN_URL=https://kczxcs.nenu.edu.cn/jeecg-boot
+VITE_GLOB_DOMAIN_URL=http://210.47.29.100/jeecg-boot
#RTC服务器地址
VITE_GLOB_RTC_SERVER = https://zxkccx.webvpn.nenu.edu.cn:8081
diff --git a/src/router/routes/modules/zyHistory/zyHistory.ts b/src/router/routes/modules/zyHistory/zyHistory.ts
index e2beaa9..a9ba45e 100644
--- a/src/router/routes/modules/zyHistory/zyHistory.ts
+++ b/src/router/routes/modules/zyHistory/zyHistory.ts
@@ -46,6 +46,22 @@ const zuoyehistory: AppRouteModule = {
title: '到课识别率',
},
},
+ {
+ path: 'hisKccy',
+ name: 'hisKccy',
+ component: () => import('/@/views/kc/wjxCswj/WjxCswjHisMainList.vue'),
+ meta: {
+ title: '课程测验',
+ },
+ },
+ {
+ path: 'hisWjdc',
+ name: 'hisWjdc',
+ component: () => import('/@/views/kc/wjxDcwj/WjxDcwjHisMainList.vue'),
+ meta: {
+ title: '问卷调查',
+ },
+ },
]
}
diff --git a/src/views/kc/wjxCswj/WjxCswjHisList.vue b/src/views/kc/wjxCswj/WjxCswjHisList.vue
new file mode 100644
index 0000000..fbefee9
--- /dev/null
+++ b/src/views/kc/wjxCswj/WjxCswjHisList.vue
@@ -0,0 +1,329 @@
+
+
+
+
+
+
+
+
+ {{item.qpublish =='0'? '待发布':'已发布'}}
+
+
+ {{item.title}}
+
+
+
+ 时间:
+
+
+ 从{{item.startTime}}
+ 至{{item.endTime}}
+
+
+
+
+
+ {{item.xqxn}}
+
+
+
+
+
+
+
+
+
+
+ 详情
+ 配置
+ 结果
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/kc/wjxCswj/WjxCswjHisMainList.vue b/src/views/kc/wjxCswj/WjxCswjHisMainList.vue
new file mode 100644
index 0000000..eea0c7e
--- /dev/null
+++ b/src/views/kc/wjxCswj/WjxCswjHisMainList.vue
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
diff --git a/src/views/kc/wjxCswj/WjxCswjHisTableList.vue b/src/views/kc/wjxCswj/WjxCswjHisTableList.vue
new file mode 100644
index 0000000..5f2c7bc
--- /dev/null
+++ b/src/views/kc/wjxCswj/WjxCswjHisTableList.vue
@@ -0,0 +1,297 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/kc/wjxDcwj/WjxDcwjHisList.vue b/src/views/kc/wjxDcwj/WjxDcwjHisList.vue
new file mode 100644
index 0000000..b96a067
--- /dev/null
+++ b/src/views/kc/wjxDcwj/WjxDcwjHisList.vue
@@ -0,0 +1,326 @@
+
+
+
+
+
+
+
+
+ {{item.qpublish =='0'? '待发布':'已发布'}}
+
+
+ {{item.title}}
+
+
+
+ 时间:
+
+
+ 从{{item.startTime}}
+ 至{{item.endTime}}
+
+
+
+
+
+ {{item.xqxn}}
+
+
+
+
+
+
+
+
+
+
+ 详情
+ 配置
+ 结果
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/kc/wjxDcwj/WjxDcwjHisMainList.vue b/src/views/kc/wjxDcwj/WjxDcwjHisMainList.vue
new file mode 100644
index 0000000..a8693d9
--- /dev/null
+++ b/src/views/kc/wjxDcwj/WjxDcwjHisMainList.vue
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
diff --git a/src/views/kc/wjxDcwj/WjxDcwjHisTableList.vue b/src/views/kc/wjxDcwj/WjxDcwjHisTableList.vue
new file mode 100644
index 0000000..84e860f
--- /dev/null
+++ b/src/views/kc/wjxDcwj/WjxDcwjHisTableList.vue
@@ -0,0 +1,297 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbForm.vue b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbForm.vue
index 53782ac..9943e6c 100644
--- a/src/views/kc/wjxWjxx/components/WjxWjxxTmlbForm.vue
+++ b/src/views/kc/wjxWjxx/components/WjxWjxxTmlbForm.vue
@@ -230,11 +230,15 @@ async function submitForm(){
let param = values[i];
console.log(`🚀 ~ submitForm ~ param:`, param)
values[i].itemSelected = param.itemSelected+"";
- if(!param.wjScore){
- createMessage.error('请填写题目分数');
- sfjx = "0";
- return;
+ console.log(`🚀 ~ submitForm ~ isShow:`, isShow)
+ if(isShow.value){
+ if(!param.wjScore){
+ createMessage.error('请填写题目分数');
+ sfjx = "0";
+ return;
+ }
}
+
if(!param.wjTitle){
createMessage.error('请填写题目信息');
sfjx = "0";
diff --git a/src/views/site/common/header.vue b/src/views/site/common/header.vue
index 1190c4e..e92989e 100644
--- a/src/views/site/common/header.vue
+++ b/src/views/site/common/header.vue
@@ -19,7 +19,7 @@
-
+
听课足迹
@@ -50,6 +50,22 @@
+
+
+
+ 听课笔记
+
+
+ 今日课表
+
+
+ 进六日课表
+
+
+ 我的课程
+
+
+
diff --git a/src/views/site/renKeJiaoCheng/checkKecheng/history/kcHistoryMenu.vue b/src/views/site/renKeJiaoCheng/checkKecheng/history/kcHistoryMenu.vue
index 9c5d33d..bba8a7b 100644
--- a/src/views/site/renKeJiaoCheng/checkKecheng/history/kcHistoryMenu.vue
+++ b/src/views/site/renKeJiaoCheng/checkKecheng/history/kcHistoryMenu.vue
@@ -65,9 +65,9 @@
}else if(zytype=='kczy'){//课程作业
href = "/history/hisKczy";
}else if(zytype=='kccy'){//课程测验
- href = "/history/dqkcLszy";
+ href = "/history/hisKccy";
}else if(zytype=='wjdc'){//问卷调查
- href = "/history/ceshiWenjuan";
+ href = "/history/hisWjdc";
}else if(zytype=='dksbl'){//到课率识别
href = "/history/hisdksbl";
}
diff --git a/src/views/site/studentJlrkb/index.vue b/src/views/site/studentJlrkb/index.vue
index 88e571d..cc39037 100644
--- a/src/views/site/studentJlrkb/index.vue
+++ b/src/views/site/studentJlrkb/index.vue
@@ -1,5 +1,5 @@
-
+
进六日课表
修改课程提醒
diff --git a/src/views/site/studentJrkb/index.vue b/src/views/site/studentJrkb/index.vue
index ba92435..d5a5a8b 100644
--- a/src/views/site/studentJrkb/index.vue
+++ b/src/views/site/studentJrkb/index.vue
@@ -1,5 +1,5 @@
-
+
今日课表
{{ sjtime }} {{ sjtitle }}
diff --git a/src/views/site/studentWdkc/studentWdkc.vue b/src/views/site/studentWdkc/studentWdkc.vue
index 4a08467..bf4e0f7 100644
--- a/src/views/site/studentWdkc/studentWdkc.vue
+++ b/src/views/site/studentWdkc/studentWdkc.vue
@@ -1,5 +1,5 @@
-
+
我的课程
diff --git a/src/views/zy/zyInfoStudent/ZyInfoStudent.api.ts b/src/views/zy/zyInfoStudent/ZyInfoStudent.api.ts
index 80fb88b..572f009 100644
--- a/src/views/zy/zyInfoStudent/ZyInfoStudent.api.ts
+++ b/src/views/zy/zyInfoStudent/ZyInfoStudent.api.ts
@@ -7,6 +7,7 @@ enum Api {
list = '/zyInfoStudent/zyInfoStudent/list',
save='/zyInfoStudent/zyInfoStudent/add',
edit='/zyInfoStudent/zyInfoStudent/edit',
+ zyscStu='/zyInfoStudent/zyInfoStudent/zyscStu',
deleteOne = '/zyInfoStudent/zyInfoStudent/delete',
deleteBatch = '/zyInfoStudent/zyInfoStudent/deleteBatch',
importExcel = '/zyInfoStudent/zyInfoStudent/importExcel',
@@ -70,3 +71,10 @@ export const saveOrUpdate = (params, isUpdate) => {
let url = isUpdate ? Api.edit : Api.save;
return defHttp.post({ url: url, params }, { isTransformResponse: false });
}
+
+export const zyscStu = (params, isUpdate) => {
+ let url = Api.zyscStu;
+ return defHttp.post({ url: url, params }, { isTransformResponse: false });
+}
+
+
diff --git a/src/views/zy/zyInfoStudent/ZyInfoStudentList.vue b/src/views/zy/zyInfoStudent/ZyInfoStudentList.vue
index c0f4085..a7670f2 100644
--- a/src/views/zy/zyInfoStudent/ZyInfoStudentList.vue
+++ b/src/views/zy/zyInfoStudent/ZyInfoStudentList.vue
@@ -37,14 +37,14 @@
-
+
+
@@ -64,7 +64,10 @@
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
import ZyInfoStudentScoreModal from '/@/views/zy/zyInfoStudent/components/ZyInfoStudentScoreModal.vue'
+ import { useGlobSetting } from '/@/hooks/setting';
+ const globSetting = useGlobSetting();
+const baseApiUrl = globSetting.domainUrl;
const queryParam = ref({});
const mainId = ref('');
@@ -108,10 +111,15 @@ import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
sm: { span: 16 },
});
- function yulanFile(text){
+ function yulanFile(record){
// let url = "https://view.officeapps.live.com/op/view.aspx?src="+encodeURIComponent(getFileAccessHttpUrl(text));
// let url = "https://view.officeapps.live.com/op/view.aspx?src="+encodeURIComponent(getFileAccessHttpUrl(text));
- let url = "https://view.xdocin.com/view?src="+encodeURIComponent('https://view.xdocin.com/demo/view.docx');
+ // let url = "https://view.xdocin.com/view?src="+encodeURIComponent('https://view.xdocin.com/demo/view.docx');
+ // window.open(url,"_blank")
+
+ var url2 = getFileAccessHttpUrl(record.pdfPath)
+ console.log(`🚀 ~ openPdf ~ url2:`, url2)
+ let url = baseApiUrl+"/generic/web/viewer.html?file="+encodeURIComponent(url2);
window.open(url,"_blank")
}
/**
diff --git a/src/views/zy/zyInfoStudent/components/ZyInfoStudentForm.vue b/src/views/zy/zyInfoStudent/components/ZyInfoStudentForm.vue
index ce85080..a3b66c1 100644
--- a/src/views/zy/zyInfoStudent/components/ZyInfoStudentForm.vue
+++ b/src/views/zy/zyInfoStudent/components/ZyInfoStudentForm.vue
@@ -4,7 +4,7 @@
-
+
@@ -18,7 +18,7 @@
import { useMessage } from '/@/hooks/web/useMessage';
import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.vue';
import { getValueType } from '/@/utils';
- import { saveOrUpdate } from '../ZyInfoStudent.api';
+ import { saveOrUpdate,zyscStu } from '../ZyInfoStudent.api';
import { Form } from 'ant-design-vue';
const props = defineProps({
@@ -98,7 +98,7 @@
}
}
}
- await saveOrUpdate(model, isUpdate.value)
+ await zyscStu(model, isUpdate.value)
.then((res) => {
if (res.success) {
createMessage.success(res.message);
diff --git a/src/views/zy/zyJxdg/ZyJxdg.data.ts b/src/views/zy/zyJxdg/ZyJxdg.data.ts
index 8183d50..c666f31 100644
--- a/src/views/zy/zyJxdg/ZyJxdg.data.ts
+++ b/src/views/zy/zyJxdg/ZyJxdg.data.ts
@@ -14,12 +14,12 @@ export const columns: BasicColumn[] = [
align: "center",
dataIndex: 'kcjs'
},
- {
- title: '教学大纲',
- align: "center",
- dataIndex: 'filePath',
- slots: { customRender: 'fileSlot' },
- },
+ // {
+ // title: '教学大纲',
+ // align: "center",
+ // dataIndex: 'filePath',
+ // slots: { customRender: 'fileSlot' },
+ // },
];
//查询数据
diff --git a/src/views/zy/zyJxdg/ZyJxdgList.vue b/src/views/zy/zyJxdg/ZyJxdgList.vue
index d3a183f..ee5c893 100644
--- a/src/views/zy/zyJxdg/ZyJxdgList.vue
+++ b/src/views/zy/zyJxdg/ZyJxdgList.vue
@@ -95,7 +95,7 @@
function handleEdit(record: Recordable) {
// registerModal.value.disableSubmit = false;
// registerModal.value.edit(record);
- defHttp.post({url: '/zyJxdg/zyJxdg/editJxdgyy', params: {filePath:record.filePath,kcjs:record.kcjs,pdfPath:record.pdfPath,rwbh,xqxn }}).then(res => {
+ defHttp.post({url: '/zyJxdg/zyJxdg/editJxdgyy', params: {kcjs:record.kcjs,rwbh,xqxn }}).then(res => {
console.log(`🚀 ~ defHttp.post ~ res:`, res)
});