diff --git a/src/api/enterpriseTopic/antiAttack/index.js b/src/api/enterpriseTopic/antiAttack/index.js index 5b579a1..0ad55ca 100644 --- a/src/api/enterpriseTopic/antiAttack/index.js +++ b/src/api/enterpriseTopic/antiAttack/index.js @@ -1,9 +1,50 @@ import request from "@/utils/request"; -//专题评估报告详情查询接口 -export function queryListDetails(params) { +//人防,物防,技防 +export function alldefense() { return request({ - url: "/ThematicEvaluationController/QueryListDetails", + url: "/special/defenses/alldefense", method: "post", - params, + }); +} +//反恐目标单位检查数据 +export function antiterrorism() { + return request({ + url: "/special/defenses/antiterrorism", + method: "get", + }); +} +//防攻击列表 +export function defenselist() { + return request({ + url: "/special/defenses/defenselist", + method: "post", + }); +} +//应急预案制定制定异常分析 +export function emergency() { + return request({ + url: "/special/defenses/emergency", + method: "get", + }); +} +//企业隐患分析 +export function hiddentrouble() { + return request({ + url: "/special/defenses/hiddentrouble", + method: "get", + }); +} +//重点人员出入特定区域次数排行 +export function inoutranking() { + return request({ + url: "/special/defenses/inoutranking", + method: "get", + }); +} +//重点人员分类排行 +export function ranking() { + return request({ + url: "/special/defenses/ranking", + method: "get", }); } diff --git a/src/api/enterpriseTopic/dangerTransport/index.js b/src/api/enterpriseTopic/dangerTransport/index.js index 5b579a1..867262b 100644 --- a/src/api/enterpriseTopic/dangerTransport/index.js +++ b/src/api/enterpriseTopic/dangerTransport/index.js @@ -1,9 +1,29 @@ import request from "@/utils/request"; -//专题评估报告详情查询接口 -export function queryListDetails(params) { +//车辆详情 +export function vehicledetail() { return request({ - url: "/ThematicEvaluationController/QueryListDetails", + url: "/special/vehicle/vehicledetail", method: "post", - params, + }); +} +//车辆的违规信息统计 +export function violationdetail() { + return request({ + url: "/special/vehicle/violationdetail", + method: "post", + }); +} +//车辆的违规信息统计 +export function violations() { + return request({ + url: "/special/vehicle/violations", + method: "post", + }); +} +//获取统计数 +export function nums() { + return request({ + url: "/special/vehicle/nums", + method: "get", }); } diff --git a/src/api/enterpriseTopic/inSecurity/index.js b/src/api/enterpriseTopic/inSecurity/index.js index 5b579a1..6b2ba24 100644 --- a/src/api/enterpriseTopic/inSecurity/index.js +++ b/src/api/enterpriseTopic/inSecurity/index.js @@ -1,9 +1,72 @@ import request from "@/utils/request"; -//专题评估报告详情查询接口 -export function queryListDetails(params) { +//异常信息 +export function exceptioninfo() { return request({ - url: "/ThematicEvaluationController/QueryListDetails", + url: "/special/peace/exceptioninfo", method: "post", - params, }); } +//重要岗位详情 +export function postdetail() { + return request({ + url: "/special/peace/postdetail", + method: "post", + }); +} +//案件信息 +export function caseinfo() { + return request({ + url: "/special/peace/caseinfo", + method: "post", + }); +} +//矛盾纠纷 +export function contradiction() { + return request({ + url: "/special/peace/contradiction", + method: "post", + }); +} +//劳资纠纷 +export function labour() { + return request({ + url: "/special/peace/labour", + method: "post", + }); +} +//内部治安列表 +export function peacelist() { + return request({ + url: "/special/peace/peacelist", + method: "post", + }); +} +//原材料被盗 +export function steal() { + return request({ + url: "/special/peace/steal", + method: "post", + }); +} +//企业三防以及特种设备数据 +export function vkey() { + return request({ + url: "/special/peace/visit/key", + method: "post", + }); +} +//内部治安统计 +export function peacenums() { + return request({ + url: "/special/peace/peacenums", + method: "get", + }); +} +//数据统计 +export function statistics() { + return request({ + url: "/special/peace/statistics", + method: "get", + }); +} + diff --git a/src/views/enterpriseTopic/antiAttack/index.vue b/src/views/enterpriseTopic/antiAttack/index.vue index 6535d0b..c4d0f26 100644 --- a/src/views/enterpriseTopic/antiAttack/index.vue +++ b/src/views/enterpriseTopic/antiAttack/index.vue @@ -192,6 +192,16 @@ import pieWrap from "./pie.vue"; import barWrap from "./bar.vue"; import dpie from "./dpie.vue"; +import { + alldefense, + antiterrorism, + defenselist, + emergency, + hiddentrouble, + inoutranking, + ranking, +} from "@/api/enterpriseTopic/antiAttack/index.js"; + export default { components: { colWrap, @@ -285,31 +295,11 @@ export default { ], tmlObj: { - data: [ - { name: "石化工业园区周边1", value: 1123 }, - { name: "石化工业园区周边2", value: 808 }, - { name: "石化工业园区周边3", value: 703 }, - { name: "石化工业园区周边4", value: 613 }, - { name: "石化工业园区周边5", value: 433 }, - { name: "石化工业园区周边6", value: 333 }, - { name: "石化工业园区周边7", value: 233 }, - { name: "石化工业园区周边8", value: 133 }, - { name: "石化工业园区周边9", value: 533 }, - { name: "石化工业园区周边10", value: 733 }, - ], + data: [], color: ["#FFDE9C", "#0E9FF7"], }, tmrObj: { - data: [ - { name: "重性精神病人", value: 123 }, - { name: "非访人员", value: 808 }, - { name: "退役重点人员", value: 703 }, - { name: "个人极端人员", value: 613 }, - { name: "前科人员", value: 933 }, - { name: "家暴人员", value: 613 }, - { name: "酗酒人员", value: 433 }, - { name: "其他重点人员", value: 333 }, - ], + data: [], color: ["#fac508", "#ee8b56"], }, @@ -370,16 +360,16 @@ export default { data: [ { name: "无隐患企业家", - value: 900, - rate: "90%", + value: 0, + rate: 0, itemStyle: { color: "#2B82F3", }, }, { name: "安全隐患企业", - value: 100, - rate: "10%", + value: 0, + rate: 0, itemStyle: { color: "#E15A4E", }, @@ -462,7 +452,53 @@ export default { ], }; }, + mounted() { + this.getData(); + }, methods: { + getData() { + alldefense().then((res) => {}); + antiterrorism().then((res) => {}); + defenselist().then((res) => {}); + emergency().then((res) => {}); + hiddentrouble().then((res) => { + if (res.code == 200) { + let data = res.data || {}; + this.mlObj.data = []; + Object.keys(data).forEach((key) => { + if (key.indexOf("无隐患") > -1) { + this.trObj.data[0]["value"] = data[key]; + } + }); + } + }); + inoutranking().then((res) => { + if (res.code == 200) { + let data = res.data || {}; + this.tmlObj.data = []; + Object.keys(data).forEach((key) => { + if (key != "count") { + this.tmlObj.data.push({ + name: key, + value: data[key], + }); + } + }); + } + }); + ranking().then((res) => { + if (res.code == 200) { + let data = res.data || {}; + this.tmrObj.data = []; + Object.keys(data).forEach((key) => { + this.tmrObj.data.push({ + name: key, + value: data[key], + }); + }); + } + }); + }, gotoPage(path, val) { this.$router.push({ path: path, diff --git a/src/views/enterpriseTopic/components/tableCustom.vue b/src/views/enterpriseTopic/components/tableCustom.vue index 51f2ae8..23aec0d 100644 --- a/src/views/enterpriseTopic/components/tableCustom.vue +++ b/src/views/enterpriseTopic/components/tableCustom.vue @@ -35,7 +35,6 @@ :tableData="dataSource" :columns="column" rowKey="id" - :pagination="false" @pageSizeChange="handlePageSizeChange" @currentPageChange="handleCurrentPageChange" > diff --git a/src/views/enterpriseTopic/dangerTransport/index.vue b/src/views/enterpriseTopic/dangerTransport/index.vue index f7e17e6..1605328 100644 --- a/src/views/enterpriseTopic/dangerTransport/index.vue +++ b/src/views/enterpriseTopic/dangerTransport/index.vue @@ -22,8 +22,8 @@ @@ -46,35 +46,124 @@ >
-
{{ item.car }}
+
{{ item.licensePlate }}
车型: - {{ item.type }} + {{ item.vehicleType }}
危化品类别: - {{ item.wType }} + {{ item.dangerousGoodsCategory }}
-
{{ item.cmp }}
+
{{ item.affiliatedCompany }}
- +
- - + +
-
{{ info.name }}
-
({{ info.total }})
+
车辆超载
+
({{ item.overloadedTimes }})
-
+ + +
+ + +
+
+
车辆闯禁
+
({{ item.violationTimes }})
+
+
+ +
+ + +
+
+
车辆超速
+
({{ item.speedingTimes }})
+
+
+ +
+ + +
+
+
疲劳驾驶
+
({{ item.fatigueDrivingTimes }})
+
+
+ +
+ + +
+
+
未按车道行驶
+
({{ item.laneViolationTimes }})
+
+
+ +
+ + +
+
+
车辆异常驻留
+
({{ item.abnormalResidenceTimes }})
+
+
+ +
+ + +
+
+
GPS离线
+
({{ item.gpsOfflineTimes }})
+
+
+ +
+ + +
+
+
交通事故
+
({{ item.trafficAccidentTimes }})
+
+
+
@@ -95,131 +184,42 @@