diff --git a/src/views/modules/hengAnShield/inspectionRecord/index.vue b/src/views/modules/hengAnShield/inspectionRecord/index.vue index 6e26bd9b4..b0adf5f8b 100644 --- a/src/views/modules/hengAnShield/inspectionRecord/index.vue +++ b/src/views/modules/hengAnShield/inspectionRecord/index.vue @@ -104,7 +104,7 @@ import dayjs from 'dayjs' import { mapGetters } from 'vuex' import inspectionRecordDialog from '@/views/modules/hengAnShield/inspectionRecord/components/inspectionRecordDialog' -import { requestPost } from "@/js/dai/request"; +import { requestPost, requestDelete } from "@/js/dai/request"; import { Loading } from 'element-ui' let loading // 加载动画 @@ -280,9 +280,8 @@ export default { type: "warning" }) .then(async () => { - const url = "/actual/base/importantTask/delete" - let id = [row.id] - const { data, code, internalMsg } = await requestPost(url, id) + const url = "/actual/base/residentPatrolRecord/delete/" + row.id + const { data, code, internalMsg } = await requestDelete(url) if (code === 0) { this.$message({ type: "success",