Browse Source

旧的12345事件网格问题

feature
是小王呀\24601 4 months ago
parent
commit
e79a60a44a
  1. 9
      src/views/modules/shequzhili/eventOld/cpts/event-info.vue
  2. 5
      src/views/modules/shequzhili/eventOld/eventList.vue

9
src/views/modules/shequzhili/eventOld/cpts/event-info.vue

@ -513,12 +513,15 @@ export default {
this.grid = val.value; this.grid = val.value;
}, },
async handelDispose() { async handelDispose() {
console.log(this.grid,"DSFKDSFJDKS"); console.log(this.$refs.ref_detail.info,"sdf;lsdk");
if(!this.grid){ if(this.$refs.ref_detail.info.gridId){
console.log(this.grid,"DSFKDSFJDKS"); this.grid=this.$refs.ref_detail.info.gridId
}else{
this.$message.error("请选择网格"); this.$message.error("请选择网格");
return return
} }
// console.log(this.grid,"DSFKDSFJDKS");
this.$refs.ref_processinfo_dispose.getProcessInfo(); this.$refs.ref_processinfo_dispose.getProcessInfo();
if (this.$refs.ref_processinfo_dispose.okflag) { if (this.$refs.ref_processinfo_dispose.okflag) {
this.formData.operationType = this.$refs.ref_processinfo_dispose.operationType; this.formData.operationType = this.$refs.ref_processinfo_dispose.operationType;

5
src/views/modules/shequzhili/eventOld/eventList.vue

@ -753,8 +753,9 @@ export default {
}, },
async delEvent(eventId) { async delEvent(eventId) {
const url = "/governance/icEventOld/delete"; const url = "/governance/icEventOld/delete";
let idsArr = [eventId]; const formData = new FormData();
const { data, code, msg } = await requestPost(url, idsArr); formData.append('ids', eventId)
const { data, code, msg } = await requestPost(url, formData);
if (code === 0) { if (code === 0) {
this.$message.success("删除成功!"); this.$message.success("删除成功!");
this.getTableData(); this.getTableData();

Loading…
Cancel
Save