Merge pull request '企业档案样式修改' (#135) from lukeyan into master

Reviewed-on: #135
guomingxin
lukeyan 1 year ago
commit 20e3846343

@ -96,11 +96,11 @@ export default {
let dateTemp; let dateTemp;
let flag = 1; let flag = 1;
for (let i = 1; i < day; i++) { for (let i = 1; i < day; i++) {
dateTemp = year + "-" + month + myDate.getDate(); dateTemp = year + "-" + month + "-" + myDate.getDate();
dateArray.push(dateTemp); dateArray.push(dateTemp);
myDate.setDate(myDate.getDate() + flag); myDate.setDate(myDate.getDate() + flag);
} }
dateArray.push(year + "-" + month + myDate.getDate()); dateArray.push(year + "-" + month + "-" + myDate.getDate());
return dateArray; return dateArray;
}, },
// 7 // 7
@ -116,11 +116,11 @@ export default {
let dateTemp; let dateTemp;
let flag = 1; let flag = 1;
for (let i = 1; i < day; i++) { for (let i = 1; i < day; i++) {
dateTemp = year + "-" + month + myDate.getDate(); dateTemp = year + "-" + month + "-" + myDate.getDate();
dateArray.push(dateTemp); dateArray.push(dateTemp);
myDate.setDate(myDate.getDate() + flag); myDate.setDate(myDate.getDate() + flag);
} }
dateArray.push(year + "-" + month + myDate.getDate()); dateArray.push(year + "-" + month + "-" + myDate.getDate());
return dateArray; return dateArray;
}, },
init_chart() { init_chart() {
@ -183,18 +183,14 @@ export default {
axisLine: { axisLine: {
onZero: false, onZero: false,
lineStyle: { lineStyle: {
color: colors[4], color: "#fff",
}, },
}, },
axisPointer: { axisPointer: {
label: { label: {
color: "black",
formatter: function (params) { formatter: function (params) {
return ( return params.value;
params.value +
(params.seriesData.length
? ":" + params.seriesData[0].data
: "")
);
}, },
}, },
}, },
@ -209,18 +205,14 @@ export default {
axisLine: { axisLine: {
onZero: false, onZero: false,
lineStyle: { lineStyle: {
color: colors[4], color: "#fff",
}, },
}, },
axisPointer: { axisPointer: {
label: { label: {
color: "black",
formatter: function (params) { formatter: function (params) {
return ( return params.value;
params.value +
(params.seriesData.length
? ":" + params.seriesData[0].data
: "")
);
}, },
}, },
}, },
@ -249,7 +241,7 @@ export default {
emphasis: { emphasis: {
focus: "series", focus: "series",
}, },
data: [2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6], data: [141, 231, 155, 99, 75, 201, 63],
}, },
{ {
name: "今日出园区", name: "今日出园区",
@ -259,7 +251,7 @@ export default {
emphasis: { emphasis: {
focus: "series", focus: "series",
}, },
data: [2.6, 5.9, 9.0, 26, 27, 70.7, 175.6], data: [34, 45, 59, 44, 34, 61, 55],
}, },
{ {
name: "上月进园区", name: "上月进园区",
@ -268,7 +260,7 @@ export default {
emphasis: { emphasis: {
focus: "series", focus: "series",
}, },
data: [3.9, 5.9, 11.1, 18.7, 48.3, 69.2, 231.6], data: [79, 98, 101, 122, 97, 88, 72],
}, },
{ {
name: "上月出园区", name: "上月出园区",
@ -331,7 +323,7 @@ export default {
.in_car { .in_car {
width: 10vw; width: 10vw;
height: 5vh; height: 5vh;
// border: 0.1px solid #495e70; //
display: flex; display: flex;
.in_car_icon { .in_car_icon {
width: 2.5vw; width: 2.5vw;

@ -239,8 +239,8 @@ export default {
height: 8vh; height: 8vh;
.num_green { .num_green {
width: 6vw; width: 6vw;
height: 5vh; height: 4vh;
line-height: 5vh; line-height: 4vh;
background: linear-gradient(#fff, #00ffd4); background: linear-gradient(#fff, #00ffd4);
background-clip: text; background-clip: text;
color: transparent; color: transparent;
@ -250,8 +250,8 @@ export default {
} }
.num_orange { .num_orange {
width: 6vw; width: 6vw;
height: 5vh; height: 4vh;
line-height: 5vh; line-height: 4vh;
background: linear-gradient(#fff, #fef699); background: linear-gradient(#fff, #fef699);
background-clip: text; background-clip: text;
color: transparent; color: transparent;
@ -261,8 +261,8 @@ export default {
} }
.num_red { .num_red {
width: 6vw; width: 6vw;
height: 5vh; height: 4vh;
line-height: 5vh; line-height: 4vh;
background: linear-gradient(#fff, #ff4b4b); background: linear-gradient(#fff, #ff4b4b);
background-clip: text; background-clip: text;
color: transparent; color: transparent;

@ -3,13 +3,12 @@
<div class="notification_box"> <div class="notification_box">
<!-- 模块标题 --> <!-- 模块标题 -->
<div class="title"> <div class="title">
<div class="img_box"> <div class="img_box"></div>
</div>
<div class="title_text">警情通报</div> <div class="title_text">警情通报</div>
</div> </div>
<div class="carousel_box"> <div class="carousel_box">
<ul class="marquee-list" :class="{ 'animate-up': animateUp }"> <ul class="marquee-list" :class="{ 'animate-up': animateUp }">
<li v-for="(item, index) in this.notification_list" :key="index"> <li v-for="(item, index) in notification_list" :key="index">
<!-- {{ item.caseAddress }} --> <!-- {{ item.caseAddress }} -->
<div class="icon_box"> <div class="icon_box">
<div class="icon_item"></div> <div class="icon_item"></div>
@ -19,8 +18,12 @@
{{ item.caseName }} {{ item.caseName }}
</div> </div>
<div class="bottom_message"> <div class="bottom_message">
<div class="bottom_message_company">企业名称{{ item.caseAddress }}</div> <div class="bottom_message_company">
<div class="bottom_message_time">时间{{ item.registerTime }}</div> 企业名称{{ item.caseAddress }}
</div>
<div class="bottom_message_time">
时间{{ item.registerTime }}
</div>
</div> </div>
</div> </div>
</li> </li>
@ -49,7 +52,6 @@ export default {
getList() { getList() {
caseList().then((res) => { caseList().then((res) => {
this.notification_list = res.data; this.notification_list = res.data;
console.log("this.notification_list", this.notification_list);
}); });
}, },
// //
@ -126,6 +128,8 @@ export default {
font-size: 18px; font-size: 18px;
font-weight: 400; font-weight: 400;
display: flex; display: flex;
background: url("~@/assets/safetyIndex/0091.png") no-repeat;
background-size: 100% 100%;
.icon_box { .icon_box {
width: 3vw; width: 3vw;
height: 7vh; height: 7vh;

@ -101,11 +101,10 @@ export default {
height: calc(100% - 80px); height: calc(100% - 80px);
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
// border: 0.1px solid #495e70;
.iframeMap { .iframeMap {
margin-top: 0.5vh; // margin-top: 0.5vh;
z-index: 0; z-index: 0;
height: 90vh; height: 91vh;
} }
.left_box { .left_box {
position: absolute; position: absolute;
@ -116,7 +115,7 @@ export default {
.right_box { .right_box {
position: absolute; position: absolute;
width: 24vw; width: 24vw;
right: 20px; right: 14px;
top: 0vh; top: 0vh;
} }
.select_box { .select_box {

@ -3,13 +3,22 @@
<div class="cardContent"> <div class="cardContent">
<!-- 卡片展示 --> <!-- 卡片展示 -->
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="6" class="cardCol" v-for="(i, index) in cardListArr" :key="index" @click.native="goArchives(i)"> <el-col
:span="6"
class="cardCol"
v-for="(i, index) in cardListArr"
:key="index"
@click.native="goArchives(i)"
>
<div class="cardList"> <div class="cardList">
<div class="cardListHead"> <div class="cardListHead">
<span>{{ i.companyName }}</span> <span>{{ i.companyName }}</span>
</div> </div>
<div class="cardListBody"> <div class="cardListBody">
<div class="bodySign" :style="{ 'background': 'url('+ i.picUrl +')' }"> <div
class="bodySign"
:style="{ background: 'url(' + i.picUrl + ')' }"
>
<!-- <img :src="i.picUrl"/> --> <!-- <img :src="i.picUrl"/> -->
<!-- 中间标签 --> <!-- 中间标签 -->
<div class="sign"> <div class="sign">
@ -32,15 +41,19 @@
</div> </div>
<div class="cardListFoot"> <div class="cardListFoot">
<el-descriptions class="margin-top" :column="2"> <el-descriptions class="margin-top" :column="2">
<el-descriptions-item label="企业员工">{{ i.staffCount || 0}} </el-descriptions-item> <el-descriptions-item label="企业员工"
>{{ i.staffCount || 0 }} </el-descriptions-item
>
<el-descriptions-item label="是否有过处罚"> <el-descriptions-item label="是否有过处罚">
<span v-if="i.caseCount == 13"></span> <span v-if="i.caseCount == 13"></span>
<span v-else></span> <span v-else></span>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="企业安全责任人电话">{{ i.emergencyContactPhone }}</el-descriptions-item> <el-descriptions-item label="企业安全责任人电话">{{
i.emergencyContactPhone
}}</el-descriptions-item>
</el-descriptions> </el-descriptions>
<div class="address"> <div class="address">
<img src="@/assets/enterpriseArchives/address.png" alt=""> <img src="@/assets/enterpriseArchives/address.png" alt="" />
<span>{{ i.companyAddress }}</span> <span>{{ i.companyAddress }}</span>
</div> </div>
</div> </div>
@ -56,41 +69,35 @@ export default {
props: { props: {
cardList: { cardList: {
type: Array, type: Array,
default:()=> [] default: () => [],
} },
}, },
watch: { watch: {
cardList: { cardList: {
handler(val) { handler(val) {
this.cardListArr =val this.cardListArr = val;
},
immediate: true,
}, },
immediate:true
}
}, },
data() { data() {
return { return {
cardListArr:[] cardListArr: [],
} };
},
created() {
},
mounted(){
}, },
created() {},
mounted() {},
methods: { methods: {
goArchives(val) { goArchives(val) {
console.log(val,'val'); console.log(val, "val");
sessionStorage.setItem('companyID', val.id) sessionStorage.setItem("companyID", val.id);
sessionStorage.setItem('companyName', val.companyName) sessionStorage.setItem("companyName", val.companyName);
this.$router.push({ this.$router.push({
name: 'archives', name: "archives",
});
})
}, },
}, },
} };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@ -98,8 +105,12 @@ export default {
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;
border: 0.1px solid #495e70;
height: 65vh;
.cardContent { .cardContent {
width: 80%; width: 80%;
height: 60vh;
// border:4px solid #fff;
} }
.cardCol { .cardCol {
display: flex; display: flex;
@ -107,25 +118,27 @@ export default {
margin-bottom: 2vh; margin-bottom: 2vh;
} }
.cardList { .cardList {
width: 382px; width: 20vw;
cursor: pointer; cursor: pointer;
height: 291px; height: 30vh;
background: url("~@/assets/enterpriseArchives/cardBg.png") no-repeat; background: url("~@/assets/enterpriseArchives/cardBg.png") no-repeat;
background-size: 100% 100%;
.cardListHead { .cardListHead {
height: 39px; height: 39px;
z-index: 99; z-index: 99;
text-align: center; text-align: center;
position: absolute; position: absolute;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXwAAAAnCAYAAAAM2fNKAAAAAXNSR0IArs4c6QAADQhJREFUeF7tXV2sXUUV/mbPPrcFWkqgfwIxaMJfq4ZIApoG5EJEWtKkxIQYCf69tA8mxmdMGjT6YiIPYjC+SnwgQVGQYlOVyINUAw9AKfEBApFQKKGUUnrP/pkxa/asfdeee869vaWVe/ZZJ9l3z55Zs2bWNzP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priseArchives/cardTitle.png") no-repeat;
background-size: 100% 100%;
width: 382px; width: 382px;
} }
.cardListHead span { .cardListHead span {
color: #FFFFFF; color: #ffffff;
display: inline-block; display: inline-block;
margin-top: 2px; margin-top: 2px;
} }
.cardListBody { .cardListBody {
width: 100%; width: 20vw;
display: flex; display: flex;
height: 200px; height: 200px;
justify-content: center; justify-content: center;
@ -157,8 +170,8 @@ export default {
height: 26px; height: 26px;
line-height: 26px; line-height: 26px;
width: auto; width: auto;
background: url("~@/assets/companyFile/编组 11991.png") background: url("~@/assets/companyFile/编组 11991.png") no-repeat;
no-repeat; background-size: 100% 100%;
padding: 0 5px; padding: 0 5px;
font-size: 14px; font-size: 14px;
color: #b5ebff; color: #b5ebff;
@ -172,8 +185,8 @@ export default {
height: 26px; height: 26px;
line-height: 26px; line-height: 26px;
width: auto; width: auto;
background: url("~@/assets/companyFile/编组 11222221.png") background: url("~@/assets/companyFile/编组 11222221.png") no-repeat;
no-repeat; background-size: 100% 100%;
padding: 0 5px; padding: 0 5px;
font-size: 14px; font-size: 14px;
color: #e3deff; color: #e3deff;
@ -189,6 +202,7 @@ export default {
width: auto; width: auto;
background: url("~@/assets/companyFile/编组 11991备份 10.png") background: url("~@/assets/companyFile/编组 11991备份 10.png")
no-repeat; no-repeat;
background-size: 100% 100%;
padding: 0 5px; padding: 0 5px;
font-size: 14px; font-size: 14px;
color: #e3deff; color: #e3deff;
@ -204,6 +218,7 @@ export default {
width: auto; width: auto;
background: url("~@/assets/companyFile/编组 11991备份 21.png") background: url("~@/assets/companyFile/编组 11991备份 21.png")
no-repeat; no-repeat;
background-size: 100% 100%;
padding: 0 5px; padding: 0 5px;
font-size: 14px; font-size: 14px;
color: #e3deff; color: #e3deff;
@ -215,12 +230,17 @@ export default {
} }
.signGreen { .signGreen {
font-size: 14px; font-size: 14px;
background: url("~@/assets/enterpriseArchives/signGreen.png") no-repeat; background: url("~@/assets/enterpriseArchives/signGreen.png")
no-repeat;
background-size: 100% 100%;
} }
.signRed { .signRed {
background: url("~@/assets/enterpriseArchives/signRed.png") no-repeat; background: url("~@/assets/enterpriseArchives/signRed.png") no-repeat;
}.signBlue{ background-size: 100% 100%;
}
.signBlue {
background: url("~@/assets/enterpriseArchives/signBlue.png") no-repeat; background: url("~@/assets/enterpriseArchives/signBlue.png") no-repeat;
background-size: 100% 100%;
background-size: cover; background-size: cover;
padding: 3px; padding: 3px;
padding-left: 6px; padding-left: 6px;

@ -0,0 +1,224 @@
<template>
<div class="card_box">
<div
class="card_box_item"
v-for="(i, index) in cardList"
:key="index"
@click="change_item(i)"
>
<!-- 盒子头部企业公司名 -->
<div class="card_head" :title="i.companyName">
{{ i.companyName }}
</div>
<!-- 企业图片展示区域 -->
<div class="card_company">
<img :src="i.picUrl" alt="" @error="setDefaultImage" />
<!-- 企业类型标签 -->
<div class="company_type">
<div
:class="{
shewei: val == '剧毒' || val == '易制毒',
zhongdian: val == '消防重点' || val == '所管消防',
zhibao: val == '放射源' || val == '易制爆',
zhian:
val == '治安重点' || val == '创安单位' || val == '外资合资',
}"
v-for="(val, index) in i.companyTypes"
:key="index"
>
{{ val }}
</div>
</div>
</div>
<!-- 企业信息展示 -->
<div class="card_text">
<el-descriptions class="margin-top" :column="2">
<el-descriptions-item label="企业员工"
>{{ i.staffCount || 0 }} </el-descriptions-item
>
<el-descriptions-item label="是否有过处罚">
<span v-if="i.caseCount == 13"></span>
<span v-else></span>
</el-descriptions-item>
<el-descriptions-item label="企业安全责任人电话">{{
i.emergencyContactPhone
}}</el-descriptions-item>
</el-descriptions>
<div class="address">
<i class="el-icon-location-outline"></i>
<span>{{ i.companyAddress }}</span>
</div>
</div>
</div>
</div>
</template>
<script>
import defaultImage from "@/assets/companyFile/default.png";
export default {
props: {
//
cardList: {
type: Array,
default: () => [],
},
},
data() {
return {
cardListArr: [],
massage_title: "",
};
},
methods: {
setDefaultImage(e) {
//
e.target.src = defaultImage;
},
//
change_item(val) {
sessionStorage.setItem("companyID", val.id);
sessionStorage.setItem("companyName", val.companyName);
this.$router.push({
name: "archives",
});
},
},
};
</script>
<style lang="less" scoped>
.card_box {
width: 76vw;
height: 58vh;
margin-top: 2vh;
margin-left: 12vw;
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
.card_box_item {
width: 17.5vw;
height: 27vh;
margin-top: 1vh;
margin-left: 1.2vw;
background: url("~@/assets/enterpriseArchives/cardBg.png") no-repeat;
background-size: 100% 100%;
cursor: pointer;
.card_head {
width: 17.5vw;
height: 4vh;
background: url("~@/assets/enterpriseArchives/cardTitle.png") no-repeat;
background-size: 100% 100%;
color: aliceblue;
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.card_company {
width: 17.5vw;
height: 15vh;
position: relative;
img {
width: 17.5vw;
height: 15vh;
}
.company_type {
display: flex;
flex-wrap: wrap;
position: absolute;
z-index: 10;
left: 10px;
width: 16.4vw;
bottom: 5px;
background: #161325;
background-color: rgba(0, 0, 0, 0.4);
.shewei {
height: 26px;
line-height: 26px;
width: 60px;
background: url("~@/assets/companyFile/编组 11991.png") no-repeat;
padding: 0 5px;
font-size: 14px;
color: #b5ebff;
letter-spacing: 0.44px;
font-weight: 400;
background-size: 100% 100%;
margin-right: 5px;
margin-bottom: 5px;
text-align: center;
}
.zhongdian {
height: 26px;
line-height: 26px;
width: 80px;
background: url("~@/assets/companyFile/编组 11222221.png") no-repeat;
padding: 0 5px;
font-size: 14px;
color: #e3deff;
letter-spacing: 0.44px;
font-weight: 400;
background-size: 100% 100%;
margin-right: 5px;
margin-bottom: 5px;
text-align: center;
}
.zhibao {
height: 26px;
line-height: 26px;
width: 60px;
background: url("~@/assets/companyFile/编组 11991备份 10.png")
no-repeat;
padding: 0 5px;
font-size: 14px;
color: #e3deff;
letter-spacing: 0.44px;
font-weight: 400;
background-size: 100% 100%;
margin-right: 5px;
margin-bottom: 5px;
text-align: center;
}
.zhian {
height: 26px;
line-height: 26px;
width: 80px;
background: url("~@/assets/companyFile/编组 11991备份 21.png")
no-repeat;
padding: 0 5px;
font-size: 14px;
color: #e3deff;
letter-spacing: 0.44px;
font-weight: 400;
background-size: 100% 100%;
margin-right: 5px;
margin-bottom: 5px;
text-align: center;
}
}
}
.card_text {
margin-left: 0.5vw;
width: 17vw;
height: 8vh;
color: #fff;
.address {
font-size: 14px;
margin-top: 4px;
height: 2vh;
line-height: 2vh;
}
}
::v-deep .el-descriptions {
width: 80% !important;
}
::v-deep .el-descriptions__body {
color: #fff;
background-color: transparent !important;
}
::v-deep .el-descriptions-item__cell {
padding-bottom: 3px !important;
}
}
}
</style>

@ -4,113 +4,141 @@
<div class="searchBox"> <div class="searchBox">
<div class="searchBody"> <div class="searchBody">
<div class="topLogo"> <div class="topLogo">
<img src="../../assets/companyFile/档案981.png" alt=""> <img src="../../assets/companyFile/档案981.png" alt="" />
企业档案 企业档案
</div> </div>
<div class="totalNum"> <div class="totalNum">
<span>共有</span><i class="numItem" v-for="(item, index) in numList" :key="index">{{ item <span>共有</span
}}</i><span>家企业</span> ><i class="numItem" v-for="(item, index) in numList" :key="index">{{
item
}}</i
><span>家企业</span>
</div> </div>
<div class="zhcxBox"><input type="text" class="zhcxBoxIPT" placeholder="请输入企业名称/员工姓名/车牌号检索" <div class="zhcxBox">
v-model.trim="searchVal"> <input
<el-button type="primary" icon="el-icon-search" class="ssBtn" @click="showResult(searchVal)"><span>搜索</span> type="text"
class="zhcxBoxIPT"
placeholder="请输入企业名称/员工姓名/车牌号检索"
v-model.trim="searchVal"
/>
<el-button
type="primary"
icon="el-icon-search"
class="ssBtn"
@click="showResult(searchVal)"
><span>搜索</span>
</el-button> </el-button>
</div> </div>
<div class="zjssBox"> <div class="zjssBox">
<span style="color: #37FDC7;">最近搜索 </span> <span style="color: #37fdc7">最近搜索 </span>
<div class="ssgs" v-for="(item, index) in historyList" :key="index"><span class="hisSpan" @click="showResult(item)">{{ <div class="ssgs" v-for="(item, index) in historyList" :key="index">
item }}</span></div> <span class="hisSpan" @click="showResult(item)">{{ item }}</span>
</div> </div>
</div> </div>
</div> </div>
<card :cardList="cardList"></card>
</div> </div>
<result :searchVal="searchVal" :total="total" :historyList="historyList" :resultList="resultList" <!-- <card :cardList="cardList"></card> -->
@clearInput="clearInput()" v-if="isShow"> <CardBox ref="cardBox" :cardList="cardList"></CardBox>
</div>
<result
:searchVal="searchVal"
:total="total"
:historyList="historyList"
:resultList="resultList"
@clearInput="clearInput()"
v-if="isShow"
>
</result> </result>
</div> </div>
</template> </template>
<script> <script>
import result from './result.vue' import result from "./result.vue";
import card from './componets/card.vue' import CardBox from "./componets/cardBox"
import { listTotal, historyList, searchList,cardLists } from '@/api/enterpriseArchives' // import card from "./componets/card.vue";
import {
listTotal,
historyList,
searchList,
cardLists,
} from "@/api/enterpriseArchives";
export default { export default {
components: { components: {
result, result,
card // card,
CardBox
}, },
data() { data() {
return { return {
cardList: [], cardList: [],
numList: [], numList: [],
totalNum: '', totalNum: "",
searchVal: '', searchVal: "",
isShow: false, isShow: false,
resultList: [], resultList: [],
historyList: [], historyList: [],
resultList1: [], resultList1: [],
total: 0, total: 0,
} };
}, },
created() { created() {
this.getlistTotal() this.getlistTotal();
this.gethistoryList() this.gethistoryList();
this.resultList1 = JSON.parse(JSON.stringify(this.resultList)) this.resultList1 = JSON.parse(JSON.stringify(this.resultList));
}, },
mounted() { mounted() {
this.getCardList() this.getCardList();
}, },
methods: { methods: {
getCardList(){// getCardList() {
this.cardList = [] //
this.cardList = [];
cardLists().then((res) => { cardLists().then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.cardList = res.data this.cardList = res.data;
} }
}) });
}, },
showResult(val) { showResult(val) {
if (!val) { if (!val) {
this.$message.warning('请输入要查询的关键词') this.$message.warning("请输入要查询的关键词");
return return;
} }
this.searchVal = val this.searchVal = val;
searchList({ searchValue: val }).then(res => { searchList({ searchValue: val }).then((res) => {
if (res.total || res.data.length) { if (res.total || res.data.length) {
this.resultList = res.data this.resultList = res.data;
this.total = res.total this.total = res.total;
this.isShow = true this.isShow = true;
} else { } else {
this.$message.warning('未查询到相关数据') this.$message.warning("未查询到相关数据");
} }
}) });
}, },
clearInput() { clearInput() {
this.resultList = JSON.parse(JSON.stringify(this.resultList1)) this.resultList = JSON.parse(JSON.stringify(this.resultList1));
this.isShow = false this.isShow = false;
this.gethistoryList() this.gethistoryList();
this.getCardList() this.getCardList();
}, },
getlistTotal() { getlistTotal() {
listTotal().then((res) => { listTotal().then((res) => {
this.totalNum = res.data this.totalNum = res.data;
this.numList = this.totalNum.toString().split('') this.numList = this.totalNum.toString().split("");
}) });
}, },
gethistoryList() { gethistoryList() {
historyList().then((res) => { historyList().then((res) => {
this.historyList = res.data this.historyList = res.data;
this.historyList = this.historyList.filter((item, index) => { this.historyList = this.historyList.filter((item, index) => {
if (index < 5) { if (index < 5) {
return item return item;
} }
}) });
}) });
}, },
}, },
} };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@ -121,7 +149,7 @@ export default {
justify-content: center; justify-content: center;
/deep/.el-scrollbar__view { /deep/.el-scrollbar__view {
padding: 0 padding: 0;
} }
/deep/.el-scrollbar__wrap { /deep/.el-scrollbar__wrap {
@ -137,14 +165,15 @@ export default {
} }
.searchBody { .searchBody {
width: 1050px; width: 1050px;
height: 320px; height: 28vh;
// margin-top: 160px; // margin-top: 160px;
margin-top: 60px; margin-top: 20px;
// border: 0.1px solid #495e70;
// border-bottom: 1px solid #6C8097; // border-bottom: 1px solid #6C8097;
.topLogo { .topLogo {
width: 260px; width: 260px;
height: 50px; height: 5vh;
margin: 0 auto; margin: 0 auto;
font-size: 36px; font-size: 36px;
color: aliceblue; color: aliceblue;
@ -160,9 +189,9 @@ export default {
} }
} }
.totalNum { .totalNum {
margin-top: 30px; margin-top: 2.5vh;
width: 100%; width: 100%;
height: 50px; height: 5vh;
color: rgba(248, 251, 255, 0.7); color: rgba(248, 251, 255, 0.7);
font-size: 22px; font-size: 22px;
@ -176,8 +205,12 @@ export default {
width: 25px; width: 25px;
height: 40px; height: 40px;
display: inline-block; display: inline-block;
background-image: linear-gradient(180deg, rgba(234, 241, 248, 0.10) 0%, rgba(208, 222, 238, 0.10) 100%); background-image: linear-gradient(
border: 1px solid #33CCCC; 180deg,
rgba(234, 241, 248, 0.1) 0%,
rgba(208, 222, 238, 0.1) 100%
);
border: 1px solid #33cccc;
font-family: DS-Digital-Bold; font-family: DS-Digital-Bold;
font-size: 40px; font-size: 40px;
color: rgba(248, 251, 255, 0.89); color: rgba(248, 251, 255, 0.89);
@ -201,23 +234,20 @@ export default {
height: 100%; height: 100%;
width: 900px; width: 900px;
font-size: 20px; font-size: 20px;
background: #121A18; background: #121a18;
border: 1px solid rgba(108, 128, 151, 0.7); border: 1px solid rgba(108, 128, 151, 0.7);
border-radius: 4px; border-radius: 4px;
font-size: 18px; font-size: 18px;
color: #F8FBFF; color: #f8fbff;
letter-spacing: 1.29px; letter-spacing: 1.29px;
line-height: 16px; line-height: 16px;
font-weight: 400; font-weight: 400;
opacity: 0.95; opacity: 0.95;
} }
input:focus, input:focus,
textarea:focus { textarea:focus {
outline: none; outline: none;
} }
.ssBtn { .ssBtn {
@ -229,7 +259,7 @@ export default {
font-size: 20px; font-size: 20px;
text-align: center; text-align: center;
border: 0; border: 0;
background: url('~@/assets/companyFile/2121.png') no-repeat; background: url("~@/assets/companyFile/2121.png") no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
} }
} }
@ -259,7 +289,6 @@ export default {
.hisSpan { .hisSpan {
padding: 0px 7px 0px 7px; padding: 0px 7px 0px 7px;
} }
} }
} }
} }

@ -2,7 +2,10 @@
<div class="mainHD"> <div class="mainHD">
<div class="topHeader"> <div class="topHeader">
<div class="iconbg"> <div class="iconbg">
<img src="../assets/companyFile/police.png" style="width: 60px;height: 60px" /> <img
src="../assets/companyFile/police.png"
style="width: 60px; height: 60px"
/>
</div> </div>
<div class="headText">镇海平安企业园区</div> <div class="headText">镇海平安企业园区</div>
<el-menu <el-menu
@ -21,6 +24,10 @@
>安商惠企</el-menu-item >安商惠企</el-menu-item
> >
<div class="shu"></div> <div class="shu"></div>
<el-menu-item index="5" route="/home/enterpriseArchives"
>企业档案</el-menu-item
>
<div class="shu"></div>
<el-menu-item index="2" route="/home/realtimeWarning" <el-menu-item index="2" route="/home/realtimeWarning"
>实时预警</el-menu-item >实时预警</el-menu-item
> >
@ -33,15 +40,14 @@
>要素资源</el-menu-item >要素资源</el-menu-item
> >
<div class="shu"></div> <div class="shu"></div>
<el-menu-item index="5" route="/home/enterpriseArchives"
>企业档案</el-menu-item
>
<div class="shu"></div>
<el-menu-item index="7" route="/home/systemManagement/safeIndex" <el-menu-item index="7" route="/home/systemManagement/safeIndex"
>系统管理</el-menu-item >系统管理</el-menu-item
> >
<div class="shu"></div> <div class="shu"></div>
</el-menu> </el-menu>
<!-- <div class="time_box">
<div class="time_item">{{ this.get_time }}</div>
</div> -->
<div class="jingGuan"> <div class="jingGuan">
<div class="jgtx" @click="check_user"> <div class="jgtx" @click="check_user">
<img src="../assets/companyFile/12110.png" /> <img src="../assets/companyFile/12110.png" />
@ -76,6 +82,8 @@ export default {
? sessionStorage.getItem("activeIndex") ? sessionStorage.getItem("activeIndex")
: "1"; : "1";
}, },
computed: {
},
methods: { methods: {
handleSelect(key) { handleSelect(key) {
sessionStorage.setItem("activeIndex", key); sessionStorage.setItem("activeIndex", key);
@ -95,6 +103,23 @@ export default {
// //
this.$router.push("/login"); this.$router.push("/login");
}, },
get_time() {
let date = new Date();
let sign = ":";
let hour = date.getHours(); //
let minutes = date.getMinutes(); //
let seconds = date.getSeconds(); //
if (hour >= 0 && hour <= 9) {
hour = "0" + hour;
}
if (minutes >= 0 && minutes <= 9) {
minutes = "0" + minutes;
}
if (seconds >= 0 && seconds <= 9) {
seconds = "0" + seconds;
}
return hour + sign + minutes + sign + seconds;
},
}, },
}; };
</script> </script>
@ -138,7 +163,20 @@ export default {
font-weight: 400; font-weight: 400;
margin-right: 30px; margin-right: 30px;
} }
.time_box {
width: 8.5vw;
height: 6vh;
border: 0.1px solid #33cccc;
.time_item {
width: 8.5vw;
height: 3.5vh;
text-align: center;
line-height: 3.5vh;
color: #37FDC7 ;
font-size: 24px;
font-weight: 600;
}
}
.jingGuan { .jingGuan {
position: absolute; position: absolute;
right: 30px; right: 30px;

@ -23,6 +23,7 @@
<span <span
>( <span class="redText">{{ total }}</span> )</span >( <span class="redText">{{ total }}</span> )</span
> >
<!-- 搜索框 -->
<div class="searchBox"> <div class="searchBox">
<el-form :model="formInline" class="search"> <el-form :model="formInline" class="search">
<el-form-item class="formItem"> <el-form-item class="formItem">
@ -37,6 +38,7 @@
</el-form> </el-form>
</div> </div>
</div> </div>
<!-- 公司展示区域 -->
<div class="bottomBody"> <div class="bottomBody">
<div <div
class="yujingItem" class="yujingItem"
@ -44,7 +46,11 @@
:key="index" :key="index"
> >
<div class="yujingTop"> <div class="yujingTop">
<div class="companyName">{{ item.companyName }}</div> <div class="companyName">
<div class="companyName_icon"></div>
<div class="companyName_text">{{ item.companyName }}</div>
</div>
<!-- <div class="companyName">{{ item.companyName }}</div> -->
<div class="impBtnList"> <div class="impBtnList">
<div <div
:class="{ :class="{
@ -421,15 +427,23 @@ export default {
padding: 0 14px 5px; padding: 0 14px 5px;
.companyName { .companyName {
font-size: 16px;
color: #30c4ff;
letter-spacing: 1.14px;
font-weight: 500;
margin-right: 20px;
width: 100%; width: 100%;
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
display: flex;
//white-space: nowrap; // //white-space: nowrap; //
.companyName_icon {
width: 6.5%;
background: url("~@/assets/safetyIndex/red02.png") no-repeat;
background-size: 100% 100%;
}
.companyName_text {
color: #30c4ff;
font-size: 16px;
letter-spacing: 1.14px;
font-weight: 500;
margin-left: 10px;
}
} }
.impBtnList { .impBtnList {

Loading…
Cancel
Save