Merge remote-tracking branch 'origin/dev_third_stage' into dev_third_stage

This commit is contained in:
gaosong
2022-08-08 17:55:58 +08:00
@@ -49,9 +49,9 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :span="24"> <a-col :span="24">
<div class="box-title-text"> <div class="box-title-text">
<a-form-model-item class="itemModel" prop="approvalOpinion"> <a-form-model-item class="itemModel" prop="commentContent">
<a-textarea :placeholder="$t('pleaseEnter')+$t('comment')" <a-textarea :placeholder="$t('pleaseEnter')+$t('comment')"
v-model="formInline.approvalOpinion" v-model.trim="formInline.commentContent"
:rows="4"/> :rows="4"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
@@ -59,27 +59,14 @@
</a-row> </a-row>
</a-form-model> </a-form-model>
<div class="content-button"> <div class="content-button">
<a-button class="header-btn submit" @click="release" type="primary">{{$t('release')}}</a-button> <a-button class="header-btn submit" :loading="loading" @click="release" type="primary">{{$t('release')}}
</a-button>
</div> </div>
<div> <div v-for="(item,index) in releaseList">
<div class="box-text"> <div class="box-text">
<div class="header-text"> <div class="header-text">
<span style="margin-right: 20px">张三</span> <span style="margin-right: 20px">{{item.createBy}}</span>
2022-12-12 10:10:12 {{item.createTime}}
</div>
</div>
<div class="content">
sfdsfdsf的防控流感的飞机过来看的结果东法兰克感觉地方给了地方国家的分开两个就地方孤苦伶仃附件给领导反馈
独守空房了就收到付款了的角色发看来都是风景但是考虑附件第三方库老师积分迪斯科浪费绝对是分类的课时费
是反抗拉萨的飞机罗斯福就点十六分就但是发
迪斯科浪费电视机分厘卡的设计分类的水库附近的说服力但是积分的历史房价多少发了多少给京东方管理看豆腐干豆腐干看
a fjsd fklsdjfk s是否考虑技术的反抗类毒素就发的撒开了房间但是发离开打扫房间是开了房间都是老师JFK了的身份圣诞快乐就是的反抗类毒素解放迪斯科浪费是
考虑到房价打开拉萨附近分离技术的领导是否打开拉萨范德萨发了开始就发的考虑是否就但是考虑发及代理商开发就十分大师傅看
</div>
<div class="box-text">
<div class="header-text">
<span style="margin-right: 20px">张三</span>
2022-12-12 10:10:12
</div> </div>
</div> </div>
<div class="content"> <div class="content">
@@ -135,15 +122,26 @@
], ],
queryForm: {}, queryForm: {},
formInline: {}, formInline: {},
rules: {}, rules: {
commentContent: [
{
max: 300,
message: this.$t('comment') + this.$t('cannotExceed') + 300 + this.$t('Characters'),
trigger: 'blur'
}
]
},
isPraise: false, isPraise: false,
isCollect: false isCollect: false,
loading: false,
releaseList: []
} }
}, },
mounted() { mounted() {
document.title = this.$t('applicableInstructionsMarketList') document.title = this.$t('applicableInstructionsMarketList')
this.viewAdd() this.viewAdd()
this.queryById() this.queryById()
this.releaseData()
}, },
methods: { methods: {
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
@@ -224,8 +222,40 @@
clickButtonToUpload(item) { clickButtonToUpload(item) {
this.$refs.viewFileModelRef.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() { 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
}
})
} }
} }
} }