Browse Source

修改事件更新时,没有传ID的问题

master
luyan 2 years ago
parent
commit
c3f4489938
  1. 5
      src/views/modules/shequzhili/event/cpts/edit.vue

5
src/views/modules/shequzhili/event/cpts/edit.vue

@ -372,7 +372,7 @@ export default {
data() {
return {
formType: "edit", // addeditdetail
id: "",
searchOptions: [],
searchValue: "",
resultList: [],
@ -563,6 +563,7 @@ export default {
syncDetail() {
const { eventDetailData: info } = this;
let obj = {
id: info.icEventId,
gridId: info.gridId, //
reportUserId: info.reportUserId, // ID
name: info.name, //
@ -577,12 +578,10 @@ export default {
address: info.address, //
latitude: info.latitude, //
longitude: info.longitude, //
//
eventType: info.eventType,
};
this.formData = { ...this.formData, ...obj };
console.log("=syncDetail", this.formData);
},
handleChangeCate(obj) {

Loading…
Cancel
Save