Commit 8bf43e41 authored by 黄奎's avatar 黄奎
parents 80998805 38b30b3f
This diff is collapsed.
......@@ -75,7 +75,7 @@
</div>
<!-- 回复 -->
<el-dialog :title="editTitle" :visible.sync="isShowReplayForm" width="800px">
<el-form label-width="150px" :rules="rules" :model="replayMsg">
<el-form label-width="150px" :rules="rules" :model="replayMsg" @validate="answerTest">
<el-form-item label="咨询用户" class="user">
{{ replayMsg.UserName }}
</el-form-item>
......@@ -198,7 +198,8 @@ export default {
ReplyContent: [
{ required: true, message: "请输入回复内容", trigger: "blur" }
]
}
},
pass: ''
};
},
created() {
......@@ -270,20 +271,26 @@ export default {
},
//设置咨询回复
saveData() {
this.assetsApipost("/api/Assess/SetGoodsReply", this.replayMsg, res => {
if (res.data.resultCode == 1) {
this.isShowReplayForm = false;
this.Success(res.data.message);
this.getList();
} else {
this.Error(res.data.message);
}
});
if (this.pass) {
this.assetsApipost("/api/Assess/SetGoodsReply", this.replayMsg, res => {
if (res.data.resultCode == 1) {
this.isShowReplayForm = false;
this.Success(res.data.message);
this.getList();
} else {
this.Error(res.data.message);
}
});
}
},
//回复验证结果
answerTest(res, pass) {
this.pass = pass
}
}
};
</script>
<style>
<style scoped>
.performanceStatics .content {
background: #fff;
margin-top: 10px;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment