diff --git a/examples/utils/index.js b/examples/utils/index.js index 9d119ef7..41e58271 100644 --- a/examples/utils/index.js +++ b/examples/utils/index.js @@ -28,6 +28,7 @@ const $confirm = (content, options) => { return MessageBox.confirm(content, { type: "warning", confirmButtonText: "确认", + closeOnClickModal: false, center: true, title: "提示", dangerouslyUseHTMLString: true, diff --git a/project/qujing/app/AppCertificateIssuance/AppCertificateIssuance.vue b/project/qujing/app/AppCertificateIssuance/AppCertificateIssuance.vue new file mode 100644 index 00000000..5450d262 --- /dev/null +++ b/project/qujing/app/AppCertificateIssuance/AppCertificateIssuance.vue @@ -0,0 +1,63 @@ + + + + + diff --git a/project/qujing/app/AppCertificateIssuance/components/Detail.vue b/project/qujing/app/AppCertificateIssuance/components/Detail.vue new file mode 100644 index 00000000..5a348fde --- /dev/null +++ b/project/qujing/app/AppCertificateIssuance/components/Detail.vue @@ -0,0 +1,148 @@ + + + + + diff --git a/project/qujing/app/AppCertificateIssuance/components/List.vue b/project/qujing/app/AppCertificateIssuance/components/List.vue new file mode 100644 index 00000000..305a7f08 --- /dev/null +++ b/project/qujing/app/AppCertificateIssuance/components/List.vue @@ -0,0 +1,167 @@ + + + + + diff --git a/project/qujing/app/AppCertificateManage/components/Add.vue b/project/qujing/app/AppCertificateManage/components/Add.vue index 49c1ed1a..381487cd 100644 --- a/project/qujing/app/AppCertificateManage/components/Add.vue +++ b/project/qujing/app/AppCertificateManage/components/Add.vue @@ -10,22 +10,6 @@ - - - - - - - 分钟 - - - - - this.dict.getLabel('qjCertificateType', v) }, { prop: 'issueNumber', label: '已颁发数量', align: 'center' }, - { prop: 'studyDuration', label: '累积学习时(分钟)', align: 'center' }, - { prop: 'passExam', label: '通过考试', align: 'center' } ], tableData: [] } diff --git a/project/qujing/app/AppExaminationManage/components/Add.vue b/project/qujing/app/AppExaminationManage/components/Add.vue index 02c45e1d..22afc1c8 100644 --- a/project/qujing/app/AppExaminationManage/components/Add.vue +++ b/project/qujing/app/AppExaminationManage/components/Add.vue @@ -13,6 +13,25 @@ + + + + + + (分钟) + + + + +
@@ -33,14 +52,6 @@ {{ item.dictName }} - - - -
@@ -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['获得证书人数'] }}