master
loveflow 7 months ago
parent d276ed5bb7
commit f4200797be

@ -1,42 +1,43 @@
.loveflow {
/* 定位 START */
.absolute {
position: absolute;
}
.relative {
position: relative;
}
.flex {
display: flex;
}
.flex-center {
display: flex;
justify-content: center;
align-items: center;
}
/* 定位 END */
/* 定位 START */
.absolute {
position: absolute;
}
.relative {
position: relative;
}
.flex {
display: flex;
}
.flex-center {
display: flex;
justify-content: center;
align-items: center;
}
/* 定位 END */
/* 间距 START*/
.mt6 {
margin-top: 6px;
}
.mr6 {
margin-right: 6px;
}
/* 间距 END*/
/* 间距 START*/
.mt6 {
margin-top: 6px;
}
.mt3 {
margin-top: 3px;
}
.mr6 {
margin-right: 6px;
}
/* 间距 END*/
/* 字体 START */
.fontWeight {
font-weight: bold;
}
.textGreen {
color: green;
}
.textRed {
color: red;
}
.textBlue {
color: blue;
}
/* 字体 END */
/* 字体 START */
.fontWeight {
font-weight: bold;
}
.textGreen {
color: green;
}
.textRed {
color: red;
}
.textBlue {
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,102 +1,106 @@
<template>
<div class="mainBox">
<div class="leftBox">
<fangyi :companyId="companyId" v-if="companyId"></fangyi>
<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>
<div class="middleBody">
<xiaofang :companyId="companyId" v-if="companyId"></xiaofang>
<lieguan :companyId="companyId" v-if="companyId"></lieguan>
<zhian :companyId="companyId" v-if="companyId"></zhian>
</div>
</div>
<div class="rightBox">
<daolu :companyId="companyId" v-if="companyId"></daolu>
<fanggopngji :companyId="companyId" v-if="companyId"></fanggopngji>
<wangluo :companyId="companyId" v-if="companyId"></wangluo>
</div>
<div class="mainBox">
<div class="leftBox">
<!-- <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>
<div class="middleBody">
<!-- <xiaofang :companyId="companyId" v-if="companyId"></xiaofang> -->
<lieguan :companyId="companyId" v-if="companyId"></lieguan>
<zhian :companyId="companyId" v-if="companyId"></zhian>
</div>
</div>
<div class="rightBox">
<daolu :companyId="companyId" v-if="companyId"></daolu>
<fanggopngji :companyId="companyId" v-if="companyId"></fanggopngji>
<wangluo :companyId="companyId" v-if="companyId"></wangluo>
</div>
</div>
</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,
renyuan,
weihuapin,
canban,
xiaofang,
lieguan,
zhian,
daolu,
fanggopngji,
wangluo
},
data() {
return {
companyId: '',
companyData: {}
}
},
created() {
this.companyId = sessionStorage.getItem('companyID')
companyBaseInfo({ id: this.companyId }).then(res => [
this.companyData = res.data,
console.log(this.companyData, 'this.companyData')
])
},
}
components: {
//fangyi,
renyuan,
weihuapin,
canban,
xiaofang,
lieguan,
zhian,
daolu,
fanggopngji,
wangluo,
},
data() {
return {
companyId: "",
companyData: {},
};
},
created() {
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>
.mainBox {
width: 100%;
height: calc(100% - 80px);
box-sizing: border-box;
display: flex;
padding: 20px;
width: 100%;
height: calc(100% - 80px);
box-sizing: border-box;
display: flex;
padding: 20px;
.leftBox {
width: 400px;
height: 100%;
margin-right: 20px;
box-sizing: border-box;
}
.leftBox {
width: 400px;
height: 100%;
margin-right: 20px;
box-sizing: border-box;
}
.middleBox {
width: calc(100% - 840px);
height: 100%;
.middleBox {
width: calc(100% - 840px);
height: 100%;
.middleBody {
margin-top: 20px;
height: calc(37.94% - 40px);
width: 100%;
display: flex;
justify-content: space-between;
}
.middleBody {
margin-top: 20px;
height: calc(37.94% - 40px);
width: 100%;
display: flex;
justify-content: space-between;
}
}
.rightBox {
width: 400px;
height: 100%;
margin-left: 20px;
box-sizing: border-box;
}
.rightBox {
width: 400px;
height: 100%;
margin-left: 20px;
box-sizing: border-box;
}
}
</style>

File diff suppressed because it is too large Load Diff

@ -10,25 +10,33 @@
<div class="topBody" v-if="fireData">
<div class="huozai">
<img src="../../assets/companyCanban/icon/火灾事故.png" alt="" />
<div class="huozaiText">火灾事故</div>
<div class="red">{{ fireData[0].numValue }}</div>
<div class="flex-center">
<div class="huozaiText">火灾事故</div>
<div class="red mt3">{{ fireData[0].numValue }}</div>
</div>
</div>
<div class="huozai">
<img src="../../assets/companyCanban/icon/协助扑救.png" alt="" />
<div class="huozaiText">协助扑救</div>
<div class="yellow">{{ fireData[3].numValue }}</div>
<div class="flex-center">
<div class="huozaiText">协助扑救</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="huozaiText">消防违建</div>
<div class="blue">{{ fireData[2].numValue }}</div>
<div class="flex-center">
<div class="huozaiText">消防违建</div>
<div class="blue mt3">{{ fireData[2].numValue }}</div>
</div>
</div>
<div class="huozai">
<img src="../../assets/companyCanban/icon/其他事故.png" alt="" />
<div class="huozaiText">其他事故</div>
<div class="green">{{ fireData[1].numValue }}</div>
<div class="flex-center">
<div class="huozaiText">其他事故</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>
@ -150,7 +150,7 @@
</div>
</el-card>
</template>
<script>
<script>
import Season from "./season";
import IndexTableDetail from "./indexTableDetail";
import DetailsTable from "./detailsTable";
@ -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();
@ -375,7 +388,7 @@ export default {
},
};
</script>
<style lang="less" scoped>
<style lang="less" scoped>
/* card统一样式 */
.el-card.box-card.is-always-shadow {
border: 0px;

@ -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