提交修改的问答详细的回答样式控制

This commit is contained in:
daihh
2022-10-22 16:24:43 +08:00
parent 4500f72059
commit 624a10469c

View File

@@ -107,8 +107,7 @@
</div>
<!---->
<div v-show="curParentId == item.id" class="answer-reply">
<el-input type="textarea" v-model="replyContent" show-word-limit maxlength="800"
placeholder="回复内容"></el-input>
<el-input type="textarea" v-model="replyContent" show-word-limit maxlength="800" placeholder="回复内容"></el-input>
<el-button type="primary" @click="replyContentMethod(item, {})">发布回复</el-button>
</div>
</div>
@@ -724,19 +723,30 @@ export default {
const { id } = data;
apiQa.isBest(id).then(res => {
if (res.status == 200) {
this.$message({ type: "success", message: "设置为最佳答案成功" });
this.messageSave("set");
//消息
let event = {
key: "AnswerBest",//设置为最佳答案
title: "回答被选为最佳答案",//
parameters:"author:"+this.data.sysCreateAid,//内容的作者
content: '回答被选为最佳答案',//事件的内容
objId: this.data.id,//关联的id
objType: this.type,//关联的类型
objInfo: this.data.title,
aid: this.userInfo.aid, //当前登录人的id
aname: this.userInfo.name,//当前人的姓名
status: 1 //状态直接写1
}
this.$store.dispatch("userTrigger", event);
this.loadAnswer();
this.getQuestionDetail();
this.$message({
type: "success",
message: "设置为最佳答案成功"
});
}else{
this.$message({ type: "warning",message: "设置为最佳答案失败:"+res.message});
}
}).catch(err => {
this.$message({
type: "warning",
message: "设置为最佳答案失败"
});
this.$message({ type: "warning",message: "设置为最佳答案失败"});
});
},
enSure(data) {
@@ -1019,7 +1029,7 @@ export default {
//margin: 6px 0 15px;
margin:6px 70px 15px 5px;//按ui图让开右边区域位置
line-height: 24px;
height: 48px;
max-height: 48px;
white-space: pre-wrap;
word-break: break-all;
display: inline-block;
@@ -1043,7 +1053,7 @@ export default {
}
.answer-boot {
// height: 35px;
height: 35px;
line-height: 35px;
display: flex;
justify-content: space-between;
@@ -1051,7 +1061,6 @@ export default {
.answer-boot-btns {
a {
margin-right: 15px;
span {
margin-left: 6px;
color: #8590A6;
@@ -1125,7 +1134,7 @@ export default {
.comment-btns {
// padding: 5px 10px 10px 0px;
// height: 35px;
height: 35px;
line-height: 35px;
a {