fix(测试跟踪): 用例评审,评论提交后评论框不会清空
--bug=1008916 --user=lyh 【测试跟踪】用例评审,评论提交后评论框不会清空 https://www.tapd.cn/55049933/s/1081803
This commit is contained in:
parent
b47dcfaa43
commit
c34be4c8eb
|
@ -17,7 +17,7 @@
|
||||||
<div>
|
<div>
|
||||||
<div class="editors_div_style">
|
<div class="editors_div_style">
|
||||||
<div id="editorsDiv" >
|
<div id="editorsDiv" >
|
||||||
<ms-mark-down-text prop="description" :data="from" :toolbars="toolbars"/>
|
<ms-mark-down-text prop="description" :data="form" :toolbars="toolbars"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -33,7 +33,6 @@
|
||||||
<script>
|
<script>
|
||||||
import ReviewCommentItem from "./ReviewCommentItem";
|
import ReviewCommentItem from "./ReviewCommentItem";
|
||||||
import FormRichTextItem from "@/business/components/track/case/components/FormRichTextItem";
|
import FormRichTextItem from "@/business/components/track/case/components/FormRichTextItem";
|
||||||
import {uploadMarkDownImg} from "@/network/image";
|
|
||||||
import MsMarkDownText from "@/business/components/track/case/components/MsMarkDownText";
|
import MsMarkDownText from "@/business/components/track/case/components/MsMarkDownText";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -48,7 +47,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
result: {},
|
result: {},
|
||||||
from: {
|
form: {
|
||||||
description: ''
|
description: ''
|
||||||
},
|
},
|
||||||
loadCommenItem:true,
|
loadCommenItem:true,
|
||||||
|
@ -103,7 +102,7 @@ export default {
|
||||||
sendComment() {
|
sendComment() {
|
||||||
let comment = {};
|
let comment = {};
|
||||||
comment.caseId = this.caseId;
|
comment.caseId = this.caseId;
|
||||||
comment.description = this.from.description;
|
comment.description = this.form.description;
|
||||||
comment.reviewId = this.reviewId;
|
comment.reviewId = this.reviewId;
|
||||||
comment.status = this.reviewStatus;
|
comment.status = this.reviewStatus;
|
||||||
if (!comment.description) {
|
if (!comment.description) {
|
||||||
|
@ -112,6 +111,7 @@ export default {
|
||||||
}
|
}
|
||||||
this.result = this.$post('/test/case/comment/save', comment, () => {
|
this.result = this.$post('/test/case/comment/save', comment, () => {
|
||||||
this.$success(this.$t('test_track.comment.send_success'));
|
this.$success(this.$t('test_track.comment.send_success'));
|
||||||
|
this.form.description = "";
|
||||||
this.refresh();
|
this.refresh();
|
||||||
if(this.$refs.md){
|
if(this.$refs.md){
|
||||||
this.$refs.md.toolbar_left_click('trash');
|
this.$refs.md.toolbar_left_click('trash');
|
||||||
|
|
Loading…
Reference in New Issue