[update] 修改bug80882
This commit is contained in:
+2
-2
@@ -346,12 +346,12 @@ export default {
|
|||||||
const uidGenerator = () => {
|
const uidGenerator = () => {
|
||||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
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 {
|
return {
|
||||||
uid: uidGenerator(),
|
uid: uidGenerator(),
|
||||||
...item
|
...item
|
||||||
}
|
}
|
||||||
})
|
}) : []
|
||||||
this.dataSource = data.inspectContents && data.inspectContents.length > 0 ? data.inspectContents.map(item => {
|
this.dataSource = data.inspectContents && data.inspectContents.length > 0 ? data.inspectContents.map(item => {
|
||||||
return {
|
return {
|
||||||
uid: uidGenerator(),
|
uid: uidGenerator(),
|
||||||
|
|||||||
Reference in New Issue
Block a user