-
-
- sfdsfdsf的防控流感的飞机过来看的结果东法兰克感觉地方给了地方国家的分开两个就地方孤苦伶仃附件给领导反馈
- 独守空房了就收到付款了的角色发看来都是风景但是考虑附件第三方库老师积分迪斯科浪费绝对是分类的课时费
- 是反抗拉萨的飞机罗斯福就点十六分就但是发
- 迪斯科浪费电视机分厘卡的设计分类的水库附近的说服力但是积分的历史房价多少发了多少给京东方管理看豆腐干豆腐干看
- a fjsd fklsdjfk s是否考虑技术的反抗类毒素就发的撒开了房间但是发离开打扫房间是开了房间都是老师JFK了的身份圣诞快乐就是的反抗类毒素解放迪斯科浪费是
- 考虑到房价打开拉萨附近分离技术的领导是否打开拉萨范德萨发了开始就发的考虑是否就但是考虑发及代理商开发就十分大师傅看
-
-
-
@@ -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
+ }
+ })
}
}
}