|
|
@ -41,7 +41,8 @@ |
|
|
|
getInspectJobDetail, |
|
|
|
inspectJobSubmit, |
|
|
|
deleteFileById, |
|
|
|
getFileList |
|
|
|
getFileList, |
|
|
|
deleteFileByTable |
|
|
|
} from '@/api/request2.js'; |
|
|
|
import { |
|
|
|
goHome, |
|
|
@ -151,27 +152,17 @@ |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
deleteFileById(id) { |
|
|
|
deleteFileById(id).then(res => { |
|
|
|
|
|
|
|
deleteFileByTable(id) { |
|
|
|
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) { |
|
|
|
subList.forEach(item => { |
|
|
|
this.getFileList(item.id) |
|
|
|
this.deleteFileByTable(item.id) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//接收 |
|
|
|
receive(callback) { |
|
|
|
uni.showLoading({ |
|
|
|