coding
This commit is contained in:
parent
50bdd453fb
commit
e7a828c9d6
|
|
@ -81,17 +81,13 @@ export default {
|
|||
component: 'AntOriginSelect',
|
||||
options: {
|
||||
dataSource: () =>
|
||||
postAction('/scenario/resource/', { scenarioId: this.scenarioId }).then((res) => {
|
||||
console.log(res.data, this.modelData.battleSuppliers)
|
||||
return {
|
||||
data: res.data.filter(
|
||||
(item) =>
|
||||
item.resourceType === 5 &&
|
||||
(this.modelData.battleSuppliers || []).findIndex((i) => i.battleResourceId === item.id) === -1
|
||||
),
|
||||
}
|
||||
}),
|
||||
readonly: false,
|
||||
postAction('/scenario/resource/', { scenarioId: this.scenarioId }).then((res) => ({
|
||||
data: res.data.filter(
|
||||
(item) =>
|
||||
item.resourceType === 5 &&
|
||||
(this.modelData.battleSuppliers || []).findIndex((i) => i.battleResourceId === item.id) === -1
|
||||
),
|
||||
})),
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user