[update] 修改bug80882

This commit is contained in:
lideqin
2024-01-18 17:43:23 +08:00
parent 59333edeeb
commit 67af417c2b
@@ -346,12 +346,12 @@ export default {
const uidGenerator = () => {
return '-' + parseInt(Math.random() * 10000 + 1, 10)
}
this.drafterDataSource = data.otherDraftUserVOS.map(item => {
this.drafterDataSource = data.otherDraftUserVOS && data.otherDraftUserVOS.length > 0 ? data.otherDraftUserVOS.map(item => {
return {
uid: uidGenerator(),
...item
}
})
}) : []
this.dataSource = data.inspectContents && data.inspectContents.length > 0 ? data.inspectContents.map(item => {
return {
uid: uidGenerator(),