epmet 工作端 小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.2 KiB

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
})
}
})
}
}
});