diff --git a/apiRc/personinfo/index.js b/apiRc/personinfo/index.js index 2aa1a9b..c4fb610 100644 --- a/apiRc/personinfo/index.js +++ b/apiRc/personinfo/index.js @@ -44,6 +44,13 @@ export function returnPerson(params) { method: 'get', 'url': `/personnel/personBaseInfo/returnPerson`, + params + }) +} +export function getStatistic(params) { + return request({ + method: 'get', + 'url': `/pc/index/fwqkfx`, params }) } \ No newline at end of file diff --git a/packageB/train/mockExam/examList.vue b/packageB/train/mockExam/examList.vue index fa2ad83..19b9bf2 100644 --- a/packageB/train/mockExam/examList.vue +++ b/packageB/train/mockExam/examList.vue @@ -26,38 +26,103 @@ -
+
-
2025年注册会计师证
-
未开始
+
{{item.name}}
+
已完成
+
未开始
+
+ 进行中 +
+
已过期
-
立即练习
+
开始考试
+
继续考试
-
考试时长:120分钟
-
题目数量:88题
-
及格分数:60分
-
截止日期:2025-12-31
+
考试时长:{{item.timeLimit}}分钟
+
题目数量:{{item.totalQuestions}}题
+
分类: + + + +
+
成绩: + {{ item.gradeUser.score }}分 + -- +
+
开始时间:{{item.startDate}}
+
截止时间:{{item.dueDate}}
-
查看成绩
-
详情
-
收藏
+
查看成绩
+
详情
+
+ + 收藏 +
+
+ + 取消 +
-
-
-
-
+
+
{{examInfo.name}}
×
+
+
已完成
+
未开始
+
+ 进行中 +
+
已过期
+
初级
+
中级
+
高级
+
+
考试简介
+
{{ examInfo.description }}
+
+
+
{{ examInfo.timeLimit }}
+
考试时长
+
(分钟)
+
+
+
+
{{ examInfo.totalQuestions }}
+
题目总数
+
+
+
+
{{ examInfo.passScore }}
+
及格分数
+
+
+
+
{{ examInfo.totalScore }}
+
总分
+
+
+
考试要求
+
考试过程中请勿刷新页面或关闭浏览器
+
请在规定时间内完成所有题目
+
考试开始后不可暂停,请确保网络连接稳定
+
考试结束后可查看成绩和答案解析
+ +
+
开始考试
+
继续考试
+
@@ -66,22 +131,138 @@ + + \ No newline at end of file diff --git a/packageB/train/practice/startPracticing.vue b/packageB/train/practice/startPracticing.vue index c91adb4..921ad75 100644 --- a/packageB/train/practice/startPracticing.vue +++ b/packageB/train/practice/startPracticing.vue @@ -68,7 +68,7 @@
下一题
-
提交答案
+
提交答案
diff --git a/packageRc/components/ImageUpload.vue b/packageRc/components/ImageUpload.vue index 3b4a6fc..262d326 100644 --- a/packageRc/components/ImageUpload.vue +++ b/packageRc/components/ImageUpload.vue @@ -1,9 +1,10 @@ @@ -11,7 +12,9 @@ // import { // uploadImg // } from '@/api/company' - import config from '@/config' + // import config from '@/config' +import config from '@/utilsRc/config.js' +import { getToken } from "@/utilsRc/auth"; //import { // getToken //} from '@/utils/auth' @@ -23,7 +26,7 @@ }, allowedFormats: { type: Array, - default: () => [], // 允许的文件格式 + default: () => ['.png', '.jpg', '.jpeg', '.doc', '.docx', '.pdf', '.xls', '.xlsx'], // 允许的文件格式 }, maxImageSize: { type: Object, @@ -74,6 +77,106 @@ }, }, methods: { + deleteFile(index){ + this.internalFileList.splice(index, 1); + }, + chooseAndUploadFile() { + wx.chooseMessageFile({ + count: this.maxCount, + extension: this.allowedFormats, + // ['.png', '.jpg', '.jpeg', '.doc', '.docx', '.pdf', '.xls', '.xlsx' ], + success: (res) => { + console.log('选择文件成功:', res); + if(this.maxCount - this.internalFileList.length < res.tempFiles.length){ + uni.showToast({ + title: '最多只能上传' + this.maxCount + '个文件', + icon: 'none' + }); + return; + } + + let path = ""; + const twoMBInBytes = 2 * 1024 * 1024; // 2MB转换为字节数 + res.tempFiles.forEach((file) => { + + if (file.size > twoMBInBytes) { + uni.showToast({ + title: "图片大小不能超过2MB", + icon: "none", + }); + return; + } + if (res.tempFiles && res.tempFiles.length > 0) { + path = file.path; + if (this.allowedFormats.indexOf('.'+path.split(".")[1])!=-1) { + uni.showLoading(); + const tempFilePath = file; + uni.uploadFile({ + url: config.baseUrl+'/system/oss/upload', //图片上传地址 + filePath: tempFilePath.path, + name: 'file', + formData: {}, + header: { + // 'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiJzeXNfdXNlcjoxIiwicm5TdHIiOiJQSlUyVlJCc1E1aXRMMWgxdjNkcVh2eER1c2VVc0hvRiIsInVzZXJJZCI6MX0.z4Z2XqgXyU0GQU-i7Bsa5T-zCKApTxj1YQ73rk7bAVo' + 'Authorization': 'Bearer ' + getToken(), + }, + success: (res) => { + var data = JSON.parse(res.data); + console.log(data, 'sdfjiosdjfoi') + if(data.code==200) { + this.internalFileList.push({ + url: data.data.url, + file: file + }) + this.$emit('update', this.internalFileList); + // this.serviceForm.fileUrl = this.internalFileList.map(item => item.url).join(',') + this.$forceUpdate() + uni.hideLoading(); + } else { + uni.hideLoading(); + uni.showToast({ + title: res.msg || '上传失败', + icon: 'none', + duration: 2000 + }); + } + }, + fail: (error) => { + uni.showToast({ + title: '上传失败', + icon: 'none' + }); + console.error(error); + } + }) + } else { + uni.showToast({ + icon: "none", + duration: 1500, + title: `只能选择${this.allowedFormats.join('、')}格式文件`, + }); + } + } + }) + + + + // // 添加新选择的图片到列表 + // res.tempFiles.forEach((item, index) => { + // this.fileList.push({ + // url: item.path, + // file: res.tempFiles[index] + // }); + // }); + // 更新 serviceForm.fileUrl + // this.updateFileUrls(); + }, + fail: (err) => { + console.error('选择图片失败:', err); + } + }); + + }, // 新增图片 async handleAfterRead(event) { let lists = [].concat(event.file); @@ -141,11 +244,25 @@ }; - diff --git a/packageRc/pages/daiban/addbangfu.vue b/packageRc/pages/daiban/addbangfu.vue index 12ab9c9..70d4320 100644 --- a/packageRc/pages/daiban/addbangfu.vue +++ b/packageRc/pages/daiban/addbangfu.vue @@ -67,13 +67,7 @@ :localdata="jingbrList1" @change="handleAgentChange" > - - + @@ -190,10 +184,10 @@ \ No newline at end of file diff --git a/packageRc/pages/daiban/daibandetail.vue b/packageRc/pages/daiban/daibandetail.vue index d425c23..bf193fd 100644 --- a/packageRc/pages/daiban/daibandetail.vue +++ b/packageRc/pages/daiban/daibandetail.vue @@ -22,7 +22,7 @@ - {{ form?.name || '' }} + {{ form.name || '' }} @@ -413,8 +413,8 @@ > --> - - + - + + + + + + {{ getpersonStatusLabel(formData.personStatus) || "请选择" }} + + @@ -495,28 +496,31 @@ " >重置 - 办结 - + --> diff --git a/packageRc/pages/jobList/jobList.vue b/packageRc/pages/jobList/jobList.vue new file mode 100644 index 0000000..6703ff2 --- /dev/null +++ b/packageRc/pages/jobList/jobList.vue @@ -0,0 +1,2030 @@ + + + + + diff --git a/packageRc/pages/needs/components/entrepreneurshipService.vue b/packageRc/pages/needs/components/entrepreneurshipService.vue index 6edde00..4b6118a 100644 --- a/packageRc/pages/needs/components/entrepreneurshipService.vue +++ b/packageRc/pages/needs/components/entrepreneurshipService.vue @@ -1,7 +1,7 @@