警情通报开发 1

pull/139/head
lukeyan 1 year ago
parent d2e931b2ba
commit 2401af74fb

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

@ -3,7 +3,8 @@
<div class="supermarket_body"> <div class="supermarket_body">
<div class="supermarket_title"> <div class="supermarket_title">
<div class="supermarket_title_01" @click="back_list"></div> <div class="supermarket_title_01" @click="back_list"></div>
<div v-if="is_flag != '0'" class="supermarket_title_02">>>人员背景审核</div> <div v-if="is_flag == '1'" class="supermarket_title_02">>>人员背景审核</div>
<div v-if="is_flag == '3'" class="supermarket_title_02">>>警情通报</div>
</div> </div>
<div class="supermarket_list"> <div class="supermarket_list">
<div v-if="is_flag === '0'" class="list_boxs"> <div v-if="is_flag === '0'" class="list_boxs">
@ -26,7 +27,7 @@
<div class="key_person_text">重点岗位审核</div> <div class="key_person_text">重点岗位审核</div>
</div> </div>
<!-- 警情通报 --> <!-- 警情通报 -->
<div class="list_box key_item"> <div class="list_box key_item" @click="police_back_change">
<div class="key_item_icon_box"> <div class="key_item_icon_box">
<!-- 遮罩层 负责旋转动画 --> <!-- 遮罩层 负责旋转动画 -->
<div class="blue_mark turn"></div> <div class="blue_mark turn"></div>
@ -102,15 +103,21 @@
<div v-else-if="is_flag === '1'" class="person_back_boxs"> <div v-else-if="is_flag === '1'" class="person_back_boxs">
<PersonBack ref="personBack"></PersonBack> <PersonBack ref="personBack"></PersonBack>
</div> </div>
<!-- 跳转至警情通报 -->
<div v-else-if="is_flag === '3'" class="person_back_boxs">
<PoliceReport ref="policeReport"></PoliceReport>
</div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import PersonBack from './personBack/index.vue' import PersonBack from './personBack/index';
import PoliceReport from './policeReport/index';
export default { export default {
name: "ApplySupermarket", name: "ApplySupermarket",
components:{ components:{
PersonBack PersonBack,
PoliceReport
}, },
data() { data() {
return { return {
@ -122,9 +129,14 @@ export default {
back_list() { back_list() {
this.is_flag = '0' this.is_flag = '0'
}, },
//
person_back_change() { person_back_change() {
this.is_flag = "1"; this.is_flag = "1";
}, },
//
police_back_change() {
this.is_flag = '3';
}
}, },
}; };
</script> </script>

@ -120,7 +120,7 @@ export default {
); );
console.log(res.rows[i].abnormal_num); console.log(res.rows[i].abnormal_num);
} }
console.log('res.rows',res.rows); console.log("res.rows", res.rows);
this.item_data = res.rows; this.item_data = res.rows;
this.total = res.total; this.total = res.total;
}); });
@ -149,27 +149,60 @@ export default {
height: 5vh; height: 5vh;
.isearch { .isearch {
display: flex; display: flex;
width: 18vw; width: 19vw;
margin-left: 1.5vw; margin-left: 1.5vw;
.el-button { .el-button {
display: flex;
align-items: center;
font-size: 17px; font-size: 17px;
height: 4vh; height: 4vh;
border-radius: 0px; border-radius: 0px 4px 4px 0px;
color: #fff; color: #fff;
background: rgba(0, 0, 0, 0); background: rgba(0, 0, 0, 0);
border: 0.1px solid #28847e; border: 0.1px solid #28847e;
position: relative;
overflow: hidden;
&:before {
content: "";
position: absolute;
top: -100%;
left: -50%;
width: 150%;
height: 2px;
background-color: #fff;
box-shadow: 0 0 4px 1px #fff;
transform: rotateZ(-45deg);
}
&:hover::before {
transition: 0.7s;
top: 200%;
left: 50%;
}
} }
.el-button:hover { .el-button:hover {
background: #4d8f89; background: #4d8f89;
} }
// /deep/.search_input.el-input {
// .el-input__inner {
// color: #fff;
// border: 0.1px solid #28847e;
// border-radius: 0px;
// background: rgba(0, 0, 0, 0);
// width: 16.1vw;
// height: 4vh;
// }
// }
/deep/.search_input.el-input.el-input--suffix {
height: 4vh;
width: 16vw;
}
/deep/.search_input.el-input { /deep/.search_input.el-input {
.el-input__inner { .el-input__inner {
color: #fff; color: #fff;
height: 4vh;
border: 0.1px solid #28847e; border: 0.1px solid #28847e;
border-radius: 0px; border-radius: 4px 0px 0px 4px;
background: rgba(0, 0, 0, 0); background: rgba(0, 0, 0, 0);
width: 16vw;
height: 4vh;
} }
} }
} }
@ -326,7 +359,7 @@ export default {
height: 6vh; height: 6vh;
display: flex; display: flex;
flex-direction: row-reverse; flex-direction: row-reverse;
/deep/.el-pagination.is-background .btn-next, /deep/.el-pagination.is-background .btn-next,
/deep/.el-pagination.is-background .btn-prev, /deep/.el-pagination.is-background .btn-prev,
/deep/.el-pagination.is-background .el-pager li { /deep/.el-pagination.is-background .el-pager li {
margin: 0 5px; margin: 0 5px;
@ -340,10 +373,10 @@ export default {
color: #fff; color: #fff;
} }
/deep/.el-input__inner { /deep/.el-input__inner {
background-color: rgba(255, 255, 255, 0); background-color: rgba(255, 255, 255, 0);
border: 1px solid rgba(40, 132, 126, 1); border: 1px solid rgba(40, 132, 126, 1);
color: #eaeff7; color: #eaeff7;
} }
/deep/.el-pagination.is-background .el-pager li:not(.disabled).active { /deep/.el-pagination.is-background .el-pager li:not(.disabled).active {
background-color: rgba(64, 158, 255, 0); background-color: rgba(64, 158, 255, 0);
color: #ccc; color: #ccc;

@ -0,0 +1,166 @@
<!-- 警情通报 -->
<template>
<div>
<!-- 查询 -->
<div class="item_search">
<el-form :model="search" class="search_form">
<el-form-item label="通报时间">
<el-date-picker
v-model="search.course_time"
type="datetimerange"
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-item>
<el-button icon="el-icon-search" @click="search_data"></el-button>
<el-button icon="el-icon-refresh-right" @click="reset"
>重置</el-button
>
</el-form-item>
</el-form>
</div>
</div>
</template>
<script>
export default {
data() {
return {
search: {
search_time: [this.get_today(), this.get_tomorrow()],
word: "",
},
};
},
methods: {
//
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;
},
},
};
</script>
<style lang="less" scoped>
.item_search {
width: 94vw;
display: flex;
flex-direction: row-reverse;
// /deep/.el-range-input {
// background: rgba(0, 0, 0, 0);
// color: aliceblue;
// }
/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-date-editor.el-range-editor.el-input__inner.el-date-editor--datetimerange {
background: rgba(0, 0, 0, 0);
border: 0.1px solid #28847e;
}
.el-input__inner {
background: rgba(0, 0, 0, 0);
border: 0.1px solid #28847e;
color: #fff;
}
/* 查询框点击颜色变化 */
.el-input__inner:focus,
.el-input__inner:hover {
border-color: #2a968f;
}
.el-range-input {
color: #fff;
background: #283436;
}
}
.el-button {
border: 0.1px solid #28847e;
color: #fff;
background: rgba(0, 0, 0, 0);
position: relative;
overflow: hidden;
&:before {
content: "";
position: absolute;
top: -100%;
left: -50%;
width: 150%;
height: 2px;
background-color: #fff;
box-shadow: 0 0 4px 1px #fff;
transform: rotateZ(-45deg);
}
&:hover::before {
transition: 0.7s;
top: 200%;
left: 50%;
}
}
.el-button:focus,
.el-button:hover {
color: #34e1b3;
background: #4d8f89;
border: 0.1px solid #137868;
}
}
/deep/.el-range-separator {
color: #fff;
width: 10%;
}
/deep/.el-input__icon.el-range__close-icon {
display: none;
}
}
</style>

@ -12,7 +12,17 @@
</div> </div>
<!-- 企业图片展示区域 --> <!-- 企业图片展示区域 -->
<div class="card_company"> <div class="card_company">
<img :src="i.picUrl ? i.picUrl : ''" alt="" @error="setDefaultImage" /> <!-- <img :src="i.picUrl ? i.picUrl : ''" alt="" @error="setDefaultImage" /> -->
<el-image :src="i.picUrl ? i.picUrl : ''">
<!-- 加载失败 -->
<div
slot="error"
class="image_slot"
style="height: 15vh; display: flex; justify-content: center"
>
<img :src="errorsrc" alt="" style="width: 60px; height: 60px" />
</div>
</el-image>
<!-- 企业类型标签 --> <!-- 企业类型标签 -->
<div class="company_type"> <div class="company_type">
<div <div
@ -53,7 +63,7 @@
</div> </div>
</template> </template>
<script> <script>
import defaultImage from "@/assets/companyFile/default.png"; import defaultImage from "@/assets/enterpriseArchives/erroricon.png";
export default { export default {
props: { props: {
// //
@ -66,6 +76,7 @@ export default {
return { return {
cardListArr: [], cardListArr: [],
massage_title: "", massage_title: "",
errorsrc: require("@/assets/enterpriseArchives/erroricon.png"),
}; };
}, },
methods: { methods: {
@ -118,9 +129,16 @@ export default {
width: 17vw; width: 17vw;
height: 15vh; height: 15vh;
position: relative; position: relative;
img { .el-image {
width: 17vw; width: 17vw;
height: 15vh; height: 15vh;
.image_slot {
width: 17vw;
height: 15vh;
display: flex;
justify-content: center;
align-items: center;
}
} }
.company_type { .company_type {
display: flex; display: flex;

@ -102,6 +102,7 @@ export default {
pageSize: 10, pageSize: 10,
pageNum: 1, pageNum: 1,
warn_comapny_list: [], warn_comapny_list: [],
deal_list:[],
}; };
}, },
components: { components: {
@ -127,6 +128,8 @@ export default {
this.warn_comapny_list = res.data; this.warn_comapny_list = res.data;
console.log("this.warn_comapny_list", this.warn_comapny_list); console.log("this.warn_comapny_list", this.warn_comapny_list);
// //
this.deal_list = this.dealWithData(this.warn_comapny_list)
console.log('this.deal_list',this.deal_list);
this.warn_num = res.total; this.warn_num = res.total;
// this.label = `(${this.warn_num})` // this.label = `(${this.warn_num})`
}); });
@ -219,6 +222,26 @@ export default {
this.green_warn_search(); this.green_warn_search();
this.blue_warn_search(); this.blue_warn_search();
}, },
dealWithData(data) {
let c = [];
let d = {};
data.forEach((element) => {
if (!d[element.companyName]) {
c.push({
companyName: element.companyName,
allData: [element],
});
d[element.companyName] = element;
} else {
c.forEach((ele) => {
if (ele.companyName == element.companyName) {
ele.allData.push(element);
}
});
}
});
return c;
},
}, },
}; };
</script> </script>

@ -28,6 +28,7 @@ export default {
}); });
topMap({ scoreType: "season" }).then((res) => { topMap({ scoreType: "season" }).then((res) => {
this.companyList = res.data; this.companyList = res.data;
console.log('companyList',this.companyList);
}); });
}, },
methods: { methods: {

@ -31,7 +31,21 @@
<div class="center"> <div class="center">
<ul> <ul>
<li v-for="item in company_data" :key="item.id"> <li v-for="item in company_data" :key="item.id">
<img :src="item.picUrl" alt="" @error="setDefaultImage" /> <!-- <img :src="item.picUrl" alt="" @error="setDefaultImage" /> -->
<el-image :src="item.picUrl ? item.picUrl : ''">
<!-- 加载失败 -->
<div
slot="error"
class="image_slot"
style="height: 15vh; display: flex; justify-content: center; align-items: center;"
>
<img
:src="errorsrc"
alt=""
style="width: 60px; height: 60px"
/>
</div>
</el-image>
<span class="company_name"> {{ item.companyName }} </span> <span class="company_name"> {{ item.companyName }} </span>
<div class="company_label"> <div class="company_label">
<div <div
@ -107,6 +121,7 @@ export default {
pageNum: 1, pageNum: 1,
total: 0, total: 0,
pagination_width: "84", pagination_width: "84",
errorsrc: require("@/assets/enterpriseArchives/erroricon.png"), //
}; };
}, },
created() { created() {
@ -294,9 +309,10 @@ export default {
height: 31vh; height: 31vh;
background: #1b3736; background: #1b3736;
border: 1px solid #fff; border: 1px solid #fff;
img { display: flex;
margin-left: 0.3vw; justify-content: center;
margin-top: 0.5vh; align-items: center;
/deep/.el-image {
width: 25vw; width: 25vw;
height: 30vh; height: 30vh;
} }

Loading…
Cancel
Save