master
loveflow 7 months ago
parent d276ed5bb7
commit f4200797be

@ -1,4 +1,3 @@
.loveflow {
/* 定位 START */
.absolute {
position: absolute;
@ -20,6 +19,9 @@
.mt6 {
margin-top: 6px;
}
.mt3 {
margin-top: 3px;
}
.mr6 {
margin-right: 6px;
}
@ -39,4 +41,3 @@
color: blue;
}
/* 字体 END */
}

@ -13,6 +13,7 @@ import erupload from "./components/upload";
import lkyTable from "./components/publicModule/lkyTable" // 本组件样式包含普通表格、分页
import lkyPagination from "./components/publicModule/lkyPagination" // 本组件单独抽离分页样式
import "@/loveflow/assets/index.less"
import * as cusRule from '@/loveflow/rules'
import { registerPlugins } from '@/loveflow/plugins/index'
import FormDialog from '@/loveflow/components/modal/formDialog.vue'

@ -1,6 +1,6 @@
<template>
<div class="fangyi">
<div class="title" @click="showDialog"><img src="../../assets/safetyIndex/装饰009991.png" alt="">防疫安全</div>
<!-- <div class="title" @click="showDialog"><img src="../../assets/safetyIndex/装饰009991.png" alt="">防疫安全</div>
<div class="fytb" id="fytb"></div>
<div class="bottomBtns" @click="showDialog">
<div class="bottomChild">
@ -30,12 +30,12 @@
<div class="ChildSJNum_b">{{ yimiaoData.numValue }}</div>
</div>
</div>
</div>
</div> -->
<el-dialog title="防疫安全上报数据详情" :visible.sync="diaVisible" class="picForm">
<div class="tjsj">
<div class="tjsjTitle">数据统计</div>
<div class="zhuangshi"></div>
<div class="tjsjChild" id="ymjzs">
<!-- <div class="tjsjChild" id="ymjzs">
<div class="numNum">{{ yimiaoData.numValue }}</div>
<div class="numText">疫苗接种数</div>
</div>
@ -46,7 +46,7 @@
<div class="tjsjChild" id="csmycs">
<div class="numNum">{{ changsuoData.numValue }}</div>
<div class="numText">场所码异常</div>
</div>
</div> -->
</div>
<div class="fqs">
<div class="tjsjTitle">中高风险返企数</div>

@ -1,14 +1,19 @@
<template>
<div class="mainBox">
<div class="leftBox">
<fangyi :companyId="companyId" v-if="companyId"></fangyi>
<!-- <fangyi :companyId="companyId" v-if="companyId"></fangyi> -->
<xiaofang :companyId="companyId" v-if="companyId"></xiaofang>
<renyuan :companyId="companyId" v-if="companyId"></renyuan>
<weihuapin :companyId="companyId" v-if="companyId"></weihuapin>
</div>
<div class="middleBox">
<canban :companyId="companyId" :companyData="companyData" v-if="companyId && companyData"></canban>
<canban
:companyId="companyId"
:companyData="companyData"
v-if="companyId && companyData"
></canban>
<div class="middleBody">
<xiaofang :companyId="companyId" v-if="companyId"></xiaofang>
<!-- <xiaofang :companyId="companyId" v-if="companyId"></xiaofang> -->
<lieguan :companyId="companyId" v-if="companyId"></lieguan>
<zhian :companyId="companyId" v-if="companyId"></zhian>
</div>
@ -22,21 +27,21 @@
</template>
<script>
import fangyi from './fangyi.vue'
import renyuan from './renyuan.vue'
import weihuapin from './weihuapin.vue'
import canban from './canban.vue'
import xiaofang from './xiaofang.vue'
import lieguan from './lieguan.vue'
import zhian from './zhian.vue'
import daolu from './daolu.vue'
import fanggopngji from './fanggopngji.vue'
import wangluo from './wangluo.vue'
//import fangyi from "./fangyi.vue";
import renyuan from "./renyuan.vue";
import weihuapin from "./weihuapin.vue";
import canban from "./canban.vue";
import xiaofang from "./xiaofang.vue";
import lieguan from "./lieguan.vue";
import zhian from "./zhian.vue";
import daolu from "./daolu.vue";
import fanggopngji from "./fanggopngji.vue";
import wangluo from "./wangluo.vue";
import { companyBaseInfo } from '@/api/companyCanban'
import { companyBaseInfo } from "@/api/companyCanban";
export default {
components: {
fangyi,
//fangyi,
renyuan,
weihuapin,
canban,
@ -45,22 +50,22 @@ export default {
zhian,
daolu,
fanggopngji,
wangluo
wangluo,
},
data() {
return {
companyId: '',
companyData: {}
}
companyId: "",
companyData: {},
};
},
created() {
this.companyId = sessionStorage.getItem('companyID')
companyBaseInfo({ id: this.companyId }).then(res => [
this.companyData = res.data,
console.log(this.companyData, 'this.companyData')
])
this.companyId = sessionStorage.getItem("companyID");
companyBaseInfo({ id: this.companyId }).then((res) => [
(this.companyData = res.data),
console.log(this.companyData, "this.companyData"),
]);
},
}
};
</script>
<style lang="less" scoped>
@ -96,7 +101,6 @@ export default {
height: 100%;
margin-left: 20px;
box-sizing: border-box;
}
}
</style>

@ -1,10 +1,16 @@
<template>
<div class="xfwp">
<div class="title" @click="showDialog"><img src="../../assets/safetyIndex/装饰009991.png" alt="">列管物品安全</div>
<div class="title" @click="showDialog">
<img src="../../assets/safetyIndex/装饰009991.png" alt="" />列管物品安全
</div>
<div class="bodyBox">
<div class="lgwp" id="lgwp"></div>
</div>
<el-dialog title="列管物品上报数据详情" :visible.sync="diaVisible" class="picForm">
<el-dialog
title="列管物品上报数据详情"
:visible.sync="diaVisible"
class="picForm"
>
<div class="wxhxp" id="fxfqs">
<div class="tjsjTitle">危险化学品</div>
<div class="zhuangshi"></div>
@ -24,64 +30,65 @@
</template>
<script>
import * as echarts from 'echarts';
import * as echarts from "echarts";
import "echarts-gl";
import { tubeSafety, tubeSafetyDetail } from '@/api/companyCanban'
import { tubeSafety, tubeSafetyDetail } from "@/api/companyCanban";
export default {
props: ['companyId'],
props: ["companyId"],
data() {
return {
diaVisible: false,
companyID: this.companyId,
fireData: [],
fireDetailList: [],
}
};
},
created() {
tubeSafety({ companyId: this.companyID }).then(res => {
this.fireData = res.data
tubeSafety({ companyId: this.companyID }).then((res) => {
this.fireData = res.data;
this.$nextTick(() => {
this.initlgwp()
})
})
this.initlgwp();
});
});
},
methods: {
showDialog() {
tubeSafetyDetail({ companyId: this.companyID }).then(res => {
this.fireDetailList = res.data
this.diaVisible = true
tubeSafetyDetail({ companyId: this.companyID }).then((res) => {
this.fireDetailList = res.data;
this.diaVisible = true;
this.$nextTick(() => {
this.initfxfqs()
this.initygtb()
this.initmycz()
})
})
this.initfxfqs();
this.initygtb();
this.initmycz();
});
});
},
initygtb() {
let myChart = echarts.init(document.getElementById("fsywp"));
const colors = ['#66C3FF', '#FFB571', '#FE6968']
let data = []
const colors = ["#66C3FF", "#FFB571", "#FE6968"];
let data = [];
this.fireDetailList.radiations.forEach((item, index) => {
data.push({
value: item.numValue, name: item.safeRuleName, itemStyle: { color: colors[index], }
})
})
value: item.numValue,
name: item.safeRuleName,
itemStyle: { color: colors[index] },
});
});
let option = {
tooltip: {
trigger: 'item'
trigger: "item",
},
legend: {
// type: 'scroll',
orient: 'vertical',
top: '15%',
right: '5%',
orient: "vertical",
top: "15%",
right: "5%",
padding: [5, 10],
itemGap: 10,
itemWidth: 6,
itemHeight: 6,
width: 100,
backgroundColor: 'rgba(108,128,151,0.2)',
backgroundColor: "rgba(108,128,151,0.2)",
lineHeight: 24,
textStyle: {
rich: {
@ -106,72 +113,76 @@ export default {
var percent = 0;
for (var i = 0; i < data.length; i++) {
if (data[i].name == name) {
percent = data[i].value
percent = data[i].value;
}
}
return "{a|" + name + "}" + "{b|" + percent + "}";
},
},
graphic: [{
type: 'image', //
graphic: [
{
type: "image", //
style: {
image: require('../../assets/companyCanban/放射源物品01.png'), // require
image: require("../../assets/companyCanban/放射源物品01.png"), // require
width: 90, //
height: 90
height: 90,
},
//
top: "23.8%",
left: "8.5%",
},],
backgroundColor: 'rgba(255,255,255,0)',
},
],
backgroundColor: "rgba(255,255,255,0)",
series: [
{
type: 'pie',
radius: ['55%', '70%'],
type: "pie",
radius: ["55%", "70%"],
top: "middle",
left: "left",
width: '45%',
width: "45%",
height: 190,
center: ['45%', '50%'],
center: ["45%", "50%"],
itemStyle: {
borderRadius: 0,
borderColor: 'rgba(255,255,255,0)',
borderWidth: 5
borderColor: "rgba(255,255,255,0)",
borderWidth: 5,
},
label: {
show: false,
position: 'center'
position: "center",
},
data
}
]
data,
},
],
};
option && myChart.setOption(option);
},
initmycz() {
let myChart = echarts.init(document.getElementById("mycz"));
const colors = ['#66C3FF', '#FFB571', '#FE6968']
let data = []
const colors = ["#66C3FF", "#FFB571", "#FE6968"];
let data = [];
this.fireDetailList.firearms.forEach((item, index) => {
data.push({
value: item.numValue, name: item.safeRuleName, itemStyle: { color: colors[index], }
})
})
value: item.numValue,
name: item.safeRuleName,
itemStyle: { color: colors[index] },
});
});
let option = {
tooltip: {
trigger: 'item'
trigger: "item",
},
legend: {
// type: 'scroll',
orient: 'vertical',
top: '15%',
right: '5%',
orient: "vertical",
top: "15%",
right: "5%",
padding: [5, 10],
itemGap: 10,
itemWidth: 6,
itemHeight: 6,
width: 100,
backgroundColor: 'rgba(108,128,151,0.2)',
backgroundColor: "rgba(108,128,151,0.2)",
lineHeight: 24,
textStyle: {
rich: {
@ -196,59 +207,61 @@ export default {
var percent = 0;
for (var i = 0; i < data.length; i++) {
if (data[i].name == name) {
percent = data[i].value
percent = data[i].value;
}
}
return "{a|" + name + "}" + "{b|" + percent + "}";
},
},
graphic: [{
type: 'image', //
graphic: [
{
type: "image", //
style: {
image: require('../../assets/companyCanban/民用枪支管理01.png'), // require
image: require("../../assets/companyCanban/民用枪支管理01.png"), // require
width: 90, //
height: 90
height: 90,
},
//
top: "23.8%",
left: "8.5%",
},],
backgroundColor: 'rgba(255,255,255,0)',
},
],
backgroundColor: "rgba(255,255,255,0)",
series: [
{
type: 'pie',
radius: ['55%', '70%'],
type: "pie",
radius: ["55%", "70%"],
top: "middle",
left: "left",
width: '45%',
width: "45%",
height: 190,
center: ['45%', '50%'],
center: ["45%", "50%"],
itemStyle: {
borderRadius: 0,
borderColor: 'rgba(255,255,255,0)',
borderWidth: 5
borderColor: "rgba(255,255,255,0)",
borderWidth: 5,
},
label: {
show: false,
position: 'center'
position: "center",
},
data
}
]
data,
},
],
};
option && myChart.setOption(option);
},
initfxfqs() {
let myChart = echarts.init(document.getElementById("fxfqs"));
const dateList = this.fireDetailList.list_75.map(item => {
return item.statisticsDate
})
const jingnwaiList = this.fireDetailList.list_75.map(item => {
return item.numValue
})
const jingnneiList = this.fireDetailList.list_76.map(item => {
return item.numValue
})
const dateList = this.fireDetailList.list_75.map((item) => {
return item.statisticsDate;
});
const jingnwaiList = this.fireDetailList.list_75.map((item) => {
return item.numValue;
});
const jingnneiList = this.fireDetailList.list_76.map((item) => {
return item.numValue;
});
const option = {
tooltip: {
trigger: "axis",
@ -259,23 +272,26 @@ export default {
bottom: "15%",
left: "15%",
},
legend: [{
data: ['这是一个小标题'],
top: '5%',
legend: [
{
data: ["这是一个小标题"],
top: "5%",
width: 100,
selectedMode: false,
textStyle: {
color: 'rgba(255, 255, 255, 0.7)'
color: "rgba(255, 255, 255, 0.7)",
},
},
}, {
top: '5%',
right: 'center',
{
top: "5%",
right: "center",
width: 200,
data: ['易制爆物品', '剧毒物品'],
data: ["易制爆物品", "剧毒物品"],
textStyle: {
color: 'rgba(255, 255, 255, 0.7)'
color: "rgba(255, 255, 255, 0.7)",
},
},
},],
],
xAxis: {
type: "category",
show: true,
@ -370,42 +386,58 @@ export default {
},
initlgwp() {
const wupin = {
name: '列管物品',
value: [this.fireData[0].sumNumValue, this.fireData[1].sumNumValue, this.fireData[2].sumNumValue, this.fireData[3].sumNumValue],
name: "列管物品",
value: [
this.fireData[0].sumNumValue,
this.fireData[1].sumNumValue,
this.fireData[2].sumNumValue,
this.fireData[3].sumNumValue,
],
// value: [2, 3, 3, 2],
areaStyle: {
color: {
type: 'linear',
type: "linear",
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [{
offset: 0, color: 'rgba(101,255,251,0.45)' // 0%
}, {
offset: 1, color: 'rgba(0,255,142,0.42)' // 100%
}],
global: false // false
}
colorStops: [
{
offset: 0,
color: "rgba(101,255,251,0.45)", // 0%
},
{
offset: 1,
color: "rgba(0,255,142,0.42)", // 100%
},
],
global: false, // false
},
},
lineStyle: {
color: 'rgba(102,255,196,1)'
color: "rgba(102,255,196,1)",
},
itemStyle: {
color: '#66FFC4'
}
}
const sum = [this.fireData[0].sumNumValue, this.fireData[1].sumNumValue, this.fireData[2].sumNumValue, this.fireData[3].sumNumValue].sort(function (a, b) {
color: "#66FFC4",
},
};
const sum = [
this.fireData[0].sumNumValue,
this.fireData[1].sumNumValue,
this.fireData[2].sumNumValue,
this.fireData[3].sumNumValue,
].sort(function (a, b) {
return b - a;
})[0];
console.log(sum, '总数');
console.log(sum, "总数");
let myChart = echarts.init(document.getElementById("lgwp"));
let option = {
tooltip: {
trigger: 'item',
trigger: "item",
},
radar: {
radius: "60%",
axisLine: {
show: false,
},
@ -413,48 +445,43 @@ export default {
show: false,
},
splitArea: {
areaStyle: {
color: 'rgba(29,138,134,0.26)',
}
color: "rgba(29,138,134,0.26)",
},
},
splitLine: {
lineStyle: {
color: 'rgba(29,138,134,1)',
}
color: "rgba(29,138,134,1)",
},
},
// shape: 'circle',
indicator: [
{ name: '危险化学品', max: sum },
{ name: '放射源物品', max: sum },
{ name: '民爆物品', max: sum },
{ name: '民用枪支管理', max: sum },
]
{ name: "危险化学品", max: sum },
{ name: "放射源物品", max: sum },
{ name: "民爆物品", max: sum },
{ name: "民用枪支管理", max: sum },
],
},
series: [
{
name: '列管物品',
type: 'radar',
data: [
wupin
]
}
]
name: "列管物品",
type: "radar",
data: [wupin],
},
],
};
option && myChart.setOption(option);
},
},
}
};
</script>
<style lang="less" scoped>
.xfwp {
width: calc(33.33% - 13.33px);
width: calc(50% - 13.33px);
height: 100%;
background: url('~@/assets/safetyIndex/modelback.png') no-repeat;
background: url("~@/assets/safetyIndex/modelback.png") no-repeat;
background-size: 100% 100%;
display: flex;
flex-wrap: wrap;
@ -463,10 +490,10 @@ export default {
.title {
width: 100%;
height: 33px;
background: url('~@/assets/safetyIndex/titleback.png') no-repeat;
background: url("~@/assets/safetyIndex/titleback.png") no-repeat;
background-size: 100% 100%;
font-size: 16px;
color: #D9E7FF;
color: #d9e7ff;
letter-spacing: 1px;
text-align: center;
font-weight: 500;
@ -485,19 +512,18 @@ export default {
height: calc(100% - 35px);
width: 100%;
position: relative;
// padding: 12px 20px;
//padding: 12px 0;
.lgwp {
width: 100%;
height: 100%;
}
}
.picForm {
/deep/ .el-dialog {
background-color: rgba(0, 0, 0, 0);
background: url('~@/assets/head/编组 3021112.png') no-repeat;
background: url("~@/assets/head/编组 3021112.png") no-repeat;
background-size: 100% 100%;
width: 841px;
height: 500px;
@ -505,7 +531,7 @@ export default {
.el-dialog__title {
font-size: 16px;
color: #EBFFF4;
color: #ebfff4;
letter-spacing: 2px;
text-shadow: 0 0 9px rgba(21, 255, 195, 0.77);
font-weight: 400;
@ -520,7 +546,7 @@ export default {
height: 230px;
width: 100%;
margin: 10px 0;
background: url('~@/assets/companyCanban/09091.png') no-repeat;
background: url("~@/assets/companyCanban/09091.png") no-repeat;
background-size: 100% 100%;
position: relative;
padding: 0 10px;
@ -534,10 +560,10 @@ export default {
left: 14px;
top: 10px;
font-size: 16px;
color: #FFE6D9;
color: #ffe6d9;
letter-spacing: 0;
line-height: 16px;
text-shadow: 0 0 8px rgba(255, 119, 52, 0.50);
text-shadow: 0 0 8px rgba(255, 119, 52, 0.5);
font-weight: 500;
}
@ -545,12 +571,12 @@ export default {
position: absolute;
left: 0;
top: 0;
background: url('~@/assets/companyCanban/矩形(装饰).png') no-repeat;
background: url("~@/assets/companyCanban/矩形(装饰).png")
no-repeat;
background-size: 100% 100%;
width: 15px;
height: 15px;
}
}
.bottomBox {
@ -562,7 +588,7 @@ export default {
.fsywp {
width: 385px;
height: 100%;
background: url('~@/assets/companyCanban/09091.png') no-repeat;
background: url("~@/assets/companyCanban/09091.png") no-repeat;
background-size: 100% 100%;
position: relative;
@ -571,10 +597,10 @@ export default {
left: 14px;
top: 10px;
font-size: 16px;
color: #FFE6D9;
color: #ffe6d9;
letter-spacing: 0;
line-height: 16px;
text-shadow: 0 0 8px rgba(255, 119, 52, 0.50);
text-shadow: 0 0 8px rgba(255, 119, 52, 0.5);
font-weight: 500;
}
@ -582,7 +608,8 @@ export default {
position: absolute;
left: 0;
top: 0;
background: url('~@/assets/companyCanban/矩形(装饰).png') no-repeat;
background: url("~@/assets/companyCanban/矩形(装饰).png")
no-repeat;
background-size: 100% 100%;
width: 15px;
height: 15px;
@ -592,7 +619,7 @@ export default {
.mycz {
width: 385px;
height: 100%;
background: url('~@/assets/companyCanban/09091.png') no-repeat;
background: url("~@/assets/companyCanban/09091.png") no-repeat;
background-size: 100% 100%;
position: relative;
@ -601,10 +628,10 @@ export default {
left: 14px;
top: 10px;
font-size: 16px;
color: #FFE6D9;
color: #ffe6d9;
letter-spacing: 0;
line-height: 16px;
text-shadow: 0 0 8px rgba(255, 119, 52, 0.50);
text-shadow: 0 0 8px rgba(255, 119, 52, 0.5);
font-weight: 500;
}
@ -612,7 +639,8 @@ export default {
position: absolute;
left: 0;
top: 0;
background: url('~@/assets/companyCanban/矩形(装饰).png') no-repeat;
background: url("~@/assets/companyCanban/矩形(装饰).png")
no-repeat;
background-size: 100% 100%;
width: 15px;
height: 15px;

@ -10,25 +10,33 @@
<div class="topBody" v-if="fireData">
<div class="huozai">
<img src="../../assets/companyCanban/icon/火灾事故.png" alt="" />
<div class="flex-center">
<div class="huozaiText">火灾事故</div>
<div class="red">{{ fireData[0].numValue }}</div>
<div class="red mt3">{{ fireData[0].numValue }}</div>
</div>
</div>
<div class="huozai">
<img src="../../assets/companyCanban/icon/协助扑救.png" alt="" />
<div class="flex-center">
<div class="huozaiText">协助扑救</div>
<div class="yellow">{{ fireData[3].numValue }}</div>
<div class="yellow mt3">{{ fireData[3].numValue }}</div>
</div>
</div>
</div>
<div class="topBody" v-if="fireData">
<div class="huozai">
<img src="../../assets/companyCanban/icon/消防违建.png" alt="" />
<div class="flex-center">
<div class="huozaiText">消防违建</div>
<div class="blue">{{ fireData[2].numValue }}</div>
<div class="blue mt3">{{ fireData[2].numValue }}</div>
</div>
</div>
<div class="huozai">
<img src="../../assets/companyCanban/icon/其他事故.png" alt="" />
<div class="flex-center">
<div class="huozaiText">其他事故</div>
<div class="green">{{ fireData[1].numValue }}</div>
<div class="green mt3">{{ fireData[1].numValue }}</div>
</div>
</div>
</div>
</div>
@ -256,13 +264,16 @@ export default {
<style lang="less" scoped>
.xfwp {
width: calc(33.33% - 13.33px);
height: 100%;
/* width: calc(33.33% - 13.33px);
height: 100%; */
height: 36.42%;
width: 100%;
margin-bottom: 20px;
background: url("~@/assets/safetyIndex/modelback.png") no-repeat;
background-size: 100% 100%;
display: flex;
/* display: flex;
flex-wrap: wrap;
align-content: space-between;
align-content: space-between; */
.title {
width: 100%;
@ -313,24 +324,22 @@ export default {
}
.topBody {
height: 110px;
height: 50%;
width: 100%;
display: flex;
justify-content: space-between;
.huozai {
width: 60px;
//width: 60px;
height: 100%;
display: flex;
flex-wrap: wrap;
justify-content: center;
img {
width: 58px;
height: 58px;
width: 48px;
height: 48px;
}
.huozaiText {
margin-right: 2px;
font-size: 14px;
color: #ffffff;
letter-spacing: 1px;
@ -341,7 +350,7 @@ export default {
font-size: 16px;
color: #ffcbc9;
letter-spacing: 0.8px;
line-height: 33px;
text-shadow: 0 0 8px rgba(255, 52, 52, 0.5);
font-weight: 600;
}
@ -350,7 +359,7 @@ export default {
font-size: 16px;
color: #fff5c9;
letter-spacing: 0.8px;
line-height: 33px;
text-shadow: 0 0 8px rgba(255, 214, 52, 0.5);
font-weight: 600;
}
@ -359,7 +368,7 @@ export default {
font-size: 16px;
color: #c9edff;
letter-spacing: 0.8px;
line-height: 33px;
text-shadow: 0 0 8px rgba(52, 227, 255, 0.5);
font-weight: 600;
}
@ -368,7 +377,7 @@ export default {
font-size: 16px;
color: #c9fffb;
letter-spacing: 0.8px;
line-height: 33px;
text-shadow: 0 0 8px rgba(52, 255, 185, 0.5);
font-weight: 600;
}
@ -597,7 +606,7 @@ export default {
font-size: 16px;
color: #ffcbc9;
letter-spacing: 0.8px;
line-height: 33px;
text-shadow: 0 0 8px rgba(255, 52, 52, 0.5);
font-weight: 600;
}
@ -606,7 +615,7 @@ export default {
font-size: 16px;
color: #fff5c9;
letter-spacing: 0.8px;
line-height: 33px;
text-shadow: 0 0 8px rgba(255, 214, 52, 0.5);
font-weight: 600;
}
@ -615,7 +624,7 @@ export default {
font-size: 16px;
color: #c9edff;
letter-spacing: 0.8px;
line-height: 33px;
text-shadow: 0 0 8px rgba(52, 227, 255, 0.5);
font-weight: 600;
}
@ -624,7 +633,7 @@ export default {
font-size: 16px;
color: #c9fffb;
letter-spacing: 0.8px;
line-height: 33px;
text-shadow: 0 0 8px rgba(52, 255, 185, 0.5);
font-weight: 600;
}

@ -151,7 +151,7 @@ export default {
<style lang="less" scoped>
.xfwp {
width: calc(33.33% - 13.33px);
width: calc(50% - 13.33px);
height: 100%;
background: url('~@/assets/safetyIndex/modelback.png') no-repeat;
background-size: 100% 100%;

@ -27,7 +27,7 @@
</div>
</template>
</el-table-column>
<el-table-column label="防疫安全">
<!-- <el-table-column label="防疫安全">
<el-table-column show-overflow-tooltip label="疫苗接种数" width="35">
<template slot-scope="scope">
<div>
@ -56,7 +56,7 @@
</div>
</template>
</el-table-column>
</el-table-column>
</el-table-column> -->
<el-table-column label="人员安全">
<el-table-column show-overflow-tooltip label="流动人员" width="35">
<template slot-scope="scope">

@ -52,7 +52,7 @@
<div class="data_two">{{ this.company_score }}</div>
</div>
<div class="company_data_right">
<div class="score_portion">
<!-- <div class="score_portion">
<div class="score_img">
<div class="img_box img_01"></div>
</div>
@ -60,7 +60,7 @@
<div class="score_num">
{{ this.score_one }}
</div>
</div>
</div> -->
<div class="score_portion">
<div class="score_img">
<div class="img_box img_05"></div>
@ -204,7 +204,7 @@ export default {
created() {
console.log("params", this.$route.query);
this.deatail_data = JSON.parse(this.$route.query.params);
this.company_id = this.deatail_data.companyId // id,
this.company_id = this.deatail_data.companyId; // id,
if (this.deatail_data.scoreType === "month") {
this.search_select = "月度";
this.search_date = "1";
@ -222,24 +222,37 @@ export default {
this.company_name = this.deatail_data.companyName;
this.company_score = this.deatail_data.score;
//
this.score_one =
this.deatail_data.tbSafeCompanyStatisticsScoreDetails.find(item=>item.levelIndexOne == '防疫安全').score
this.score_two =
this.deatail_data.tbSafeCompanyStatisticsScoreDetails.find(item=>item.levelIndexOne == '人员安全').score
//this.score_one = this.deatail_data.tbSafeCompanyStatisticsScoreDetails.find(item=>item.levelIndexOne == '').score
this.score_two = this.deatail_data.tbSafeCompanyStatisticsScoreDetails.find(
(item) => item.levelIndexOne == "人员安全"
).score;
this.score_three =
this.deatail_data.tbSafeCompanyStatisticsScoreDetails.find(item=>item.levelIndexOne == '消防安全').score
this.deatail_data.tbSafeCompanyStatisticsScoreDetails.find(
(item) => item.levelIndexOne == "消防安全"
).score;
this.score_four =
this.deatail_data.tbSafeCompanyStatisticsScoreDetails.find(item=>item.levelIndexOne == '危化运输安全').score
this.deatail_data.tbSafeCompanyStatisticsScoreDetails.find(
(item) => item.levelIndexOne == "危化运输安全"
).score;
this.score_five =
this.deatail_data.tbSafeCompanyStatisticsScoreDetails.find(item=>item.levelIndexOne == '列管物品安全').score
this.score_six =
this.deatail_data.tbSafeCompanyStatisticsScoreDetails.find(item=>item.levelIndexOne == '内部治安安全').score
this.deatail_data.tbSafeCompanyStatisticsScoreDetails.find(
(item) => item.levelIndexOne == "列管物品安全"
).score;
this.score_six = this.deatail_data.tbSafeCompanyStatisticsScoreDetails.find(
(item) => item.levelIndexOne == "内部治安安全"
).score;
this.score_seven =
this.deatail_data.tbSafeCompanyStatisticsScoreDetails.find(item=>item.levelIndexOne == '道路安全').score
this.deatail_data.tbSafeCompanyStatisticsScoreDetails.find(
(item) => item.levelIndexOne == "道路安全"
).score;
this.score_eight =
this.deatail_data.tbSafeCompanyStatisticsScoreDetails.find(item=>item.levelIndexOne == '防攻击安全').score
this.deatail_data.tbSafeCompanyStatisticsScoreDetails.find(
(item) => item.levelIndexOne == "防攻击安全"
).score;
this.score_nine =
this.deatail_data.tbSafeCompanyStatisticsScoreDetails.find(item=>item.levelIndexOne == '网络安全').score
this.deatail_data.tbSafeCompanyStatisticsScoreDetails.find(
(item) => item.levelIndexOne == "网络安全"
).score;
},
mounted() {
this.get_time();

@ -12,7 +12,7 @@
</el-table-column>
<el-table-column prop="score" label="平安指数"> </el-table-column>
<el-table-column label="指标得分">
<el-table-column label="防疫安全" width="130">
<!-- <el-table-column label="防疫安全" width="130">
<template slot-scope="scope">
<div
v-for="item in scope.row.tbSafeCompanyStatisticsScoreDetails"
@ -23,7 +23,7 @@
}}</span>
</div>
</template>
</el-table-column>
</el-table-column> -->
<el-table-column label="人员安全" width="120">
<template slot-scope="scope">
<div

@ -111,11 +111,11 @@ export default {
label: "填报时间",
width: "200",
},
{
/* {
prop: "numValue",
label: "疫苗接种数",
width: "280",
},
}, */
{
prop: "alarmLevel",
label: "预警情况",
@ -154,7 +154,7 @@ export default {
console.log("this.three_level_arr", this.three_level_arr);
});
//
this.three_level_id = "5";
this.three_level_id = "16";
const new_arr = this.three_level_arr.filter(
(item) => item.id == this.three_level_id
);

@ -8,7 +8,7 @@
<th class="table_title_three">三级指标</th>
</tr>
<!-- 防疫安全 -->
<tr class="table_body">
<!-- <tr class="table_body">
<td rowspan="5">防疫安全</td>
<td >疫苗接种数</td>
<td @click="click_threelevel('5', '1')">疫苗接种数</td>
@ -20,14 +20,14 @@
<tr class="table_body">
<td >场所码数据</td>
<td @click="click_threelevel('10', '1')">场所码异常数</td>
</tr>
<tr class="table_body">
</tr> -->
<!-- <tr class="table_body">
<td rowspan="2">中高风险返企数</td>
<td @click="click_threelevel('12', '1')">境外人员</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('13', '1')">境内人员</td>
</tr>
</tr> -->
<!-- 人员安全 -->
<tr class="table_body">
<td rowspan="14">人员安全</td>
@ -441,11 +441,11 @@ export default {
return {
display_data: {},
one_index_three_level: [
{ id: 5, levelIndexThree: "疫苗接种数" },
/* { id: 5, levelIndexThree: "" },
{ id: 8, levelIndexThree: "核算检测率" },
{ id: 10, levelIndexThree: "场所码异常数" },
{ id: 12, levelIndexThree: "境外人员" },
{ id: 13, levelIndexThree: "境内人员" },
{ id: 13, levelIndexThree: "境内人员" }, */
],
};
},

@ -8,7 +8,7 @@
<th class="table_title_three">三级指标</th>
</tr>
<!-- 防疫安全 -->
<tr class="table_body">
<!-- <tr class="table_body">
<td rowspan="5" @click="click_onelevel('3')"></td>
<td @click="click_twolevel('4')"></td>
<td @click="click_threelevel('5', '1')">疫苗接种数</td>
@ -20,14 +20,14 @@
<tr class="table_body">
<td @click="click_twolevel('9')"></td>
<td @click="click_threelevel('10', '1')">场所码异常数</td>
</tr>
<tr class="table_body">
</tr> -->
<!-- <tr class="table_body">
<td @click="click_twolevel('11')" rowspan="2">中高风险返企数</td>
<td @click="click_threelevel('12', '1')">境外人员</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('13', '1')">境内人员</td>
</tr>
</tr> -->
<!-- 人员安全 -->
<tr class="table_body">
<td rowspan="14" @click="click_onelevel('14')"></td>
@ -441,11 +441,11 @@ export default {
return {
display_data: {},
one_index_three_level: [
{ id: 5, levelIndexThree: "疫苗接种数" },
/* { id: 5, levelIndexThree: "" },
{ id: 8, levelIndexThree: "核算检测率" },
{ id: 10, levelIndexThree: "场所码异常数" },
{ id: 12, levelIndexThree: "境外人员" },
{ id: 13, levelIndexThree: "境内人员" },
{ id: 13, levelIndexThree: "境内人员" }, */
],
};
},

@ -75,7 +75,7 @@ export default {
created() {
//
this.params = {
safeRuleId: 3,
safeRuleId: 14,
levelIndex: 1,
};
safeCalculation(this.params).then((res) => {

@ -15,15 +15,15 @@
<!-- 综合指数算法表单 -->
<div class="index_form">
<el-form v-if="!btn_flag" ref="form" :model="form" class="form">
<el-form-item label="+ 防疫安全 ×" prop="rate_two">
<!-- <el-form-item label="+ 防疫安全 ×" prop="rate_two">
<label slot="label"
>+&nbsp;&nbsp;&nbsp;&nbsp;防疫安全&nbsp;&nbsp;&nbsp;&nbsp;×</label
>
<el-input v-model="form.rate_two"></el-input>
</el-form-item>
<el-form-item label="+ 人员安全 ×" prop="rate_three">
</el-form-item> -->
<el-form-item label="人员安全 ×" prop="rate_three">
<label slot="label"
>+&nbsp;&nbsp;&nbsp;&nbsp;人员安全&nbsp;&nbsp;&nbsp;&nbsp;×</label
>&nbsp;&nbsp;&nbsp;&nbsp;人员安全&nbsp;&nbsp;&nbsp;&nbsp;×</label
>
<el-input v-model="form.rate_three"></el-input>
</el-form-item>
@ -77,15 +77,15 @@
class="text_form"
:disabled="disabled"
>
<el-form-item label="+ 防疫安全 ×" prop="rate_two">
<!-- <el-form-item label="+ 防疫安全 ×" prop="rate_two">
<label slot="label"
>+&nbsp;&nbsp;&nbsp;&nbsp;防疫安全&nbsp;&nbsp;&nbsp;&nbsp;×</label
>
<el-input v-model="form.rate_two"></el-input>
</el-form-item>
<el-form-item label="+ 人员安全 ×" prop="rate_three">
</el-form-item> -->
<el-form-item label="人员安全 ×" prop="rate_three">
<label slot="label"
>+&nbsp;&nbsp;&nbsp;&nbsp;人员安全&nbsp;&nbsp;&nbsp;&nbsp;×</label
>&nbsp;&nbsp;&nbsp;&nbsp;人员安全&nbsp;&nbsp;&nbsp;&nbsp;×</label
>
<el-input v-model="form.rate_three"></el-input>
</el-form-item>
@ -246,7 +246,7 @@ export default {
const obj = {
calculation: [
{ indexName: "内部治安管理", rate: this.form.rate_one, sort: "1" },
{ indexName: "防疫安全", rate: this.form.rate_two, sort: "2" },
/* { indexName: "防疫安全", rate: this.form.rate_two, sort: "2" }, */
{ indexName: "人员安全", rate: this.form.rate_three, sort: "3" },
{
indexName: "道路交通安全秩序管理",

Loading…
Cancel
Save