diff --git a/src/apps/AppEpidemicSituation/ErrorDetail.vue b/src/apps/AppEpidemicSituation/ErrorDetail.vue index 0220f283..fc88bcf1 100644 --- a/src/apps/AppEpidemicSituation/ErrorDetail.vue +++ b/src/apps/AppEpidemicSituation/ErrorDetail.vue @@ -72,6 +72,7 @@ export default { data: [{ name: '张三' }], addShow: false, content: '', + flag: false, } }, computed: { @@ -81,12 +82,35 @@ export default { onLoad() {}, onShow() {}, methods: { - close() { - this.content = '' + save() { + if (this.flag) return + if (!this.content) { + return this.$u.toast('请输入异常情况记录') + } + + this.$http + .post(`/app/appvillagediscussmessage/addOrUpdate`, { + // content: this.content, + // avatar: this.user.avatar, + // createUserId: this.user.id, + // createUserName: this.user.name, + // discussId: this.id, + }) + .then((res) => { + if (res?.code == 0) { + this.$u.toast('新增记录成功') + this.flag = false + this.content = '' + this.addShow = false + // this.getDetail() + } + }) }, - save() { - console.log(22) + relieveError() {}, + + close() { + this.content = '' }, toAddRecord() { @@ -113,7 +137,7 @@ export default {