From aaf07187dc053dc74ca98923207432c18b89df16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Thu, 10 Aug 2023 15:43:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9D=A5=E6=BA=90=E3=80=81?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 5 +- .../zongzhi/netSecurity/DataSource/index.js | 53 ++ .../netSecurity/SecurityCheck/index.js | 53 ++ src/assets/styles/diythem.scss | 12 +- src/components/Breadcrumb/index.vue | 6 +- src/router/index.js | 74 +-- src/views/login.vue | 3 +- src/views/netSecurity/DataSource/index.vue | 557 +++++++++++++++++ src/views/netSecurity/SafetyYh/index.vue | 9 + src/views/netSecurity/SecurityCheck/index.vue | 571 ++++++++++++++++++ src/views/tem.vue | 488 ++------------- 11 files changed, 1342 insertions(+), 489 deletions(-) create mode 100644 src/api/zongzhi/netSecurity/DataSource/index.js create mode 100644 src/api/zongzhi/netSecurity/SecurityCheck/index.js create mode 100644 src/views/netSecurity/DataSource/index.vue create mode 100644 src/views/netSecurity/SafetyYh/index.vue create mode 100644 src/views/netSecurity/SecurityCheck/index.vue diff --git a/.env.development b/.env.development index 9829258..19487bd 100644 --- a/.env.development +++ b/.env.development @@ -5,10 +5,13 @@ VUE_APP_TITLE = 数据中台系统 ENV = 'development' # 若依接口 -VUE_APP_BASE_API = 'https://vue.ruoyi.vip/prod-api' +# VUE_APP_BASE_API = 'https://vue.ruoyi.vip/prod-api' #公司接口 # VUE_APP_BASE_API = 'http://39.101.188.84:9027' +#局域网 +VUE_APP_BASE_API = 'http://localhost:9027' + # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/api/zongzhi/netSecurity/DataSource/index.js b/src/api/zongzhi/netSecurity/DataSource/index.js new file mode 100644 index 0000000..95712cf --- /dev/null +++ b/src/api/zongzhi/netSecurity/DataSource/index.js @@ -0,0 +1,53 @@ +import request from "@/utils/request"; + +// 查询数据来源列表 +export function listSource(query) { + return request({ + url: "/zongzhi/source/list", + method: "get", + params: query, + }); +} + +// 查询数据来源详细 +export function getSource(id) { + return request({ + url: "/zongzhi/source/" + id, + method: "get", + }); +} + +// 新增数据来源 +export function addSource(data) { + return request({ + url: "/zongzhi/source", + method: "post", + data: data, + }); +} + +// 修改数据来源 +export function updateSource(data) { + return request({ + url: "/zongzhi/source", + method: "put", + data: data, + }); +} + +// 删除数据来源 +export function delSource(id) { + return request({ + url: "/zongzhi/source/" + id, + method: "delete", + }); +} + +// 导出数据来源 +export function exportSource(data) { + return request({ + url: "/zongzhi/source/export", + method: "post", + data, + }); +} diff --git a/src/api/zongzhi/netSecurity/SecurityCheck/index.js b/src/api/zongzhi/netSecurity/SecurityCheck/index.js new file mode 100644 index 0000000..31e34ca --- /dev/null +++ b/src/api/zongzhi/netSecurity/SecurityCheck/index.js @@ -0,0 +1,53 @@ +import request from "@/utils/request"; + +// 查询安全检测列表 +export function listDetection(query) { + return request({ + url: "/zongzhi/detection/list", + method: "get", + params: query, + }); +} + +// 查询安全检测详细 +export function getDetection(id) { + return request({ + url: "/zongzhi/detection/" + id, + method: "get", + }); +} + +// 新增安全检测 +export function addDetection(data) { + return request({ + url: "/zongzhi/detection", + method: "post", + data: data, + }); +} + +// 修改安全检测 +export function updateDetection(data) { + return request({ + url: "/zongzhi/detection", + method: "put", + data: data, + }); +} + +// 删除安全检测 +export function delDetection(id) { + return request({ + url: "/zongzhi/detection/" + id, + method: "delete", + }); +} + +// 导出安全检测 +export function exportDetection(data) { + return request({ + url: "/zongzhi/detection/export", + method: "post", + data, + }); +} diff --git a/src/assets/styles/diythem.scss b/src/assets/styles/diythem.scss index edee0d6..2e369b9 100644 --- a/src/assets/styles/diythem.scss +++ b/src/assets/styles/diythem.scss @@ -152,9 +152,13 @@ justify-content: center; } .pagination-container { - // position: relative; - margin-bottom: 0px !important; - margin-top: 7px !important; - padding: 0 !important; + // position: relative; + margin-bottom: 0px !important; + margin-top: 7px !important; + padding: 0 !important; +} +// 详情 +.desLable { + width: 180px !important; } diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index 1696f54..9ed9418 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -34,9 +34,9 @@ export default { let matched = this.$route.matched.filter(item => item.meta && item.meta.title) const first = matched[0] - if (!this.isDashboard(first)) { - matched = [{ path: '/index', meta: { title: '首页' }}].concat(matched) - } + // if (!this.isDashboard(first)) { + // matched = [{ path: '/index', meta: { title: '首页' }}].concat(matched) + // } this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false) }, diff --git a/src/router/index.js b/src/router/index.js index 0743b26..f353d43 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -31,48 +31,48 @@ import Layout from '@/layout' // 公共路由 export const constantRoutes = [ { - path: '/redirect', + path: "/redirect", component: Layout, hidden: true, children: [ { - path: '/redirect/:path(.*)', - component: () => import('@/views/redirect') - } - ] + path: "/redirect/:path(.*)", + component: () => import("@/views/redirect"), + }, + ], }, { - path: '/login', - component: () => import('@/views/login'), - hidden: true + path: "/login", + component: () => import("@/views/login"), + hidden: true, }, { - path: '/register', - component: () => import('@/views/register'), - hidden: true + path: "/register", + component: () => import("@/views/register"), + hidden: true, }, { - path: '/404', - component: () => import('@/views/error/404'), - hidden: true + path: "/404", + component: () => import("@/views/error/404"), + hidden: true, }, { - path: '/401', - component: () => import('@/views/error/401'), - hidden: true + path: "/401", + component: () => import("@/views/error/401"), + hidden: true, }, { - path: '', + path: "", component: Layout, - redirect: 'index', - children: [ - { - path: 'index', - component: () => import('@/views/index'), - name: 'Index', - meta: { title: '首页', icon: 'dashboard', affix: true } - } - ] + redirect: "", + // children: [ + // { + // path: 'index', + // component: () => import('@/views/index'), + // name: 'Index', + // meta: { title: '网络安全', icon: 'dashboard', affix: true } + // } + // ] }, // { // path: '/index', @@ -81,20 +81,20 @@ export const constantRoutes = [ // meta: { title: '首页', icon: 'dashboard', affix: true } // }, { - path: '/user', + path: "/user", component: Layout, hidden: true, - redirect: 'noredirect', + redirect: "noredirect", children: [ { - path: 'profile', - component: () => import('@/views/system/user/profile/index'), - name: 'Profile', - meta: { title: '个人中心', icon: 'user' } - } - ] - } -] + path: "profile", + component: () => import("@/views/system/user/profile/index"), + name: "Profile", + meta: { title: "个人中心", icon: "user" }, + }, + ], + }, +]; // 动态路由,基于用户权限动态去加载 export const dynamicRoutes = [ diff --git a/src/views/login.vue b/src/views/login.vue index 3df43da..d21fc13 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -98,7 +98,8 @@ export default { watch: { $route: { handler: function(route) { - this.redirect = route.query && route.query.redirect; + this.redirect = '/netSecurity/DataSource'; + // this.redirect = route.query && route.query.redirect; }, immediate: true } diff --git a/src/views/netSecurity/DataSource/index.vue b/src/views/netSecurity/DataSource/index.vue new file mode 100644 index 0000000..9eed590 --- /dev/null +++ b/src/views/netSecurity/DataSource/index.vue @@ -0,0 +1,557 @@ + + + + + diff --git a/src/views/netSecurity/SafetyYh/index.vue b/src/views/netSecurity/SafetyYh/index.vue new file mode 100644 index 0000000..9e66ddf --- /dev/null +++ b/src/views/netSecurity/SafetyYh/index.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/netSecurity/SecurityCheck/index.vue b/src/views/netSecurity/SecurityCheck/index.vue new file mode 100644 index 0000000..42d7353 --- /dev/null +++ b/src/views/netSecurity/SecurityCheck/index.vue @@ -0,0 +1,571 @@ + + + + + diff --git a/src/views/tem.vue b/src/views/tem.vue index 2610df5..54c8ca6 100644 --- a/src/views/tem.vue +++ b/src/views/tem.vue @@ -2,14 +2,8 @@
- - - + > + 搜索 + 重置
- 新增 - 新增 + 导出
- - - - - - - - + @@ -98,184 +64,25 @@ @pagination="getList" > + -
{{ dialogTitle }}
+
{{ title }}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -285,245 +92,40 @@ append-to-body custom-class="dialog-box" > -
{{ infoTitel }}
-
-
-
园区名称
-
-
归属地
-
-
-
-
园区地址
-
-
-
-
楼幢数量(幢)
-
-
企业数量(家)
-
-
-
-
员工总人数(人)
-
-
占地面积(m²)
-
-
-
-
占地面积(亩)
-
-
总建筑面积(m²)
-
-
-
-
出租面积(m²)
-
-
自用面积(m²)
-
-
-
-
年租金总额(万元)
-
-
平均月租金单价(元/m²/月)
-
-
-
-
土地证面积(亩)
-
-
无证面积(亩)
-
-
-
-
房产证面积(m²)
-
-
无证面积(m²)
-
-
-
-
年总税收(万元)
-
-
亩均税收(万元/千m²)
-
-
-
+
{{ infoTitle }}
+ +
- +