|
|
@ -1,13 +1,10 @@ |
|
|
|
<!-- 巡查计划管理-堤防 --> |
|
|
|
<script> |
|
|
|
import { |
|
|
|
deleteDFInspectionPlan, |
|
|
|
} from "@/api/management"; |
|
|
|
import { |
|
|
|
postYhPlanApprovalReturn, |
|
|
|
} from "@/api/dike"; |
|
|
|
|
|
|
|
import { deleteProjectCheckingPlan, getDikeYhPlanList, postYhPlanApproval } from "@/api/dike"; |
|
|
|
import { delRunDzYhPlan, getDikeYhPlanList, postYhPlanApproval } from "@/api/dike"; |
|
|
|
|
|
|
|
import TopBackTitle from "@/components/TopBackTitle/index.vue"; |
|
|
|
import PlanDetail from "./components/PlanDetail.vue"; |
|
|
@ -132,7 +129,7 @@ export default { |
|
|
|
}, |
|
|
|
// 删除对应巡查项目 |
|
|
|
deleteTableItem(row) { |
|
|
|
deleteDFInspectionPlan(row.id).then((res) => { |
|
|
|
delRunDzYhPlan({id: row.id}).then((res) => { |
|
|
|
this.getTableData(); |
|
|
|
this.$message.success("删除成功"); |
|
|
|
}); |
|
|
@ -183,7 +180,7 @@ export default { |
|
|
|
.then(() => { |
|
|
|
console.log("删除"); |
|
|
|
const ids = this.tableCheckData.map((item) => item.id); |
|
|
|
deleteProjectCheckingPlan(ids.join(",")).then((res) => { |
|
|
|
delRunDzYhPlan({id: ids.join(",")}).then((res) => { |
|
|
|
if (res) { |
|
|
|
this.$message.success("删除成功"); |
|
|
|
this.getTableData(); |
|
|
|