|
|
@ -122,7 +122,7 @@ import { |
|
|
|
} from '@/api/task' |
|
|
|
import { getNuclearExcelApi } from '@/api' |
|
|
|
import PathPlan from 'cpns/PathPlan' |
|
|
|
import { checkCanDiyPathApi, pathPlanApi } from '@/api/path' |
|
|
|
import { checkCanDiyPathApi, pathPlanApi, getPlanPathListApi } from '@/api/path' |
|
|
|
import { useAccountStore, useTaskStore, useImageStore } from '@/store' |
|
|
|
import { allOperatorApi } from '@/api/publish' |
|
|
|
import moment from 'moment' |
|
|
@ -449,11 +449,18 @@ export default { |
|
|
|
onConfirm: async ({ e }) => { |
|
|
|
const res = await checkCanDiyPathApi(taskId) |
|
|
|
if (res?.code == 200) { |
|
|
|
// 请求成功后,销毁弹框 |
|
|
|
// 这需要查询原先的路径 进行回显 |
|
|
|
const listRes = await getPlanPathListApi(taskId) |
|
|
|
if (listRes?.code == 200) { |
|
|
|
if (listRes?.data) { |
|
|
|
taskStore.updatePathData(listRes?.data) |
|
|
|
} |
|
|
|
} |
|
|
|
this.pathVisible = true |
|
|
|
} else { |
|
|
|
this.$message.error(res?.msg) |
|
|
|
} |
|
|
|
// 请求成功后,销毁弹框 |
|
|
|
confirmDia.destroy() |
|
|
|
}, |
|
|
|
onClose: ({ e, trigger }) => { |
|
|
|