background
This commit is contained in:
@@ -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 {
|
||||
|
||||
<style scoped lang="scss">
|
||||
.ErrorDetail {
|
||||
background: #f5f5f5;
|
||||
background: #f3f6f9;
|
||||
padding-bottom: 142px;
|
||||
.top {
|
||||
padding: 32px 52px 40px 48px;
|
||||
@@ -209,7 +233,7 @@ export default {
|
||||
}
|
||||
}
|
||||
.emptyWrap {
|
||||
background: #f5f5f5;
|
||||
background: #f3f6f9;
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user