xuhaoyun 1 year ago
commit 8621a45b05

@ -7,4 +7,12 @@ export function getSafeCompany(params) {
method: 'post',
params
})
}
// 请求企业赋分表格主页
export function getSafeCompanyDetail(params) {
return request({
url: '/safety/system/tbSafeCompanyScoreDetail/getSafeCompanyScoreDetail',
method: 'post',
params
})
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

@ -62,12 +62,18 @@ const routes = [
name: 'companyScore',
component: () => import('@/views/systemManagement/companyScore'),
},
// 企业名单
// 企业赋分详情
{
path: 'companyList',
name: 'companyList',
component: () => import('@/views/systemManagement/companyList'),
path: 'companyDetails',
name: 'companyDetails',
component: () => import('@/views/systemManagement/companyScore/components/companyDetails'),
},
// 企业名单
// {
// path: 'companyList',
// name: 'companyList',
// component: () => import('@/views/systemManagement/companyList'),
// },
// 关联设备
{
path: 'correlationEquipment',
@ -86,7 +92,13 @@ const routes = [
component: () => import('@/views/systemManagement/companyList'),
}
]
}
},
// 闭环处置
{
path: 'closeLoopDispose',
name: 'closeLoopDispose',
component: () => import('@/views/closeLoopDispose'),
},
]
},
{

@ -4,9 +4,9 @@ import vm from "../main";
import { getToken } from '@/utils/auth'
axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
const request = axios.create({
baseURL: 'http://172.18.113.50:8080/zhapi',
//baseURL: 'http://172.18.113.50:8080/zhapi',
//baseURL: 'http://192.168.0.188:8888/zhapi',
//baseURL: `http://${window.location.host}/zhapi`,
baseURL: `http://${window.location.host}/zhapi`,
timeout: 50000,
headers: { 'content-type': 'application/json' },
})

@ -0,0 +1,463 @@
<template>
<!-- 我的流程 -->
<div>
<div class="course_body">
<div class="search_top">
<div class="btn">
<el-button @click="search_data"></el-button>
<el-button @click="reset"></el-button>
</div>
<el-form :model="search" class="search_top_form">
<el-form-item label="流程状态">
<el-select v-model="search.course_select" @change="change_course">
<el-option
v-for="item in course_list"
:key="item.value"
:label="item.label"
:value="item.label"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="创建时间">
<el-date-picker
v-model="search.course_time"
type="datetimerange"
:picker-options="pickerOptions"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
>
</el-date-picker>
</el-form-item>
<el-form-item label="关键字">
<el-input
v-model="search.word"
placeholder="请选择关键词"
></el-input>
</el-form-item>
</el-form>
</div>
<div class="search_table">
<el-table
:data="table_data"
:header-cell-style="table_header"
:cell-style="{ background: 'revert', 'text-align': 'center' }"
>
<el-table-column prop="course_name" label="流程名称" width="420">
</el-table-column>
<el-table-column prop="create_time" label="创建时间" width="280">
</el-table-column>
<el-table-column prop="course_type" label="流程类型" width="280">
</el-table-column>
<el-table-column prop="course_status" label="流程状态" width="220">
<template slot-scope="scope">
<div :style="{ color: styleChange(scope.row.course_status) }">
{{ scope.row.course_status }}
</div>
</template>
</el-table-column>
<el-table-column prop="tips" label="当前节点" width="220">
</el-table-column>
<el-table-column prop="person" label="未操作者" width="280">
</el-table-column>
<el-table-column prop="operation" label="操作">
<template slot-scope="scope">
<el-button
size="small"
class="operation"
@click="check_details(scope.row)"
>详情
</el-button>
</template>
</el-table-column>
</el-table>
<!-- 分页 -->
<div class="table_pagination">
<el-pagination
:background="true"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:page-sizes="[5, 10]"
:pager-count="5"
:page-size="pageSize"
:current-page="pageNum"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
>
</el-pagination>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: "MyCourse",
data() {
return {
search: {
course_select: "待审核",
course_num: "1", //
course_time: [this.get_today(), this.get_tomorrow()],
word: "",
},
course_list: [
{ label: "待审核", value: "1" },
{ label: "通过", value: "2" },
{ label: "驳回", value: "3" },
{ label: "处置中", value: "4" },
],
pickerOptions: {
shortcuts: [
{
text: "最近一周",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近一个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近三个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit("pick", [start, end]);
},
},
],
},
table_data: [
{
course_name: "宁波市北越石化有限公司-核酸检测率-异常处置",
create_time: "2023-06-06 12:53:30",
course_type: "防疫安全",
course_status: "进行中",
tips: "治安大队",
person: "王伟、李勋勋",
},
{
course_name: "宁波市北越石化有限公司-核酸检测率-异常处置",
create_time: "2023-06-06 12:53:30",
course_type: "防疫安全",
course_status: "处置成功",
tips: "治安大队",
person: "王伟、李勋勋",
},
{
course_name: "宁波市北越石化有限公司-核酸检测率-异常处置",
create_time: "2023-06-06 12:53:30",
course_type: "防疫安全",
course_status: "处置失败",
tips: "治安大队",
person: "王伟、李勋勋",
},
],
pageSize: 10,
pageNum: 1,
total: 0,
};
},
created() {},
methods: {
change_course(val) {
this.search.course_num = this.course_list.find((item) => {
item.label === val;
}).value;
},
//
search_data() {
console.log("this.search.course_time", this.search.course_time);
let param = {
startTime:
this.search.course_time == null
? ""
: this.dateConversion(this.search.course_time[0]),
endTime:
this.search.course_time == null
? ""
: this.dateConversion(this.search.course_time[1]),
};
console.log("param", param);
},
//
reset() {
this.search.course_select = "待审核";
this.search.course_num = "1";
this.search.course_time = [this.get_today(), this.get_tomorrow()];
this.search.word = "";
this.search_data();
},
//
check_details(val) {
console.log(val);
this.$emit("change_to_detail");
},
//
dateConversion(value) {
let date = new Date(value);
let y = date.getFullYear();
let m = date.getMonth() + 1;
m = m < 10 ? "0" + m : m;
let d = date.getDate();
d = d < 10 ? "0" + d : d;
let h = date.getHours();
h = h < 10 ? "0" + h : h;
let M = date.getMinutes();
M = M < 10 ? "0" + M : M;
let s = date.getSeconds();
s = s < 10 ? "0" + s : s;
let dateTime = y + "-" + m + "-" + d + " " + h + ":" + M + ":" + s;
return dateTime;
},
//
get_today() {
let date = new Date();
let y = date.getFullYear();
let m = date.getMonth() + 1;
m = m < 10 ? "0" + m : m;
let d = date.getDate();
d = d < 10 ? "0" + d : d;
let dateTime =
y + "-" + m + "-" + d + " " + "00" + ":" + "00" + ":" + "00";
return dateTime;
},
//
get_tomorrow() {
let date = new Date();
let y = date.getFullYear();
let m = date.getMonth() + 1;
m = m < 10 ? "0" + m : m;
let d = date.getDate() + 1;
d = d < 10 ? "0" + d : d;
let dateTime =
y + "-" + m + "-" + d + " " + "00" + ":" + "00" + ":" + "00";
return dateTime;
},
//
table_header({ row, rowIndex }) {
console.log(row);
console.log(rowIndex);
return {
"text-align": "center", //
color: "#fff",
border: "0.1px solid #3b4f5c",
};
},
//
styleChange(val) {
switch (val) {
case "进行中":
return "#3eba75";
// case "yellow":
// return "#FDA722";
case "处置成功":
return "#2eb9ef";
case "处置失败":
return "#e55b5b";
}
},
handleSizeChange(val) {
console.log(`每页 ${val}`);
this.pageNum = 1;
this.pageSize = val;
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.pageNum = val;
},
},
};
</script>
<style lang="less" scoped>
/deep/.el-table {
// width: 96vw;
height: 60vh;
background: rgba(0, 0, 0, 0);
border: 0.1px solid #3f5564;
thead {
color: #fff;
font-weight: 500;
border: 0.1px solid #3f5564;
background: linear-gradient(
to right,
#284f49,
#2f6363 5%,
#233b38 80%
) !important;
& th {
background-color: transparent;
}
& tr {
background-color: transparent;
}
}
tr {
color: #fff;
background: rgba(0, 0, 0, 0);
}
}
/deep/ .el-table td.el-table__cell,
.el-table th.el-table__cell.is-leaf {
border: 0.1px solid #3f5564;
}
/deep/.el-button.operation {
background-color: #182527;
border: 0px;
color: #2fabdc;
}
/deep/.el-button.operation:hover,
.el-button.operation:focus {
background-color: #182527;
border: 0px;
color: #2fabdc;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
}
.course_body {
height: 72vh;
// border: 0.1px solid #2f6363;
.search_top {
width: 96vw;
height: 5vh;
// border: 0.1px solid #2f6363;
display: flex;
flex-direction: row-reverse;
/deep/.el-form {
display: flex;
.el-form-item {
display: flex;
margin-left: 0.5vw;
.el-date-editor--daterange.el-input__inner {
width: 440px;
}
}
.el-form-item__label {
text-align: center;
color: #fff;
}
.el-form-item__content {
.el-input__inner {
// width: 300px;
border-radius: 0px;
border: 1px solid #3d505e;
// border: 0.5px dashed;
background: #283436;
color: #fff;
}
/* 查询框点击颜色变化 */
.el-input__inner:focus,
.el-input__inner:hover {
border-color: #1b3736;
}
.el-range-input {
color: #fff;
background: #283436;
}
}
}
/deep/.el-range-separator {
color: #fff;
width: 10%;
}
/deep/.el-input__icon.el-range__close-icon {
display: none;
}
.btn {
margin-left: 8px;
margin-right: 2px;
}
.el-button {
width: 70px;
height: 4.1vh;
border: 1px solid #4a6072;
color: #fff;
border-radius: 0px !important;
background: #323f43;
}
.el-button:focus,
.el-button:hover {
color: #34e1b3;
border: 2px solid #137868;
background: url("~@/assets/companyFile/2121.png") no-repeat !important;
background-size: 100% 100% !important;
}
}
.search_table {
width: 96vw;
height: 67vh;
// border: 0.1px solid #2f6363;
}
}
.table_pagination {
width: 96vw;
height: 5vh;
/deep/.el-input--suffix .el-input__inner {
color: #fff;
border: 0.1px solid #277f79;
border-radius: 0px;
background: rgba(0, 0, 0, 0);
width: 5vw;
// height: 2.6vh;
// line-height: 2.6vh;
}
/deep/.el-input__icon {
color: #fff;
line-height: 2.6vh;
height: 2.6vh;
}
/deep/.el-pagination {
margin-left: 65%;
margin-top: 2vh;
.el-pagination__total {
color: #fff;
}
.el-input__inner {
border-radius: 0px;
border: 0.1px solid #277f79;
background: #3c4b4a;
color: #fff;
}
.btn-prev {
border-radius: 0px;
border: 0.1px solid #277f79;
background: #3c4b4a;
color: #fff;
}
ul {
li {
border: 0.1px solid #277f79;
background: #3c4b4a;
color: #fff;
}
}
.btn-next {
border: 0.1px solid #277f79;
border-radius: 0px;
background: #3c4b4a;
color: #fff;
}
.el-pager {
li {
border: 0.1px solid #34a6a6;
background: #3c4b4a !important;
}
}
}
}
</style>

@ -0,0 +1,72 @@
<template>
<!-- 我的流程详情 -->
<div>
<el-tabs v-model="activeName">
<el-tab-pane label="表单信息" name="first">
<MyCourseDetailForm ref="myCourseDetailForm"></MyCourseDetailForm>
</el-tab-pane>
<el-tab-pane label="流程图" name="second">流程图</el-tab-pane>
<el-tab-pane label="流转记录" name="third">流转记录</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import MyCourseDetailForm from "./myCourseDetailForm";
export default {
name: "MyCourseDetail",
components:{
MyCourseDetailForm
},
data() {
return {
activeName: "first",
};
},
};
</script>
<style lang="less" scoped>
/deep/.el-tabs__active-bar.is-top {
display: none;
background: #33cccc;
}
/deep/.el-tabs__nav-wrap::after {
height: 1px;
background: #5b748c;
}
/deep/.el-tabs__item.is-top {
color: #fff;
font-size: 17px;
padding-left: 20px !important;
padding-right: 20px;
// margin-right: 20px;
}
/deep/.el-tabs__item.is-top.is-active {
padding-left: 20px;
padding-right: 20px;
color: #fff;
font-size: 17px;
border-bottom: 4px solid #33cccc;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
background: linear-gradient(
to bottom,
rgba(0, 0, 0, 0),
#3a5856,
#3b746c
) !important;
}
/deep/.el-tabs__item.is-top:focus,
.el-tabs__item.is-top:hover {
padding-left: 20px;
padding-right: 20px;
color: #fff;
font-size: 17px;
border-bottom: 4px solid #33cccc;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
background: linear-gradient(
to bottom,
rgba(0, 0, 0, 0),
#3a5856,
#3b746c
) !important;
}
</style>

@ -0,0 +1,320 @@
<template>
<!-- 处置详情的表单信息 -->
<div>
<div class="basic_message">
<div class="basic_message_title">基本信息</div>
<div class="basic_message_body">
<div class="basic_message_text_one">
<div class="basic_message_text">流程名称:</div>
<div class="basic_message_text">流程类型:</div>
<div class="basic_message_text">预警时间:</div>
<div class="basic_message_text">预警等级:</div>
</div>
<!-- 此列为数据展示 -->
<div class="basic_message_value_one">
<div class="basic_message_value">
宁波市北越石化有限公司-核酸检测率-异常处置
</div>
<div class="basic_message_value">防疫安全</div>
<div class="basic_message_value">2023-06-06 12:53:30</div>
<div class="basic_message_value">二级</div>
</div>
<div class="basic_message_text_two">
<div class="basic_message_text">企业名称:</div>
<div class="basic_message_text">流程状态:</div>
<div class="basic_message_text">预警指标:</div>
</div>
<!-- 此列为数据展示 -->
<div class="basic_message_value_two">
<div class="basic_message_value_tag">宁波市北越石化有限公司</div>
<div class="basic_message_value">进行中</div>
<div class="basic_message_value">核算检测率</div>
</div>
</div>
</div>
<div class="course_idea">
<div class="course_idea_title">流转意见</div>
<div class="course_idea_body">
<!-- 遍历展示人员信息 -->
<div
v-for="item in course_list"
:key="item.id"
class="course_idea_person"
>
<div class="course_idea_person_img">
<el-image :src="item.personUrl">
<div slot="error" class="image-slot">
<img src="../../../assets/companyFile/avatar.png" alt="" />
</div>
</el-image>
<div class="course_idea_person_information">
<div class="course_idea_person_name">{{ item.name }}</div>
<div class="course_idea_person_team">{{ item.team }}</div>
</div>
</div>
<div class="course_idea_person_text">
<!-- 第一行处理意见 -->
<div class="dispose_idea">
<div class="course_text">处理意见:</div>
<div class="course_value">{{ item.course_value }}</div>
</div>
<!-- 第二行附件 按需显示或者隐藏 -->
<div v-if="attachment_show" class="attachment">
<div class="course_text">附件:</div>
<!-- 此处后面会改为下载图片链接 -->
<div class="course_value">{{ item.attachment_value }}</div>
</div>
<!-- 第三行抄送人 -->
<div class="send_person">
<div class="course_text">抄送人:</div>
<div class="course_value">{{ item.send_person }}</div>
</div>
<!-- 第四行时间 -->
<div class="course_time">
<div class="course_text">时间:</div>
<div class="course_value">{{ item.course_time }}</div>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
attachment_show: true, //
course_list: [
{
id: "1",
personUrl: "../../../assets/companyFile/avatar.png",
name: "吴沁",
team: "技侦大队",
course_value:
"2022年8月20日0时32分,我队接到预警称浙江浙江鑫甬生物化工股份有限公司存在运输车辆频繁违章情况。接报后值班民警于立即到达现场,经现场了解到:危化品运输车(浙B2M50R)为外来租赁货车,司机王某(身份证号:42109119880717****)疑似前科重点人员。目前司机已经带回所以便进一步调查。2022年8月20日0时32分,我队接到预警称浙江浙江鑫甬生物化工股份有限公司存在运输车辆频繁违章情况。接报后值班民警于立即到达现场,经现场了解到:危化品运输车(浙B2M50R)为外来租赁货车,司机王某(身份证号:42109119880717****)疑似前科重点人员。目前司机已经带回所以便进一步调查。",
attachment_value: "20220820现场处置照片.jpg",
send_person: "蔡坤、黄毅、李丹丹、张强强",
course_time: "2022-11-13 12:10:08",
},
{
id: "2",
personUrl: "../../../assets/companyFile/avatar.png",
name: "吴沁",
team: "技侦大队",
course_value:
"2022年8月26日12时许,经过分析,我队决定对浙江浙江鑫甬生物化工股份有限公司的外来租赁危化品运输车(浙B2M50R)司机王某(身份证号:42109119880717****)做出吊销货车驾照处罚,立即执行。",
},
{
id: "3",
personUrl: "../../../assets/companyFile/avatar.png",
name: "吴沁",
team: "技侦大队",
course_value:
"2022年8月26日12时许,经过分析,我队决定对浙江浙江鑫甬生物化工股份有限公司的外来租赁危化品运输车(浙B2M50R)司机王某(身份证号:42109119880717****)做出吊销货车驾照处罚,立即执行。",
},
{
id: "4",
personUrl: "../../../assets/companyFile/avatar.png",
name: "吴沁",
team: "技侦大队",
course_value:
"2022年8月20日0时32分,我队接到预警称浙江浙江鑫甬生物化工股份有限公司存在运输车辆频繁违章情况。接报后值班民警于立即到达现场,经现场了解到:危化品运输车(浙B2M50R)为外来租赁货车,司机王某(身份证号:42109119880717****)疑似前科重点人员。目前司机已经带回所以便进一步调查。2022年8月20日0时32分,我队接到预警称浙江浙江鑫甬生物化工股份有限公司存在运输车辆频繁违章情况。接报后值班民警于立即到达现场,经现场了解到:危化品运输车(浙B2M50R)为外来租赁货车,司机王某(身份证号:42109119880717****)疑似前科重点人员。目前司机已经带回所以便进一步调查。",
attachment_value: "20220820现场处置照片.jpg",
send_person: "蔡坤、黄毅、李丹丹、张强强",
course_time: "2022-11-13 12:10:08",
},
],
};
},
};
</script>
<style lang="less" scoped>
.basic_message {
width: 95.9vw;
height: 22vh;
border: 0.1px solid #3f5564;
// background: url("~@/assets/companyFile/course_01.png") no-repeat !important;
// background-size: 100% 100% !important;
.basic_message_title {
width: 94vw;
height: 4vh;
margin-left: 1vw;
border-bottom: 0.1px solid #3f5564;
line-height: 4vh;
color: #fff;
text-shadow: 0 0 9px #ff8b4e;
}
.basic_message_body {
width: 94vw;
height: 16vh;
margin-top: 0.5vh;
margin-left: 1vw;
// border: 0.1px solid #3f5564;
display: flex;
.basic_message_text_one,
.basic_message_text_two {
width: 5vw;
height: 16vh;
// background: #ff8b4e;
display: flex;
flex-direction: column;
.basic_message_text {
width: 5vw;
height: 4vh;
line-height: 4vh;
color: rgb(230, 207, 207);
text-align: right;
}
}
.basic_message_value_one {
width: 30vw;
height: 16vh;
// background: #ff8b4e;
display: flex;
flex-direction: column;
.basic_message_value {
width: 30vw;
height: 4vh;
line-height: 4vh;
color: #fff;
text-align: left;
}
}
.basic_message_value_two {
width: 52vw;
height: 16vh;
// background: #ff8b4e;
display: flex;
flex-direction: column;
.basic_message_value_tag {
// background: #ff8b4e;
width: 52vw;
height: 4vh;
line-height: 4vh;
color: #409eff;
}
.basic_message_value {
width: 52vw;
height: 4vh;
line-height: 4vh;
color: #fff;
text-align: left;
}
}
}
}
.course_idea {
width: 95.9vw;
height: 47vh;
margin-top: 2vh;
border: 0.1px solid #3f5564;
.course_idea_title {
width: 94vw;
height: 4vh;
margin-left: 1vw;
border-bottom: 0.1px solid #3f5564;
line-height: 4vh;
color: #fff;
text-shadow: 0 0 9px #ff8b4e;
}
}
.course_idea_body {
width: 95.9vw;
height: 42vh;
overflow-y: scroll;
}
.course_idea_body::-webkit-scrollbar {
display: none;
width: 6px;
background-color: #5e666a;
border-radius: 4px;
}
.course_idea_body::-webkit-scrollbar-thumb {
display: none;
width: 5px;
background-color: #3c4b4a;
border-radius: 4px;
}
/deep/.el-descriptions__header {
margin-bottom: 0px;
text-shadow: 0 0 9px #ff8b4e;
height: 6vh;
line-height: 6vh;
color: #fff;
}
/deep/.el-descriptions__title {
margin-left: 10px;
}
/deep/.el-descriptions__body {
color: #fff;
background: rgba(0, 0, 0, 0);
}
/deep/.el-descriptions-item.el-descriptions-item__cell {
width: 50%;
}
/* 个人信息不固定高度,给个人信息自由展示空间 */
.course_idea_person {
width: 94vw;
border: 0.1px solid #3f5564;
background: rgba(209, 199, 199, 0.1);
margin-top: 1vh;
margin-left: 1vw;
display: flex;
.course_idea_person_img {
width: 10vw;
height: 7vh;
margin-left: 1.5vw;
// border: 0.1px solid #3f5564;
display: flex;
.el-image {
margin-top: 0.5vh;
width: 2.7vw;
height: 5vh;
img {
width: 2.7vw;
height: 5vh;
}
}
.course_idea_person_information {
margin-left: 1vw;
display: flex;
flex-direction: column;
.course_idea_person_name {
// color: rgb(230, 207, 207);
color: #fff;
font-weight: 600;
height: 3vh;
line-height: 3vh;
}
.course_idea_person_team {
color: rgb(230, 207, 207);
font-size: 14px;
height: 3vh;
line-height: 3vh;
}
}
}
.course_idea_person_text {
width: 75vw;
margin-left: 1vw;
// border: 0.1px solid #3f5564;
.dispose_idea,
.attachment,
.send_person,
.course_time {
display: flex;
}
.course_text {
width: 4vw;
color: rgb(230, 207, 207);
}
.course_value {
width: 65vw;
color: #fff;
text-align: left;
}
}
}
</style>

@ -0,0 +1,134 @@
<template>
<!-- 闭环处置 -->
<el-card class="box-card">
<div class="topZS"></div>
<div class="bottomZS"></div>
<div slot="header" class="clearfix">
<el-breadcrumb class="head_title" separator-class="el-icon-arrow-right">
<!-- 负责头部展示的面包屑, 不和内部tab标签同名 -->
<el-breadcrumb-item @click.native="back_home_page"
>闭环处置</el-breadcrumb-item
>
<el-breadcrumb-item v-if="is_flag === '1'"></el-breadcrumb-item>
</el-breadcrumb>
</div>
<el-tabs v-if="is_flag === '0'" v-model="activeName">
<el-tab-pane label="我的流程" name="first">
<MyCourse
ref="myCourse"
@change_to_detail="change_to_detail"
></MyCourse>
</el-tab-pane>
<el-tab-pane label="代办任务(7)" name="second">代办任务</el-tab-pane>
<el-tab-pane label="已办任务" name="third">已办任务</el-tab-pane>
<el-tab-pane label="抄送我的" name="fourth">抄送我的</el-tab-pane>
</el-tabs>
<MyCourseDetail
ref="myCourseDetail"
v-else-if="is_flag === '1'"
></MyCourseDetail>
</el-card>
</template>
<script>
import MyCourse from "./components/myCourse";
import MyCourseDetail from "./components/myCourseDetail";
export default {
name: "CloseLoopDispose",
components: {
MyCourse,
MyCourseDetail,
},
data() {
return {
activeName: "first",
is_flag: "0", // tab
};
},
methods: {
// 使
change_to_detail() {
this.is_flag = "1";
},
//
back_home_page() {
this.is_flag = "0";
},
},
};
</script>
<style lang="less" scoped>
/* card统一样式 */
.el-card.box-card.is-always-shadow {
border: 0px;
width: 98vw;
height: 88.8vh; /* 控制card布局高度,用于适配 */
margin-top: 2vh;
margin-left: 1vw;
position: relative;
background: url("~@/assets/companyFile/22136.png") no-repeat !important;
background-size: 100% 100% !important;
}
/* card统一样式 */
/deep/.el-card__header {
margin-top: 1vh;
border-bottom: 1px solid #5b748c !important;
.clearfix {
.head_title {
height: 2vh;
line-height: 2vh;
font-size: 17px;
font-weight: 400;
color: #fff !important;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
}
}
}
/deep/.el-breadcrumb__inner {
color: #fff !important;
cursor: pointer;
}
/deep/.el-tabs__active-bar.is-top {
display: none;
background: #33cccc;
}
/deep/.el-tabs__nav-wrap::after {
height: 1px;
background: #5b748c;
}
/deep/.el-tabs__item.is-top {
color: #fff;
font-size: 17px;
padding-left: 20px !important;
padding-right: 20px;
// margin-right: 20px;
}
/deep/.el-tabs__item.is-top.is-active {
padding-left: 20px;
padding-right: 20px;
color: #fff;
font-size: 17px;
border-bottom: 4px solid #33cccc;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
background: linear-gradient(
to bottom,
rgba(0, 0, 0, 0),
#3a5856,
#3b746c
) !important;
}
/deep/.el-tabs__item.is-top:focus,
.el-tabs__item.is-top:hover {
padding-left: 20px;
padding-right: 20px;
color: #fff;
font-size: 17px;
border-bottom: 4px solid #33cccc;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
background: linear-gradient(
to bottom,
rgba(0, 0, 0, 0),
#3a5856,
#3b746c
) !important;
}
</style>

@ -12,7 +12,7 @@
<div class="shu"></div>
<el-menu-item index="2" route="/home">实时预警</el-menu-item>
<div class="shu"></div>
<el-menu-item index="3" route="/home">闭环处置</el-menu-item>
<el-menu-item index="3" route="/home/closeLoopDispose">闭环处置</el-menu-item>
<div class="shu"></div>
<el-menu-item index="4" route="/home">要素资源</el-menu-item>
<div class="shu"></div>

@ -0,0 +1,624 @@
<template>
<!-- 企业赋分 -->
<el-card class="box-card">
<div class="topZS"></div>
<div class="bottomZS"></div>
<div slot="header" class="clearfix">
<span>企业赋分</span>
</div>
<div class="cardBody">
<div class="search_top">
<div class="left">{{ this.company_name }}</div>
<div class="right">
<el-select v-model="search_select" @change="date_select">
<el-option
v-for="item in day_list"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
<el-date-picker
v-if="this.search_date === '1'"
v-model="month_date"
type="month"
@change="month_change"
value-format="yyyy-MM"
placeholder="选择月"
>
</el-date-picker>
<Season
v-if="this.search_date === '2'"
ref="season"
:show_value="show_value"
@getValue="getValue"
@get_season_param="get_season_param"
></Season>
<el-date-picker
v-if="this.search_date === '3'"
v-model="year_date"
type="year"
@change="year_change"
value-format="yyyy"
placeholder="选择年"
>
</el-date-picker>
</div>
</div>
<div class="company_data">
<div class="company_data_left">
<div class="data_one">综合平安指数</div>
<div class="data_two">{{ this.company_score }}</div>
</div>
<div class="company_data_right">
<div class="score_portion">
<div class="score_img">
<div class="img_box img_01"></div>
</div>
<div class="score_name">防疫安全</div>
<div class="score_num">
{{ this.score_one }}
</div>
</div>
<div class="score_portion">
<div class="score_img">
<div class="img_box img_02"></div>
</div>
<div class="score_name">人员安全</div>
<div class="score_num">
{{ this.score_two }}
</div>
</div>
<div class="score_portion">
<div class="score_img">
<div class="img_box img_03"></div>
</div>
<div class="score_name">消防安全</div>
<div class="score_num">
{{ this.score_three }}
</div>
</div>
<div class="score_portion">
<div class="score_img">
<div class="img_box img_04"></div>
</div>
<div class="score_name">危化运输安全</div>
<div class="score_num">
{{ this.score_four }}
</div>
</div>
<div class="score_portion">
<div class="score_img">
<div class="img_box img_05"></div>
</div>
<div class="score_name">列管物品安全</div>
<div class="score_num">
{{ this.score_five }}
</div>
</div>
<div class="score_portion">
<div class="score_img">
<div class="img_box img_06"></div>
</div>
<div class="score_name">内部治安安全</div>
<div class="score_num">
{{ this.score_six }}
</div>
</div>
<div class="score_portion">
<div class="score_img">
<div class="img_box img_07"></div>
</div>
<div class="score_name">消防道路安全</div>
<div class="score_num">
{{ this.score_seven }}
</div>
</div>
<div class="score_portion">
<div class="score_img">
<div class="img_box img_08"></div>
</div>
<div class="score_name">防攻击安全</div>
<div class="score_num">
{{ this.score_eight }}
</div>
</div>
<div class="score_portion">
<div class="score_img">
<div class="img_box img_09"></div>
</div>
<div class="score_name">网络安全</div>
<div class="score_num">
{{ this.score_nine }}
</div>
</div>
</div>
</div>
<div class="company_bottom">
<div class="left_table">
<div class="left_table_title">赋分</div>
<IndexTable ref="indexTable"></IndexTable>
</div>
<div class="right_table">
<DetailsTable
ref="detailsTable"
:company_id="company_id"
></DetailsTable>
</div>
</div>
</div>
</el-card>
</template>
<script>
import Season from "./season";
import IndexTable from "./indexTable";
import DetailsTable from "./detailsTable";
import { getSafeCompany } from "@/api/systemManagement/companyScore";
export default {
name: "CompanyDetails",
components: {
Season,
IndexTable,
DetailsTable,
},
data() {
return {
deatail_data: {},
search_select: "月度", //
search_date: "1",
date_state: "",
month_date: "",
season_date: "", //
year_date: "",
statistics_date: "", //
day_list: [
{
value: "month",
label: "月度",
},
{
value: "season",
label: "季度",
},
{
value: "year",
label: "年度",
},
],
company_id: "",
company_name: "",
company_score: "",
score_one: "",
score_two: "",
score_three: "",
score_four: "",
score_five: "",
score_six: "",
score_seven: "",
score_eight: "",
score_nine: "",
show_value: "",
};
},
created() {
console.log("params", this.$route.query);
this.deatail_data = this.$route.query;
this.company_id = this.deatail_data.companyId // id,
if (this.deatail_data.scoreType === "month") {
this.search_select = "月度";
this.search_date = "1";
this.month_date = this.deatail_data.statisticsDate;
} else if (this.deatail_data.scoreType === "season") {
this.search_select = "季度";
this.search_date = "2";
this.show_value = this.deatail_data.showValue;
console.log("this.show_value123", this.show_value);
} else if (this.deatail_data.scoreType === "year") {
this.search_select = "年度";
this.search_date = "3";
this.year_date = this.deatail_data.statisticsDate;
}
this.company_name = this.deatail_data.companyName;
this.company_score = this.deatail_data.score;
this.score_one =
this.deatail_data.tbSafeCompanyStatisticsScoreDetails[0].score;
this.score_two =
this.deatail_data.tbSafeCompanyStatisticsScoreDetails[1].score;
this.score_three =
this.deatail_data.tbSafeCompanyStatisticsScoreDetails[2].score;
this.score_four =
this.deatail_data.tbSafeCompanyStatisticsScoreDetails[3].score;
this.score_five =
this.deatail_data.tbSafeCompanyStatisticsScoreDetails[4].score;
this.score_six =
this.deatail_data.tbSafeCompanyStatisticsScoreDetails[5].score;
this.score_seven =
this.deatail_data.tbSafeCompanyStatisticsScoreDetails[6].score;
this.score_eight =
this.deatail_data.tbSafeCompanyStatisticsScoreDetails[7].score;
this.score_nine =
this.deatail_data.tbSafeCompanyStatisticsScoreDetails[8].score;
},
mounted() {
this.get_time();
},
methods: {
date_select(val) {
console.log("val", val);
let get_date = new Date();
let year = get_date.getFullYear();
let month = get_date.getMonth() + 1;
month = month < 10 ? "0" + month : month;
this.date_state = val;
if (val === "month") {
this.search_date = "1";
this.statistics_date = this.month_date = `${year}-${month}`;
} else if (val === "season") {
this.search_date = "2";
// date_selectseasonget_season_param
if (month >= 1 && month <= 3) {
this.statistics_date = `${year}-03`;
} else if (month >= 4 && month <= 6) {
this.statistics_date = `${year}-06`;
} else if (month >= 7 && month <= 9) {
this.statistics_date = `${year}-09`;
} else if (month >= 10 && month <= 12) {
this.statistics_date = `${year}-12`;
}
} else if (val === "year") {
this.search_date = "3";
this.statistics_date = this.year_date = `${year}`;
}
//
const params = {
scoreType: this.date_state,
statisticsDate: this.statistics_date,
companyName: this.company_name,
levelIndex: "1",
};
getSafeCompany(params).then((res) => {
console.log("resss", res);
this.add_score_data(res);
});
},
month_change(val) {
//
console.log("month", val);
this.statistics_date = val; // statisticsDate
const params = {
scoreType: this.date_state,
statisticsDate: this.statistics_date,
companyName: this.company_name,
levelIndex: "1",
};
getSafeCompany(params).then((res) => {
console.log("resss", res);
this.add_score_data(res);
});
},
getValue(val) {
//
console.log("val123", val);
this.statistics_date = val.date; // statisticsDate
const params = {
scoreType: this.date_state,
statisticsDate: this.statistics_date,
companyName: this.company_name,
levelIndex: "1",
};
getSafeCompany(params).then((res) => {
console.log("resss", res);
this.add_score_data(res);
});
},
get_season_param(val) {
this.statistics_date = val;
console.log(
"this.statistics_date_1",
JSON.stringify(this.statistics_date)
);
},
year_change(val) {
//
console.log("year", val);
this.statistics_date = val; // statisticsDate
const params = {
scoreType: this.date_state,
statisticsDate: this.statistics_date,
companyName: this.company_name,
levelIndex: "1",
};
getSafeCompany(params).then((res) => {
console.log("resss", res);
this.add_score_data(res);
});
},
get_time() {
let get_date = new Date();
let year = get_date.getFullYear();
let month = get_date.getMonth() + 1;
month = month < 10 ? "0" + month : month;
this.month_date = `${year}-${month}`;
},
//
add_score_data(res) {
//
(this.company_score = ""),
(this.score_one = ""),
(this.score_two = ""),
(this.score_three = ""),
(this.score_four = ""),
(this.score_five = ""),
(this.score_six = ""),
(this.score_seven = ""),
(this.score_eight = ""),
(this.score_nine = ""),
(this.company_score = res.rows[0].score);
this.score_one = res.rows[0].tbSafeCompanyStatisticsScoreDetails[0].score;
this.score_two = res.rows[0].tbSafeCompanyStatisticsScoreDetails[1].score;
this.score_three =
res.rows[0].tbSafeCompanyStatisticsScoreDetails[2].score;
this.score_four =
res.rows[0].tbSafeCompanyStatisticsScoreDetails[3].score;
this.score_five =
res.rows[0].tbSafeCompanyStatisticsScoreDetails[4].score;
this.score_six = res.rows[0].tbSafeCompanyStatisticsScoreDetails[5].score;
this.score_seven =
res.rows[0].tbSafeCompanyStatisticsScoreDetails[6].score;
this.score_eight =
res.rows[0].tbSafeCompanyStatisticsScoreDetails[7].score;
this.score_nine =
res.rows[0].tbSafeCompanyStatisticsScoreDetails[8].score;
},
},
};
</script>
<style lang="less" scoped>
/* card统一样式 */
.el-card.box-card.is-always-shadow {
border: 0px;
height: 88.5vh; /* 控制card布局高度,用于适配 */
position: relative;
background: url("~@/assets/companyFile/22136.png") no-repeat !important;
background-size: 100% 100% !important;
}
/* card统一样式 */
/deep/.el-card__header {
border-bottom: 1px solid #a1a1a1 !important;
.clearfix {
span {
font-size: 17px;
font-weight: 400;
color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
}
}
}
.cardBody {
.search_top {
width: 85.2vw;
height: 4.3vh;
// border: 0.1px solid #4d8f89;
display: flex;
justify-content: space-between;
.left {
width: 16vw;
height: 4vh;
// border: 0.1px solid #4d8f89;
font-size: 20px;
font-weight: 600;
color: #fff;
line-height: 4vh;
// text-align: center;
}
.right {
display: flex;
justify-content: space-between;
width: 21vw;
/deep/.el-input--suffix .el-input__inner {
color: #fff;
border: 0.1px solid #34a6a6;
border-radius: 0px;
background: rgba(0, 0, 0, 0);
width: 10vw;
height: 4vh;
}
/deep/ .el-input.el-input--prefix {
width: 10vw;
}
/deep/.el-input__icon {
color: #fff;
line-height: 4vh;
height: 4vh;
}
/deep/ .search_right_input.el-input {
.el-input__inner {
color: #fff;
border: 0.1px solid #495e70;
border-radius: 0px;
background: rgba(0, 0, 0, 0);
width: 10vw;
height: 4vh;
}
}
}
}
.company_data {
width: 85.2vw;
height: 18vh;
// border: 0.1px solid #4d8f89;
margin-top: 1vh;
display: flex;
justify-content: space-around;
.company_data_left {
margin-top: 1vh;
width: 15vw;
height: 16vh;
background: url("~@/assets/companyFile/020201.png") no-repeat !important;
background-size: 100% 100% !important;
// border: 0.1px solid #4d8f89;
display: flex;
flex-direction: column;
justify-content: space-around;
.data_one {
width: 15vw;
height: 7vh;
// border: 0.1px solid #4d8f89;
color: #fff;
font-size: 30px;
font-weight: 700;
text-align: center;
line-height: 7vh;
// background: url("~@/assets/companyFile/020201.png") no-repeat !important;
// background-size: 100% 100% !important;
}
.data_two {
width: 15vw;
height: 7vh;
// border: 0.1px solid #4d8f89;
color: #fff;
font-size: 30px;
font-weight: 700;
text-align: center;
line-height: 7vh;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
// background: url("~@/assets/companyFile/020201.png") no-repeat !important;
// background-size: 100% 100% !important;
}
}
.company_data_right {
margin-top: 1vh;
width: 69vw;
height: 16vh;
// border: 0.1px solid #4d8f89;
background: linear-gradient(
to right,
#284f49,
#1a2529,
#233b38
) !important;
display: flex;
justify-content: space-around;
.score_portion {
width: 7vw;
height: 16vh;
// border: 0.1px solid #4d8f89;
display: flex;
flex-direction: column;
justify-content: space-around;
.score_img {
width: 7vw;
height: 8vh;
// border: 0.1px solid #4d8f89;
display: flex;
align-items: center;
justify-content: center;
.img_box.img_01 {
width: 3.5vw;
height: 6vh;
background: url("~@/assets/companyFile/score01.png") no-repeat !important;
background-size: 100% 100% !important;
}
.img_box.img_02 {
width: 3.5vw;
height: 6vh;
background: url("~@/assets/companyFile/score02.png") no-repeat !important;
background-size: 100% 100% !important;
}
.img_box.img_03 {
width: 3.5vw;
height: 6vh;
background: url("~@/assets/companyFile/score03.png") no-repeat !important;
background-size: 100% 100% !important;
}
.img_box.img_04 {
width: 3.5vw;
height: 6vh;
background: url("~@/assets/companyFile/score04.png") no-repeat !important;
background-size: 100% 100% !important;
}
.img_box.img_05 {
width: 3.5vw;
height: 6vh;
background: url("~@/assets/companyFile/score05.png") no-repeat !important;
background-size: 100% 100% !important;
}
.img_box.img_06 {
width: 3.5vw;
height: 6vh;
background: url("~@/assets/companyFile/score06.png") no-repeat !important;
background-size: 100% 100% !important;
}
.img_box.img_07 {
width: 3.5vw;
height: 6vh;
background: url("~@/assets/companyFile/score07.png") no-repeat !important;
background-size: 100% 100% !important;
}
.img_box.img_08 {
width: 3.5vw;
height: 6vh;
background: url("~@/assets/companyFile/score08.png") no-repeat !important;
background-size: 100% 100% !important;
}
.img_box.img_09 {
width: 3.5vw;
height: 6vh;
background: url("~@/assets/companyFile/score09.png") no-repeat !important;
background-size: 100% 100% !important;
}
}
.score_name {
width: 7vw;
height: 4vh;
// border: 0.1px solid #4d8f89;
color: #fff;
font-size: 20px;
font-weight: 500;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
text-align: center;
line-height: 4vh;
}
.score_num {
width: 7vw;
height: 4vh;
// border: 0.1px solid #4d8f89;
text-align: center;
line-height: 4vh;
color: #fff;
font-size: 18px;
font-weight: 700;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
}
}
}
}
.company_bottom {
width: 85.2vw;
height: 54vh;
// border: 0.1px solid #4d8f89;
margin-top: 1vh;
display: flex;
justify-content: space-between;
.left_table {
width: 32vw;
height: 54vh;
// border: 0.1px solid #4d8f89;
.left_table_title {
color: #fff;
font-size: 18px;
font-weight: 500;
height: 2vh;
}
}
.right_table {
margin-top: 3vh;
width: 52vw;
height: 51vh;
background: #141f21;
border: 0.1px solid #4d8f89;
}
}
}
</style>

@ -9,8 +9,7 @@
>
<el-table-column prop="companyName" label="企业名称" width="240">
</el-table-column>
<el-table-column prop="score" label="平安指数">
</el-table-column>
<el-table-column prop="score" label="平安指数"> </el-table-column>
<el-table-column label="指标得分">
<el-table-column
prop="tbSafeCompanyStatisticsScoreDetails[0].score"
@ -69,10 +68,7 @@
</el-table-column>
<el-table-column prop="operation" label="操作">
<template slot-scope="scope">
<el-button
size="small"
class="operation"
@click="jump(scope.row)"
<el-button size="small" class="operation" @click="jump(scope.row)"
>赋分
</el-button>
</template>
@ -87,6 +83,10 @@ export default {
type: Array,
default: () => [],
},
jump_params: {
type: Object,
default: () => {},
}
},
data() {
return {
@ -95,7 +95,13 @@ export default {
},
methods: {
jump(val) {
console.log(val);
// console.log("jump_val", val);
val = Object.assign(val,this.jump_params)
console.log("jump_val", val);
this.$router.push({
path:'/home/systemManagement/companyDetails',
query:val
});
},
//
table_header({ row, rowIndex }) {
@ -141,18 +147,18 @@ export default {
}
}
/deep/.el-button.operation {
background-color: #182527;
border: 0px;
color: #2fabdc;
}
background-color: #182527;
border: 0px;
color: #2fabdc;
}
/deep/.el-button.operation:hover,
.el-button.operation:focus {
background-color: #182527;
border: 0px;
color: #2fabdc;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
}
/deep/.el-button.operation:hover,
.el-button.operation:focus {
background-color: #182527;
border: 0px;
color: #2fabdc;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
}
/deep/.el-table--border::after,
.el-table--group::after {
width: 0px;

@ -0,0 +1,335 @@
<template>
<div>
<div :title="massage_title" class="note_text">
{{ this.note.titleNote }}
</div>
<div class="input_text">
{{ this.input_text }}
</div>
<div class="input_body">
<el-input
v-model="person_input"
placeholder="请输入数量 (人)"
></el-input>
<el-button>提交</el-button>
</div>
<div class="table_body">
<el-table
:data="detail_table_data"
class="company_table"
:header-cell-style="table_header"
:cell-style="{ background: 'revert', 'text-align': 'center' }"
>
<el-table-column
v-for="item in table_list"
:key="item.prop"
:label="item.label"
>
</el-table-column>
<el-table-column prop="operation" label="操作">
<template slot-scope="scope">
<el-button size="small" class="operation" @click="open(scope.row)"
>编辑
</el-button>
<el-button size="small" class="operation" @click="open(scope.row)"
>删除
</el-button>
</template>
</el-table-column>
</el-table>
<div class="table_pagination">
<el-pagination
:background="true"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:page-sizes="[4]"
:page-size="pageSize"
:current-page="pageNum"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
>
</el-pagination>
</div>
</div>
</div>
</template>
<script>
import bus from "@/assets/js/eventBus.js";
import { getIndexTable } from "@/api/systemManagement/safeIndex";
import { getSafeCompanyDetail } from "@/api/systemManagement/companyScore";
export default {
name: "DetailsTable",
props: {
company_id: {
type: String,
default: "",
},
},
data() {
return {
note: {}, //
note_arr: [], // id
three_level_id: "",
two_level_arr: [], //
three_level_arr: [], //
massage_title: "", //
input_text: "", // input
person_input: "",
table_list: [
{
prop: "time",
label: "填报时间",
width: "200",
},
{
prop: "person_num",
label: "填报数量(人)",
width: "200",
},
{
prop: "warning",
label: "预警情况",
width: "200",
},
{
prop: "person",
label: "填报人",
},
],
detail_table_data:[],
pageSize: 10,
pageNum: 1,
total: 0,
};
},
created() {
this.get_data();
},
mounted() {
bus.$on("send_three", (data) => {
console.log("dataaaa", data);
this.three_level_id = data.safeRuleId; // id
const new_arr = this.three_level_arr.filter(
(item) => item.id == this.three_level_id
);
this.note = JSON.parse(new_arr[0].note);
this.input_text = new_arr[0].levelIndexThree;
this.massage_title = this.note.titleNote;
this.get_detail_data()
});
},
methods: {
get_data() {
//
getIndexTable().then((res) => {
console.log("res", res.data);
this.note_arr = res.data;
for (let i = 0; i < this.note_arr.length; i++) {
//
this.two_level_arr = this.two_level_arr.concat(
this.note_arr[i].tbSafeRuleTwoVoList
);
}
for (let i = 0; i < this.two_level_arr.length; i++) {
//
this.three_level_arr = this.three_level_arr.concat(
this.two_level_arr[i].tbSafeRuleThreeVoList
);
}
console.log("this.three_level_arr", this.three_level_arr);
});
},
get_detail_data() {
let param = {
companyId: this.company_id,
safeRuleId: this.three_level_id,
pageSize : this.pageSize,
pageNum : this.pageNum,
};
getSafeCompanyDetail(param).then(res=>{
this.detail_table_data = res.rows
this.total = res.total
})
},
//
table_header({ row, rowIndex }) {
console.log(row);
console.log(rowIndex);
return {
"text-align": "center", //
color: "#fff",
border: "0.1px solid #425969",
};
},
handleSizeChange(val) {
console.log(`每页 ${val}`);
this.pageNum = 1;
this.pageSize = val;
this.get_detail_data();
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.pageNum = val;
this.get_detail_data();
},
},
};
</script>
<style lang="less" scoped>
.note_text {
margin-top: 1vh;
margin-left: 0.4vw;
width: 51vw;
height: 4.5vh;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
border-bottom: 0.1px solid #4d8f89;
color: #fff;
font-size: 20px;
font-weight: 400;
line-height: 4.5vh;
}
.input_text {
margin-top: 1vh;
margin-left: 0.4vw;
width: 51vw;
height: 3vh;
color: #fff;
font-size: 18px;
line-height: 3vh;
}
.input_body {
margin-top: 1vh;
margin-left: 0.4vw;
width: 51vw;
height: 4.5vh;
// border: 0.1px solid #4d8f89;
display: flex;
.el-input {
width: 18vw;
height: 4.5vh;
}
/deep/.el-input__inner {
width: 15vw;
height: 4.5vh;
border-radius: 0px;
color: #fff;
border: 0.1px solid #374956;
background: #212d2f;
}
.el-button {
width: 5vw;
color: #fff;
border: 0.1px solid #374956;
border-radius: 0px !important;
background: url("~@/assets/companyFile/btn05.png") no-repeat !important;
background-size: 100% 100% !important;
}
.el-button:focus,
.el-button:hover {
text-shadow: 0 0 9px #34e1b3;
filter: brightness(150%);
}
}
.table_body {
margin-top: 1vh;
margin-left: 0.4vw;
width: 51vw;
height: 34vh;
// border: 0.1px solid #374956;
}
/deep/.el-button.operation {
background-color: #182527;
border: 0px;
color: #2fabdc;
}
/deep/.el-button.operation:hover,
.el-button.operation:focus {
background-color: #182527;
border: 0px;
color: #2fabdc;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
}
/deep/.el-table {
// width: 85.2vw;
height: 29vh;
background: rgba(0, 0, 0, 0);
border: 0.1px solid #3f5564;
thead {
color: #fff;
font-weight: 500;
border: 0.1px solid #3f5564;
background: linear-gradient(
to right,
#284f49,
#2f6363 5%,
#233b38 80%
) !important;
& th {
background-color: transparent;
}
& tr {
background-color: transparent;
}
}
tr {
color: #fff;
background: rgba(0, 0, 0, 0);
}
}
.table_pagination {
width: 51vw;
height: 5vh;
/deep/.el-input--suffix .el-input__inner {
color: #fff;
border: 0.1px solid #34a6a6;
border-radius: 0px;
background: rgba(0, 0, 0, 0);
width: 5vw;
height: 2.6vh;
line-height: 2.6vh;
}
/deep/.el-input__icon {
color: #fff;
line-height: 2.6vh;
height: 2.6vh;
}
/deep/.el-pagination {
margin-left: 50%;
margin-top: 1vh;
.el-pagination__total {
color: #fff;
}
.el-input__inner {
border-radius: 0px;
background: #3c4b4a;
color: #fff;
}
.btn-prev {
border-radius: 0px;
background: #3c4b4a;
color: #fff;
}
ul {
li {
background: #3c4b4a;
color: #fff;
}
}
.btn-next {
border-radius: 0px;
background: #3c4b4a;
color: #fff;
}
.el-pager {
li {
background: #3c4b4a !important;
}
}
}
}
</style>

@ -0,0 +1,640 @@
<!-- 指标表格 -->
<template>
<div class="display">
<table>
<tr class="table_title">
<th class="table_title_one">一级指标</th>
<th class="table_title_two">二级指标</th>
<th class="table_title_three">三级指标</th>
</tr>
<!-- 防疫安全 -->
<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>
</tr>
<tr class="table_body">
<td @click="click_twolevel('7')"></td>
<td @click="click_threelevel('8', '1')">核算检测率</td>
</tr>
<tr class="table_body">
<td @click="click_twolevel('9')"></td>
<td @click="click_threelevel('10', '1')">场所码异常数</td>
</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 class="table_body">
<td rowspan="14" @click="click_onelevel('14')"></td>
<td rowspan="4" @click="click_twolevel('15')"></td>
<td @click="click_threelevel('16', '1')">未登记人员</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('17', '1')">未注销人员</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('18', '1')">未变更人员</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('19', '1')">高危人员</td>
</tr>
<tr class="table_body">
<td rowspan="7" @click="click_twolevel('20')"></td>
<td @click="click_threelevel('21', '1')">重性精神病人</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('22', '1')">非访人员</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('23', '1')">退役重点人员</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('24', '1')">个人极端人员</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('25', '1')">前科人员</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('26', '1')">家暴人员</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('27', '1')">酗酒人员</td>
</tr>
<tr class="table_body">
<td rowspan="2" @click="click_twolevel('28')"></td>
<td @click="click_threelevel('29', '1')">危险品领用保管使用人员</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('30', '1')">危险品技术资质人员</td>
</tr>
<tr class="table_body">
<td @click="click_twolevel('31')"></td>
<td @click="click_threelevel('32', '1')">
领域内有较高专业知识技术的专家人才
</td>
</tr>
<!-- 消防安全 -->
<tr class="table_body">
<td rowspan="13" @click="click_onelevel('33')"></td>
<td rowspan="3" @click="click_twolevel('34')"></td>
<td @click="click_threelevel('35', '1')">设备录入率</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('36', '2')">配置合理性</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('37', '1')">日常保养及时率</td>
</tr>
<tr class="table_body">
<td rowspan="3" @click="click_twolevel('38')"></td>
<td @click="click_threelevel('39', '2')">必要资质</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('40', '2')">验收许可或建设许可</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('41', '2')">日常检查表</td>
</tr>
<tr class="table_body">
<td rowspan="3" @click="click_twolevel('42')"></td>
<td @click="click_threelevel('43', '1')">人员培训率</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('44', '2')">演习举办情况</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('45', '2')">管理层专业知晓程度</td>
</tr>
<tr class="table_body">
<td rowspan="4" @click="click_twolevel('46')"></td>
<td @click="click_threelevel('47', '1')">火灾事故</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('48', '1')">其他事故</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('49', '1')">消防违建</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('50', '1')">协助扑救</td>
</tr>
<!-- 危化运输安全 -->
<tr class="table_body">
<td rowspan="15" @click="click_onelevel('51')"></td>
<td rowspan="2" @click="click_twolevel('52')"></td>
<td @click="click_threelevel('53', '1')">区内企业评分</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('54', '1')">区外企业评分</td>
</tr>
<tr class="table_body">
<td rowspan="5" @click="click_twolevel('55')"></td>
<td @click="click_threelevel('56', '1')">违停</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('57', '1')">闯禁</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('58', '1')">超速</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('59', '1')">疲劳驾驶</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('60', '1')">未按车道行驶</td>
</tr>
<tr class="table_body">
<td rowspan="3" @click="click_twolevel('61')"></td>
<td @click="click_threelevel('62', '1')">经损事故</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('63', '1')">伤亡事故</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('64', '1')">泄漏事故</td>
</tr>
<tr class="table_body">
<td @click="click_twolevel('65')">/</td>
<td @click="click_threelevel('66', '2')">有无拘留判刑</td>
</tr>
<tr class="table_body">
<td rowspan="2" @click="click_twolevel('67')"></td>
<td @click="click_threelevel('68', '1')">反馈整改完成</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('69', '1')">整改反馈未完成</td>
</tr>
<tr class="table_body">
<td rowspan="2" @click="click_twolevel('70')"></td>
<td @click="click_threelevel('71', '1')">企业演习</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('72', '1')">集中培训学习</td>
</tr>
<!-- 列管物品安全 -->
<tr class="table_body">
<td rowspan="10" @click="click_onelevel('73')"></td>
<td rowspan="2" @click="click_twolevel('74')"></td>
<td @click="click_threelevel('75', '1')">
易制爆物品生产购买销售储存使用
</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('76', '1')">
剧毒物品生产购买销售储存使用
</td>
</tr>
<tr class="table_body">
<td rowspan="3" @click="click_twolevel('77')"></td>
<td @click="click_threelevel('78', '1')">放射源储存</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('79', '1')">放射源运输</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('80', '1')">放射源使用</td>
</tr>
<tr class="table_body">
<td rowspan="2" @click="click_twolevel('81')"></td>
<td @click="click_threelevel('82', '1')">烟花爆竹运输销售燃放</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('83', '1')">炸药雷管保管运输使用</td>
</tr>
<tr class="table_body">
<td rowspan="3" @click="click_twolevel('84')"></td>
<td @click="click_threelevel('85', '1')">猎枪</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('86', '1')">竞技体育用枪</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('87', '1')">商业射击馆枪支</td>
</tr>
<!-- 内部治安安全 -->
<tr class="table_body">
<td rowspan="15" @click="click_onelevel('88')"></td>
<td rowspan="4" @click="click_twolevel('89')"></td>
<td @click="click_threelevel('90', '2')">企业保卫人员名单</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('91', '2')">企业物防设施清单</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('92', '2')">
企业技防前端感知(人脸车脸重要部位视频监控)建设
</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('93', '2')">企业技防设施连入平台情况</td>
</tr>
<tr class="table_body">
<td rowspan="3" @click="click_twolevel('94')">
企业各类规章制度应急预案应急演练
</td>
<td @click="click_threelevel('95', '2')">规章制度</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('96', '2')">应急预案</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('97', '2')">应急演练</td>
</tr>
<tr class="table_body">
<td rowspan="3" @click="click_twolevel('98')"></td>
<td @click="click_threelevel('99', '2')">部门检查合格进行评分</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('100', '2')">
部门检查不合格及有缺项的要求企业整改
</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('101', '2')">
应系统研判(设施过期及设施故障)
</td>
</tr>
<tr class="table_body">
<td rowspan="2" @click="click_twolevel('102')"></td>
<td @click="click_threelevel('103', '1')">企业反馈整改完成</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('104', '1')">企业反馈整改未完成</td>
</tr>
<tr class="table_body">
<td rowspan="3" @click="click_twolevel('105')">
企业发生的案件及企业员工涉及的案件
</td>
<td @click="click_threelevel('106', '1')">
企业发生被盗被骗等各类案件
</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('107', '1')">企业员工涉及的各类案件</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('108', '1')">企业员工涉及的信访等案件</td>
</tr>
<!-- 道路安全 -->
<tr class="table_body">
<td rowspan="13" @click="click_onelevel('109')"></td>
<td rowspan="2" @click="click_twolevel('110')"></td>
<td @click="click_threelevel('111', '1')">区内企业评分</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('112', '1')">区外企业评分</td>
</tr>
<tr class="table_body">
<td rowspan="5" @click="click_twolevel('113')"></td>
<td @click="click_threelevel('114', '1')">违停</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('115', '1')">闯禁</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('116', '1')">超速</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('117', '1')">未按车道行驶</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('118', '1')">闯红灯</td>
</tr>
<tr class="table_body">
<td rowspan="2" @click="click_twolevel('119')"></td>
<td @click="click_threelevel('120', '1')">经损事故</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('121', '1')">伤亡事故</td>
</tr>
<tr class="table_body">
<td rowspan="2" @click="click_twolevel('122')"></td>
<td @click="click_threelevel('123', '1')">反馈整改完成</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('124', '1')">反馈整改未完成</td>
</tr>
<tr class="table_body">
<td rowspan="2" @click="click_twolevel('125')"></td>
<td @click="click_threelevel('126', '1')">设施完善</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('127', '1')">设施缺失</td>
</tr>
<!-- 防攻击安全 -->
<tr class="table_body">
<td rowspan="16" @click="click_onelevel('128')"></td>
<td rowspan="6" @click="click_twolevel('129')"></td>
<td @click="click_threelevel('130', '2')">
重要岗位人员是否进行安全背景调查
</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('131', '2')">应急力量是否配备</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('132', '2')">是否安排人员24小时值班</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('133', '2')">是否安排巡逻防控力量</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('134', '2')">是否建立联防联动联治机制</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('135', '2')">是否定期开展实战演练</td>
</tr>
<tr class="table_body">
<td rowspan="3" @click="click_twolevel('136')"></td>
<td @click="click_threelevel('137', '2')">是否有实体防护设施</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('138', '2')">是否配备必要的防爆器械</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('139', '2')">
车辆进出口是否安装车辆冲撞设施
</td>
</tr>
<tr class="table_body">
<td rowspan="3" @click="click_twolevel('140')"></td>
<td @click="click_threelevel('141', '2')">
是否全方位安装视频监控系统
</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('142', '2')">是否安装访客登记系统</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('143', '2')">
是否安装入侵和紧急报警系统
</td>
</tr>
<tr class="table_body">
<td rowspan="2" @click="click_twolevel('144')"></td>
<td @click="click_threelevel('145', '1')">企业反馈完成整改</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('146', '1')">企业反馈未完成整改</td>
</tr>
<tr class="table_body">
<td rowspan="2" @click="click_twolevel('147')">
企业定期开展反恐实战演练培训
</td>
<td @click="click_threelevel('148', '2')">是否定期开展反恐实战演练</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('149', '2')">是否定期开展反恐培训</td>
</tr>
<!-- 网络安全 -->
<tr class="table_body">
<td rowspan="10" @click="click_onelevel('150')"></td>
<td rowspan="2" @click="click_twolevel('151')"></td>
<td @click="click_threelevel('152', '1')">反馈整改完成</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('153', '1')">反馈整改未完成</td>
</tr>
<tr class="table_body">
<td @click="click_twolevel('154')"></td>
<td @click="click_threelevel('155', '2')">是否有过行政处罚</td>
</tr>
<tr class="table_body">
<td @click="click_twolevel('156')"></td>
<td @click="click_threelevel('157', '2')">是否发生过</td>
</tr>
<tr class="table_body">
<td rowspan="3" @click="click_twolevel('158')"></td>
<td @click="click_threelevel('159', '2')">网站备案</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('160', '2')">应用备案</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('161', '2')">应用评估</td>
</tr>
<tr class="table_body">
<td @click="click_twolevel('162')"></td>
<td @click="click_threelevel('163', '2')">等保定级评审完成/未完成</td>
</tr>
<tr class="table_body">
<td rowspan="2" @click="click_twolevel('164')"></td>
<td @click="click_threelevel('165', '2')">应急演练</td>
</tr>
<tr class="table_body">
<td @click="click_threelevel('166', '2')">集中培训学习</td>
</tr>
</table>
</div>
</template>
<script>
import { getIndexTable } from "@/api/systemManagement/safeIndex";
import bus from "@/assets/js/eventBus.js";
export default {
name: "IndexTable",
data() {
return {
display_data: {},
one_index_three_level: [
{ id: 5, levelIndexThree: "疫苗接种数" },
{ id: 8, levelIndexThree: "核算检测率" },
{ id: 10, levelIndexThree: "场所码异常数" },
{ id: 12, levelIndexThree: "境外人员" },
{ id: 13, levelIndexThree: "境内人员" },
],
};
},
created() {
this.getData();
},
methods: {
// table_header() {
// return {
// "text-align": "center", //
// color: "#fff",
// };
// },
//
getData() {
getIndexTable().then((res) => {
console.log("res", res);
this.display_data = res.data;
});
},
//
click_onelevel(id) {
let obj = document.querySelectorAll("td");
let index = 0;
if (id < 6) {
index = id - 3;
} else {
index = id - 4;
}
obj.forEach((item) => {
item.className = "";
});
obj[index].className = "lightcolor";
const massage = {
safeRuleId: id,
level: "1",
};
this.$emit("back", massage);
bus.$emit("send", massage); //
},
//
click_twolevel(id) {
let obj = document.querySelectorAll("td");
let index = 0;
if (id < 6) {
index = id - 3;
} else {
index = id - 4;
}
obj.forEach((item) => {
item.className = "";
});
obj[index].className = "lightcolor";
const massage = {
safeRuleId: id,
level: "2",
};
this.$emit("back", massage);
bus.$emit("send", massage); //
},
//
click_threelevel(id, num) {
const massage = {
safeRuleId: id,
level: "3",
table_num: num,
};
let obj = document.querySelectorAll("td");
console.log("obj", obj);
let index = 0;
if (id < 6) {
index = id - 3;
} else {
index = id - 4;
}
obj.forEach((item) => {
item.className = "";
});
obj[index].className = "lightcolor";
this.$emit("back", massage);
bus.$emit("send_three", massage); //
},
},
};
</script>
<style lang="less" scoped>
.display {
width: 32vw;
height: 51vh;
margin-top: 1vh;
overflow-y: scroll;
border: 0.1px solid #4d8f89;
}
.display::-webkit-scrollbar {
width: 6px;
background-color: #5e666a;
border-radius: 4px;
}
.display::-webkit-scrollbar-thumb {
width: 5px;
background-color: #3c4b4a;
border-radius: 4px;
}
table {
width: 31.5vw;
height: 50vh;
border: 0.1px solid #4d8f89;
.table_title {
color: #fff;
background: linear-gradient(to right, #284f49, #2f6363, #233b38);
height: 4vh;
.table_title_one {
width: 9vw;
}
.table_title_two {
width: 14vw;
}
.table_title_three {
width: 17vw;
}
}
.table_body {
color: #fff;
font-size: 18px;
text-align: center;
td {
border: 0.1px solid #4d8f89;
height: 4vh !important;
cursor: pointer;
}
td:hover {
background: #3c4b4a;
color: #54ffbe;
}
}
}
.display_title {
display: flex;
width: 40vw;
height: 4vh;
background: linear-gradient(to right, #284f49, #2f6363, #233b38);
font-size: 18px;
color: #fff;
text-align: center;
line-height: 4vh;
.title_one {
width: 9vw;
}
.title_two {
width: 14vw;
}
.title_three {
width: 17vw;
}
}
.parent {
display: flex;
text-align: center;
font-size: 18px;
color: #fff;
border-bottom: 0.2px solid #4d8f89;
// background: #243333;
.son_one {
width: 9vw;
height: 20vh;
line-height: 20vh;
}
.son_two {
width: 14vw;
display: flex;
flex-direction: column;
div {
height: 5vh;
line-height: 5vh;
}
}
.son_three {
width: 17vw;
display: flex;
flex-direction: column;
div {
height: 4vh;
line-height: 4vh;
}
}
}
.lightcolor {
background: #3c4b4a;
color: #54ffbe;
}
</style>

@ -106,6 +106,10 @@ export default {
type: String,
default: "date",
},
show_value: {
type: String,
default: "",
},
},
data() {
return {
@ -118,6 +122,10 @@ export default {
};
},
created() {
// if(this.show_value) {
// this.showValue = this.show_value
// }
//
if (this.defaultValue) {
this.changeDefaultVal();
@ -125,7 +133,11 @@ export default {
this.defaultValue = this.year + "-" + this.month;
this.changeDefaultVal();
}
console.log("showValue", this.showValue);
this.$nextTick(() => {
console.log("this.show_value000", this.show_value);
this.showValue = this.show_value;
console.log("this.showValue", this.showValue);
});
},
watch: {
defaultValue(value) {
@ -150,19 +162,19 @@ export default {
let month = +arr[1];
if (month >= 1 && month <= 3) {
this.showValue = `${this.year}年1季度`;
this.season_param = `${this.year}-03`
this.season_param = `${this.year}-03`;
} else if (month >= 4 && month <= 6) {
this.showValue = `${this.year}年2季度`;
this.season_param = `${this.year}-06`
this.season_param = `${this.year}-06`;
} else if (month >= 7 && month <= 9) {
this.showValue = `${this.year}年3季度`;
this.season_param = `${this.year}-09`
this.season_param = `${this.year}-09`;
} else if (month >= 10 && month <= 12) {
this.showValue = `${this.year}年4季度`;
this.season_param = `${this.year}-12`
this.season_param = `${this.year}-12`;
}
console.log('this.season_param',this.season_param);
this.$emit('get_season_param',this.season_param)
console.log("this.season_param", this.season_param);
this.$emit("get_season_param", this.season_param, this.showValue);
}
},
prev() {
@ -186,15 +198,18 @@ export default {
year: this.year,
quarter: quarter,
};
this.showValue = `${this.year}${quarter}季度`;
//
this.$emit("getValue", result);
this.$emit("getValue", result, this.showValue);
this.showSeason = false;
this.showValue = `${this.year}${quarter}季度`;
},
},
};
</script>
<style lang="less" scoped>
/deep/.el-card.box-card.is-always-shadow {
width: 220px !important;
}
.bgCard {
position: fixed;
top: 0;

@ -60,6 +60,7 @@
<CompanyTable
ref="companyTable"
:table_data="table_data"
:jump_params="jump_params"
></CompanyTable>
<div class="table_pagination">
<el-pagination
@ -112,6 +113,8 @@ export default {
label: "年度",
},
],
jump_params:{}, //
show_value:'',
table_data: [],
pageSize: 10,
pageNum: 1,
@ -140,12 +143,14 @@ export default {
this.date_state = val;
if (val === "month") {
this.search_date = "1";
this.month_date = `${year}-${month}`;
this.statistics_date = this.month_date = `${year}-${month}`;
} else if (val === "season") {
this.search_date = "2";
// date_selectseasonget_season_param
console.log('this.statistics_date_2',this.statistics_date);
} else if (val === "year") {
this.search_date = "3";
this.year_date = `${year}`;
this.statistics_date = this.year_date = `${year}`;
}
},
@ -154,13 +159,19 @@ export default {
console.log("month", val);
this.statistics_date = val; // statisticsDate
},
getValue(val) {
getValue(val,value) {
//
console.log("val123", val);
console.log("val123", value);
this.statistics_date = val.date; // statisticsDate
this.show_value = value
},
get_season_param(val) {
this.statistics_date = val;
// date_selectseason
get_season_param(param,val) {
console.log('param_sss',param);
console.log('val_Sss',val);
this.statistics_date = param;
this.show_value = val
},
year_change(val) {
//
@ -178,11 +189,16 @@ export default {
const params = {
scoreType: this.date_state,
statisticsDate: this.statistics_date,
companyParamName: this.search_company,
companyName: this.search_company,
levelIndex: "1",
pageNum: this.pageNum,
pageSize: this.pageSize,
};
this.jump_params = {
showValue: this.show_value,
scoreType: this.date_state,
statisticsDate: this.statistics_date,
}
getSafeCompany(params)
.then((res) => {
this.table_data = res.rows;

@ -172,8 +172,8 @@ export default {
table_num: "", // 1 2
massage_title: "", //
note_arr: [], // id
two_level_arr: [], //
three_level_arr: [], //
two_level_arr: [], //
three_level_arr: [], //
three_level_id: "",
note: "", //
tableData_all: [],

Loading…
Cancel
Save