mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 12:26:44 +08:00
提交
This commit is contained in:
@@ -57,7 +57,7 @@
|
|||||||
type="textarea"
|
type="textarea"
|
||||||
class="hideControl"
|
class="hideControl"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
v-model.trim="inputValue"
|
v-model="inputValue"
|
||||||
maxlength="800"
|
maxlength="800"
|
||||||
placeholder="写下您的评论(800字以内),可以@作者哦~"
|
placeholder="写下您的评论(800字以内),可以@作者哦~"
|
||||||
></el-input>
|
></el-input>
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
type="textarea"
|
type="textarea"
|
||||||
class="hideControl"
|
class="hideControl"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
v-model.trim="inputValue"
|
v-model="inputValue"
|
||||||
maxlength="800"
|
maxlength="800"
|
||||||
placeholder="写下您的评论(800字以内),可以@案主哦~"
|
placeholder="写下您的评论(800字以内),可以@案主哦~"
|
||||||
></el-input>
|
></el-input>
|
||||||
@@ -113,7 +113,7 @@
|
|||||||
<div v-if="replyInfo.parentId==com.id" class="comment-reply" style="padding-bottom: 5px;">
|
<div v-if="replyInfo.parentId==com.id" class="comment-reply" style="padding-bottom: 5px;">
|
||||||
<div style="width:100%;display:flex;">
|
<div style="width:100%;display:flex;">
|
||||||
<div style="flex: 1;">
|
<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>
|
||||||
<div style="width: 120px;display: flex;justify-content: flex-end;">
|
<div style="width: 120px;display: flex;justify-content: flex-end;">
|
||||||
<el-button @click="submitReply(com)" type="primary">发布回复</el-button>
|
<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 v-if="replyInfo.parentId==reply.id" class="comment-reply" style="padding-bottom: 5px;">
|
||||||
<div style="width:100%;display:flex;">
|
<div style="width:100%;display:flex;">
|
||||||
<div style="flex: 1;">
|
<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>
|
||||||
<div style="width: 120px;display: flex;justify-content: flex-end;">
|
<div style="width: 120px;display: flex;justify-content: flex-end;">
|
||||||
<el-button @click="submitReply(com)" type="primary">发布回复</el-button>
|
<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 v-if="replyInfo.parentId==reply.id" class="comment-reply" style="padding-bottom: 5px;">
|
||||||
<div style="width:100%;display:flex;">
|
<div style="width:100%;display:flex;">
|
||||||
<div style="flex: 1;">
|
<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>
|
||||||
<div style="width: 120px;display: flex;justify-content: flex-end;">
|
<div style="width: 120px;display: flex;justify-content: flex-end;">
|
||||||
<el-button @click="submitDlgReply(com)" type="primary">发布回复</el-button>
|
<el-button @click="submitDlgReply(com)" type="primary">发布回复</el-button>
|
||||||
@@ -487,7 +487,7 @@
|
|||||||
objType:this.objType,
|
objType:this.objType,
|
||||||
objId:this.objId,
|
objId:this.objId,
|
||||||
parentId:'-1',
|
parentId:'-1',
|
||||||
content:this.inputValue,
|
content:this.inputValue.trim(),
|
||||||
clevel:1,
|
clevel:1,
|
||||||
toAid:'',
|
toAid:'',
|
||||||
toAname:'',
|
toAname:'',
|
||||||
@@ -553,6 +553,7 @@
|
|||||||
this.replyInfo.parentId='';
|
this.replyInfo.parentId='';
|
||||||
},
|
},
|
||||||
submitReply(comment){
|
submitReply(comment){
|
||||||
|
this.replyInfo.content = this.replyInfo.content.trim();
|
||||||
if(this.replyInfo.content==''){
|
if(this.replyInfo.content==''){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -659,6 +660,7 @@
|
|||||||
this.replyShow=true;
|
this.replyShow=true;
|
||||||
},
|
},
|
||||||
submitDlgReply(){
|
submitDlgReply(){
|
||||||
|
this.replyInfo.content = this.replyInfo.content.trim();
|
||||||
if(this.replyInfo.content==''){
|
if(this.replyInfo.content==''){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
<el-card :body-style="{ padding: '0px' }" style="padding: 20px;">
|
<el-card :body-style="{ padding: '0px' }" style="padding: 20px;">
|
||||||
<div>
|
<div>
|
||||||
<el-input type="textarea" rows="5" placeholder="写下您的答案(800字以内),可以@提问者哦~" minlength="1" maxlength="800"
|
<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>
|
||||||
<div style="padding-top: 10px;">
|
<div style="padding-top: 10px;">
|
||||||
<el-button type="primary" :disabled="!checked" class="dian-btn" @click="publishAnswer">发布</el-button>
|
<el-button type="primary" :disabled="!checked" class="dian-btn" @click="publishAnswer">发布</el-button>
|
||||||
@@ -124,7 +124,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.trim="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>
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
<i class="el-icon-delete" v-if="detailData.sysCreateAid == userInfo.aid||con.sysCreateAid == userInfo.aid" @click="delAnswer(con)"></i> -->
|
<i class="el-icon-delete" v-if="detailData.sysCreateAid == userInfo.aid||con.sysCreateAid == userInfo.aid" @click="delAnswer(con)"></i> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-reply" v-show="curParentId == con.id">
|
<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>
|
maxlength="100"></el-input>
|
||||||
<el-button type="primary" @click="replyContentMethod(con, item)">发布回复</el-button>
|
<el-button type="primary" @click="replyContentMethod(con, item)">发布回复</el-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -212,8 +212,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-reply" v-show="curParentId == row.id">
|
<div class="comment-reply" v-show="curParentId == row.id">
|
||||||
<el-input type="textarea" v-model.trim="replyContent" show-word-limit
|
<el-input type="textarea" v-model="replyContent" show-word-limit maxlength="100"
|
||||||
maxlength="100" placeholder="回复内容"></el-input>
|
placeholder="回复内容"></el-input>
|
||||||
<el-button type="primary" @click="replyContentMethod(row, con)">发布回复</el-button>
|
<el-button type="primary" @click="replyContentMethod(row, con)">发布回复</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -624,7 +624,7 @@ export default {
|
|||||||
if (this.content.length < 1 || this.content.trim() == "@" + this.detailData.name) {
|
if (this.content.length < 1 || this.content.trim() == "@" + this.detailData.name) {
|
||||||
return this.$message.warning("请输入回答");
|
return this.$message.warning("请输入回答");
|
||||||
} else {
|
} else {
|
||||||
content = this.content;
|
content = this.content.trim();
|
||||||
}
|
}
|
||||||
apiQa.saveAnswer({
|
apiQa.saveAnswer({
|
||||||
qid: this.$route.query.id,
|
qid: this.$route.query.id,
|
||||||
@@ -734,7 +734,7 @@ export default {
|
|||||||
let replyData = {
|
let replyData = {
|
||||||
replayAid: data.sysCreateAid,
|
replayAid: data.sysCreateAid,
|
||||||
replayName: data.sysCreateBy,
|
replayName: data.sysCreateBy,
|
||||||
content: this.replyContent,
|
content: this.replyContent.trim(),
|
||||||
parentId: data.id,
|
parentId: data.id,
|
||||||
commentId: "",
|
commentId: "",
|
||||||
clevel: 2
|
clevel: 2
|
||||||
|
|||||||
Reference in New Issue
Block a user