Commit 8bf43e41 authored by 黄奎's avatar 黄奎
parents 80998805 38b30b3f
This diff is collapsed.
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
</div> </div>
<!-- 回复 --> <!-- 回复 -->
<el-dialog :title="editTitle" :visible.sync="isShowReplayForm" width="800px"> <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"> <el-form-item label="咨询用户" class="user">
{{ replayMsg.UserName }} {{ replayMsg.UserName }}
</el-form-item> </el-form-item>
...@@ -198,7 +198,8 @@ export default { ...@@ -198,7 +198,8 @@ export default {
ReplyContent: [ ReplyContent: [
{ required: true, message: "请输入回复内容", trigger: "blur" } { required: true, message: "请输入回复内容", trigger: "blur" }
] ]
} },
pass: ''
}; };
}, },
created() { created() {
...@@ -270,20 +271,26 @@ export default { ...@@ -270,20 +271,26 @@ export default {
}, },
//设置咨询回复 //设置咨询回复
saveData() { saveData() {
this.assetsApipost("/api/Assess/SetGoodsReply", this.replayMsg, res => { if (this.pass) {
if (res.data.resultCode == 1) { this.assetsApipost("/api/Assess/SetGoodsReply", this.replayMsg, res => {
this.isShowReplayForm = false; if (res.data.resultCode == 1) {
this.Success(res.data.message); this.isShowReplayForm = false;
this.getList(); this.Success(res.data.message);
} else { this.getList();
this.Error(res.data.message); } else {
} this.Error(res.data.message);
}); }
});
}
},
//回复验证结果
answerTest(res, pass) {
this.pass = pass
} }
} }
}; };
</script> </script>
<style> <style scoped>
.performanceStatics .content { .performanceStatics .content {
background: #fff; background: #fff;
margin-top: 10px; 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