|
|
@ -1,425 +1,224 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="app-container home">
|
|
|
|
<el-menu
|
|
|
|
<el-row :gutter="20">
|
|
|
|
:default-active="activeMenu"
|
|
|
|
<el-col :sm="24" :lg="24">
|
|
|
|
mode="horizontal"
|
|
|
|
<blockquote style="font-size: 14px">
|
|
|
|
@select="handleSelect"
|
|
|
|
本年度共有
|
|
|
|
|
|
|
|
<el-button type="text" >{{
|
|
|
|
|
|
|
|
yearData.unitNum
|
|
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
|
|
家单位开展安全生产事故隐患排查治理,排查出隐患
|
|
|
|
|
|
|
|
<el-button type="text" @click="haddenClick(1,'')">{{
|
|
|
|
|
|
|
|
yearData.hiddenDangerNum
|
|
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
|
|
项,已整改
|
|
|
|
|
|
|
|
<el-button type="text" @click="haddenClick(2,'')">{{
|
|
|
|
|
|
|
|
yearData.haveRectifiedNum
|
|
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
|
|
项( 整改率为
|
|
|
|
|
|
|
|
<el-button type="text" >{{
|
|
|
|
|
|
|
|
yearData.rectifyRate
|
|
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
|
|
未整改
|
|
|
|
|
|
|
|
<el-button type="text" @click="haddenClick(3,'')">{{
|
|
|
|
|
|
|
|
yearData.notRectifiedNum
|
|
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
|
|
项,超期未整改
|
|
|
|
|
|
|
|
<el-button type="text" @click="haddenClick(4,'')">{{
|
|
|
|
|
|
|
|
yearData.exceedNotRectifiedNum
|
|
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
|
|
项,累计落实整改治理资金
|
|
|
|
|
|
|
|
<el-button type="text" >{{
|
|
|
|
|
|
|
|
yearData.rectifyMoneySum
|
|
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
|
|
万元。
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div v-for="(item, i) in hiddenList" :key="i">
|
|
|
|
|
|
|
|
累计排查出{{ item.name }}
|
|
|
|
|
|
|
|
<el-button type="text" @click="haddenClick(1,item.hiddenDangerGrade)">{{
|
|
|
|
|
|
|
|
item.hiddenDangerNum
|
|
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
|
|
项,已整改
|
|
|
|
|
|
|
|
<el-button type="text" @click="haddenClick(2,item.hiddenDangerGrade)">{{
|
|
|
|
|
|
|
|
item.haveRectifiedNum
|
|
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
|
|
项(整改率为
|
|
|
|
|
|
|
|
<el-button type="text" >{{
|
|
|
|
|
|
|
|
item.rectifyRate
|
|
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
|
|
),未整改
|
|
|
|
|
|
|
|
<el-button type="text" @click="haddenClick(3,item.hiddenDangerGrade)">{{
|
|
|
|
|
|
|
|
item.notRectifiedNum
|
|
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
|
|
项,超期未整改
|
|
|
|
|
|
|
|
<el-button type="text" @click="haddenClick(4,item.hiddenDangerGrade)">{{
|
|
|
|
|
|
|
|
item.exceedNotRectifiedNum
|
|
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
|
|
项
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
其中,列入督办隐患治理项目
|
|
|
|
|
|
|
|
<el-button type="text" @click="haddenClick(5,'')">{{
|
|
|
|
|
|
|
|
collectData.hiddenDangerNum
|
|
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
|
|
项,已整改
|
|
|
|
|
|
|
|
<el-button type="text" @click="haddenClick(6,'')">{{
|
|
|
|
|
|
|
|
collectData.haveRectifiedNum
|
|
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
|
|
项(整改率为
|
|
|
|
|
|
|
|
<el-button type="text" >{{
|
|
|
|
|
|
|
|
collectData.rectifyRate
|
|
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
|
|
未整改
|
|
|
|
|
|
|
|
<el-button type="text" @click="haddenClick(7,'')">{{
|
|
|
|
|
|
|
|
collectData.notRectifiedNum
|
|
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
|
|
项,超期未整改
|
|
|
|
|
|
|
|
<el-button type="text" @click="haddenClick(8,'')">{{
|
|
|
|
|
|
|
|
collectData.exceedNotRectifiedNum
|
|
|
|
|
|
|
|
}}</el-button>
|
|
|
|
|
|
|
|
项)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
</blockquote>
|
|
|
|
|
|
|
|
<el-divider />
|
|
|
|
|
|
|
|
<el-table :data="hiddenList" style="width: 100%">
|
|
|
|
|
|
|
|
<el-table-column prop="name" align="center" label="隐患级别" />
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="hiddenDangerNum"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
label="隐患事故"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="haveRectifiedNum"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
label="已整改"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column prop="rectifyRate" align="center" label="整改率" />
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="notRectifiedNum"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
label="未整改"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
prop="exceedNotRectifiedNum"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
label="整改超期"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--公文借出会话框-->
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
|
|
|
title="隐患查询"
|
|
|
|
|
|
|
|
:visible.sync="open"
|
|
|
|
|
|
|
|
width="1200px"
|
|
|
|
|
|
|
|
append-to-body
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-form
|
|
|
|
<template v-for="(item, index) in topMenus">
|
|
|
|
:model="queryParams"
|
|
|
|
<el-menu-item
|
|
|
|
ref="queryForm"
|
|
|
|
:style="{ '--theme': theme } "
|
|
|
|
size="small"
|
|
|
|
:index="item.path"
|
|
|
|
:inline="true"
|
|
|
|
:key="index"
|
|
|
|
v-show="showSearch"
|
|
|
|
|
|
|
|
label-width="68px"
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
<!-- <svg-icon
|
|
|
|
</el-form>
|
|
|
|
v-if="item.meta && item.meta.icon && item.meta.icon !== '#'"
|
|
|
|
|
|
|
|
:icon-class="item.meta.icon"
|
|
|
|
<el-table v-loading="loading" border :data="detailsList">
|
|
|
|
/> -->
|
|
|
|
<!--<el-table-column label="主键" align="center" prop="id" />-->
|
|
|
|
<img :src="item.meta.img" style="height: 40px; width:auto;" alt="">
|
|
|
|
<el-table-column label="序号" align="center">
|
|
|
|
{{ item.meta.title }}
|
|
|
|
<template slot-scope="scope">
|
|
|
|
</el-menu-item>
|
|
|
|
<span>{{ Number(scope.$index) + 1 }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
label="隐患内容"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="hiddenDangerDesc"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
label="单位名称"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="enterpriseName"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column label="隐患级别" align="center" prop="hiddenDangerGrade">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<dict-tag :options="dict.type.hidden_danger_grade" :value="scope.row.hiddenDangerGrade"/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="隐患类型" align="center" prop="hiddenDangerType">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<dict-tag :options="dict.type.hidden_danger_type" :value="scope.row.hiddenDangerType"/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="排查出隐患日期" align="center" prop="checkTime">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<span>{{
|
|
|
|
|
|
|
|
parseTime(scope.row.checkTime, "{y}-{m}-{d} {h}:{i}:{s}")
|
|
|
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="整改期限" align="center" prop="rectifyTermTime">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<span>{{
|
|
|
|
|
|
|
|
parseTime(scope.row.rectifyTermTime, "{y}-{m}-{d} {h}:{i}:{s}")
|
|
|
|
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
label="整改责任人"
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="principalName"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column label="整改情况" align="center" prop="status" >
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<dict-tag :options="dict.type.hidden_danger_status" :value="scope.row.status"/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
<!-- 顶部菜单超出数量折叠 -->
|
|
|
|
|
|
|
|
<!-- <el-submenu :style="{'--theme': theme}" index="more" v-if="topMenus.length > visibleNumber">
|
|
|
|
<pagination
|
|
|
|
<template slot="title">更多菜单</template>
|
|
|
|
v-show="total > 0"
|
|
|
|
<template v-for="(item, index) in topMenus">
|
|
|
|
:total="total"
|
|
|
|
<el-menu-item
|
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
|
:index="item.path"
|
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
|
:key="index"
|
|
|
|
@pagination="getList"
|
|
|
|
v-if="index >= visibleNumber">
|
|
|
|
/>
|
|
|
|
<svg-icon
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
v-if="item.meta && item.meta.icon && item.meta.icon !== '#'"
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
:icon-class="item.meta.icon"/>
|
|
|
|
</div>
|
|
|
|
{{ item.meta.title }}
|
|
|
|
</el-dialog>
|
|
|
|
</el-menu-item>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-submenu> -->
|
|
|
|
|
|
|
|
</el-menu>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import {
|
|
|
|
import { constantRoutes } from "@/router";
|
|
|
|
getEhsIndexStatistics,
|
|
|
|
|
|
|
|
getSuperviseAndHandle,
|
|
|
|
// 隐藏侧边栏路由
|
|
|
|
getEhsIndexStatisticsList,
|
|
|
|
const hideList = ["/index", "/user/profile"];
|
|
|
|
detailslist,
|
|
|
|
|
|
|
|
} from "@/api/ehs/IndexStatistics";
|
|
|
|
|
|
|
|
import { parseTime } from "@/utils/ruoyi";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "Index",
|
|
|
|
|
|
|
|
dicts: ["hidden_danger_grade", "hidden_danger_status","hidden_danger_type" ],
|
|
|
|
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
showSearch: true,
|
|
|
|
// 顶部栏初始数
|
|
|
|
// 遮罩层
|
|
|
|
visibleNumber: 50,
|
|
|
|
loading: true,
|
|
|
|
// 当前激活菜单的 index
|
|
|
|
// 总条数
|
|
|
|
currentIndex: undefined,
|
|
|
|
total: 0,
|
|
|
|
img1:require('../assets/images/menu (1).png'),
|
|
|
|
// 查询参数
|
|
|
|
img2:require('../assets/images/menu (2).png'),
|
|
|
|
queryParams: {
|
|
|
|
img3:require('../assets/images/menu (3).png'),
|
|
|
|
pageNum: 1,
|
|
|
|
img4:require('../assets/images/menu (4).png'),
|
|
|
|
pageSize: 10,
|
|
|
|
img5:require('../assets/images/menu (5).png'),
|
|
|
|
isOverTime:null,
|
|
|
|
img6:require('../assets/images/menu (6).png'),
|
|
|
|
params: {
|
|
|
|
img7:require('../assets/images/menu (6).png'),
|
|
|
|
qxStartTime: null,
|
|
|
|
img8:require('../assets/images/menu (6).png'),
|
|
|
|
qxEndTime: null,
|
|
|
|
img9:require('../assets/images/menu (6).png'),
|
|
|
|
pcStartTime: null,
|
|
|
|
img10:require('../assets/images/menu (6).png'),
|
|
|
|
pcEndTime: null,
|
|
|
|
img11:require('../assets/images/menu (6).png'),
|
|
|
|
wcStartTime: null,
|
|
|
|
img12:require('../assets/images/menu (6).png'),
|
|
|
|
wcEndTime: null,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
open: false,
|
|
|
|
computed: {
|
|
|
|
yearData: {
|
|
|
|
theme() {
|
|
|
|
unitNum: "",
|
|
|
|
return this.$store.state.settings.theme;
|
|
|
|
hiddenDangerNum: "",
|
|
|
|
|
|
|
|
haveRectifiedNum: "",
|
|
|
|
|
|
|
|
notRectifiedNum: "",
|
|
|
|
|
|
|
|
exceedNotRectifiedNum: "",
|
|
|
|
|
|
|
|
rectifyMoneySum: "",
|
|
|
|
|
|
|
|
rectifyRate: "",
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
collectData: {
|
|
|
|
// 顶部显示菜单
|
|
|
|
hiddenDangerNum: "",
|
|
|
|
topMenus() {
|
|
|
|
haveRectifiedNum: "",
|
|
|
|
let topMenus = [];
|
|
|
|
notRectifiedNum: "",
|
|
|
|
let imgArr= [this.img1,this.img2,this.img3,this.img4,this.img5,this.img6,this.img7,this.img8,this.img9,this.img10,this.img11,this.img12]
|
|
|
|
exceedNotRectifiedNum: "",
|
|
|
|
this.routers.map((menu,index) => {
|
|
|
|
rectifyMoneySum: "",
|
|
|
|
if (menu.hidden !== true) {
|
|
|
|
rectifyRate: "",
|
|
|
|
// 兼容顶部栏一级菜单内部跳转
|
|
|
|
|
|
|
|
if (menu.path === "/") {
|
|
|
|
|
|
|
|
topMenus.push(menu.children[0]);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
menu.meta.img = imgArr[index]
|
|
|
|
|
|
|
|
topMenus.push(menu);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
return topMenus;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
hiddenList: [],
|
|
|
|
// 所有的路由信息
|
|
|
|
detailsList: [],
|
|
|
|
routers() {
|
|
|
|
// 日期范围
|
|
|
|
return this.$store.state.permission.topbarRouters;
|
|
|
|
dateRange: [],
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
// 设置子路由
|
|
|
|
this.getIndexDetails();
|
|
|
|
childrenMenus() {
|
|
|
|
this.$alert('这是一段内容', '标题名称', {
|
|
|
|
var childrenMenus = [];
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
this.routers.map((router) => {
|
|
|
|
callback: action => {
|
|
|
|
for (var item in router.children) {
|
|
|
|
//this.$router.push({ path: "ehs/ehsHiddenDanger/index" });
|
|
|
|
if (router.children[item].parentPath === undefined) {
|
|
|
|
|
|
|
|
if (router.path === "/") {
|
|
|
|
|
|
|
|
router.children[item].path = "/" + router.children[item].path;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (!this.ishttp(router.children[item].path)) {
|
|
|
|
|
|
|
|
router.children[item].path =
|
|
|
|
|
|
|
|
router.path + "/" + router.children[item].path;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
router.children[item].parentPath = router.path;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
childrenMenus.push(router.children[item]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
return constantRoutes.concat(childrenMenus);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
// 默认激活的菜单
|
|
|
|
parseTime,
|
|
|
|
activeMenu() {
|
|
|
|
/** 获取拟稿部门下拉列表 */
|
|
|
|
const path = this.$route.path;
|
|
|
|
getIndexDetails() {
|
|
|
|
let activePath = path;
|
|
|
|
getEhsIndexStatistics().then((res) => {
|
|
|
|
if (
|
|
|
|
this.yearData.unitNum = res.data.unitNum;
|
|
|
|
path !== undefined &&
|
|
|
|
this.yearData.hiddenDangerNum = res.data.hiddenDangerNum;
|
|
|
|
path.lastIndexOf("/") > 0 &&
|
|
|
|
this.yearData.haveRectifiedNum = res.data.haveRectifiedNum;
|
|
|
|
hideList.indexOf(path) === -1
|
|
|
|
this.yearData.notRectifiedNum = res.data.notRectifiedNum;
|
|
|
|
) {
|
|
|
|
this.yearData.exceedNotRectifiedNum = res.data.exceedNotRectifiedNum;
|
|
|
|
const tmpPath = path.substring(1, path.length);
|
|
|
|
this.yearData.rectifyMoneySum = res.data.rectifyMoneySum;
|
|
|
|
activePath = "/" + tmpPath.substring(0, tmpPath.indexOf("/"));
|
|
|
|
this.yearData.rectifyRate = res.data.rectifyRate;
|
|
|
|
if (!this.$route.meta.link) {
|
|
|
|
});
|
|
|
|
this.$store.dispatch("app/toggleSideBarHide", false);
|
|
|
|
getSuperviseAndHandle().then((res) => {
|
|
|
|
}
|
|
|
|
this.collectData.hiddenDangerNum = res.data.hiddenDangerNum;
|
|
|
|
} else if (!this.$route.children) {
|
|
|
|
this.collectData.haveRectifiedNum = res.data.haveRectifiedNum;
|
|
|
|
activePath = path;
|
|
|
|
this.collectData.notRectifiedNum = res.data.notRectifiedNum;
|
|
|
|
this.$store.dispatch("app/toggleSideBarHide", true);
|
|
|
|
this.collectData.exceedNotRectifiedNum = res.data.exceedNotRectifiedNum;
|
|
|
|
}
|
|
|
|
this.collectData.rectifyRate = res.data.rectifyRate;
|
|
|
|
this.activeRoutes(activePath);
|
|
|
|
});
|
|
|
|
return activePath;
|
|
|
|
getEhsIndexStatisticsList().then((res) => {
|
|
|
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
this.hiddenList = res.data;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
|
|
|
|
handleQuery() {
|
|
|
|
|
|
|
|
this.queryParams.pageNum = 1;
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
haddenClick(type,hiddenDangerGrade) {
|
|
|
|
// beforeMount() {
|
|
|
|
this.open = true;
|
|
|
|
// window.addEventListener('resize', this.setVisibleNumber)
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
// },
|
|
|
|
this.queryParams.isOverTime = null;
|
|
|
|
// beforeDestroy() {
|
|
|
|
this.queryParams.status = null;
|
|
|
|
// window.removeEventListener('resize', this.setVisibleNumber)
|
|
|
|
this.queryParams.hiddenDangerGrade = null;
|
|
|
|
// },
|
|
|
|
this.queryParams.isSupervise = null;
|
|
|
|
// mounted() {
|
|
|
|
if(hiddenDangerGrade != ""){
|
|
|
|
// this.setVisibleNumber();
|
|
|
|
this.queryParams.hiddenDangerGrade = hiddenDangerGrade;
|
|
|
|
// },
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
// 根据宽度计算设置显示栏数
|
|
|
|
|
|
|
|
// setVisibleNumber() {
|
|
|
|
|
|
|
|
// const width = document.body.getBoundingClientRect().width / 3;
|
|
|
|
|
|
|
|
// this.visibleNumber = parseInt(width / 85);
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// 菜单选择事件
|
|
|
|
|
|
|
|
handleSelect(key, keyPath) {
|
|
|
|
|
|
|
|
this.currentIndex = key;
|
|
|
|
|
|
|
|
const route = this.routers.find((item) => item.path === key);
|
|
|
|
|
|
|
|
if (this.ishttp(key)) {
|
|
|
|
|
|
|
|
// http(s):// 路径新窗口打开
|
|
|
|
|
|
|
|
window.open(key, "_blank");
|
|
|
|
|
|
|
|
} else if (!route || !route.children) {
|
|
|
|
|
|
|
|
// 没有子路由路径内部打开
|
|
|
|
|
|
|
|
const routeMenu = this.childrenMenus.find((item) => item.path === key);
|
|
|
|
|
|
|
|
if (routeMenu && routeMenu.query) {
|
|
|
|
|
|
|
|
let query = JSON.parse(routeMenu.query);
|
|
|
|
|
|
|
|
this.$router.push({ path: key, query: query });
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$router.push({ path: key });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(type == 2){//已整改
|
|
|
|
this.$store.dispatch("app/toggleSideBarHide", true);
|
|
|
|
this.queryParams.status = "10";
|
|
|
|
} else {
|
|
|
|
}else if(type == 3){//未整改isOverTime
|
|
|
|
// 显示左侧联动菜单
|
|
|
|
this.queryParams.status = "0";
|
|
|
|
this.activeRoutes(key);
|
|
|
|
}else if(type == 4){//超期未整改
|
|
|
|
this.$store.dispatch("app/toggleSideBarHide", false);
|
|
|
|
this.queryParams.isOverTime = "1";
|
|
|
|
|
|
|
|
}else if(type == 5){//列入督办隐患治理项目
|
|
|
|
|
|
|
|
this.queryParams.isSupervise = 1;
|
|
|
|
|
|
|
|
}else if(type == 6){//列入督办隐患治理项目 已整改
|
|
|
|
|
|
|
|
this.queryParams.isSupervise = 1;
|
|
|
|
|
|
|
|
this.queryParams.status = "10";
|
|
|
|
|
|
|
|
}else if(type == 7){//列入督办隐患治理项目 未整改
|
|
|
|
|
|
|
|
this.queryParams.isSupervise = 1;
|
|
|
|
|
|
|
|
this.queryParams.status = "0";
|
|
|
|
|
|
|
|
}else if(type == 8){//列入督办隐患治理项目 未整改
|
|
|
|
|
|
|
|
this.queryParams.isSupervise = 1;
|
|
|
|
|
|
|
|
this.queryParams.isOverTime = "1";
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.handleQuery();
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getList() {
|
|
|
|
// 当前激活的路由
|
|
|
|
this.loading = true;
|
|
|
|
activeRoutes(key) {
|
|
|
|
console.log(this.queryParams);
|
|
|
|
var routes = [];
|
|
|
|
detailslist(this.queryParams).then((response) => {
|
|
|
|
if (this.childrenMenus && this.childrenMenus.length > 0) {
|
|
|
|
this.detailsList = response.rows;
|
|
|
|
this.childrenMenus.map((item) => {
|
|
|
|
this.total = response.total;
|
|
|
|
if (key == item.parentPath || (key == "index" && "" == item.path)) {
|
|
|
|
this.loading = false;
|
|
|
|
routes.push(item);
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (routes.length > 0) {
|
|
|
|
|
|
|
|
this.$store.commit("SET_SIDEBAR_ROUTERS", routes);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$store.dispatch("app/toggleSideBarHide", true);
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
ishttp(url) {
|
|
|
|
resetQuery() {
|
|
|
|
return url.indexOf("http://") !== -1 || url.indexOf("https://") !== -1;
|
|
|
|
this.queryParams.params.qxStartTime = null;
|
|
|
|
|
|
|
|
this.queryParams.params.qxEndTime = null;
|
|
|
|
|
|
|
|
this.queryParams.params.pcStartTime = null;
|
|
|
|
|
|
|
|
this.queryParams.params.pcEndTime = null;
|
|
|
|
|
|
|
|
this.queryParams.params.wcStartTime = null;
|
|
|
|
|
|
|
|
this.queryParams.params.wcEndTime = null;
|
|
|
|
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
|
|
|
|
this.handleQuery();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 取消按钮
|
|
|
|
|
|
|
|
cancel() {
|
|
|
|
|
|
|
|
this.open = false;
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/*statusToStr(value) {
|
|
|
|
|
|
|
|
if(value=="0")
|
|
|
|
|
|
|
|
return "未整改"
|
|
|
|
|
|
|
|
else if(value=="10")
|
|
|
|
|
|
|
|
return "已整改"
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
return "未知"
|
|
|
|
|
|
|
|
},*/
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.home {
|
|
|
|
.el-menu-item {
|
|
|
|
blockquote {
|
|
|
|
display: block;
|
|
|
|
padding: 10px 20px;
|
|
|
|
text-align: center;
|
|
|
|
margin: 0 0 20px;
|
|
|
|
width: 16.6%;
|
|
|
|
font-size: 17.5px;
|
|
|
|
line-height: 100px;
|
|
|
|
border-left: 5px solid #eee;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
border: 1px solid #c1c1c1 !important;
|
|
|
|
hr {
|
|
|
|
|
|
|
|
margin-top: 20px;
|
|
|
|
color: #494848;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
font-weight: 600;
|
|
|
|
border: 0;
|
|
|
|
font-size: 17px;
|
|
|
|
border-top: 1px solid #eee;
|
|
|
|
letter-spacing: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.col-item {
|
|
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ul {
|
|
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
|
|
color: #676a6c;
|
|
|
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ul {
|
|
|
|
|
|
|
|
list-style-type: none;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
|
|
|
|
margin-top: 0px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
|
|
font-size: 26px;
|
|
|
|
|
|
|
|
font-weight: 100;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
p {
|
|
|
|
.el-menu.el-menu--horizontal {
|
|
|
|
margin-top: 10px;
|
|
|
|
border-bottom: transparent;
|
|
|
|
|
|
|
|
// margin-left: 45px;
|
|
|
|
b {
|
|
|
|
// margin-top: 40px;
|
|
|
|
font-weight: 700;
|
|
|
|
width: 95%;
|
|
|
|
}
|
|
|
|
margin: 30px auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.update-log {
|
|
|
|
.el-menu-item.is-active {
|
|
|
|
ol {
|
|
|
|
border: 1px solid #{'var(--theme)'} !important;
|
|
|
|
display: block;
|
|
|
|
color: #3b3d41;
|
|
|
|
list-style-type: decimal;
|
|
|
|
|
|
|
|
margin-block-start: 1em;
|
|
|
|
|
|
|
|
margin-block-end: 1em;
|
|
|
|
|
|
|
|
margin-inline-start: 0;
|
|
|
|
|
|
|
|
margin-inline-end: 0;
|
|
|
|
|
|
|
|
padding-inline-start: 40px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|