73 changed files with 6870 additions and 3804 deletions
@ -0,0 +1,4 @@ |
|||
NODE_ENV=production |
|||
VUE_APP_API_SERVER = https://epdc-shibei.elinkservice.cn/api |
|||
VUE_APP_NODE_ENV=shibei_prod |
|||
VUE_APP_PUBLIC_PATH=epmet-oper |
|||
|
After Width: | Height: | Size: 4.3 KiB |
@ -1,11 +1,11 @@ |
|||
// 变量 |
|||
@import "~@/element-ui/theme-variables.scss"; |
|||
@import "./variables.scss"; |
|||
@import '~@/element-ui/theme-variables.scss'; |
|||
@import './variables.scss'; |
|||
// 公共 |
|||
@import "./normalize.scss"; |
|||
@import "./common.scss"; |
|||
@import './normalize.scss'; |
|||
@import './common.scss'; |
|||
// 页面 |
|||
@import "./pages/login.scss"; |
|||
@import "./pages/404.scss"; |
|||
@import './pages/login.scss'; |
|||
@import './pages/404.scss'; |
|||
// 模块 |
|||
@import "./modules/home.scss"; |
|||
@import './modules/home.scss'; |
|||
|
|||
@ -0,0 +1,67 @@ |
|||
//新增 |
|||
.el-button--add { |
|||
color: #fff; |
|||
background-color: #22c1c3; |
|||
border-color: #22c1c3; |
|||
} |
|||
.el-button--add:hover { |
|||
color: #fff; |
|||
background-color: #05b1b4; |
|||
border-color: #05b1b4; |
|||
} |
|||
.el-button--add:focus { |
|||
color: #fff; |
|||
background-color: #22c1c3; |
|||
border-color: #22c1c3; |
|||
} |
|||
|
|||
//删除、导入 |
|||
.el-button--delete { |
|||
color: #fff; |
|||
background-color: #fe6252; |
|||
border-color: #fe6252; |
|||
} |
|||
.el-button--delete:hover { |
|||
color: #fff; |
|||
background-color: #fe6252; |
|||
border-color: #fe6252; |
|||
} |
|||
.el-button--delete:focus { |
|||
color: #fff; |
|||
background-color: #fe6252; |
|||
border-color: #fe6252; |
|||
} |
|||
|
|||
//重置、导出 |
|||
.el-button--reset { |
|||
color: #fff; |
|||
background-color: #feb349; |
|||
border-color: #feb349; |
|||
} |
|||
.el-button--reset:hover { |
|||
color: #fff; |
|||
background-color: #feb349; |
|||
border-color: #feb349; |
|||
} |
|||
.el-button--reset:focus { |
|||
color: #fff; |
|||
background-color: #feb349; |
|||
border-color: #feb349; |
|||
} |
|||
|
|||
//查询、确定 |
|||
.el-button--search:hover { |
|||
color: #fff; |
|||
background-color: #3e8ef7; |
|||
border-color: #3e8ef7; |
|||
} |
|||
.el-button--search:focus { |
|||
color: #fff; |
|||
background-color: #3e8ef7; |
|||
border-color: #3e8ef7; |
|||
} |
|||
.el-button--search { |
|||
color: #fff; |
|||
background-color: #3e8ef7; |
|||
border-color: #3e8ef7; |
|||
} |
|||
@ -1,61 +1,103 @@ |
|||
.el-button--green { |
|||
color: #fff; |
|||
background-color: #22c1c3; |
|||
border-color: #22c1c3; |
|||
//查询、确定 |
|||
.diy-button--search { |
|||
color: #fff !important; |
|||
background-color: #3e8ef7 !important; |
|||
border-color: #3e8ef7 !important; |
|||
} |
|||
.el-button--green:hover { |
|||
color: #fff; |
|||
background-color: #05b1b4; |
|||
border-color: #05b1b4; |
|||
.diy-button--search:hover { |
|||
color: #fff !important; |
|||
background-color: #3e8ef7 !important; |
|||
border-color: #3e8ef7 !important; |
|||
} |
|||
.el-button--green:focus { |
|||
color: #fff; |
|||
background-color: #22c1c3; |
|||
border-color: #22c1c3; |
|||
.diy-button--search:focus { |
|||
color: #fff !important; |
|||
background-color: #3e8ef7 !important; |
|||
border-color: #3e8ef7 !important; |
|||
} |
|||
|
|||
.el-button--yellow:hover { |
|||
color: #fff; |
|||
background-color: #fa9200; |
|||
border-color: #fa9200; |
|||
} |
|||
.el-button--yellow:focus { |
|||
color: #fff; |
|||
background-color: #feb349; |
|||
border-color: #feb349; |
|||
} |
|||
.el-button--yellow { |
|||
color: #fff; |
|||
background-color: #feb349; |
|||
border-color: #feb349; |
|||
} |
|||
.el-button--blue:focus { |
|||
color: #fff; |
|||
background-color: #2195fe; |
|||
border-color: #2195fe; |
|||
} |
|||
.el-button--blue:hover { |
|||
color: #fff; |
|||
background-color: #0083fd; |
|||
border-color: #0083fd; |
|||
} |
|||
.el-button--blue { |
|||
color: #fff; |
|||
background-color: #2195fe; |
|||
border-color: #2195fe; |
|||
} |
|||
.el-button--red:focus { |
|||
color: #fff; |
|||
background-color: #fe6252; |
|||
border-color: #fe6252; |
|||
} |
|||
.el-button--red:hover { |
|||
color: #fff; |
|||
background-color: #fd341e; |
|||
border-color: #fd341e; |
|||
} |
|||
.el-button--red { |
|||
color: #fff; |
|||
background-color: #fe6252; |
|||
border-color: #fe6252; |
|||
//重置、导出 |
|||
.diy-button--reset { |
|||
color: #fff !important; |
|||
background-color: #feb349 !important; |
|||
border-color: #feb349 !important; |
|||
} |
|||
.diy-button--reset:hover { |
|||
color: #fff !important; |
|||
background-color: #feb349 !important; |
|||
border-color: #feb349 !important; |
|||
} |
|||
.diy-button--reset:focus { |
|||
color: #fff !important; |
|||
background-color: #feb349 !important; |
|||
border-color: #feb349 !important; |
|||
} |
|||
|
|||
//新增 |
|||
.diy-button--add { |
|||
color: #fff !important; |
|||
background-color: #22c1c3 !important; |
|||
border-color: #22c1c3 !important; |
|||
} |
|||
.diy-button--add:hover { |
|||
color: #fff !important; |
|||
background-color: #22c1c3 !important; |
|||
border-color: #22c1c3 !important; |
|||
} |
|||
.diy-button--add:focus { |
|||
color: #fff !important; |
|||
background-color: #22c1c3 !important; |
|||
border-color: #22c1c3 !important; |
|||
} |
|||
|
|||
//删除、导入 |
|||
.diy-button--delete { |
|||
color: #fff !important; |
|||
background-color: #fe6252 !important; |
|||
border-color: #fe6252 !important; |
|||
} |
|||
.diy-button--delete:hover { |
|||
color: #fff !important; |
|||
background-color: #fe6252 !important; |
|||
border-color: #fe6252 !important; |
|||
} |
|||
.diy-button--delete:focus { |
|||
color: #fff !important; |
|||
background-color: #fe6252 !important; |
|||
border-color: #fe6252 !important; |
|||
} |
|||
//下载模板 |
|||
.diy-button--export { |
|||
color: #fff !important; |
|||
background-color: #3e8ef7 !important; |
|||
border-color: #3e8ef7 !important; |
|||
} |
|||
.diy-button--export:hover { |
|||
color: #fff !important; |
|||
background-color: #3e8ef7 !important; |
|||
border-color: #3e8ef7 !important; |
|||
} |
|||
.diy-button--export:focus { |
|||
color: #fff !important; |
|||
background-color: #3e8ef7 !important; |
|||
border-color: #3e8ef7 !important; |
|||
} |
|||
|
|||
//table按钮样式 |
|||
|
|||
//查看 |
|||
.div-table-button--detail { |
|||
color: #3E8EF7 !important; |
|||
text-decoration: underline !important; |
|||
} |
|||
|
|||
//修改 |
|||
.div-table-button--edit { |
|||
color: #00a7a9 !important; |
|||
text-decoration: underline !important; |
|||
} |
|||
|
|||
//删除 |
|||
.div-table-button--delete { |
|||
color: #d51010 !important; |
|||
text-decoration: underline !important; |
|||
} |
|||
|
|||
@ -0,0 +1,499 @@ |
|||
.div_top { |
|||
margin-left: 10px; |
|||
height: 35px; |
|||
.router_line { |
|||
width: 212px; |
|||
height: 1px; |
|||
border: 1px solid #ffffff; |
|||
opacity: 0.09; |
|||
/* opacity: 0.09; */ |
|||
} |
|||
.div_router { |
|||
margin-top: 5px; |
|||
font-size: 16px; |
|||
|
|||
.router_parents { |
|||
color: #a0c3d9; |
|||
|
|||
.arrow { |
|||
padding: 0 5px; |
|||
} |
|||
} |
|||
.router_parents:hover { |
|||
cursor: pointer; |
|||
} |
|||
|
|||
.router_child { |
|||
color: #ffffff; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.div_content { |
|||
display: flex; |
|||
|
|||
.div_map { |
|||
box-sizing: border-box; |
|||
width: 100%; |
|||
// padding: 10px 5px 13px; |
|||
// margin-top: 8px; |
|||
height: calc(88vh - 15px); |
|||
color: #fff; |
|||
// background: url('../../../img/modules/visual/warning-box.png') no-repeat |
|||
// center; |
|||
// background-size: 100% 100%; |
|||
} |
|||
|
|||
.div_data { |
|||
flex: 0 0 562px; |
|||
margin-left: 12px; |
|||
|
|||
.div_search { |
|||
width: 100%; |
|||
height: 56px; |
|||
text-align: center; |
|||
background-color: #011168; |
|||
border-radius: 4px 0 0 4px; |
|||
border: none; |
|||
box-shadow: 0 0 10px inset #1a5afd; |
|||
font-size: 18px; |
|||
font-family: PingFang SC; |
|||
font-weight: 400; |
|||
color: #ffffff; |
|||
opacity: 0.7; |
|||
display: flex; |
|||
justify-content: space-between; |
|||
.div_search_left { |
|||
display: flex; |
|||
justify-content: flex-start; |
|||
.icon { |
|||
display: flex; |
|||
align-items: center; |
|||
margin-left: 29px; |
|||
|
|||
> img { |
|||
width: 24px; |
|||
height: 24px; |
|||
} |
|||
} |
|||
|
|||
> span { |
|||
line-height: 56px; |
|||
margin-left: 10px; |
|||
} |
|||
} |
|||
|
|||
.btn { |
|||
text-align: center; |
|||
flex: 0 0 113px; |
|||
height: 56px; |
|||
background: linear-gradient(90deg, #1a5afd, #26c4ff); |
|||
font-size: 20px; |
|||
font-family: PingFang SC; |
|||
font-weight: 400; |
|||
color: #ffffff; |
|||
line-height: 56px; |
|||
border-radius: 0 4px 4px 0; |
|||
} |
|||
} |
|||
|
|||
.div_search:hover { |
|||
cursor: pointer; |
|||
} |
|||
|
|||
.div_info { |
|||
box-sizing: border-box; |
|||
width: 100%; |
|||
margin-top: 21px; |
|||
height: calc(88vh - 87px); |
|||
color: #fff; |
|||
background: url('../../../img/modules/visual/warning-box.png') no-repeat |
|||
center; |
|||
background-size: 100% 100%; |
|||
// padding: 45px 21px 35px 24px; |
|||
|
|||
.info_loading { |
|||
margin-top: 50px; |
|||
} |
|||
.info_tip { |
|||
padding: 31px 0 0 19px; |
|||
display: flex; |
|||
> img { |
|||
height: 34px; |
|||
width: 46px; |
|||
} |
|||
|
|||
.tip_title { |
|||
line-height: 34px; |
|||
margin-left: 7px; |
|||
font-size: 22px; |
|||
font-family: PingFang SC; |
|||
font-weight: 800; |
|||
color: #ffffff; |
|||
} |
|||
} |
|||
|
|||
.info_list { |
|||
margin-top: 9px; |
|||
|
|||
.item { |
|||
.item_line { |
|||
margin-top: 13px; |
|||
margin-left: 24px; |
|||
width: 517px; |
|||
height: 0px; |
|||
border: 1px dotted #1797ff31; |
|||
border-width: 0.5px; |
|||
} |
|||
.last_line { |
|||
border: 1px dotted #1797ff00; |
|||
} |
|||
.list_item { |
|||
display: flex; |
|||
padding: 18px 59px 0; |
|||
justify-content: space-between; |
|||
|
|||
.list_item_col { |
|||
flex: 0 0 240px; |
|||
display: flex; |
|||
|
|||
> img { |
|||
height: 76px; |
|||
width: 76px; |
|||
} |
|||
|
|||
.item_content { |
|||
margin-left: 10px; |
|||
height: 76px; |
|||
display: flex; |
|||
flex-direction: column; |
|||
justify-content: center; |
|||
|
|||
.item_label { |
|||
font-size: 18px; |
|||
font-family: PingFang SC; |
|||
font-weight: 400; |
|||
color: #ffffff; |
|||
} |
|||
.item_count { |
|||
margin-top: 10px; |
|||
font-size: 28px; |
|||
font-family: PingFang SC; |
|||
font-weight: bold; |
|||
color: #00fffc; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
::v-deep .el-popper { |
|||
padding: 0px; |
|||
} |
|||
// |
|||
} |
|||
} |
|||
} |
|||
|
|||
.div_info { |
|||
/deep/ .el-scrollbar__wrap { |
|||
overflow-x: hidden !important; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
.div_community_info { |
|||
box-sizing: border-box; |
|||
flex: 0 0 calc(100vw - 620px); |
|||
// width: calc(100vw - 560px); |
|||
|
|||
height: calc(88vh - 10px); |
|||
color: #fff; |
|||
background: url('../../../img/modules/visual/warning-box.png') no-repeat |
|||
center; |
|||
background-size: 100% 100%; |
|||
|
|||
.div_select { |
|||
margin-top: 28px; |
|||
margin-left: 24px; |
|||
display: flex; |
|||
.customer_select { |
|||
display: flex; |
|||
justify-content: flex-start; |
|||
|
|||
> span { |
|||
width: auto; |
|||
font-size: 22px; |
|||
font-family: PingFang SC; |
|||
font-weight: 800; |
|||
color: #ffffff; |
|||
line-height: 34px; |
|||
} |
|||
} |
|||
> img { |
|||
height: 34px; |
|||
width: 46px; |
|||
} |
|||
|
|||
.tip_title { |
|||
line-height: 34px; |
|||
margin-left: 12px; |
|||
font-size: 22px; |
|||
font-family: PingFang SC; |
|||
font-weight: 800; |
|||
color: #ffffff; |
|||
} |
|||
} |
|||
|
|||
.div_room_bar { |
|||
box-sizing: border-box; |
|||
|
|||
margin-top: 9px; |
|||
height: calc(88vh - 120px); |
|||
} |
|||
|
|||
.div_room { |
|||
// height: calc(88vh - 40px); |
|||
// margin-top: 9px; |
|||
display: flex; |
|||
flex-wrap: wrap; |
|||
justify-content: flex-start; |
|||
margin: 0 21px 0 21px; |
|||
|
|||
.item:hover { |
|||
cursor: pointer; |
|||
} |
|||
.item_sel { |
|||
box-shadow: 0 0 10px inset #1a5afd; |
|||
} |
|||
.item { |
|||
background-color: #011168; |
|||
margin-top: 12px; |
|||
width: 244px; |
|||
height: 190px; |
|||
border: 1px solid #037ddc; |
|||
border-radius: 8px; |
|||
text-align: center; |
|||
margin-left: 11px; |
|||
position: relative; |
|||
|
|||
// &:first-child { |
|||
// margin-left: 0; |
|||
// } |
|||
|
|||
.housename { |
|||
margin-top: 70px; |
|||
font-size: 24px; |
|||
font-family: PingFang SC; |
|||
font-weight: 500; |
|||
color: #ffffff; |
|||
// line-height: 180px; |
|||
} |
|||
|
|||
.icon_party { |
|||
position: absolute; |
|||
top: 13px; |
|||
left: 18px; |
|||
} |
|||
|
|||
.icon_category { |
|||
position: absolute; |
|||
bottom: 14px; |
|||
left: 9px; |
|||
// margin-left: 7px; |
|||
|
|||
> img { |
|||
margin-left: 5px; |
|||
width: 21px; |
|||
height: 20px; |
|||
} |
|||
} |
|||
.div_user:hover { |
|||
cursor: pointer; |
|||
} |
|||
|
|||
.div_user { |
|||
position: absolute; |
|||
bottom: 10px; |
|||
right: 11px; |
|||
width: 88px; |
|||
height: 30px; |
|||
background: #073082; |
|||
border-radius: 15px; |
|||
|
|||
> img { |
|||
width: 10px; |
|||
height: 6px; |
|||
margin-left: 4px; |
|||
} |
|||
|
|||
> span { |
|||
font-size: 14px; |
|||
font-family: PingFang SC; |
|||
font-weight: 400; |
|||
color: #ffffff; |
|||
line-height: 30px; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
.div_room::after { |
|||
content: ''; |
|||
flex: 1; |
|||
} |
|||
} |
|||
|
|||
.user_list { |
|||
position: relative; |
|||
z-index: 10; |
|||
|
|||
background: #020340; |
|||
border: 1px solid #0a359b; |
|||
border-radius: 4px; |
|||
box-shadow: 0 0 10px inset #1a5afd; |
|||
|
|||
.user_item { |
|||
padding: 13px 8px 0 14px; |
|||
font-size: 16px; |
|||
font-family: PingFang SC; |
|||
font-weight: 400; |
|||
color: #ffffff; |
|||
|
|||
.user_item_content { |
|||
display: flex; |
|||
// justify-content: space-between; |
|||
align-items: center; |
|||
|
|||
.name { |
|||
max-width: 80%; |
|||
text-align: left; |
|||
} |
|||
|
|||
> img { |
|||
margin-left: auto; |
|||
|
|||
margin-top: 4px; |
|||
width: 8px; |
|||
height: 12px; |
|||
} |
|||
} |
|||
|
|||
.item_line { |
|||
margin-top: 9px; |
|||
width: 70px; |
|||
height: 0px; |
|||
border: 1px dotted #1797ff31; |
|||
border-width: 0.5px; |
|||
} |
|||
.last_line { |
|||
border: 1px dotted #1797ff00; |
|||
} |
|||
} |
|||
} |
|||
.div_agency_tran { |
|||
transition: width 2s ease-out, opacity 1s ease-in, visibility 1s ease-in; |
|||
width: 0; |
|||
height: 470px; |
|||
z-index: 1000; |
|||
position: absolute; |
|||
top: 50px; |
|||
right: 600px; |
|||
box-sizing: border-box; |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
|
|||
.div_agency_list { |
|||
width: 320px; |
|||
height: 470px; |
|||
color: #fff; |
|||
background: url('../../../img/modules/visual/box-2.png') no-repeat center; |
|||
background-size: 100% 100%; |
|||
padding: 45px 20px 35px 20px; |
|||
|
|||
.agency_main { |
|||
height: 100%; |
|||
position: relative; |
|||
} |
|||
|
|||
.agency_main { |
|||
/deep/ .el-scrollbar__wrap { |
|||
overflow-x: hidden !important; |
|||
} |
|||
} |
|||
|
|||
.no-data-img { |
|||
text-align: center; |
|||
margin-top: 50px; |
|||
margin-left: 15px; |
|||
} |
|||
.agency_list { |
|||
.agency_item { |
|||
// height: 60px; |
|||
padding: 15px 0; |
|||
font-size: 17px; |
|||
font-family: PingFang SC; |
|||
font-weight: 400; |
|||
color: #ffffff; |
|||
// line-height: 50px; |
|||
padding-left: 12px; |
|||
display: flex; |
|||
flex-direction: row; |
|||
align-items: center; |
|||
// padding-top: 15px; |
|||
|
|||
.agency_item_name { |
|||
// line-height: 20px; |
|||
} |
|||
} |
|||
|
|||
.agency_item_on { |
|||
background: #08216c; |
|||
border-radius: 2px; |
|||
} |
|||
|
|||
.agency_item:hover { |
|||
cursor: pointer; |
|||
background-color: #011168; |
|||
border-radius: 4px 0 0 4px; |
|||
border: none; |
|||
box-shadow: 0 0 10px inset #1a5afd; |
|||
border-radius: 2px; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.arrow_tip { |
|||
margin-right: -2px; |
|||
> img { |
|||
width: 21px; |
|||
height: 176px; |
|||
} |
|||
} |
|||
.arrow_tip:hover { |
|||
cursor: pointer; |
|||
} |
|||
} |
|||
|
|||
.div_agency_tran-fade-in { |
|||
width: 341px; |
|||
opacity: 1; |
|||
visibility: 1; |
|||
} |
|||
.div_agency_tran-fade-out { |
|||
visibility: 0; |
|||
opacity: 1; |
|||
width: 0; |
|||
right: 575px; |
|||
} |
|||
// .div_agency_list-fade-in { |
|||
// width: 341px; |
|||
// opacity: 1; |
|||
// visibility: 1; |
|||
// } |
|||
// .div_agency_list-fade-out { |
|||
// visibility: 0; |
|||
// opacity: 0; |
|||
// width: 0; |
|||
// } |
|||
@ -0,0 +1,32 @@ |
|||
.item_width_1 { |
|||
width: 500px; |
|||
} |
|||
.item_width_2 { |
|||
width: 400px; |
|||
} |
|||
.item_width_3 { |
|||
margin-left: 10px; |
|||
width: 200px; |
|||
} |
|||
.item_width_4 { |
|||
width: 200px; |
|||
} |
|||
|
|||
.div_map { |
|||
margin-top: 10px; |
|||
} |
|||
|
|||
.div_btn { |
|||
margin-top: 20px; |
|||
text-align: center; |
|||
} |
|||
.el-tabs { |
|||
margin: 0 20px; |
|||
} |
|||
.el-upload__tip { |
|||
color: rgb(155, 155, 155); |
|||
margin: 0; |
|||
} |
|||
.form { |
|||
margin-top: 30px; |
|||
} |
|||
File diff suppressed because it is too large
@ -0,0 +1,147 @@ |
|||
.warning-box { |
|||
box-sizing: border-box; |
|||
// width: 1881px; |
|||
width: 100%; |
|||
// height: 100%; |
|||
min-height: 100%; |
|||
margin: 0 auto; |
|||
color: #999; |
|||
// background: url("../../../img/modules/visual/warning-box.png") no-repeat center; |
|||
background-size: 100% 100%; |
|||
padding: 25px 21px 35px 24px; |
|||
|
|||
&-top { |
|||
display: flex; |
|||
// justify-content: space-around; |
|||
justify-content: flex-start; |
|||
flex-wrap: wrap; |
|||
min-height: 190px; |
|||
|
|||
.top-item { |
|||
box-sizing: border-box; |
|||
width: 280px; |
|||
height: 190px; |
|||
padding: 10px 22px 14px 21px; |
|||
border-radius: 8px; |
|||
margin-right: 15px; |
|||
margin-bottom: 15px; |
|||
background-color: #fff; |
|||
|
|||
&-img { |
|||
display: flex; |
|||
align-items: center; |
|||
|
|||
img { |
|||
width: 78px; |
|||
height: 78px; |
|||
margin-right: 16px; |
|||
margin-bottom: 10px; |
|||
} |
|||
|
|||
.top-item-left { |
|||
display: flex; |
|||
flex-direction: column; |
|||
|
|||
span { |
|||
display: inline-block; |
|||
} |
|||
|
|||
span:nth-child(1) { |
|||
font-size: 18px; |
|||
font-weight: 400; |
|||
color: #333333; |
|||
} |
|||
|
|||
span:nth-child(2) { |
|||
font-size: 28px; |
|||
font-weight: bold; |
|||
color: #2194fe; |
|||
margin-top: 10px; |
|||
} |
|||
} |
|||
} |
|||
|
|||
&-num { |
|||
width: 100%; |
|||
display: flex; |
|||
position: relative; |
|||
flex-direction: column; |
|||
align-items: space-between; |
|||
// border: 1px solid red; |
|||
|
|||
.num-item { |
|||
position: relative; |
|||
width: 100%; |
|||
height: 35px; |
|||
display: flex; |
|||
border-radius: 4px; |
|||
align-items: center; |
|||
justify-content: space-between; |
|||
padding: 0 10px 0 29px; |
|||
cursor: pointer; |
|||
|
|||
&::after { |
|||
display: block; |
|||
content: ""; |
|||
width: 8px; |
|||
height: 8px; |
|||
background: #2194fe; |
|||
border-radius: 50%; |
|||
position: absolute; |
|||
left: 12px; |
|||
top: 50%; |
|||
transform: translate(0, -50%); |
|||
} |
|||
|
|||
div:nth-child(1) { |
|||
font-size: 16px; |
|||
font-family: PingFang SC; |
|||
font-weight: 400; |
|||
color: #333333; |
|||
} |
|||
|
|||
div:nth-child(2) { |
|||
// width: 70%; |
|||
display: flex; |
|||
font-size: 20px; |
|||
font-family: PingFang SC; |
|||
font-weight: 500; |
|||
color: #333; |
|||
|
|||
.right-icon { |
|||
width: 10px; |
|||
height: 14px; |
|||
} |
|||
} |
|||
} |
|||
|
|||
.num-item-active { |
|||
background-color: #f0f3f7; |
|||
} |
|||
|
|||
.num-item:nth-child(2) { |
|||
margin-top: 10px; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
&-bottom { |
|||
box-sizing: border-box; |
|||
width: 100%; |
|||
height: calc(100% - 300px); |
|||
padding: 35px 40px; |
|||
min-height: 300px; |
|||
margin-top: 30px; |
|||
background-color: #fff; |
|||
|
|||
.pagination { |
|||
box-sizing: border-box; |
|||
margin-top: 20px; |
|||
width: 100%; |
|||
height: 40px; |
|||
display: flex; |
|||
justify-content: flex-end; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,90 @@ |
|||
/*--------------------------------------------------------------- |
|||
| 请求接口封装 | |
|||
---------------------------------------------------------------*/ |
|||
import axios from "axios"; |
|||
import curry from "dai-js/tools/curry"; |
|||
import { Message } from "element-ui"; |
|||
|
|||
const request = curry( |
|||
(method, url, data = {}, headers = {}, progress = () => {}) => { |
|||
return new Promise((reslove) => { |
|||
let returnIniData = { |
|||
httpCode: "", |
|||
data: {}, |
|||
msg: "", |
|||
code: "", |
|||
}; |
|||
|
|||
// 添加服务器端URL
|
|||
function processUrl(url) { |
|||
if (url.indexOf("http://") > -1 || url.indexOf("https://") > -1) { |
|||
return url; |
|||
} |
|||
return process.env.VUE_APP_API_SERVER + url; |
|||
} |
|||
|
|||
url = processUrl(url); |
|||
|
|||
const succFn = (res) => { |
|||
// log(`[request成功] ${url}`, data, res);
|
|||
let retData = { |
|||
...returnIniData, |
|||
...res.data, |
|||
httpCode: res.statusCode, |
|||
}; |
|||
// if(typeof Vue.$afterRequestHook == 'function'){
|
|||
// retData = Vue.$afterRequestHook(retData);
|
|||
// }
|
|||
if (res.data.code > 8000 && res.data.code < 10000) { |
|||
Message.error(res.data.msg); |
|||
} |
|||
|
|||
reslove(retData); |
|||
}; |
|||
|
|||
const failFn = (err) => { |
|||
// log(`[request失败] ${url}`, data, err);
|
|||
|
|||
reslove( |
|||
Object.assign({}, returnIniData, { |
|||
httpCode: "9999", //访问出现意外
|
|||
msg: "网络错误", |
|||
}) |
|||
); |
|||
}; |
|||
|
|||
if (method.toUpperCase() == "POST") { |
|||
axios |
|||
.post(url, data, { |
|||
headers, |
|||
responseType: "json", |
|||
// progress,
|
|||
// credentials: false,
|
|||
}) |
|||
.then(succFn) |
|||
.catch(failFn); |
|||
} else { |
|||
axios |
|||
.get(url, { |
|||
params: data, |
|||
headers, |
|||
responseType: "json", |
|||
// credentials: true,
|
|||
}) |
|||
.then(succFn) |
|||
.catch(failFn); |
|||
} |
|||
}); |
|||
} |
|||
); |
|||
|
|||
export const requestGet = request("get"); |
|||
|
|||
export const requestPost = request("post"); |
|||
|
|||
export default { |
|||
install(Vue) { |
|||
Vue.prototype.$requestGet = requestGet; |
|||
Vue.prototype.$requestPost = requestPost; |
|||
}, |
|||
}; |
|||
@ -0,0 +1,200 @@ |
|||
<template> |
|||
<div class="m-chart"> |
|||
<canvas id="myChart" :width="width" :height="height" /> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import nextTick from "dai-js/tools/nextTick"; |
|||
import F2 from "@antv/f2/lib/index-all"; |
|||
|
|||
// ios下字体渲染有bug |
|||
const fontFamily = "PingFang SC"; |
|||
const fontSize = 14; |
|||
|
|||
let chart; |
|||
let srcData = []; |
|||
|
|||
const iniChart = function (config, srcData, total, that) { |
|||
chart = new F2.Chart({ |
|||
id: "myChart", |
|||
...config, |
|||
}); |
|||
|
|||
let data = [ |
|||
{ |
|||
const: "const", |
|||
name: "--", |
|||
count: 51.39, |
|||
}, |
|||
{ |
|||
const: "const", |
|||
name: "--", |
|||
count: 356.68, |
|||
}, |
|||
{ |
|||
const: "const", |
|||
name: "--", |
|||
count: 20.0, |
|||
}, |
|||
{ |
|||
const: "const", |
|||
name: "--", |
|||
count: 116.53, |
|||
}, |
|||
]; |
|||
console.log("-----------------------------------", srcData); |
|||
data = srcData; |
|||
|
|||
chart.source(data); |
|||
// chart.axis(false); |
|||
chart.legend(false); |
|||
// chart.legend({ |
|||
// position: "bottom", |
|||
// align: "center", |
|||
// }); |
|||
chart.tooltip(false); |
|||
|
|||
chart |
|||
.interval() |
|||
.position("name*count") |
|||
.color("name", [ |
|||
"#3e8ef7", |
|||
"#3e8ef7", |
|||
"#3e8ef7", |
|||
"#3e8ef7", |
|||
"#3e8ef7", |
|||
"#3e8ef7", |
|||
"#3e8ef7", |
|||
"#3e8ef7", |
|||
"#3e8ef7", |
|||
"#3e8ef7", |
|||
"#3e8ef7", |
|||
"#3e8ef7", |
|||
"#3e8ef7", |
|||
"#3e8ef7", |
|||
"#3e8ef7", |
|||
"#3e8ef7", |
|||
"#3e8ef7", |
|||
]); |
|||
|
|||
chart.render(); |
|||
|
|||
// 绘制柱状图文本 |
|||
const offset = -5; |
|||
const canvas = chart.get("canvas"); |
|||
const group = canvas.addGroup(); |
|||
const shapes = {}; |
|||
data.forEach(function (obj) { |
|||
const point = chart.getPosition(obj); |
|||
const text = group.addShape("text", { |
|||
attrs: { |
|||
x: point.x, |
|||
y: point.y + offset, |
|||
text: obj.count + '人', |
|||
textAlign: "center", |
|||
textBaseline: "bottom", |
|||
fill: "#808080", |
|||
}, |
|||
}); |
|||
|
|||
shapes[obj.name] = text; // 缓存该 shape, 便于后续查找 |
|||
}); |
|||
|
|||
// 配置柱状图点击交互 |
|||
chart.interaction("interval-select", { |
|||
selectAxisStyle: { |
|||
fill: "#000", |
|||
fontWeight: "bold", |
|||
}, |
|||
mode: "range", // range |
|||
// defaultSelected: { |
|||
// year: '1962 年', |
|||
// sales: 38 |
|||
// }, |
|||
onStart(ev) { |
|||
console.log(ev); |
|||
const data = ev.data, |
|||
selected = ev.selected; |
|||
if (data && selected) { |
|||
that.handleClickBar(data.name); |
|||
} else { |
|||
that.handleClickBar(); |
|||
} |
|||
}, |
|||
onEnd(ev) { |
|||
console.log("-------------------", ev); |
|||
}, |
|||
}); |
|||
|
|||
// 注意:需要把chart return 出来 |
|||
return chart; |
|||
}; |
|||
|
|||
export default { |
|||
name: "chart", |
|||
props: { |
|||
list: { |
|||
type: Array, |
|||
default: () => { |
|||
return []; |
|||
}, |
|||
}, |
|||
total: { |
|||
type: Number, |
|||
default: 0, |
|||
}, |
|||
config: { |
|||
type: Object, |
|||
default: () => { |
|||
return {}; |
|||
}, |
|||
}, |
|||
width: { |
|||
type: Number, |
|||
default: 400, |
|||
}, |
|||
height: { |
|||
type: Number, |
|||
default: 260, |
|||
}, |
|||
}, |
|||
data() { |
|||
return { |
|||
iniLoading: false, |
|||
}; |
|||
}, |
|||
watch: { |
|||
list(data) { |
|||
// chart.changeData(data); |
|||
srcData = data; |
|||
}, |
|||
}, |
|||
async created() { |
|||
await nextTick(200); |
|||
iniChart(this.config, this.list, this.total, this); |
|||
await nextTick(200); |
|||
this.iniLoading = true; |
|||
}, |
|||
|
|||
methods: { |
|||
setList(data) { |
|||
chart.changeData(data); |
|||
srcData = data; |
|||
}, |
|||
|
|||
handleClickBar(name) { |
|||
let code = ""; |
|||
if (name) { |
|||
let item = this.list.find((item) => item.name == name); |
|||
console.log(item); |
|||
code = item && item.code; |
|||
} |
|||
console.log(code); |
|||
this.$emit("clickBar", { code }); |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style lang="scss" scoped></style> |
|||
@ -0,0 +1,125 @@ |
|||
<template> |
|||
<div class="m-scoll-notice"> |
|||
<div class="wrapper"> |
|||
<div class="bar" ref="barparent"> |
|||
<div class="bartext" ref="barchild" :style="bartextStyle"> |
|||
<!-- <li |
|||
v-for="(item, index) in list" |
|||
:key="item.configId + item.buildingId + index" |
|||
@click="toNoticeInfo(item)" |
|||
> |
|||
{{ item.noticeContent }} |
|||
</li> --> |
|||
<slot></slot> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { requestPost } from "@/js/dai/request"; |
|||
|
|||
export default { |
|||
props: { |
|||
list: { |
|||
type: Array, |
|||
default: [], |
|||
}, |
|||
}, |
|||
|
|||
data() { |
|||
return { |
|||
parentClientWidth: 100000, |
|||
beyond: false, |
|||
}; |
|||
}, |
|||
components: {}, |
|||
|
|||
computed: { |
|||
bartextStyle() { |
|||
let len = this.list.length; |
|||
let beyond = this.beyond; |
|||
return { |
|||
paddingLeft: beyond ? this.parentClientWidth + "px" : "", |
|||
animation: beyond |
|||
? `move_left_right ${len * 5}s linear 0s infinite` |
|||
: "", |
|||
}; |
|||
}, |
|||
}, |
|||
mounted() { |
|||
this.move(); |
|||
}, |
|||
|
|||
methods: { |
|||
move() { |
|||
const parentClientWidth = this.$refs.barparent.clientWidth; |
|||
this.parentClientWidth = parentClientWidth; |
|||
//判断动画区域是否超出父元素宽度 宽则有动画,不宽则无 |
|||
const parent = this.$refs.barparent; |
|||
const child = this.$refs.barchild; |
|||
console.log("对比", child.clientWidth, parent.clientWidth); |
|||
this.beyond = child.clientWidth > parent.clientWidth; |
|||
}, |
|||
handleCancle() { |
|||
this.$emit("dialogCancle"); |
|||
this.resetData(); |
|||
}, |
|||
|
|||
resetData() { |
|||
this.dataForm = { |
|||
neighborHoodId: "", // 所属小区ID |
|||
buildingId: "", //所属楼栋ID |
|||
buildingUnitId: "", //所属单元ID |
|||
doorName: "", //门牌号 |
|||
houseType: "1", //房屋类型【楼房,平房,别墅】 |
|||
purpose: "1", //房屋用途【住宅,商业,办公,工业,仓储,商住混用,其他】 |
|||
rentFlag: 1, //是否出租【是:1,否:0】 |
|||
ownerPhone: "", //房主电话 |
|||
ownerName: "", //房主名字 |
|||
ownerIdCard: "", //房主身份证 |
|||
}; |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style lang="scss"> |
|||
.m-scoll-notice { |
|||
.wrapper { |
|||
// padding: 0 15px; |
|||
display: flex; |
|||
align-items: center; |
|||
// background-color: "#FFF6EC"; |
|||
} |
|||
.bar { |
|||
width: 100%; |
|||
// height: 32px; |
|||
// line-height: 32px; |
|||
overflow: hidden; |
|||
box-sizing: border-box; |
|||
} |
|||
.bartext { |
|||
white-space: nowrap; |
|||
display: inline-block; |
|||
} |
|||
.bartext li { |
|||
white-space: nowrap; |
|||
display: inline-block; |
|||
color: red; |
|||
font-size: 14px; |
|||
} |
|||
.state-text-overflow { |
|||
animation: move_left_right 120s linear 0s infinite; |
|||
} |
|||
@keyframes move_left_right { |
|||
from { |
|||
transform: translateX(0%); |
|||
} |
|||
to { |
|||
transform: translateX(-80%); |
|||
} |
|||
} |
|||
} |
|||
</style> |
|||
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,68 @@ |
|||
<template> |
|||
<div class="screen-loading"> |
|||
<svg width="50px" |
|||
height="50px"> |
|||
<circle cx="25" |
|||
cy="25" |
|||
r="20" |
|||
fill="transparent" |
|||
stroke-width="3" |
|||
stroke-dasharray="31.415, 31.415" |
|||
stroke="#29cdff" |
|||
stroke-linecap="round"> |
|||
<animateTransform attributeName="transform" |
|||
type="rotate" |
|||
values="0, 25 25;360, 25 25" |
|||
dur="1.5s" |
|||
repeatCount="indefinite" /> |
|||
<animate attributeName="stroke" |
|||
values="#02bcfe;#3be6cb;#02bcfe" |
|||
dur="3s" |
|||
repeatCount="indefinite" /> |
|||
</circle> |
|||
|
|||
<circle cx="25" |
|||
cy="25" |
|||
r="10" |
|||
fill="transparent" |
|||
stroke-width="3" |
|||
stroke-dasharray="15.7, 15.7" |
|||
stroke="#29cdff" |
|||
stroke-linecap="round"> |
|||
<animateTransform attributeName="transform" |
|||
type="rotate" |
|||
values="360, 25 25;0, 25 25" |
|||
dur="1.5s" |
|||
repeatCount="indefinite" /> |
|||
<animate attributeName="stroke" |
|||
values="#3be6cb;#02bcfe;#3be6cb" |
|||
dur="3s" |
|||
repeatCount="indefinite" /> |
|||
</circle> |
|||
</svg> |
|||
<div class="loading-tip"> |
|||
<slot></slot> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
name: 'DvLoading' |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
.screen-loading { |
|||
width: 100%; |
|||
height: 100%; |
|||
display: flex; |
|||
flex-direction: column; |
|||
justify-content: center; |
|||
align-items: center; |
|||
.loading-tip { |
|||
font-size: 14px; |
|||
color: #fff; |
|||
} |
|||
} |
|||
</style> |
|||
@ -0,0 +1,392 @@ |
|||
<template> |
|||
<div> |
|||
<div class="warning-table"> |
|||
<div class="table"> |
|||
<div class="table-header"> |
|||
<div |
|||
class="table-header-th" |
|||
v-for="(item, index) in headerList" |
|||
:key="item.title" |
|||
:style="headerStyle[index]" |
|||
> |
|||
{{ item.title }} |
|||
</div> |
|||
</div> |
|||
<div class="table-body"> |
|||
<div |
|||
class="table-body-tr" |
|||
v-for="(value, index) in tableData" |
|||
:key="index" |
|||
> |
|||
<div |
|||
class="td" |
|||
v-for="(item, indexs) in value" |
|||
:key="indexs" |
|||
:style="tableContentStyle[indexs]" |
|||
> |
|||
<div v-if="Array.isArray(item)"> |
|||
<span |
|||
v-show="rIndex < 3" |
|||
:key="resi.userId" |
|||
v-for="(resi, rIndex) in item" |
|||
> |
|||
{{ rIndex != 0 ? "、" : "" }} |
|||
<a @click="handlePeopleItem(resi.userId, value[1])">{{ |
|||
resi.residentName |
|||
}}</a> |
|||
</span> |
|||
</div> |
|||
<span v-else>{{ item }}</span> |
|||
<span |
|||
v-if="indexs + 1 == value.length && item.length > 3" |
|||
class="more" |
|||
@click.stop="onClickMorePop(index)" |
|||
ref="morePop" |
|||
> |
|||
更多> |
|||
<div class="more-pop" v-if="visiblePopList[index]"> |
|||
<span |
|||
:key="index + rIndex + resi.userId" |
|||
v-for="(resi, rIndex) in item" |
|||
> |
|||
{{ rIndex != 0 ? "、" : "" }} |
|||
<a @click="handlePeopleItem(resi.userId, value[1])">{{ |
|||
resi.residentName |
|||
}}</a> |
|||
</span> |
|||
</div> |
|||
</span> |
|||
</div> |
|||
</div> |
|||
<screen-loading v-if="visibleLoading">加载中</screen-loading> |
|||
<div class="no-data" v-if="tableData.length == 0 && !visibleLoading"> |
|||
<img |
|||
src="@/assets/img/modules/visual/noData.png" |
|||
class="no-data-img" |
|||
/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<people-more |
|||
v-if="showedPeopleMoreInfo && currentPepeleId" |
|||
:userId="currentPepeleId" |
|||
:gridName="currentPepeleGridName" |
|||
@close="showedPeopleMoreInfo = false" |
|||
/> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import ScreenLoading from "../screen-loading/index"; |
|||
import Vue from "vue"; |
|||
import peopleMore from "@/views/modules/shequ/cpts/people-more"; |
|||
|
|||
export default { |
|||
name: "warning-table", |
|||
components: { |
|||
ScreenLoading, |
|||
peopleMore, |
|||
}, |
|||
props: { |
|||
headerList: { |
|||
type: Array, |
|||
required: false, |
|||
default: () => { |
|||
return [ |
|||
{ title: "序号" }, |
|||
{ title: "所属网格" }, |
|||
{ title: "所属小区" }, |
|||
{ title: "楼号" }, |
|||
{ title: "姓名" }, |
|||
]; |
|||
}, |
|||
}, |
|||
tableData: { |
|||
type: Array, |
|||
required: false, |
|||
default: () => { |
|||
return [ |
|||
// [ |
|||
// 1, |
|||
// "商丘路社区第一网格", |
|||
// "商丘路小区", |
|||
// "2号楼", |
|||
// "杨颖、王平、刘佳敏、丁辉、杨萍", |
|||
// ], |
|||
// [ |
|||
// 2, |
|||
// "商丘路社区第一网格", |
|||
// "商丘路小区", |
|||
// "2号楼", |
|||
// "杨颖、王平、刘佳敏、丁辉、杨萍", |
|||
// ], |
|||
]; |
|||
}, |
|||
}, |
|||
// 单独给头部设置样式 |
|||
headerStyle: { |
|||
type: Array, |
|||
default: () => { |
|||
return [ |
|||
// { |
|||
// width:'200px', |
|||
// border:'1px solid red' |
|||
// }, |
|||
// { |
|||
// width:'200px' |
|||
// } |
|||
]; |
|||
}, |
|||
}, |
|||
// 单独给内容设置样式 |
|||
tableContentStyle: { |
|||
type: Array, |
|||
default: () => { |
|||
return [ |
|||
// { |
|||
// width:'200px', |
|||
// border:'1px solid red' |
|||
// }, |
|||
// { |
|||
// width:'200px' |
|||
// } |
|||
]; |
|||
}, |
|||
}, |
|||
visibleLoading: { |
|||
type: Boolean, |
|||
default: true, |
|||
}, |
|||
// // 表格平均分的份数 |
|||
// ava: { |
|||
// type: Number, |
|||
// default: 8 |
|||
// }, |
|||
// // 表头高度--默认占比10% |
|||
// headerHeightAva: { |
|||
// type: String, |
|||
// default: '10%' |
|||
// }, |
|||
// // 表格主体平均分成的份数 |
|||
// tableContentAva: { |
|||
// type: Number, |
|||
// default: 5 |
|||
// }, |
|||
}, |
|||
data() { |
|||
return { |
|||
// 显示人员详情 |
|||
showedPeopleMoreInfo: false, |
|||
|
|||
currentPepeleId: "", |
|||
currentPepeleGridName: "", |
|||
|
|||
visiblePopList: [ |
|||
false, |
|||
false, |
|||
false, |
|||
false, |
|||
false, |
|||
false, |
|||
false, |
|||
false, |
|||
false, |
|||
false, |
|||
], |
|||
}; |
|||
}, |
|||
watch: { |
|||
tableData(arr) { |
|||
if (Array.isArray(arr)) { |
|||
this.visiblePopList = new Array(arr.length).fill(false); |
|||
} |
|||
}, |
|||
}, |
|||
|
|||
mounted() { |
|||
window.addEventListener("click", (e) => { |
|||
this.visiblePopList = new Array(this.visiblePopList.length).fill(false); |
|||
}); |
|||
}, |
|||
|
|||
created() {}, |
|||
|
|||
methods: { |
|||
toUserInfo(uid) { |
|||
this.$router.push({ path: `/main-shuju/visual-basicinfo-people/${uid}` }); |
|||
}, |
|||
|
|||
handlePeopleItem(uid, gridName) { |
|||
this.currentPepeleId = uid; |
|||
this.currentPepeleGridName = gridName; |
|||
|
|||
this.showedPeopleMoreInfo = true; |
|||
}, |
|||
|
|||
onClickMorePop(index) { |
|||
this.visiblePopList.forEach((item, indexs) => { |
|||
if (index == indexs) { |
|||
Vue.set(this.visiblePopList, index, true); |
|||
} else { |
|||
Vue.set(this.visiblePopList, indexs, false); |
|||
} |
|||
}); |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
.warning-table { |
|||
box-sizing: border-box; |
|||
width: 100%; |
|||
height: 100%; |
|||
.table { |
|||
width: 100%; |
|||
height: 100%; |
|||
border: 1px solid #dfdfdd; |
|||
|
|||
&-header { |
|||
width: 100%; |
|||
height: 50px; |
|||
display: flex; |
|||
justify-content: space-around; |
|||
align-items: center; |
|||
background: #2194fe; |
|||
font-size: 16px; |
|||
font-weight: 400; |
|||
color: #ffffff; |
|||
|
|||
&-th { |
|||
text-align: center; |
|||
width: 20%; |
|||
&:nth-child(1) { |
|||
width: 5%; |
|||
} |
|||
&:nth-child(2) { |
|||
width: 25%; |
|||
} |
|||
&:nth-child(3) { |
|||
width: 25%; |
|||
} |
|||
&:nth-child(5) { |
|||
width: 25%; |
|||
} |
|||
} |
|||
} |
|||
|
|||
&-body { |
|||
box-sizing: border-box; |
|||
width: 100%; |
|||
height: calc(100% - 50px); |
|||
font-size: 16px; |
|||
font-weight: 400; |
|||
color: #333; |
|||
&-tr { |
|||
width: 100%; |
|||
height: 50px; |
|||
display: flex; |
|||
justify-content: space-around; |
|||
align-items: center; |
|||
border-bottom: 1px dashed #dfdfdd; |
|||
|
|||
.td { |
|||
text-align: center; |
|||
width: 20%; |
|||
border-left: 1px dashed #dfdfdd; |
|||
height: 50px; |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: space-around; |
|||
|
|||
&:nth-child(1) { |
|||
width: 5%; |
|||
border-left: 0; |
|||
} |
|||
&:nth-child(2) { |
|||
width: 25%; |
|||
} |
|||
&:nth-child(3) { |
|||
width: 25%; |
|||
} |
|||
&:nth-child(5) { |
|||
width: 25%; |
|||
} |
|||
a { |
|||
cursor: pointer; |
|||
} |
|||
.more { |
|||
font-size: 16px; |
|||
font-weight: 400; |
|||
color: #e4dc00; |
|||
position: relative; |
|||
cursor: pointer; |
|||
|
|||
&-pop { |
|||
box-sizing: border-box; |
|||
display: block; |
|||
box-sizing: border-box; |
|||
width: 215px; |
|||
height: auto; |
|||
line-height: 20px; |
|||
border: 1px solid red; |
|||
position: absolute; |
|||
right: -100%; |
|||
top: 150%; |
|||
background: #fff; |
|||
box-shadow: 0 0 10px 0 #2194fe; |
|||
border: 1px solid #42a4fe; |
|||
border-radius: 5px; |
|||
font-size: 9px; |
|||
font-weight: 400; |
|||
color: #333; |
|||
padding: 16px 8px 10px 9px; |
|||
z-index: 1; |
|||
cursor: default; |
|||
// &::after{ |
|||
// position: absolute; |
|||
// left: 30%; |
|||
// top: -30%; |
|||
// display: flex; |
|||
// content:''; |
|||
// width: 0; |
|||
// height: 0; |
|||
// border-width: 13px; |
|||
// border-style: solid; |
|||
// border-color: transparent transparent rgba(26, 100, 204,0.5) transparent; |
|||
// // border-color: transparent transparent red transparent; |
|||
// transform: translate(-50%,0); |
|||
// } |
|||
} |
|||
} |
|||
} |
|||
|
|||
&:last-child { |
|||
border-bottom: none; |
|||
} |
|||
} |
|||
|
|||
&-tr:nth-child(2n) { |
|||
} |
|||
|
|||
&-tr:hover { |
|||
background: rgba(16, 75, 164, 0.1); |
|||
} |
|||
// 暂无数据 |
|||
.no-data { |
|||
width: 100%; |
|||
height: calc(100% - 50px); |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
&-img { |
|||
width: 249px; |
|||
height: 172px; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</style> |
|||
@ -0,0 +1,200 @@ |
|||
<template> |
|||
<div class="warning-box"> |
|||
<div class="warning-box-top"> |
|||
<div class="top-item" v-for="(item, index) in warningList" :key="index"> |
|||
<div class="top-item-img"> |
|||
<img :src="item.managementIcon" /> |
|||
<div class="top-item-left"> |
|||
<span>{{ item.label }}</span> |
|||
<span>{{ item.count }}</span> |
|||
</div> |
|||
</div> |
|||
<div class="top-item-num"> |
|||
<div |
|||
class="num-item" |
|||
:class="{ |
|||
'num-item-active': activeIndex == index && activeLevel == '1', |
|||
}" |
|||
@click="onClickList(index, '1')" |
|||
> |
|||
<div>{{ item.level1 }}-{{ item.level2 }}人</div> |
|||
<div> |
|||
<div>{{ item.levelCount1 }}栋</div> |
|||
<img |
|||
src="../../../assets/img/modules/visual/right-icon.png" |
|||
class="right-icon" |
|||
/> |
|||
</div> |
|||
</div> |
|||
<div |
|||
class="num-item" |
|||
:class="{ |
|||
'num-item-active': activeIndex == index && activeLevel == '2', |
|||
}" |
|||
@click="onClickList(index, '2')" |
|||
> |
|||
<div>{{ item.level2 }}人以上</div> |
|||
<div> |
|||
<div>{{ item.levelCount2 }}栋</div> |
|||
<img |
|||
src="../../../assets/img/modules/visual/right-icon.png" |
|||
class="right-icon" |
|||
/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="warning-box-bottom"> |
|||
<screen-table |
|||
:headerList="headerList" |
|||
:tableData="tableData" |
|||
:visibleLoading="visibleLoading" |
|||
></screen-table> |
|||
<div class="pagination"> |
|||
<el-pagination |
|||
:current-page="pageNo" |
|||
:page-size="pageSize" |
|||
background |
|||
layout="prev, pager, next" |
|||
@size-change="pageSizeChangeHandleNew" |
|||
@current-change="pageCurrentChangeHandleNew" |
|||
:total="total" |
|||
> |
|||
</el-pagination> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { requestPost } from "@/js/dai/request"; |
|||
import screenTable from "./components/screen-table/index"; |
|||
import cptCard from "@/views/modules/visual/cpts/card"; |
|||
import nextTick from "dai-js/tools/nextTick"; |
|||
|
|||
export default { |
|||
name: "warning-box", |
|||
components: { |
|||
cptCard, |
|||
screenTable, |
|||
}, |
|||
props: { |
|||
buildingId: { |
|||
type: String, |
|||
default: "", |
|||
}, |
|||
configId: { |
|||
type: String, |
|||
default: "", |
|||
}, |
|||
}, |
|||
|
|||
data() { |
|||
return { |
|||
warningList: [], |
|||
headerList: [ |
|||
{ title: "序号" }, |
|||
{ title: "所属网格" }, |
|||
{ title: "所属小区" }, |
|||
{ title: "楼号" }, |
|||
{ title: "姓名" }, |
|||
], |
|||
tableData: [ |
|||
// [1,'商丘路社区第一网格','商丘路小区','2号楼','杨颖、王平、刘佳敏、丁辉、杨萍'], |
|||
], |
|||
visibleLoading: true, |
|||
pageNo: 1, |
|||
pageSize: 10, |
|||
total: 0, |
|||
activeIndex: 0, |
|||
activeLevel: "1", |
|||
}; |
|||
}, |
|||
async mounted() { |
|||
await nextTick(100); |
|||
this.getBuildingwarnlist(); |
|||
}, |
|||
methods: { |
|||
onClickList(index, level) { |
|||
this.activeIndex = index; |
|||
this.activeLevel = level; |
|||
this.pageNo = 1; |
|||
this.getUserwarnlist(); |
|||
}, |
|||
//具体人员列表 |
|||
async getUserwarnlist() { |
|||
const { activeIndex, activeLevel, warningList } = this; |
|||
const reqItem = warningList[activeIndex]; |
|||
let tableData = []; |
|||
const url = "/epmetuser/statsresiwarn/userwarnlist"; |
|||
let params = { |
|||
configId: reqItem.configId, |
|||
buildingIdList: reqItem["buildingIdList" + activeLevel], |
|||
pageNo: this.pageNo, |
|||
pageSize: this.pageSize, |
|||
}; |
|||
const { data, code, msg } = await requestPost(url, params); |
|||
if (code === 0) { |
|||
data.list.forEach((item, index) => { |
|||
tableData.push([ |
|||
index + 1, |
|||
item.gridName, |
|||
item.neighborhoodName, |
|||
item.buildingName, |
|||
item.userList || "暂无", |
|||
]); |
|||
}); |
|||
this.tableData = tableData; |
|||
this.total = data.total; |
|||
} else { |
|||
} |
|||
}, |
|||
// 【人员预警】 楼宇预警数量列表 |
|||
async getBuildingwarnlist() { |
|||
const url = "/epmetuser/statsresiwarn/buildingwarnlist"; |
|||
let params = { |
|||
agencyId: this.$store.state.user.agencyId, |
|||
}; |
|||
const { data, code, msg } = await requestPost(url, params); |
|||
if (code === 0) { |
|||
this.warningList = data; |
|||
this.visibleLoading = false; |
|||
const { buildingId, configId } = this; |
|||
if (configId && buildingId) { |
|||
let activeIndex = 0; |
|||
let activeLevel = 1; |
|||
data.forEach((item, index) => { |
|||
if (item.configId == configId) { |
|||
activeIndex = index; |
|||
if (item.buildingIdList1.indexOf(buildingId) !== -1) { |
|||
activeLevel = 1; |
|||
} |
|||
if (item.buildingIdList2.indexOf(buildingId) !== -1) { |
|||
activeLevel = 2; |
|||
} |
|||
if (item.buildingIdList3.indexOf(buildingId) !== -1) { |
|||
activeLevel = 3; |
|||
} |
|||
} |
|||
}); |
|||
this.activeIndex = activeIndex; |
|||
this.activeLevel = activeLevel; |
|||
} |
|||
this.getUserwarnlist(); |
|||
} else { |
|||
} |
|||
}, |
|||
pageSizeChangeHandleNew(val) { |
|||
this.pageNo = 1; |
|||
this.pageSize = val; |
|||
}, |
|||
pageCurrentChangeHandleNew(val) { |
|||
this.pageNo = val; |
|||
this.getUserwarnlist(); |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style lang="scss" src="@/assets/scss/modules/warning.scss" scoped></style> |
|||
Loading…
Reference in new issue