From e55255837ea259e2c68f5e0a2d5b24e02bbe8c04 Mon Sep 17 00:00:00 2001 From: maochaoying <925670706@qq.com> Date: Thu, 29 Jun 2023 15:19:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E4=BB=BB=E5=8A=A1=E5=87=86?= =?UTF-8?q?=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/info.js | 7 +++++++ src/components/Publish.vue | 43 ++++++++++++++++++++++++++----------------- src/pages/index.vue | 4 ++-- 3 files changed, 35 insertions(+), 19 deletions(-) diff --git a/src/api/info.js b/src/api/info.js index 07f5ba8..5a6241f 100644 --- a/src/api/info.js +++ b/src/api/info.js @@ -14,6 +14,13 @@ export const coreListApi = () => { }) } +export const coreListByStationIdApi = id => { + return request({ + url: `/core/list/${id}`, + method: 'GET', + }) +} + export const addStationApi = data => { return request({ url: '/station/add', diff --git a/src/components/Publish.vue b/src/components/Publish.vue index 5f81140..ee15a73 100644 --- a/src/components/Publish.vue +++ b/src/components/Publish.vue @@ -28,15 +28,16 @@ class="demo-select-base" clearable filterable + @change="handleStationChange" placeholder="请选择所在核电站" > - {{ item.label }} + {{ item.name }} @@ -49,12 +50,12 @@ placeholder="请选择所在核芯堆" > - {{ item.label }} + {{ item.name }} @@ -88,6 +89,7 @@ diff --git a/src/pages/index.vue b/src/pages/index.vue index b615241..d6183d8 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -106,7 +106,7 @@

用户管理

-