From 2e69983ab6eb67ea5994eda6af00e95cbd8717c1 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Fri, 12 Aug 2022 16:59:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93=E5=B7=B2?= =?UTF-8?q?=E7=9F=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/common/lang/en-us.js | 2 +- .../components/problemKnowledgeBaseAdd.vue | 3 ++ .../components/problemKnowledgeBaseView.vue | 39 +++++++++++-------- 3 files changed, 27 insertions(+), 17 deletions(-) diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index 91e4e0dfd..8adedf685 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -1213,7 +1213,7 @@ module.exports = { displayPermission: 'Display permission', authorizedUser: 'Authorized user', problemClassification: 'Problem classification', - market: 'market', + market: 'Market', documentNumber: 'Document Number', documentTitle: 'Document Title', bringInDocumentInformation: 'Bring in document information', diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseAdd.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseAdd.vue index 87dba98fd..47b816081 100644 --- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseAdd.vue +++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseAdd.vue @@ -587,4 +587,7 @@ ::v-deep .itemModel-explain .ant-form-explain { margin-top: 60px } + ::v-deep .ql-tooltip { + z-index: 10 !important; + } \ No newline at end of file diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue index b651cfbe3..377cda7ef 100644 --- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue +++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue @@ -22,7 +22,7 @@ {{$t('issuedBy')}}:{{this.queryForm.createBy}} - {{$t('releaseDate')}}:{{this.queryForm.createTime}} + {{$t('releaseDate')}}:{{this.queryForm.createTime?this.queryForm.createTime.slice(0,11):''}}
@@ -254,21 +254,26 @@ this.$message.warning(this.$t('pleaseEnter')) return } - let query = { - problemKnowledgeBaseId: this.$route.query.id, - commentContent: this.formInline.commentContent, - commentUserId: this.userInfo().id - } - this.loading = true - postAction('/problemKnowledgeBase/problemKnowledgeBaseCommentEO/add', query).then((res) => { - if (res.success) { - this.$message.success(this.$t('OperationSuccessful')) - this.releaseData() - this.formInline = {} - this.loading = false - } else { - this.$message.warning(this.$t('operationFailed')) - this.loading = false + this.$refs.ruleForm.validate(valid => { + if (valid) { + let query = { + problemKnowledgeBaseId: this.$route.query.id, + commentContent: this.formInline.commentContent, + commentUserId: this.userInfo().id + } + this.loading = true + postAction('/problemKnowledgeBase/problemKnowledgeBaseCommentEO/add', query).then((res) => { + if (res.success) { + this.$message.success(this.$t('OperationSuccessful')) + this.$refs.ruleForm.clearValidate() + this.releaseData() + this.formInline = {} + this.loading = false + } else { + this.$message.warning(this.$t('operationFailed')) + this.loading = false + } + }) } }) }, @@ -398,6 +403,7 @@ font-size: 16px; color: #040B29; font-weight: 400; + word-break: break-word; } .content-icon { @@ -510,4 +516,5 @@ font-size: 16px; margin-bottom: 20px; } + \ No newline at end of file