This commit is contained in:
zhaofang
2022-07-08 13:41:22 +08:00
parent 9c201bade1
commit d513ecbef9
2 changed files with 15 additions and 13 deletions

View File

@@ -57,7 +57,7 @@
type="textarea"
class="hideControl"
show-word-limit
v-model.trim="inputValue"
v-model="inputValue"
maxlength="800"
placeholder="写下您的评论(800字以内),可以@作者哦~"
></el-input>
@@ -67,7 +67,7 @@
type="textarea"
class="hideControl"
show-word-limit
v-model.trim="inputValue"
v-model="inputValue"
maxlength="800"
placeholder="写下您的评论(800字以内),可以@案主哦~"
></el-input>
@@ -113,7 +113,7 @@
<div v-if="replyInfo.parentId==com.id" class="comment-reply" style="padding-bottom: 5px;">
<div style="width:100%;display:flex;">
<div style="flex: 1;">
<el-input class="hideControl" type="textarea" show-word-limit v-model.trim="replyInfo.content" maxlength="800" placeholder="回复内容..."></el-input>
<el-input class="hideControl" type="textarea" show-word-limit v-model="replyInfo.content" maxlength="800" placeholder="回复内容..."></el-input>
</div>
<div style="width: 120px;display: flex;justify-content: flex-end;">
<el-button @click="submitReply(com)" type="primary">发布回复</el-button>
@@ -154,7 +154,7 @@
<div v-if="replyInfo.parentId==reply.id" class="comment-reply" style="padding-bottom: 5px;">
<div style="width:100%;display:flex;">
<div style="flex: 1;">
<el-input show-word-limit class="hideControl" type="textarea" v-model.trim="replyInfo.content" maxlength="100" placeholder="回复内容..."></el-input>
<el-input show-word-limit class="hideControl" type="textarea" v-model="replyInfo.content" maxlength="100" placeholder="回复内容..."></el-input>
</div>
<div style="width: 120px;display: flex;justify-content: flex-end;">
<el-button @click="submitReply(com)" type="primary">发布回复</el-button>
@@ -199,7 +199,7 @@
<div v-if="replyInfo.parentId==reply.id" class="comment-reply" style="padding-bottom: 5px;">
<div style="width:100%;display:flex;">
<div style="flex: 1;">
<el-input show-word-limit class="hideControl" type="textarea" v-model.trim="replyInfo.content" maxlength="100" placeholder="回复内容..."></el-input>
<el-input show-word-limit class="hideControl" type="textarea" v-model="replyInfo.content" maxlength="100" placeholder="回复内容..."></el-input>
</div>
<div style="width: 120px;display: flex;justify-content: flex-end;">
<el-button @click="submitDlgReply(com)" type="primary">发布回复</el-button>
@@ -487,7 +487,7 @@
objType:this.objType,
objId:this.objId,
parentId:'-1',
content:this.inputValue,
content:this.inputValue.trim(),
clevel:1,
toAid:'',
toAname:'',
@@ -553,6 +553,7 @@
this.replyInfo.parentId='';
},
submitReply(comment){
this.replyInfo.content = this.replyInfo.content.trim();
if(this.replyInfo.content==''){
return;
}
@@ -659,6 +660,7 @@
this.replyShow=true;
},
submitDlgReply(){
this.replyInfo.content = this.replyInfo.content.trim();
if(this.replyInfo.content==''){
return;
}

View File

@@ -44,7 +44,7 @@
<el-card :body-style="{ padding: '0px' }" style="padding: 20px;">
<div>
<el-input type="textarea" rows="5" placeholder="写下您的答案(800字以内),可以@提问者哦~" minlength="1" maxlength="800"
v-model.trim="content"></el-input>
v-model="content"></el-input>
</div>
<div style="padding-top: 10px;">
<el-button type="primary" :disabled="!checked" class="dian-btn" @click="publishAnswer">发布</el-button>
@@ -124,7 +124,7 @@
</div>
<!---->
<div v-show="curParentId == item.id" class="answer-reply">
<el-input type="textarea" v-model.trim="replyContent" show-word-limit maxlength="800"
<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>
@@ -167,7 +167,7 @@
<i class="el-icon-delete" v-if="detailData.sysCreateAid == userInfo.aid||con.sysCreateAid == userInfo.aid" @click="delAnswer(con)"></i> -->
</div>
<div class="comment-reply" v-show="curParentId == con.id">
<el-input type="textarea" v-model.trim="replyContent" placeholder="回复内容" show-word-limit
<el-input type="textarea" v-model="replyContent" placeholder="回复内容" show-word-limit
maxlength="100"></el-input>
<el-button type="primary" @click="replyContentMethod(con, item)">发布回复</el-button>
</div>
@@ -212,8 +212,8 @@
</div>
</div>
<div class="comment-reply" v-show="curParentId == row.id">
<el-input type="textarea" v-model.trim="replyContent" show-word-limit
maxlength="100" placeholder="回复内容"></el-input>
<el-input type="textarea" v-model="replyContent" show-word-limit maxlength="100"
placeholder="回复内容"></el-input>
<el-button type="primary" @click="replyContentMethod(row, con)">发布回复</el-button>
</div>
</div>
@@ -624,7 +624,7 @@ export default {
if (this.content.length < 1 || this.content.trim() == "@" + this.detailData.name) {
return this.$message.warning("请输入回答");
} else {
content = this.content;
content = this.content.trim();
}
apiQa.saveAnswer({
qid: this.$route.query.id,
@@ -734,7 +734,7 @@ export default {
let replyData = {
replayAid: data.sysCreateAid,
replayName: data.sysCreateBy,
content: this.replyContent,
content: this.replyContent.trim(),
parentId: data.id,
commentId: "",
clevel: 2