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