From c70006ac2709d2e2310c9cce12e870d7e3fa5052 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期三, 23 八月 2023 17:44:17 +0800 Subject: [PATCH] 刷新优化 2023-8-23 --- src/api/home/index.js | 67 +++++++++++++++++++++++++++++++++ 1 files changed, 67 insertions(+), 0 deletions(-) diff --git a/src/api/home/index.js b/src/api/home/index.js index d9d44aa..330066d 100644 --- a/src/api/home/index.js +++ b/src/api/home/index.js @@ -1,4 +1,71 @@ import request from "@/utils/request"; +// 鑾峰彇缃戠粶閰嶇疆 +export const NetworkCard = () => { + return request({ + url: "/v1/config/net", + method: "get", + }); +}; + +export const setworkCard = (data) => { + return request({ + url: "/v1/config/net", + method: "post", + data + }); +}; +// 鑾峰彇鐢熶骇杩涘害 +export const getProgress = (data) => { + return request({ + url: "/v1/plc/productProgress", + method: "get", + data + }); +}; +// 鑾峰彇pLC鍝佺墝 鍒楄〃 +export const getMiniDictList = () => { + return request({ + url: "/v1/plcBrand/list", + method: "get", + }); +}; +// 娣诲姞 pLC鍝佺墝 +export const addMiniDict = () => { + return request({ + url: "/v1/plcBrand/add", + method: "post", + }); +}; +// 鍒犻櫎 pLC鍝佺墝 +export const deleteMiniDict = (data) => { + return request({ + url: `v1/plcBrand/delete/${data.id}`, + + method: "delete", + }); +}; +// 鏇存柊 pLC鍝佺墝 +export const updateMiniDict = () => { + return request({ + url: "/v1/plcBrand/update", + method: "put", + }); +}; +// 鑾峰彇plc +export const getPlc = () => { + return request({ + url: "/v1/config/plc", + method: "get", + }); +}; +export const setPlc = (data) => { + return request({ + url: "/v1/config/plc", + method: "post", + data, + }); +}; +// 璁剧疆plc //鑾峰彇浠诲姟 export const getTaskInfo = (data) => { return request({ -- Gitblit v1.8.0