From dbd5fd996c1fe87b7d51e62c250010bad4d89215 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Mon, 8 Aug 2022 17:55:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E9=97=AE=E9=A2=98=E7=9F=A5?= =?UTF-8?q?=E8=AF=86=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/problemKnowledgeBaseView.vue | 76 +++++++++++++------ 1 file changed, 53 insertions(+), 23 deletions(-) diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue index c90f35272..db51f7a0c 100644 --- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue +++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue @@ -49,9 +49,9 @@
- +
@@ -59,27 +59,14 @@
- {{$t('release')}} + {{$t('release')}} +
-
+
- 张三 - 2022-12-12 10:10:12 -
-
-
- sfdsfdsf的防控流感的飞机过来看的结果东法兰克感觉地方给了地方国家的分开两个就地方孤苦伶仃附件给领导反馈 - 独守空房了就收到付款了的角色发看来都是风景但是考虑附件第三方库老师积分迪斯科浪费绝对是分类的课时费 - 是反抗拉萨的飞机罗斯福就点十六分就但是发 - 迪斯科浪费电视机分厘卡的设计分类的水库附近的说服力但是积分的历史房价多少发了多少给京东方管理看豆腐干豆腐干看 - a fjsd fklsdjfk s是否考虑技术的反抗类毒素就发的撒开了房间但是发离开打扫房间是开了房间都是老师JFK了的身份圣诞快乐就是的反抗类毒素解放迪斯科浪费是 - 考虑到房价打开拉萨附近分离技术的领导是否打开拉萨范德萨发了开始就发的考虑是否就但是考虑发及代理商开发就十分大师傅看 -
-
-
- 张三 - 2022-12-12 10:10:12 + {{item.createBy}} + {{item.createTime}}
@@ -135,15 +122,26 @@ ], queryForm: {}, formInline: {}, - rules: {}, + rules: { + commentContent: [ + { + max: 300, + message: this.$t('comment') + this.$t('cannotExceed') + 300 + this.$t('Characters'), + trigger: 'blur' + } + ] + }, isPraise: false, - isCollect: false + isCollect: false, + loading: false, + releaseList: [] } }, mounted() { document.title = this.$t('applicableInstructionsMarketList') this.viewAdd() this.queryById() + this.releaseData() }, methods: { ...mapGetters(['userInfo']), @@ -224,8 +222,40 @@ clickButtonToUpload(item) { this.$refs.viewFileModelRef.clickButtonToUpload(item) }, + releaseData() { + let query = { + problemKnowledgeBaseId: this.$route.query.id + } + getAction('/problemKnowledgeBase/problemKnowledgeBaseEO/list', query).then((res) => { + if (res.success) { + this.releaseList = res.result || [] + } else { + this.releaseList = [] + } + }) + }, release() { - + if (!this.formInline.commentContent) { + 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 + } + }) } } }