From adfa2ebf849a532ca51e19a430422ddaead1b076 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Fri, 5 Jan 2024 09:22:47 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9bug80000?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../questionAnswerLibrary/page/AnswerPage.vue | 25 +++++++++++++++++-- .../detail/module/SubmitQuestionModal.vue | 2 +- .../modules/SubmitQuestionModal.vue | 2 +- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/src/views/businessSupport/questionAnswerLibrary/page/AnswerPage.vue b/src/views/businessSupport/questionAnswerLibrary/page/AnswerPage.vue index 4d37abb7..46eb923f 100644 --- a/src/views/businessSupport/questionAnswerLibrary/page/AnswerPage.vue +++ b/src/views/businessSupport/questionAnswerLibrary/page/AnswerPage.vue @@ -2,7 +2,6 @@
{{ model.title }}
- {{ $t('businessSupport.questionAnswer.poster') + ':' + model.orgCode_dictText + ' ' + model.userId_dictText }}
@@ -10,7 +9,7 @@
- {{ model.standardNumber && model.standardName ? model.standardNumber + ' ' + model.standardName : global.emptyLine }} + {{ model.standardNumber && model.standardName ? model.standardNumber + ' ' + model.standardName : global.emptyLine }}
@@ -237,6 +236,24 @@ export default { // 下载文件 downloadFile(`/laws/standard/common/downloadWithWaterMark/${file.id}`, file.fileName) }, + // 点击标准跳转详情 + clickStandard () { + let path = '' + // 需要先判断是哪种标准 + if (this.model.type === '1') { + path = '/standardRegulationLibrary/DomesticStandardDetail' + } else if (this.model.type === '2') { + path = '/standardRegulationLibrary/OverseasStandardDetail' + } else if (this.model.type === '3') { + path = '/enterpriseStandardLibrary/enterpriseStandardDetail' + } + this.$openPageNewSheet({ + path: path, + query: { + id: this.model.standardId + } + }) + }, submit () { if (!this.answerDesc) { this.$message.warning(this.$t('businessSupport.questionAnswer.pleaseEnterAnswerDesc')) @@ -310,6 +327,10 @@ export default { font-family: PingFang SC-Regular, PingFang SC, sans-serif; color: #1D2129; } + .link { + color: @primary-color; + cursor: pointer; + } } .detail-page-part-form-item-large-file { width: 100%; diff --git a/src/views/enterpriseStandardLibrary/standard/detail/module/SubmitQuestionModal.vue b/src/views/enterpriseStandardLibrary/standard/detail/module/SubmitQuestionModal.vue index c5abc786..fe7d208b 100644 --- a/src/views/enterpriseStandardLibrary/standard/detail/module/SubmitQuestionModal.vue +++ b/src/views/enterpriseStandardLibrary/standard/detail/module/SubmitQuestionModal.vue @@ -136,7 +136,7 @@ export default { this.visible = true const param = {} param.standardNumber = standardNumber - param.quizTime = new Date().getFullYear() + '-' + new Date().getMonth() + '-' + new Date().getDay() + ' ' + + param.quizTime = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + new Date().getDay() + ' ' + new Date().getHours() + ':' + new Date().getMinutes() + ':' + new Date().getSeconds() this.$nextTick(() => { this.form.setFieldsValue(pick(param, 'standardNumber', 'quizTime')) diff --git a/src/views/standardRegulationLibrary/commonPage/modules/SubmitQuestionModal.vue b/src/views/standardRegulationLibrary/commonPage/modules/SubmitQuestionModal.vue index b2d7db20..6d031d9b 100644 --- a/src/views/standardRegulationLibrary/commonPage/modules/SubmitQuestionModal.vue +++ b/src/views/standardRegulationLibrary/commonPage/modules/SubmitQuestionModal.vue @@ -138,7 +138,7 @@ export default { this.type = type const param = {} param.standardNumber = standardNumber - param.quizTime = new Date().getFullYear() + '-' + new Date().getMonth() + '-' + new Date().getDay() + ' ' + + param.quizTime = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-' + new Date().getDay() + ' ' + new Date().getHours() + ':' + new Date().getMinutes() + ':' + new Date().getSeconds() this.$nextTick(() => { this.form.setFieldsValue(param)