import {urgent_supervision} from "../../utils/statisticsApi"; Component({ properties: { visible: { type: Boolean, value: false }, detail: { type: Object, value: () => {} }, // event services type: { type: String, value: '', }, id: { type: String, value: '' }, }, data: { content: '' }, methods: { close() { this.triggerEvent('close') }, sure() { console.log(this.data.id,this.id,'this.data.id') urgent_supervision({ type: this.data.type, eventid: this.id, serviceId: this.id, content: this.data.content }).then(({data,code,msg}) => { if (code == 0) { wx.showToast({ title: "提亀成功" }) this.close() } else { wx.showToast({ icon: "none", title: msg }) } }) } } });