mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
提交修改的问答详细的回答样式控制
This commit is contained in:
@@ -107,8 +107,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!---->
|
<!---->
|
||||||
<div v-show="curParentId == item.id" class="answer-reply">
|
<div v-show="curParentId == item.id" class="answer-reply">
|
||||||
<el-input type="textarea" v-model="replyContent" show-word-limit maxlength="800"
|
<el-input type="textarea" v-model="replyContent" show-word-limit maxlength="800" placeholder="回复内容"></el-input>
|
||||||
placeholder="回复内容"></el-input>
|
|
||||||
<el-button type="primary" @click="replyContentMethod(item, {})">发布回复</el-button>
|
<el-button type="primary" @click="replyContentMethod(item, {})">发布回复</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -724,19 +723,30 @@ export default {
|
|||||||
const { id } = data;
|
const { id } = data;
|
||||||
apiQa.isBest(id).then(res => {
|
apiQa.isBest(id).then(res => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
|
this.$message({ type: "success", message: "设置为最佳答案成功" });
|
||||||
this.messageSave("set");
|
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.loadAnswer();
|
||||||
this.getQuestionDetail();
|
this.getQuestionDetail();
|
||||||
this.$message({
|
|
||||||
type: "success",
|
}else{
|
||||||
message: "设置为最佳答案成功"
|
this.$message({ type: "warning",message: "设置为最佳答案失败:"+res.message});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.$message({
|
this.$message({ type: "warning",message: "设置为最佳答案失败"});
|
||||||
type: "warning",
|
|
||||||
message: "设置为最佳答案失败"
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
enSure(data) {
|
enSure(data) {
|
||||||
@@ -1019,7 +1029,7 @@ export default {
|
|||||||
//margin: 6px 0 15px;
|
//margin: 6px 0 15px;
|
||||||
margin:6px 70px 15px 5px;//按ui图,让开右边区域位置
|
margin:6px 70px 15px 5px;//按ui图,让开右边区域位置
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
height: 48px;
|
max-height: 48px;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -1043,7 +1053,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.answer-boot {
|
.answer-boot {
|
||||||
// height: 35px;
|
height: 35px;
|
||||||
line-height: 35px;
|
line-height: 35px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@@ -1051,7 +1061,6 @@ export default {
|
|||||||
.answer-boot-btns {
|
.answer-boot-btns {
|
||||||
a {
|
a {
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
margin-left: 6px;
|
margin-left: 6px;
|
||||||
color: #8590A6;
|
color: #8590A6;
|
||||||
@@ -1125,7 +1134,7 @@ export default {
|
|||||||
|
|
||||||
.comment-btns {
|
.comment-btns {
|
||||||
// padding: 5px 10px 10px 0px;
|
// padding: 5px 10px 10px 0px;
|
||||||
// height: 35px;
|
height: 35px;
|
||||||
line-height: 35px;
|
line-height: 35px;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|||||||
Reference in New Issue
Block a user