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" class="reference-tag"
v-for="item in toUsers" v-for="item in toUsers"
:key="item.aid" :key="item.aid"
:label="item.aid">{{ item.name }}</el-radio-button :label="item.aid">{{ item.name }}</el-radio-button>
>
</el-radio-group> </el-radio-group>
</div> </div>
@@ -68,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>
@@ -488,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:'',
@@ -554,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;
} }
@@ -660,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;
} }

View File

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

File diff suppressed because it is too large Load Diff

View File

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