From 6d47a2e616d9128577ef4aa526761bec2eb98702 Mon Sep 17 00:00:00 2001
From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com>
Date: Wed, 19 Feb 2025 18:41:00 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0lodash=E5=BA=93=20=E4=BD=BF?=
=?UTF-8?q?=E7=94=A8=E9=98=B2=E6=8A=96=E5=87=BD=E6=95=B0=20=E9=98=B2?=
=?UTF-8?q?=E6=AD=A2=E5=AF=BC=E5=85=A5=E7=AD=89=E6=93=8D=E4=BD=9C=E9=87=8D?=
=?UTF-8?q?=E5=A4=8D=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 1 +
src/components/pro-tabs/bns-timeline-tabs.vue | 21 +-
.../testQuestionsStore/questionDetails.vue | 40 +-
src/views/login.vue | 127 +-
src/views/pro/admissionRequest/index.vue | 594 ++++----
src/views/pro/apply/consEnterApply.vue | 1208 ++++++++++-------
src/views/pro/apply/supervisorEnterApply.vue | 30 +-
vue.config.js | 4 +-
8 files changed, 1151 insertions(+), 874 deletions(-)
diff --git a/package.json b/package.json
index 6136693..5e25681 100644
--- a/package.json
+++ b/package.json
@@ -57,6 +57,7 @@
"js-beautify": "1.13.0",
"js-cookie": "3.0.1",
"jsencrypt": "3.0.0-rc.1",
+ "lodash": "^4.17.21",
"nprogress": "0.2.0",
"pinyin": "^4.0.0-alpha.2",
"qrcode": "^1.5.3",
diff --git a/src/components/pro-tabs/bns-timeline-tabs.vue b/src/components/pro-tabs/bns-timeline-tabs.vue
index 0cc36a0..fcb486b 100644
--- a/src/components/pro-tabs/bns-timeline-tabs.vue
+++ b/src/components/pro-tabs/bns-timeline-tabs.vue
@@ -208,19 +208,24 @@ export default {
// 根据审核状态以及审核结果添加样式
styleByType() {
return (item, index) => {
- if (this.items[index].status == '审核通过') return 'highlight'
- if (this.items[index].status == '审核驳回') return 'rejectHighlight'
- if (item.isActive != 1) return 'normal'
- if (item.isActive == 1) return 'currentLight'
+ // if (this.items[index].status == '审核通过') return 'highlight'
+ // if (this.items[index].status == '审核驳回') return 'rejectHighlight'
+ // if (item.isActive != 1) return 'normal'
+ // if (item.isActive == 1) return 'currentLight'
+ if (item.auditStatus == 1 || item.auditStatus == 3) return 'highlight'
+ if (item.auditStatus == 2) return 'rejectHighlight'
+ if (item.auditStatus == null) return 'normal'
+ if (item.auditStatus == 4) return 'currentLight'
}
},
+
// 根据审核状态以及审核结果添加符号
iconByType() {
return (item, index) => {
- if (this.items[index].status == '审核通过') return '√'
- if (this.items[index].status == '审核驳回') return 'X'
- if (this.items[index].status == '撤回' || (this.items[index].status == '' && item.isActive != 1)) return ''
- if (this.items[index].status == '' && item.isActive == 1) return '?'
+ if (item.auditStatus == 1 || item.auditStatus == 3) return '√'
+ if (item.auditStatus == 2) return 'X'
+ if (item.auditStatus == null) return ''
+ if (item.auditStatus == 4) return '?'
}
},
},
diff --git a/src/views/educationalTraining/resourceAdministration/testQuestionsStore/questionDetails.vue b/src/views/educationalTraining/resourceAdministration/testQuestionsStore/questionDetails.vue
index 5780a2e..39f80b6 100644
--- a/src/views/educationalTraining/resourceAdministration/testQuestionsStore/questionDetails.vue
+++ b/src/views/educationalTraining/resourceAdministration/testQuestionsStore/questionDetails.vue
@@ -5,7 +5,8 @@