1378 lines
28 KiB
Vue
1378 lines
28 KiB
Vue
<template>
|
|
<div class="political-outlook">
|
|
<div class="content">
|
|
<div class="content-box">
|
|
<div class="contentTop">
|
|
<div class="ctHead">
|
|
<div>按分包单位排名</div>
|
|
</div>
|
|
<div class="ctContent" style="position: relative">
|
|
<div v-show="dataList1.length > 0" id="echartsSafe" ref="echarts1" style="width: 100%; height: 100%"></div>
|
|
<div class="notoDta" style="width: 50%" v-if="dataList1.length == 0">
|
|
<img src="@/assets/images/noData.png" alt="" />
|
|
<p>暂无数据</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="contentTop">
|
|
<div class="ctHead">
|
|
<div>按责任区域排名</div>
|
|
</div>
|
|
<div class="ctContent" style="position: relative">
|
|
<div id="echartsSafe" v-show="dataList2.length > 0" ref="echarts2" style="width: 100%; height: 100%"></div>
|
|
<div class="notoDta" style="width: 50%" v-if="dataList2.length == 0">
|
|
<img src="@/assets/images/noData.png" alt="" />
|
|
<p>暂无数据</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="contentTop">
|
|
<div class="ctHead">
|
|
<div>安全隐患类型分析</div>
|
|
</div>
|
|
<div class="ctContent">
|
|
<div id="echartsSafe" ref="echarts3" style="width: 100%; height: 100%"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="table-one">
|
|
<div class="tabList">
|
|
<div>序号</div>
|
|
<div>状态</div>
|
|
<div>隐患级别</div>
|
|
<div>隐患描述及要求</div>
|
|
<div>整改时限</div>
|
|
<div>检查人</div>
|
|
<div>检查时间</div>
|
|
<div>责任人</div>
|
|
<div>分包单位</div>
|
|
<div>操作</div>
|
|
</div>
|
|
<el-scrollbar class="listBox" ref="refScrollbar">
|
|
<div v-for="(item, index) in partyMemberList" class="listStyle" :key="item.id">
|
|
<div>{{ index + 1 }}</div>
|
|
<div>{{ statusTypeList.find(ele => ele.id == item.status)?.title }}{{ item.overTime ? "(超期)" : "" }}</div>
|
|
<div :style="`color:${classColorList[props.majorInfo?.enumType - 1]}`">{{ props.majorInfo?.title.substr(0, 2) }}</div>
|
|
<div style="white-space: initial">
|
|
<div style="width: 100%" :style="`white-space: ${item.whiteSpace ? 'inherit' : 'nowrap'}`">
|
|
{{ item.problemDescription }}{{ item.remark }}
|
|
</div>
|
|
<div style="width: 100%; color: #479dc2" @click="item.whiteSpace = !item.whiteSpace">
|
|
{{ item.whiteSpace ? "收起全部" : "展开全部" }}
|
|
</div>
|
|
</div>
|
|
<div>{{ item.changeLimitTime }}</div>
|
|
<div>{{ item.inspectManName }}</div>
|
|
<div>{{ item.inspectTime }}</div>
|
|
|
|
<div>{{ item.changeName }}</div>
|
|
<div>{{ item.enterpriseName }}</div>
|
|
<div>
|
|
<el-button type="primary" @click="onSupervise(item)">督办</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="notoDta" v-if="partyMemberList.length == 0">
|
|
<img src="@/assets/images/noData.png" alt="" />
|
|
<p>暂无数据</p>
|
|
</div>
|
|
</el-scrollbar>
|
|
<el-pagination
|
|
v-if="partyMemberList.length != 0"
|
|
background
|
|
:page-size="10"
|
|
style="justify-content: center"
|
|
@current-change="onCurrentChange"
|
|
layout="prev, pager, next"
|
|
:total="total"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref, onMounted, defineProps, watch } from "vue";
|
|
import { GlobalStore } from "@/stores";
|
|
import { getCompanyDataList, getMemberInfoList } from "@/api/modules/labor";
|
|
import type { TabsPaneContext } from "element-plus";
|
|
import {
|
|
getStatsByEnterpriseApi,
|
|
getCountQualityInspectionRecordRegionApi,
|
|
getStatsDangerTypeApi,
|
|
getXzSecurityQualitylnspectionRecordlistApi,
|
|
getXzSecurityQualitylnspectionRecordSuperviseApi
|
|
} from "@/api/modules/projectOverview";
|
|
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
|
import * as echarts from "echarts";
|
|
const echartsTest = ref();
|
|
|
|
const props = defineProps({
|
|
tip: String,
|
|
majorInfo: {
|
|
type: Object
|
|
}
|
|
});
|
|
|
|
const statusTypeList = [
|
|
{ id: 2, title: "待整改" },
|
|
{ id: 3, title: "待复查" },
|
|
{ id: 4, title: "待核验" },
|
|
{ id: 5, title: "合格" },
|
|
{ id: 6, title: "已撤回" }
|
|
];
|
|
|
|
let questionTotal = ref(0 as number | string);
|
|
const echarts1 = ref(null);
|
|
const echarts2 = ref(null);
|
|
const echarts3 = ref(null);
|
|
const dataList1 = ref([
|
|
{
|
|
enterpriseName: "",
|
|
rectifiedNum: "",
|
|
totalNum: ""
|
|
}
|
|
]);
|
|
const dataList2 = ref([
|
|
{
|
|
x: "",
|
|
y: ""
|
|
}
|
|
]);
|
|
const dataList3 = ref([
|
|
{
|
|
value: 30,
|
|
show: true,
|
|
name: "重大隐患",
|
|
itemStyle: {
|
|
normal: {
|
|
color: "#1EF1FF",
|
|
borderWidth: 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
value: 70,
|
|
show: true,
|
|
name: "一般隐患",
|
|
itemStyle: {
|
|
normal: {
|
|
color: "#00A0E9",
|
|
borderWidth: 20
|
|
}
|
|
}
|
|
}
|
|
]);
|
|
|
|
const classColorList = ref(["#EC6266", "#6375C7", "#038cf5", "#01d6f4"]);
|
|
|
|
const store = GlobalStore();
|
|
|
|
const BASEURL = import.meta.env.VITE_API_URL;
|
|
const dateTime = ref(null);
|
|
const calendarVal = ref(new Date());
|
|
const activeName = ref("first");
|
|
const activeIndex = ref("1" as any);
|
|
const onlineWorkList = ref([
|
|
{ name: "在职", value: 1 },
|
|
{ name: "离职", value: 2 }
|
|
]);
|
|
const enterpriseListData = ref([] as any);
|
|
const memberTypeList = ref([
|
|
{ name: "劳务人员", value: 1 },
|
|
{ name: "管理人员", value: 2 },
|
|
{ name: "临时人员", value: 3 }
|
|
]);
|
|
const alarmTypeList = ref(["报警", "预警"]);
|
|
let pageNo = ref(1 as any);
|
|
let moreScroll = ref(true as any);
|
|
const refScrollbar = ref(null as any); // 绑定到滚动的盒子上
|
|
const deviceList = ref([] as any); // 设备列表
|
|
const searchForm = ref({
|
|
memberType: "",
|
|
belongCompany: "",
|
|
workState: "",
|
|
name: "",
|
|
idCard: ""
|
|
});
|
|
|
|
const partyMemberList = ref([
|
|
{
|
|
id: "1",
|
|
name: "状态(待整改超期)",
|
|
type: "重大",
|
|
contont: "会判啊圣诞快乐家里的撒",
|
|
createTime: "2024-5-10 14:14",
|
|
userName: "张三",
|
|
updateTime: "2024-5-11 14:14",
|
|
userName2: "李四",
|
|
company: "湖南建筑有限公司"
|
|
},
|
|
{
|
|
id: "1",
|
|
name: "状态(待整改超期)",
|
|
type: "重大",
|
|
contont: "会判啊圣诞快乐家里的撒",
|
|
createTime: "2024-5-10 14:14",
|
|
userName: "张三",
|
|
updateTime: "2024-5-11 14:14",
|
|
userName2: "李四",
|
|
company: "湖南建筑有限公司"
|
|
}
|
|
] as any);
|
|
const handleClick = (tab: TabsPaneContext, event: Event) => {
|
|
activeIndex.value = tab.index;
|
|
};
|
|
//获取企业列表
|
|
const getCompanyList = async () => {
|
|
let data = {
|
|
projectSn: store.sn,
|
|
enterpriseName: "",
|
|
userEnterpriseId: store.userInfo?.userEnterpriseId
|
|
};
|
|
const res: any = await getCompanyDataList(data);
|
|
if (res.code == 200) {
|
|
enterpriseListData.value = res.result;
|
|
}
|
|
};
|
|
//获取数据
|
|
const getMemberCountList = async (tip: any) => {
|
|
let requestData: any = {
|
|
projectSn: store.sn,
|
|
personType: searchForm.value.memberType, //人员类型
|
|
enterpriseId: searchForm.value.belongCompany, //所属企业
|
|
inserviceType: searchForm.value.workState, //在职状态
|
|
idCard: searchForm.value.idCard, //身份证号
|
|
workerName: searchForm.value.name, //姓名
|
|
pageNo: tip == "search" ? 1 : pageNo.value,
|
|
pageSize: 10
|
|
};
|
|
if (props.tip == "实时") {
|
|
requestData.presence = 1;
|
|
} else if (props.tip == "日累积") {
|
|
requestData.attendance = 1;
|
|
} else {
|
|
requestData.inserviceType = 1;
|
|
}
|
|
const res: any = await getMemberInfoList(requestData);
|
|
if (tip == "more") {
|
|
partyMemberList.value = partyMemberList.value.concat(res.result.records);
|
|
} else {
|
|
partyMemberList.value = res.result.records;
|
|
}
|
|
// 为图片拼接IP
|
|
// partyMemberList.value.map((item:any) => {
|
|
// item.fieldAcquisitionUrl = BASEURL + '/image/' + item.fieldAcquisitionUrl
|
|
// })
|
|
if (res.result.pages == pageNo.value) {
|
|
moreScroll.value = false;
|
|
} else {
|
|
pageNo.value = pageNo.value + 1;
|
|
}
|
|
};
|
|
|
|
function Pie() {
|
|
let dataArr = [];
|
|
for (var i = 0; i < 150; i++) {
|
|
if (i % 2 === 0) {
|
|
dataArr.push({
|
|
name: (i + 1).toString(),
|
|
value: 10,
|
|
itemStyle: {
|
|
normal: {
|
|
color: "#7cf4f1",
|
|
borderWidth: 0,
|
|
borderColor: "#7f6546"
|
|
}
|
|
}
|
|
});
|
|
} else {
|
|
dataArr.push({
|
|
name: (i + 1).toString(),
|
|
value: 10,
|
|
itemStyle: {
|
|
normal: {
|
|
color: "rgba(0,0,0,0)",
|
|
borderWidth: 0,
|
|
borderColor: "rgba(0,0,0,0)"
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
return dataArr;
|
|
}
|
|
|
|
function drawEchart1() {
|
|
let echartsTest = echarts.init(echarts1.value);
|
|
let option = {
|
|
tooltip: {
|
|
trigger: "axis",
|
|
axisPointer: {
|
|
// 坐标轴指示器,鼠标放上时变阴影,而不是线
|
|
type: "shadow" // 默认为直线,可选为:'line' | 'shadow'
|
|
}
|
|
},
|
|
xAxis: {
|
|
type: "category",
|
|
data: dataList1.value.map(item => item.enterpriseName),
|
|
axisLabel: {
|
|
color: "#fff",
|
|
formatter: function (params: any) {
|
|
var val = "";
|
|
if (params.length > 4) {
|
|
val = params.substr(0, 4) + "...";
|
|
return val;
|
|
} else {
|
|
return params;
|
|
}
|
|
}
|
|
},
|
|
axisTick: {
|
|
// 轴刻度
|
|
show: false,
|
|
lineStyle: {
|
|
color: "#112F66"
|
|
}
|
|
},
|
|
axisLine: {
|
|
show: true,
|
|
|
|
lineStyle: {
|
|
color: "#112F66"
|
|
}
|
|
},
|
|
splitLine: {
|
|
lineStyle: {
|
|
color: "#112F66"
|
|
}
|
|
}
|
|
},
|
|
yAxis: {
|
|
type: "value",
|
|
axisLabel: {
|
|
color: "#fff"
|
|
},
|
|
axisTick: {
|
|
// 轴刻度
|
|
show: true,
|
|
color: "#112F66"
|
|
},
|
|
axisLine: {
|
|
show: true,
|
|
// 轴线
|
|
lineStyle: {
|
|
color: "#112F66"
|
|
}
|
|
},
|
|
splitLine: {
|
|
lineStyle: {
|
|
color: "#112F66"
|
|
}
|
|
}
|
|
},
|
|
grid: {
|
|
left: "3%",
|
|
right: "5%",
|
|
bottom: "3%",
|
|
containLabel: true
|
|
},
|
|
series: [
|
|
{
|
|
data: dataList1.value.map(item => item.totalNum),
|
|
type: "bar",
|
|
barWidth: "20%",
|
|
itemStyle: {
|
|
color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
|
|
{
|
|
offset: 0,
|
|
color: "#80f7ea"
|
|
},
|
|
{
|
|
offset: 1,
|
|
color: "#366ef3"
|
|
}
|
|
])
|
|
}
|
|
}
|
|
]
|
|
};
|
|
echartsTest.setOption(option, true);
|
|
window.addEventListener("resize", () => {
|
|
echartsTest.resize();
|
|
});
|
|
}
|
|
|
|
function drawEchart2() {
|
|
let ageChart = echarts.init(echarts2.value);
|
|
|
|
var data = dataList2.value.map(item => {
|
|
return {
|
|
code: item.x,
|
|
fundPost: item.y
|
|
};
|
|
});
|
|
const dataCountMax = data.sort((a: any, b: any) => parseInt(a.fundPost) - parseInt(b.fundPost));
|
|
let attaData = [] as any;
|
|
let attaName = [] as any;
|
|
let topName = [] as any;
|
|
data.forEach((it, index) => {
|
|
attaData[index] = parseFloat(it.fundPost).toFixed(2);
|
|
attaName[index] = it.fundPost;
|
|
topName[index] = `${it.code}`;
|
|
});
|
|
var salvProMax = []; //背景按最大值
|
|
for (let i = 0; i < attaData.length; i++) {
|
|
salvProMax.push(dataCountMax[dataCountMax.length - 1].fundPost + 5);
|
|
}
|
|
function attackSourcesDataFmt(sData: any) {
|
|
var sss = [] as any;
|
|
sData.forEach(function (item: any, i: number) {
|
|
let itemStyle = {
|
|
color: "#0E90E5"
|
|
};
|
|
sss.push({
|
|
value: item,
|
|
itemStyle: itemStyle
|
|
});
|
|
});
|
|
return sss;
|
|
}
|
|
|
|
let option = {
|
|
// backgroundColor: "#000",
|
|
tooltip: {
|
|
show: true,
|
|
// backgroundColor: "rgba(3,169,244, 0.5)", //背景颜色(此时为默认色)
|
|
textStyle: {
|
|
fontSize: 16
|
|
},
|
|
formatter: function (value: any, index: number) {
|
|
return `${data[value.dataIndex].code}\n\n${data[value.dataIndex].fundPost}`;
|
|
}
|
|
},
|
|
color: ["#F7B731"],
|
|
legend: {
|
|
pageIconSize: [12, 12],
|
|
itemWidth: 20,
|
|
itemHeight: 10,
|
|
textStyle: {
|
|
//图例文字的样式
|
|
fontSize: 10,
|
|
color: "#fff"
|
|
},
|
|
selectedMode: false
|
|
// data: ["个人所得(亿元)"],
|
|
},
|
|
grid: {
|
|
left: "2%",
|
|
right: "2%",
|
|
width: "100%",
|
|
bottom: "2%",
|
|
top: "8%"
|
|
// containLabel: true,
|
|
},
|
|
xAxis: {
|
|
type: "value",
|
|
|
|
splitLine: {
|
|
show: false
|
|
},
|
|
axisLabel: {
|
|
show: false
|
|
},
|
|
axisTick: {
|
|
show: false
|
|
},
|
|
axisLine: {
|
|
show: false
|
|
}
|
|
},
|
|
yAxis: [
|
|
{
|
|
type: "category",
|
|
inverse: true,
|
|
axisLine: {
|
|
show: false
|
|
},
|
|
axisTick: {
|
|
show: false
|
|
},
|
|
axisPointer: {
|
|
label: {
|
|
show: true
|
|
//margin: 30
|
|
}
|
|
},
|
|
pdaaing: [5, 0, 0, 0],
|
|
postion: "right",
|
|
data: attaName,
|
|
axisLabel: {
|
|
margin: 30,
|
|
fontSize: 10,
|
|
align: "left",
|
|
padding: [10, 0, 0, 0],
|
|
color: "#000",
|
|
rich: {
|
|
nt1: {
|
|
color: "#fff",
|
|
backgroundColor: "#0E90E5",
|
|
width: 13,
|
|
height: 13,
|
|
fontSize: 10,
|
|
align: "center",
|
|
borderRadius: 100,
|
|
lineHeight: "5",
|
|
padding: [0, 1, 2, 1]
|
|
// padding:[0,0,2,0],
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
type: "category",
|
|
inverse: true,
|
|
axisTick: "none",
|
|
axisLine: "none",
|
|
show: true,
|
|
axisLabel: {
|
|
padding: [-30, 0, 0, -60],
|
|
textStyle: {
|
|
color: "#fff",
|
|
fontSize: "10"
|
|
}
|
|
},
|
|
data: attackSourcesDataFmt(attaName)
|
|
},
|
|
{
|
|
//名称
|
|
type: "category",
|
|
offset: -10,
|
|
position: "left",
|
|
axisLine: {
|
|
show: false
|
|
},
|
|
inverse: false,
|
|
axisTick: {
|
|
show: false
|
|
},
|
|
axisLabel: {
|
|
interval: 0,
|
|
color: ["#fff"],
|
|
align: "left",
|
|
verticalAlign: "bottom",
|
|
lineHeight: 32,
|
|
fontSize: 10
|
|
},
|
|
data: topName
|
|
}
|
|
],
|
|
series: [
|
|
// {
|
|
// zlevel: 1,
|
|
// type: "pictorialBar",
|
|
// symbol: "path://M286.031,265l-16.025,3L300,223l29.994,45-16.041-3-13.961,69Z",
|
|
// symbolSize: [20, 30],
|
|
// // symbolOffset: [0, 0],
|
|
// color: "orange",
|
|
// symbolPosition: "end",
|
|
// data: salvProMax,
|
|
// },
|
|
{
|
|
zlevel: 1,
|
|
// name: "个人所得(亿元)",
|
|
type: "bar",
|
|
barWidth: "15px",
|
|
animationDuration: 1500,
|
|
data: attackSourcesDataFmt(attaData),
|
|
align: "center",
|
|
itemStyle: {
|
|
normal: {
|
|
// barBorderRadius: 10,
|
|
}
|
|
},
|
|
label: {
|
|
show: false,
|
|
fontSize: 10,
|
|
color: "#fff",
|
|
textBorderWidth: 2,
|
|
padding: [2, 0, 0, 0]
|
|
}
|
|
},
|
|
{
|
|
// name: "个人所得(亿元)",
|
|
type: "bar",
|
|
barWidth: 13,
|
|
barGap: "-50%",
|
|
margin: "30",
|
|
data: salvProMax,
|
|
textStyle: {
|
|
//图例文字的样式
|
|
fontSize: 10,
|
|
color: "#fff"
|
|
},
|
|
itemStyle: {
|
|
normal: {
|
|
color: "#06407B",
|
|
//width:"100%",
|
|
fontSize: 10
|
|
// barBorderRadius: 30,
|
|
}
|
|
}
|
|
}
|
|
]
|
|
};
|
|
|
|
ageChart.setOption(option, true);
|
|
window.addEventListener("resize", () => {
|
|
ageChart.resize();
|
|
});
|
|
}
|
|
|
|
function drawEchart3() {
|
|
echartsTest.value = echarts.init(echarts3.value);
|
|
let option = {
|
|
tooltip: {
|
|
trigger: "item"
|
|
},
|
|
title: {
|
|
text: questionTotal.value,
|
|
subtext: "隐患总数",
|
|
x: "24%",
|
|
y: "center",
|
|
textAlign: "center",
|
|
textStyle: {
|
|
color: "#fff",
|
|
fontSize: 26,
|
|
fontWeight: "normal",
|
|
// align: "center",
|
|
fontFamily: "sadigitalNumber"
|
|
},
|
|
subtextStyle: {
|
|
color: "#ccc",
|
|
fontSize: 12,
|
|
fontWeight: "normal"
|
|
// align: "center"
|
|
}
|
|
},
|
|
legend: {
|
|
selectedMode: true, // 取消图例上的点击事件
|
|
icon: "rect",
|
|
type: "plain",
|
|
orient: "vertical",
|
|
left: "55%",
|
|
top: "35%",
|
|
align: "left",
|
|
itemGap: 30,
|
|
itemWidth: 8, // 设置宽度
|
|
itemHeight: 7, // 设置高度
|
|
symbolKeepAspect: false,
|
|
textStyle: {
|
|
color: "#000",
|
|
rich: {
|
|
name: {
|
|
verticalAlign: "right",
|
|
align: "left",
|
|
fontSize: 14,
|
|
color: "#FFFFFF"
|
|
},
|
|
value: {
|
|
align: "left",
|
|
fontSize: 14,
|
|
color: "#FFFFFF"
|
|
}
|
|
}
|
|
},
|
|
data: dataList3.value.map(item => {
|
|
if (item.show) {
|
|
return item.name;
|
|
}
|
|
}),
|
|
formatter: function (data: any) {
|
|
if (dataList3.value && dataList3.value.length) {
|
|
for (var i = 0; i < dataList3.value.length; i++) {
|
|
if (data === dataList3.value[i].name) {
|
|
var value = dataList3.value[i].value;
|
|
var percentage = value + "%";
|
|
return "{name| " + data + "} {gap| }" + "{value|" + value + " " + "}";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
series: [
|
|
// 外侧光线
|
|
{
|
|
name: "",
|
|
type: "gauge",
|
|
center: ["25%", "55%"],
|
|
radius: "90%",
|
|
startAngle: 235,
|
|
endAngle: -50,
|
|
min: 0,
|
|
max: 100,
|
|
axisLine: {
|
|
show: true,
|
|
lineStyle: {
|
|
width: 2,
|
|
color: [
|
|
[
|
|
100 / 100,
|
|
new echarts.graphic.LinearGradient(0, 0, 1, 0, [
|
|
{
|
|
offset: 0,
|
|
color: "#526277"
|
|
},
|
|
{
|
|
offset: 0.25,
|
|
color: "rgba(4, 14, 54,0.4)"
|
|
},
|
|
{
|
|
offset: 0.7,
|
|
color: "rgba(4, 14, 54,0.4)"
|
|
},
|
|
{
|
|
offset: 1,
|
|
color: "#526277"
|
|
}
|
|
])
|
|
],
|
|
[1, "rgba(255,255,255,0)"]
|
|
]
|
|
}
|
|
},
|
|
|
|
axisTick: {
|
|
show: 0
|
|
},
|
|
splitLine: {
|
|
show: 0
|
|
},
|
|
axisLabel: {
|
|
show: 0
|
|
},
|
|
pointer: {
|
|
show: 0
|
|
},
|
|
detail: {
|
|
show: 0
|
|
}
|
|
},
|
|
{
|
|
name: "",
|
|
type: "gauge",
|
|
center: ["25%", "55%"],
|
|
radius: "80%",
|
|
startAngle: 245,
|
|
endAngle: -115,
|
|
min: 0,
|
|
max: 100,
|
|
axisLine: {
|
|
show: true,
|
|
lineStyle: {
|
|
width: 2,
|
|
color: [
|
|
[
|
|
200 / 100,
|
|
new echarts.graphic.LinearGradient(0, 0, 1, 0, [
|
|
{
|
|
offset: 1,
|
|
color: "#52bef0"
|
|
},
|
|
{
|
|
offset: 0,
|
|
color: "#13356b"
|
|
}
|
|
])
|
|
],
|
|
[1, "rgba(255,255,255,0)"]
|
|
]
|
|
}
|
|
},
|
|
|
|
axisTick: {
|
|
show: 0
|
|
},
|
|
splitLine: {
|
|
show: 0
|
|
},
|
|
axisLabel: {
|
|
show: 0
|
|
},
|
|
pointer: {
|
|
show: 0
|
|
},
|
|
detail: {
|
|
show: 0
|
|
}
|
|
},
|
|
{
|
|
name: "",
|
|
type: "pie",
|
|
radius: [65, 75],
|
|
center: ["25%", "55%"],
|
|
hoverAnimation: true,
|
|
itemStyle: {
|
|
borderRadius: 10,
|
|
borderWidth: 10
|
|
},
|
|
label: {
|
|
show: false,
|
|
position: "center"
|
|
},
|
|
emphasis: {
|
|
label: {
|
|
show: false
|
|
}
|
|
},
|
|
labelLine: {
|
|
show: false
|
|
},
|
|
data: dataList3.value
|
|
},
|
|
{
|
|
type: "pie",
|
|
radius: ["57", "60"],
|
|
center: ["25%", "55%"],
|
|
label: {
|
|
show: false
|
|
},
|
|
data: Pie()
|
|
}
|
|
]
|
|
};
|
|
echartsTest.value.setOption(option, true);
|
|
window.addEventListener("resize", () => {
|
|
echartsTest.value.resize();
|
|
});
|
|
}
|
|
|
|
const getStatsByEnterprise = async () => {
|
|
const res: any = await getStatsByEnterpriseApi({
|
|
pageNo: 1,
|
|
pageSize: 99999,
|
|
projectSn: store.sn,
|
|
isNotQualified: props.majorInfo?.isNotQualified,
|
|
isOverdueRectification: props.majorInfo?.isOverdueRectification,
|
|
inspectTime_begin: props.majorInfo?.inspectStartTime,
|
|
inspectTime_end: props.majorInfo?.inspectEndTime,
|
|
enumType: parseInt(props.majorInfo?.enumType)
|
|
});
|
|
dataList1.value = res.result.records;
|
|
drawEchart1();
|
|
};
|
|
|
|
const getCountQualityInspectionRecordRegion = async () => {
|
|
const res: any = await getCountQualityInspectionRecordRegionApi({
|
|
projectSn: store.sn,
|
|
inspectTime_begin: props.majorInfo?.inspectStartTime,
|
|
inspectTime_end: props.majorInfo?.inspectEndTime,
|
|
isNotQualified: props.majorInfo?.isNotQualified,
|
|
isOverdueRectification: props.majorInfo?.isOverdueRectification,
|
|
enumType: parseInt(props.majorInfo?.enumType)
|
|
});
|
|
dataList2.value = res.result;
|
|
drawEchart2();
|
|
};
|
|
|
|
const getStatsDangerType = async () => {
|
|
const res: any = await getStatsDangerTypeApi({
|
|
projectSn: store.sn,
|
|
inspectTime_begin: props.majorInfo?.inspectStartTime,
|
|
inspectTime_end: props.majorInfo?.inspectEndTime,
|
|
isNotQualified: props.majorInfo?.isNotQualified,
|
|
isOverdueRectification: props.majorInfo?.isOverdueRectification,
|
|
enumType: parseInt(props.majorInfo?.enumType)
|
|
});
|
|
dataList3.value = res.result.data.map((item: any, index: number) => {
|
|
return {
|
|
...item,
|
|
value: item.count,
|
|
show: true,
|
|
itemStyle: {
|
|
normal: {
|
|
color: classColorList.value[index],
|
|
borderWidth: 20
|
|
}
|
|
}
|
|
};
|
|
});
|
|
questionTotal.value = parseFloat(res.result.count).toFixed(0);
|
|
|
|
drawEchart3();
|
|
};
|
|
let total = ref(0 as any);
|
|
const onCurrentChange = (event: number) => {
|
|
pageNo.value = event;
|
|
getMemberCountList(true);
|
|
};
|
|
const getXzSecurityQualitylnspectionRecordlist = async (tip: any) => {
|
|
const res: any = await getXzSecurityQualitylnspectionRecordlistApi({
|
|
pageNo: tip == "search" ? 1 : pageNo.value,
|
|
pageSize: 10,
|
|
projectSn: store.sn,
|
|
isNotQualified: props.majorInfo?.isNotQualified,
|
|
isOverdueRectification: props.majorInfo?.isOverdueRectification,
|
|
inspectStartTime: props.majorInfo?.inspectStartTime,
|
|
inspectEndTime: props.majorInfo?.inspectEndTime,
|
|
enumType: parseInt(props.majorInfo?.enumType)
|
|
});
|
|
if (tip == "more") {
|
|
const newResult = res.result.page.records.map((item: any) => {
|
|
return {
|
|
...item,
|
|
whiteSpace: false
|
|
};
|
|
});
|
|
// partyMemberList.value = partyMemberList.value.concat(newResult);
|
|
partyMemberList.value = newResult;
|
|
} else {
|
|
// partyMemberList.value = res.result.page.records;
|
|
partyMemberList.value = res.result.page.records;
|
|
}
|
|
|
|
total.value = Number(res.result.page.total);
|
|
// if (res.result.page.pages == pageNo.value) {
|
|
// moreScroll.value = false;
|
|
// } else {
|
|
// pageNo.value = pageNo.value + 1;
|
|
// }
|
|
};
|
|
|
|
// 督办
|
|
const onSupervise = async (row: any) => {
|
|
ElMessageBox.confirm("是否继续督办?", "提示", {
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
type: "warning"
|
|
})
|
|
.then(async () => {
|
|
const res = await getXzSecurityQualitylnspectionRecordSuperviseApi({
|
|
id: row.id
|
|
});
|
|
})
|
|
.catch(() => {
|
|
ElMessage({
|
|
type: "info",
|
|
message: "已取消督办"
|
|
});
|
|
});
|
|
};
|
|
|
|
watch(
|
|
() => props.majorInfo,
|
|
async newVal => {
|
|
pageNo.value = 1;
|
|
moreScroll.value = true;
|
|
await getStatsByEnterprise();
|
|
await getCountQualityInspectionRecordRegion();
|
|
await getStatsDangerType();
|
|
await getXzSecurityQualitylnspectionRecordlist("search");
|
|
},
|
|
{
|
|
immediate: true,
|
|
deep: true
|
|
}
|
|
);
|
|
|
|
onMounted(async () => {
|
|
// drawEchart2();
|
|
// drawEchart3();
|
|
// await getCompanyList();
|
|
// await getMemberCountList("search");
|
|
// refScrollbar.value.wrapRef.addEventListener("scroll", (e: any) => {
|
|
// const scrollTop = e.target.scrollTop;
|
|
// const scrollHeight = e.target.scrollHeight;
|
|
// const clientHeight = e.target.clientHeight;
|
|
// // 向上加载更多
|
|
// if (scrollTop >= scrollHeight - clientHeight - 1) {
|
|
// if (moreScroll.value) {
|
|
// // getMemberCountList("more");
|
|
// getXzSecurityQualitylnspectionRecordlist("more");
|
|
// }
|
|
// }
|
|
// });
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.el-button {
|
|
height: 24px;
|
|
}
|
|
|
|
.content {
|
|
padding: 0 20px;
|
|
height: 35%;
|
|
|
|
.content-box {
|
|
display: flex;
|
|
flex-direction: row;
|
|
|
|
.contentTop {
|
|
margin-top: 10px;
|
|
width: 33%;
|
|
height: 100%;
|
|
|
|
.ctHead {
|
|
// background-color: #002f69;
|
|
padding-bottom: 5px;
|
|
color: #fff;
|
|
height: 15%;
|
|
font-size: 16px;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
align-items: flex-end;
|
|
|
|
text {
|
|
font-size: 24px;
|
|
color: #fc4c4c;
|
|
}
|
|
}
|
|
|
|
.ctContent {
|
|
height: 100%;
|
|
// background-color: darkred;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@mixin flex {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.political-outlook {
|
|
height: 97%;
|
|
margin: 0 60px;
|
|
|
|
.content {
|
|
// height: 95%;
|
|
width: 100%;
|
|
margin-top: 30px;
|
|
// background: url("@/assets/images/cardImg.png") no-repeat;
|
|
background-size: 100% 100%;
|
|
padding: 20px 15px;
|
|
|
|
.top-statistics {
|
|
display: grid;
|
|
// grid-gap: 20px;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
color: white;
|
|
margin: 0 5%;
|
|
|
|
.statistics-item {
|
|
width: 240px;
|
|
height: 95px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
position: relative;
|
|
|
|
.title {
|
|
position: absolute;
|
|
top: 4%;
|
|
left: 4%;
|
|
}
|
|
|
|
&-content {
|
|
display: inline-block;
|
|
width: 50%;
|
|
height: auto;
|
|
text-indent: 1.5em;
|
|
}
|
|
|
|
&-content:nth-child(2) {
|
|
margin-top: 8%;
|
|
}
|
|
|
|
&-content:nth-child(3) {
|
|
margin-top: 8%;
|
|
}
|
|
}
|
|
|
|
.statistics-item:nth-child(1) {
|
|
background: url("@/assets/images/commandScreen/bg6.png") no-repeat;
|
|
background-size: 100% 100%;
|
|
}
|
|
|
|
.statistics-item:nth-child(2) {
|
|
background: url("@/assets/images/commandScreen/bg2.png") no-repeat;
|
|
background-size: 100% 100%;
|
|
}
|
|
|
|
.statistics-item:nth-child(3) {
|
|
background: url("@/assets/images/commandScreen/bg4.png") no-repeat;
|
|
background-size: 100% 100%;
|
|
}
|
|
|
|
.statistics-item:nth-child(4) {
|
|
background: url("@/assets/images/commandScreen/bg1.png") no-repeat;
|
|
background-size: 100% 100%;
|
|
}
|
|
|
|
.statistics-item:nth-child(5) {
|
|
background: url("@/assets/images/commandScreen/bg3.png") no-repeat;
|
|
background-size: 100% 100%;
|
|
}
|
|
|
|
.statistics-item:nth-child(6) {
|
|
background: url("@/assets/images/commandScreen/bg5.png") no-repeat;
|
|
background-size: 100% 100%;
|
|
}
|
|
}
|
|
|
|
.top-data-show {
|
|
display: flex;
|
|
|
|
.top-left {
|
|
width: 60%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
:deep() {
|
|
.el-calendar {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.el-calendar__header {
|
|
display: none;
|
|
}
|
|
|
|
.el-calendar__body {
|
|
padding: 0px;
|
|
}
|
|
|
|
.el-calendar-table thead {
|
|
background-color: #143a85;
|
|
|
|
th {
|
|
color: white;
|
|
}
|
|
|
|
th:nth-child(1) {
|
|
border-left: 1px solid #284a8e;
|
|
}
|
|
|
|
th:last-child {
|
|
border-right: 1px solid #284a8e;
|
|
}
|
|
}
|
|
|
|
.el-calendar-table .el-calendar-day:hover {
|
|
color: white;
|
|
background-color: #143a85;
|
|
}
|
|
|
|
.el-calendar-table td.is-today {
|
|
color: white;
|
|
background-color: #143a85;
|
|
}
|
|
|
|
.el-calendar-table tbody {
|
|
.el-calendar-table__row {
|
|
.prev,
|
|
.current,
|
|
.next {
|
|
border-color: #35538c;
|
|
color: white;
|
|
|
|
.el-calendar-day {
|
|
text-align: center;
|
|
height: 40px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.top-right {
|
|
width: 40%;
|
|
color: white;
|
|
|
|
.right-title-data {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
|
|
> div {
|
|
span:nth-child(1) {
|
|
font-size: 18px;
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
|
|
> span {
|
|
margin-top: 5px;
|
|
}
|
|
}
|
|
|
|
.right-inspect-data {
|
|
margin-top: 12%;
|
|
|
|
.inspect-data-item {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 3%;
|
|
|
|
.inspect-style {
|
|
width: 10px;
|
|
height: 10px;
|
|
border: 1px solid #fff;
|
|
margin-right: 5px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.inspect-one {
|
|
background-color: #ee1a1a;
|
|
}
|
|
|
|
.inspect-two {
|
|
background-color: #079caf;
|
|
}
|
|
|
|
.inspect-three {
|
|
background-color: #ffdf00;
|
|
}
|
|
|
|
> span:nth-child(2) {
|
|
margin-right: auto;
|
|
}
|
|
|
|
> span:nth-child(3) {
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
:deep() {
|
|
.el-tabs__item {
|
|
color: white;
|
|
}
|
|
|
|
.el-tabs__item.is-active {
|
|
color: var(--el-color-primary);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.table-one {
|
|
margin-top: 40px;
|
|
height: 50%;
|
|
|
|
.tabList {
|
|
display: flex;
|
|
// width: 100%;
|
|
height: 10%;
|
|
background: url("@/assets/images/vehicleManagement/ListTitleImg.png") no-repeat;
|
|
background-size: 100% 100%;
|
|
// position: absolute;
|
|
left: 75.5%;
|
|
top: 75%;
|
|
color: #ccc;
|
|
font-size: calc(100vw * 14 / 1920);
|
|
line-height: 30px;
|
|
align-items: center;
|
|
margin-top: 1%;
|
|
|
|
div {
|
|
text-align: center;
|
|
width: 17%;
|
|
}
|
|
}
|
|
|
|
.listBox {
|
|
height: 60%;
|
|
|
|
.listStyle {
|
|
display: flex;
|
|
align-items: center;
|
|
text-align: center;
|
|
color: #fff;
|
|
font-size: 12px;
|
|
margin-bottom: 5px;
|
|
|
|
.list-img {
|
|
.el-img {
|
|
width: 30px;
|
|
height: 30px;
|
|
|
|
img {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
div {
|
|
width: 17%;
|
|
white-space: nowrap; //单行
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
|
|
.listStyle:hover {
|
|
background: #091f3f;
|
|
}
|
|
}
|
|
}
|
|
|
|
.notoDta {
|
|
top: 50%;
|
|
width: 20%;
|
|
// left: 40%;
|
|
position: absolute;
|
|
text-align: center;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
|
|
img {
|
|
width: 40%;
|
|
margin: 5% 30%;
|
|
}
|
|
|
|
p {
|
|
color: #fff;
|
|
font-size: calc(100vw * 14 / 1920);
|
|
margin: -6% 30%;
|
|
}
|
|
}
|
|
|
|
// element 组件样式
|
|
:deep() {
|
|
.el-date-editor .el-range-input,
|
|
.el-range-separator {
|
|
color: #fff;
|
|
}
|
|
|
|
.el-input__wrapper {
|
|
background: #112d59;
|
|
}
|
|
|
|
.el-input__inner {
|
|
color: #fff;
|
|
}
|
|
|
|
.el-button {
|
|
background-color: #2758c0;
|
|
color: white;
|
|
border-color: transparent;
|
|
}
|
|
}
|
|
|
|
// ::v-deep .el-select .el-input .el-select__caret {
|
|
// color: #fff;
|
|
// }
|
|
</style>
|