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.
54 lines
1.2 KiB
54 lines
1.2 KiB
2 years ago
|
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
|
||
|
})
|
||
|
}
|
||
|
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
});
|