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

@@ -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