|
|
|
@ -191,32 +191,28 @@ export default { |
|
|
|
|
|
|
|
getDetailsData(id) { |
|
|
|
this.loading = true; |
|
|
|
this.$http |
|
|
|
.post("/governance/icEvent/detail", { icEventId: id }) |
|
|
|
.then((res) => { |
|
|
|
const { code, data } = res.data; |
|
|
|
if (code === 0) { |
|
|
|
this.item = data; |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((res) => { |
|
|
|
this.$http.post("/governance/icEvent/detail", { icEventId: id }).then((res) => { |
|
|
|
const { code, data, msg } = res.data; |
|
|
|
if (code === 0) { |
|
|
|
this.item = data; |
|
|
|
} else { |
|
|
|
this.loading = false; |
|
|
|
}); |
|
|
|
this.$message.error(msg); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
getProcessData(id) { |
|
|
|
this.$http |
|
|
|
.post("/governance/icEvent/process", { icEventId: id }) |
|
|
|
.then((res) => { |
|
|
|
const { code, data } = res.data; |
|
|
|
if (code === 0) { |
|
|
|
this.activities = data; |
|
|
|
this.loading = false; |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
this.$http.post("/governance/icEvent/process", { icEventId: id }).then((res) => { |
|
|
|
const { code, data, msg } = res.data; |
|
|
|
if (code === 0) { |
|
|
|
this.activities = data; |
|
|
|
this.loading = false; |
|
|
|
} else { |
|
|
|
this.loading = false; |
|
|
|
}); |
|
|
|
this.$message.error(msg); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
// /governance/icEvent/detail |
|
|
|
|