From 62623f636025142fe4731f6fe0b536f93374c892 Mon Sep 17 00:00:00 2001 From: e <2538815847@qq.com> Date: Mon, 1 Apr 2024 17:35:22 +0800 Subject: [PATCH] update --- src/api/enterpriseTopic/listGoods/index.js | 64 +++++++++++++++++-- src/api/enterpriseTopic/personSafety/index.js | 64 +++++++++++++++++-- .../enterpriseTopic/listGoods/screen.vue | 29 +++++++++ .../enterpriseTopic/personSafety/screen.vue | 25 ++++++++ 4 files changed, 174 insertions(+), 8 deletions(-) diff --git a/src/api/enterpriseTopic/listGoods/index.js b/src/api/enterpriseTopic/listGoods/index.js index 5b579a1..3e61c71 100644 --- a/src/api/enterpriseTopic/listGoods/index.js +++ b/src/api/enterpriseTopic/listGoods/index.js @@ -1,9 +1,65 @@ import request from "@/utils/request"; -//专题评估报告详情查询接口 -export function queryListDetails(params) { +//危险化学品占比统计 +export function chemicals() { return request({ - url: "/ThematicEvaluationController/QueryListDetails", + url: "/special/listeditem/chemicals", + method: "get", + }); +} +//列管物品异常列表 +export function facility() { + return request({ + url: "/special/listeditem/facility", + method: "get", + }); +} +//物品使用情况 +export function goodsend() { + return request({ + url: "/special/listeditem/goodsend", + method: "get", + }); +} +//获取枪支记录 +export function nums() { + return request({ + url: "/special/listeditem/nums", + method: "get", + }); +} +//枪支雷达图 +export function gunmanage() { + return request({ + url: "/special/listeditem/gunmanage", method: "post", - params, + }); +} +//放射源种类及数量 +export function radiation() { + return request({ + url: "/special/listeditem/radiation", + method: "get", + }); +} +//放射源使用 +export function radiationuse() { + return request({ + url: "/special/listeditem/radiationuse", + method: "get", + }); +} + +//列管物品异常统计 +export function relatedcompanycount() { + return request({ + url: "/special/listeditem/relatedcompanycount", + method: "get", + }); +} +//放射源运输 +export function transport() { + return request({ + url: "/special/listeditem/transport", + method: "get", }); } diff --git a/src/api/enterpriseTopic/personSafety/index.js b/src/api/enterpriseTopic/personSafety/index.js index 5b579a1..2dbb29e 100644 --- a/src/api/enterpriseTopic/personSafety/index.js +++ b/src/api/enterpriseTopic/personSafety/index.js @@ -1,9 +1,65 @@ import request from "@/utils/request"; -//专题评估报告详情查询接口 -export function queryListDetails(params) { +//流动人口详情 +export function population() { return request({ - url: "/ThematicEvaluationController/QueryListDetails", + url: "/special/personnel/population", method: "post", - params, }); } +//重要岗位详情 +export function emphasis() { + return request({ + url: "/special/personnel/emphasis", + method: "post", + }); +} +//重点人员详情 +export function postkey() { + return request({ + url: "/special/personnel/postkey", + method: "post", + }); +} +//流动人口核查率低企业TOP10 +export function poplutop() { + return request({ + url: "/special/personnel/poplutop", + method: "get", + }); +} +//主页数字统计 +export function nums() { + return request({ + url: "/special/personnel/nums", + method: "get", + }); +} +//获取统计数 +export function peoplenums() { + return request({ + url: "/special/personnel/peoplenums", + method: "post", + }); +} +//大屏统计 +export function personnelnum() { + return request({ + url: "/special/personnel/personnelnum", + method: "get", + }); +} +//流动人员核查率 +export function poplupople() { + return request({ + url: "/special/personnel/poplupople", + method: "get", + }); +} +//重点岗位异常数 +export function posterror() { + return request({ + url: "/special/personnel/posterror", + method: "get", + }); +} + diff --git a/src/views/enterpriseTopic/listGoods/screen.vue b/src/views/enterpriseTopic/listGoods/screen.vue index c8be249..ba79b2a 100644 --- a/src/views/enterpriseTopic/listGoods/screen.vue +++ b/src/views/enterpriseTopic/listGoods/screen.vue @@ -54,6 +54,19 @@ import headWrap from "@/views/home/head.vue"; import lineOne from "@/loveflow/components/echart/line/one.vue"; import barFour from "@/loveflow/components/echart/bar/four.vue"; + +import { + chemicals, + facility, + goodsend, + nums, + gunmanage, + radiation, + radiationuse, + relatedcompanycount, + transport, +} from "@/api/enterpriseTopic/listGoods/index.js"; + export default { components: { headWrap, lineOne, barFour }, data() { @@ -92,6 +105,22 @@ export default { }, }; }, + mounted() { + this.getData(); + }, + methods: { + getData() { + chemicals().then((res) => {}); + facility().then((res) => {}); + goodsend().then((res) => {}); + nums().then((res) => {}); + gunmanage().then((res) => {}); + radiation().then((res) => {}); + radiationuse().then((res) => {}); + relatedcompanycount().then((res) => {}); + transport().then((res) => {}); + }, + }, }; diff --git a/src/views/enterpriseTopic/personSafety/screen.vue b/src/views/enterpriseTopic/personSafety/screen.vue index a18560c..d54f6a3 100644 --- a/src/views/enterpriseTopic/personSafety/screen.vue +++ b/src/views/enterpriseTopic/personSafety/screen.vue @@ -134,6 +134,17 @@ import pNum from "../components/num.vue"; import pieSix from "@/loveflow/components/echart/pie/six.vue"; import dPieOne from "@/loveflow/components/echart/pie/dpieOne.vue"; import barFive from "@/loveflow/components/echart/bar/five.vue"; +import { + population, + emphasis, + postkey, + poplutop, + nums, + peoplenums, + personnelnum, + poplupople, + posterror, +} from "@/api/enterpriseTopic/personSafety/index.js"; export default { components: { headWrap, pCard, pTotal, pNum, pieSix, dPieOne, barFive }, @@ -247,7 +258,21 @@ export default { }, }; }, + mounted() { + this.getData(); + }, methods: { + getData() { + population().then((res) => {}); + emphasis().then((res) => {}); + postkey().then((res) => {}); + poplutop().then((res) => {}); + nums().then((res) => {}); + peoplenums().then((res) => {}); + personnelnum().then((res) => {}); + posterror().then((res) => {}); + poplupople().then((res) => {}); + }, goBack() { this.$router.back(); },