From 6c06c5fc1c8e9c6819041d088a06830c1bc22e84 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Tue, 2 Jan 2024 16:38:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0icd=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Home.vue | 11 +- src/components/Sidebar.vue | 4 + src/router/index.js | 8 + src/utils/api/index.js | 77 ++++++ src/views/icdConfig/index.vue | 467 ++++++++++++++++++++++++++++++++++ vue.config.js | 5 +- 6 files changed, 560 insertions(+), 12 deletions(-) create mode 100644 src/views/icdConfig/index.vue diff --git a/src/components/Home.vue b/src/components/Home.vue index be5ccd7c..a2f6ad54 100644 --- a/src/components/Home.vue +++ b/src/components/Home.vue @@ -33,15 +33,8 @@ export default { background-position: center center; .content-box { - position: absolute; - left: 0px; - right: 0; - top: 72px; - bottom: 0; - //padding-bottom: 30px; - -webkit-transition: left 0.3s ease-in-out; - transition: left 0.3s ease-in-out; - // background: @background-color-base; + width: 100%; + height: calc(100% - 72px); .content { width: 100%; height: 100%; diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 76aac5ca..27afb2a8 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -25,6 +25,10 @@ export default { // path: "/systemManagement", // name: "系统管理", // }, + { + path: "/icdConfig", + name: "icd配置", + }, ], }; }, diff --git a/src/router/index.js b/src/router/index.js index f93345a2..ff344049 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -38,6 +38,14 @@ const routes = [ title: "系统管理", }, }, + { + path: "/icdConfig", + component: () => import("../views/icdConfig/index.vue"), + name: "icdConfig", + meta: { + title: "icd配置", + }, + }, ], }, ]; diff --git a/src/utils/api/index.js b/src/utils/api/index.js index 6ba7698d..a3a4e2d0 100644 --- a/src/utils/api/index.js +++ b/src/utils/api/index.js @@ -26,6 +26,83 @@ export function getexportApi(data) { params: data, }); } + +//icd上传文件 +export function icdUploadApi(data) { + return request({ + url: "/icdconfig/upload", + method: "post", + params: data, + headers: { + "Content-Type": "multipart/form-data", // set the content type to multipart/form-data + }, + }); +} +//icd查询全部类型列表 +export function icdListApi(data) { + return request({ + url: "/icdconfig/list", + method: "get", + params: data, + headers: { + "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", + }, + }); +} +//ied查询全部类型列表 +export function iedListApi(data) { + return request({ + url: "/icdconfig/iedList", + method: "get", + params: data, + headers: { + "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", + }, + }); +} +//icd删除 +export function icdDeleteApi(data) { + return request({ + url: "/icdconfig/delete", + method: "post", + params: data, + headers: { + "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", + }, + }); +} +//icd更新类型 +export function icdUpdateApi(data) { + return request({ + url: "/icdconfig/update", + method: "post", + data, + }); +} + +//查询data表名 +export function tableListApi(data) { + return request({ + url: "/icdconfig/tableList", + method: "get", + params: data, + headers: { + "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", + }, + }); +} +//查询data表字段名 +export function colListApi(data) { + return request({ + url: "/icdconfig/colList", + method: "get", + params: data, + headers: { + "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", + }, + }); +} + // export function getexportApi() { // return request({ // url: "/sensor/export", diff --git a/src/views/icdConfig/index.vue b/src/views/icdConfig/index.vue new file mode 100644 index 00000000..97610ade --- /dev/null +++ b/src/views/icdConfig/index.vue @@ -0,0 +1,467 @@ + + + + + 文件上传: + + 选取文件 + + + 上传到服务器 + + + + + {{ item }} + + + + {{ iedNameTitle }} + + + + + + + + + + + + 修改 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vue.config.js b/vue.config.js index 65b48c56..1f38d1a8 100644 --- a/vue.config.js +++ b/vue.config.js @@ -20,8 +20,8 @@ module.exports = defineConfig({ proxy: { "/cac-api": { //表示拦截以/api开头的请求路径 - //target: "http://192.168.50.200:88", //200服务器 - target: "http://dev.xinyingpower.com:40080/", //dell服务器 + target: "http://192.168.1.190:88", //200服务器 + //target: "http://dev.xinyingpower.com:40080/", //dell服务器 changOrigin: true, //是否开启跨域 pathRewrite: { "^/api": "/cac-api", //重写api,把api变成空字符,因为我们真正请求的路径是没有api的 @@ -29,5 +29,4 @@ module.exports = defineConfig({ }, }, }, - assetsInclude: ["**/*.tga"], });
+ {{ item }} +