From e7a828c9d625ed6f4d9a00e67598bc06919ac8ad Mon Sep 17 00:00:00 2001 From: liaoboping <344114999@qq.com> Date: Sat, 20 Sep 2025 10:59:31 +0800 Subject: [PATCH] coding --- src/views/subsystem/scene/components/Jcsx.vue | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/views/subsystem/scene/components/Jcsx.vue b/src/views/subsystem/scene/components/Jcsx.vue index a644973..dc20254 100644 --- a/src/views/subsystem/scene/components/Jcsx.vue +++ b/src/views/subsystem/scene/components/Jcsx.vue @@ -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 + ), + })), }, }, {