@@ -160,6 +171,9 @@
form: {
examinationName: '',
title: '',
+ examination_duration: '',
+ certificateId: '',
+ certificateName: '',
examinationType: '',
showIndex: '',
chooseType: '0',
@@ -214,7 +228,8 @@
tableData: [],
isShow: false,
ids: [],
- sort: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I']
+ sort: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I'],
+ certificateList: []
}
},
@@ -231,6 +246,7 @@
created () {
this.getList()
+ this.getCertificateList()
this.dict.load(['qjQBType', 'qjEIChooseType', 'qjEACondition', 'qjEAType', 'qjExaminationType']).then(() => {
if (this.params && this.params.id) {
this.id = this.params.id
@@ -262,6 +278,23 @@
})
},
+ getCertificateList() {
+ this.instance.post(`/app/appcertificateinfo/list`, null, {
+ params: {
+ ...this.search,
+ size: 1000
+ }
+ }).then(res => {
+ if (res.code == 0) {
+ this.certificateList = res.data.records.map(v => {
+ return {
+ dictName: v.certificateName,
+ dictValue: v.id
+ }
+ })
+ }
+ })
+ },
onChange () {
this.getList()
},
@@ -371,7 +404,8 @@
this.instance.post(`/app/appexaminationinfo/addOrUpdate`, {
...this.form,
- id: this.params.id || ''
+ id: this.params.id || '',
+ certificateName: this.certificateList.filter(v => v.dictValue === this.form.certificateId)[0].dictName
}).then(res => {
if (res.code == 0) {
this.$message.success('提交成功')
diff --git a/project/qujing/app/AppLearningStatistics/AppLearningStatistics.vue b/project/qujing/app/AppLearningStatistics/AppLearningStatistics.vue
index d96b8c3c..2392a8a5 100644
--- a/project/qujing/app/AppLearningStatistics/AppLearningStatistics.vue
+++ b/project/qujing/app/AppLearningStatistics/AppLearningStatistics.vue
@@ -57,12 +57,12 @@
考试人数
-
{{ statisticsKeyData['优秀'] }}
-
优秀
+
{{ statisticsKeyData['学富五车'] }}
+
学富五车
-
{{ statisticsKeyData['良好'] }}
-
良好
+
{{ statisticsKeyData['才高八斗'] }}
+
才高八斗
{{ statisticsKeyData['合格'] }}
@@ -78,12 +78,7 @@
获得证书人数
-
{{ statisticsKeyData['学习证书人数'] }}
-
学习
-
-
-
{{ statisticsKeyData['考试证书人数'] }}
-
考试
+
{{ statisticsKeyData['获得证书人数'] }}