From caf41c9a1aa56697a0bb96a63aaac847f51448dd Mon Sep 17 00:00:00 2001
From: wangchengming <15110151257@163.com>
Date: Mon, 4 Aug 2025 13:45:19 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/ppeTool.js | 9 +++++++++
src/layout/components/Navbar.vue | 14 ++++++++++---
.../components/libaryDetail.vue | 16 +++++++++++++--
.../databaseLibary/components/libaryForm.vue | 20 ++++++++++---------
src/views/ppeTool/index.vue | 19 +++++++++++++++---
.../escTask/components/LableApplyForm.vue | 11 +++++++---
.../escTask/components/LableReApplyForm.vue | 14 +++++++++++--
.../components/LableApplyForm.vue | 9 +++++++--
.../components/LableReApplyForm.vue | 14 +++++++++++--
.../safetyReview/examinerEscTask/index.vue | 12 +++++++++--
10 files changed, 110 insertions(+), 28 deletions(-)
diff --git a/src/api/ppeTool.js b/src/api/ppeTool.js
index 3ffd79e..3dc8c57 100644
--- a/src/api/ppeTool.js
+++ b/src/api/ppeTool.js
@@ -39,4 +39,13 @@ export function deleteBusPpeTools(ppeId) {
url: '/admin/busPpeTools/deleteBusPpeTools/' + ppeId,
method: 'post'
})
+}
+
+// 公用下载文件接口
+export function downFile(fileName) {
+ return request({
+ url: '/common/download?fileName='+ encodeURIComponent(fileName),
+ method: 'get',
+ responseType: 'blob'
+ })
}
\ No newline at end of file
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 0261285..831f10c 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -161,7 +161,7 @@ onBeforeUnmount(() => {
// 判断是否跳转
const isLink = (msgType) => {
- return [10, 20, 30, 40, 50].includes(msgType)
+ return [10, 20, 22, 30, 32, 40, 42, 50].includes(msgType)
}
@@ -278,10 +278,16 @@ const handleOpenLink = (messageId, msgType) => {
if (msgType == 10) router.push('/system/userApproval')
// 资质申请审核 esc
if (msgType == 20) router.push('/qualification/qualificationEscApproval')
+ // 资质申请审核 培训中心
+ if (msgType == 22) router.push('/qualification/trainApproval')
// 标签申请审核 esc
if (msgType == 30) router.push('/labelManage/escApproval')
+ // 标签申请审核 标签审核员
+ if (msgType == 32) router.push('/labelManage/adminApproval')
// 高压安全审查整改提醒 esc
if (msgType == 40) router.push('/safetyReview/examinerEscTask')
+ // 高压安全审查审批 安全审查员
+ if (msgType == 42) router.push('/safetyReview/examinerApproval')
// 工具过期 esc
if (msgType == 50) router.push('/ppeTool')
closeMessage()
@@ -543,12 +549,12 @@ function toggleTheme() {
}
:deep(.el-dialog__body) {
- max-height: 760px !important;
+ // max-height: 760px !important;
padding: 0 !important;
color: var(--el-text-color-regular);
font-size: var(--el-dialog-content-font-size);
word-break: break-all;
- overflow-y: auto;
+ // overflow-y: auto;
}
.cursor-pointer {
@@ -575,6 +581,8 @@ function toggleTheme() {
list-style: none;
padding: 0px !important;
margin: 6px 0px;
+ max-height: 710px;
+ overflow-y: auto;
}
.message-item {
diff --git a/src/views/databaseLibary/components/libaryDetail.vue b/src/views/databaseLibary/components/libaryDetail.vue
index c54cf90..4d90548 100644
--- a/src/views/databaseLibary/components/libaryDetail.vue
+++ b/src/views/databaseLibary/components/libaryDetail.vue
@@ -33,7 +33,7 @@
相关文档
-
+ class="resource-link" @click="handleDownFile(doc.name, doc.name)">
#
{{ doc.name }}
@@ -64,7 +64,7 @@
\ No newline at end of file
diff --git a/src/views/qualification/escTask/components/LableApplyForm.vue b/src/views/qualification/escTask/components/LableApplyForm.vue
index 7c98e5b..b0b2b3e 100644
--- a/src/views/qualification/escTask/components/LableApplyForm.vue
+++ b/src/views/qualification/escTask/components/LableApplyForm.vue
@@ -114,7 +114,7 @@
{{
moment(scope.row.startTime).format('YYYY-MM-DD')
- }}
+ }}
-
@@ -124,7 +124,7 @@
{{
moment(scope.row.expireTime).format('YYYY-MM-DD')
- }}
+ }}
-
@@ -290,7 +290,7 @@ const selectChanged = async (value) => {
ruleForm.value.dependencyId = curUser.dependencyId;
ruleForm.value.escUserName = curUser.escUserName;
- if(curUser.workNo) getCurrentUserRecurrentTraining()
+ if (curUser.workNo) getCurrentUserRecurrentTraining()
if (ruleForm.value.labelId) {
requiredQualifications.value = qualificationsMap[ruleForm.value.labelId] || [];
@@ -361,6 +361,11 @@ const handleSubmit = () => {
proxy.$modal.msgError(`未找到您的复训信息,不能提交申请!`)
return false;
}
+ const passTrainRecord = userRecurrentTrainingData.value.filter(item => item.state == '通过')
+ if (passTrainRecord.length == 0) {
+ proxy.$modal.msgError(`您今年的复训未通过,不能提交申请!`)
+ return false;
+ }
const qualificArr = tableData.value.filter(item => item.certificateUrl)
console.log('是否有资质证书', qualificArr)
diff --git a/src/views/qualification/escTask/components/LableReApplyForm.vue b/src/views/qualification/escTask/components/LableReApplyForm.vue
index 42ee688..964e50f 100644
--- a/src/views/qualification/escTask/components/LableReApplyForm.vue
+++ b/src/views/qualification/escTask/components/LableReApplyForm.vue
@@ -114,7 +114,7 @@
{{
moment(scope.row.startTime).format('YYYY-MM-DD')
- }}
+ }}
-
@@ -124,7 +124,7 @@
{{
moment(scope.row.expireTime).format('YYYY-MM-DD')
- }}
+ }}
-
@@ -376,6 +376,16 @@ const handleCancel = () => {
const handleSubmit = () => {
proxy.$refs["ruleFormRef"].validate(valid => {
if (valid) {
+ if (userRecurrentTrainingData.value.length == 0) {
+ proxy.$modal.msgError(`未找到您的复训信息,不能提交申请!`)
+ return false;
+ }
+ const passTrainRecord = userRecurrentTrainingData.value.filter(item => item.state == '通过')
+ if (passTrainRecord.length == 0) {
+ proxy.$modal.msgError(`您今年的复训未通过,不能提交申请!`)
+ return false;
+ }
+
const qualificArr = tableData.value.filter(item => item.certificateUrl)
console.log('是否有资质证书', qualificArr)
if (qualificArr.length < requiredQualifications.value.length) {
diff --git a/src/views/qualification/myQualifications/components/LableApplyForm.vue b/src/views/qualification/myQualifications/components/LableApplyForm.vue
index be18df8..a92dd2f 100644
--- a/src/views/qualification/myQualifications/components/LableApplyForm.vue
+++ b/src/views/qualification/myQualifications/components/LableApplyForm.vue
@@ -93,7 +93,7 @@
{{ moment(scope.row.startTime).format('YYYY-MM-DD')
- }}
+ }}
-
@@ -102,7 +102,7 @@
长期
{{ moment(scope.row.expireTime).format('YYYY-MM-DD')
- }}
+ }}
-
@@ -296,6 +296,11 @@ const handleSubmit = () => {
proxy.$modal.msgError(`未找到您的复训信息,不能提交申请!`)
return false;
}
+ const passTrainRecord = userRecurrentTrainingData.value.filter(item => item.state == '通过')
+ if (passTrainRecord.length == 0) {
+ proxy.$modal.msgError(`您今年的复训未通过,不能提交申请!`)
+ return false;
+ }
const qualificArr = tableData.value.filter(item => item.certificateUrl)
console.log('是否有资质证书', qualificArr)
diff --git a/src/views/qualification/myQualifications/components/LableReApplyForm.vue b/src/views/qualification/myQualifications/components/LableReApplyForm.vue
index 5c03676..ff7e729 100644
--- a/src/views/qualification/myQualifications/components/LableReApplyForm.vue
+++ b/src/views/qualification/myQualifications/components/LableReApplyForm.vue
@@ -93,7 +93,7 @@
{{ moment(scope.row.startTime).format('YYYY-MM-DD')
- }}
+ }}
-
@@ -102,7 +102,7 @@
长期
{{ moment(scope.row.expireTime).format('YYYY-MM-DD')
- }}
+ }}
-
@@ -287,6 +287,16 @@ const handleCancel = () => {
const handleSubmit = () => {
proxy.$refs["ruleFormRef"].validate(valid => {
if (valid) {
+ if (userRecurrentTrainingData.value.length == 0) {
+ proxy.$modal.msgError(`未找到您的复训信息,不能提交申请!`)
+ return false;
+ }
+ const passTrainRecord = userRecurrentTrainingData.value.filter(item => item.state == '通过')
+ if (passTrainRecord.length == 0) {
+ proxy.$modal.msgError(`您今年的复训未通过,不能提交申请!`)
+ return false;
+ }
+
const qualificArr = tableData.value.filter(item => item.certificateUrl)
console.log('是否有资质证书', qualificArr)
if (qualificArr.length < requiredQualifications.value.length) {
diff --git a/src/views/safetyReview/examinerEscTask/index.vue b/src/views/safetyReview/examinerEscTask/index.vue
index bd67097..a25714c 100644
--- a/src/views/safetyReview/examinerEscTask/index.vue
+++ b/src/views/safetyReview/examinerEscTask/index.vue
@@ -48,6 +48,12 @@
优秀项
+
+
+ 是
+ 否
+
+
{{ scope.row.planDoneTime }}
@@ -64,11 +70,13 @@
- 立即整改
- 查看