From 582d3a646ffbf44562f43ab2e13ede0a2696f0b9 Mon Sep 17 00:00:00 2001
From: maochaoying <925670706@qq.com>
Date: Thu, 29 Jun 2023 15:05:27 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=9F=BA=E6=9C=AC=E4=BF=A1?=
=?UTF-8?q?=E6=81=AF=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env | 2 +-
src/api/info.js | 30 ++++++++
src/components/Nuclear.vue | 184 +++++++++++++++++++++++++++++++++++++++++++--
3 files changed, 210 insertions(+), 6 deletions(-)
diff --git a/.env b/.env
index 08db500..9472ed5 100644
--- a/.env
+++ b/.env
@@ -1 +1 @@
-VITE_BASE_URL=http://127.0.0.1:8899
\ No newline at end of file
+VITE_BASE_URL=http://192.168.1.111:8899
\ No newline at end of file
diff --git a/src/api/info.js b/src/api/info.js
index db1dab8..07f5ba8 100644
--- a/src/api/info.js
+++ b/src/api/info.js
@@ -13,3 +13,33 @@ export const coreListApi = () => {
method: 'GET',
})
}
+
+export const addStationApi = data => {
+ return request({
+ url: '/station/add',
+ method: 'POST',
+ data,
+ })
+}
+
+export const addCoreApi = data => {
+ return request({
+ url: '/core/add',
+ method: 'POST',
+ data,
+ })
+}
+
+export const delStationApi = id => {
+ return request({
+ url: `/station/delete/${id}`,
+ method: 'POST',
+ })
+}
+
+export const delCoreApi = id => {
+ return request({
+ url: `/core/delete/${id}`,
+ method: 'POST',
+ })
+}
diff --git a/src/components/Nuclear.vue b/src/components/Nuclear.vue
index eac118a..78e8708 100644
--- a/src/components/Nuclear.vue
+++ b/src/components/Nuclear.vue
@@ -16,7 +16,34 @@
:onClose="stationClose"
>
- 这是使用插槽定义的对话框内容
+
+
+
+
+
+
+
+
+
+ 提交
+ 重置
+
+
+
@@ -47,7 +74,52 @@
:onClose="coreClose"
>
- 这是使用插槽定义的对话框内容
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+ 提交
+ 重置
+
+
+