|
@@ -83,7 +83,7 @@
|
|
|
import { ref, onMounted, nextTick } from 'vue';
|
|
|
import customHeader from '/@/components/vent/customHeader.vue';
|
|
|
import { taskColumns, pagination, taskschemas, taskDetailsColumns, taskManageColumns } from './gasInspect.data';
|
|
|
- import { deleteTeam, getManageTasklist, operateGasCheckTaskDetail, taskDetailsList, teamAdd, teamEdit, teamList } from './gasInspect.api';
|
|
|
+ import { deleteTeamNew, getManageTasklist, operateGasCheckTaskDetail, taskDetailsList, teamAdd, teamEdit, teamList } from './gasInspect.api';
|
|
|
import { BasicTable } from '/@/components/Table';
|
|
|
import { useListPage } from '/@/hooks/system/useListPage';
|
|
|
import { Modal, message } from 'ant-design-vue';
|
|
@@ -217,9 +217,10 @@
|
|
|
}
|
|
|
|
|
|
// 任务删除
|
|
|
- function handleDelete({ id }) {
|
|
|
- deleteTeam({ id }).then(() => {
|
|
|
+ function handleDelete({ id, taskTime }) {
|
|
|
+ deleteTeamNew({ id, taskTime }).then(() => {
|
|
|
message.success('删除成功');
|
|
|
+ tableContext1.reload();
|
|
|
});
|
|
|
}
|
|
|
|