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