|
|
@ -40,8 +40,8 @@ |
|
|
|
cancleTakeInspectJob, |
|
|
|
getInspectJobDetail, |
|
|
|
inspectJobSubmit, |
|
|
|
deleteFileById, |
|
|
|
getFileList |
|
|
|
getFileList, |
|
|
|
deleteFileByTable |
|
|
|
} from '@/api/request2.js'; |
|
|
|
import { |
|
|
|
goHome, |
|
|
@ -147,25 +147,15 @@ |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
deleteFileById(id) { |
|
|
|
deleteFileById(id).then(res => { |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
getFileList(id) { |
|
|
|
getFileList("jobInspectDetail", id).then(res => { |
|
|
|
if (res.data) { |
|
|
|
res.data.forEach(res => { |
|
|
|
this.deleteFileById(res.id) |
|
|
|
}) |
|
|
|
} |
|
|
|
deleteFileByTable(id) { |
|
|
|
debugger |
|
|
|
deleteFileByTable("jobInspectDetail", id).then(res=>{ |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
clearPicList(subList) { |
|
|
|
subList.forEach(item => { |
|
|
|
this.getFileList(item.id) |
|
|
|
this.deleteFileByTable(item.id) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|