This commit is contained in:
daihh
2022-07-11 09:31:52 +08:00
4 changed files with 608 additions and 508 deletions

View File

@@ -36,8 +36,7 @@
class="reference-tag"
v-for="item in toUsers"
:key="item.aid"
:label="item.aid">{{ item.name }}</el-radio-button
>
:label="item.aid">{{ item.name }}</el-radio-button>
</el-radio-group>
</div>
@@ -68,7 +67,7 @@
type="textarea"
class="hideControl"
show-word-limit
v-model.trim="inputValue"
v-model="inputValue"
maxlength="800"
placeholder="写下您的评论(800字以内),可以@案主哦~"
></el-input>
@@ -488,7 +487,7 @@
objType:this.objType,
objId:this.objId,
parentId:'-1',
content:this.inputValue,
content:this.inputValue.trim(),
clevel:1,
toAid:'',
toAname:'',
@@ -554,6 +553,7 @@
this.replyInfo.parentId='';
},
submitReply(comment){
this.replyInfo.content = this.replyInfo.content.trim();
if(this.replyInfo.content==''){
return;
}
@@ -660,6 +660,7 @@
this.replyShow=true;
},
submitDlgReply(){
this.replyInfo.content = this.replyInfo.content.trim();
if(this.replyInfo.content==''){
return;
}

View File

@@ -4,7 +4,7 @@
<el-form-item label="回答内容">
<el-input
type="textarea"
v-model.trim="editData.content"
v-model="editData.content"
placeholder="请输入详细描述"
rows="8"
minlength="1"
@@ -45,6 +45,7 @@
type: 'warning'
});
}
this.editData.content = this.editData.content.trim();
// if(this.editData.content.length<0||this.editData.content.length>255){
// return this.$message({
// message: '回复内容为0-800个字',

File diff suppressed because it is too large Load Diff

View File

@@ -252,7 +252,7 @@ export default {
apiQa
.saveAnswer({
qid: this.answer.id,
content: this.answer.inputValue
content: this.answer.inputValue.trim()
})
.then(res => {
if (res.status == 200) {