buildingSaveDialog.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856
  1. <template>
  2. <div class="main-data building-dialog-area" @click.stop="preventDefault" @mouseleave="leaveFun">
  3. <div class="dialog-title">
  4. <img
  5. src="@/assets/images/main/cont_title_bg.png"
  6. />
  7. <div class="title">物业巡更信息</div>
  8. </div>
  9. <div class="dialog-cont">
  10. <div class="dialog-left">
  11. <div class="dialog-list">
  12. <div class="dialog-item wid100">
  13. <div class="content-title">
  14. <span class="title">人员进出数据</span>
  15. </div>
  16. <div class="data-chart">
  17. <bar-chart
  18. :chart-data="personInOutBarData"
  19. :x-axis="personInOutBarAxis"
  20. :yAxis="personInOutBarYaxis"
  21. :legend="personInOutBarLegend"
  22. :grid="barGrid"
  23. y-color="#FFF"
  24. l-color="#FFF"
  25. width="515px"
  26. height="180px"
  27. />
  28. </div>
  29. </div>
  30. </div>
  31. <div class="dialog-list">
  32. <div class="dialog-item wid100">
  33. <div class="content-title">
  34. <span class="title">各单位人员进出数据</span>
  35. </div>
  36. <div class="data-chart">
  37. <bar-chart
  38. :chart-data="departmentPersonInOutBarData"
  39. :x-axis="departmentPersonInOutBarAxis"
  40. :yAxis="departmentPersonInOutBarYaxis"
  41. :legend="departmentPersonInOutBarLegend"
  42. :grid="barGrid"
  43. y-color="#FFF"
  44. l-color="#FFF"
  45. width="515px"
  46. height="180px"
  47. />
  48. </div>
  49. </div>
  50. </div>
  51. <div class="dialog-list">
  52. <div class="dialog-item wid100">
  53. <div class="content-title">
  54. <span class="title">访客信息</span>
  55. </div>
  56. <div class="content">
  57. <div class="table-cont">
  58. <div class="table-top">
  59. <div class="fir">序号</div>
  60. <div class="snd">姓名</div>
  61. <div class="thd">时间</div>
  62. <div class="fou">访客部门</div>
  63. </div>
  64. <div class="table-bot">
  65. <div class="table-list" v-for="(item,index) in visitorDataList" :key="index">
  66. <div class="fir">{{index+1}}</div>
  67. <div class="snd">{{item.name}}</div>
  68. <div class="thd">{{item.time}}</div>
  69. <div class="fou">{{item.department}}</div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </template>
  80. <script>
  81. import LineChart from "@/components/Echarts/LineChart";
  82. import PieChart from "@/components/Echarts/PieChart";
  83. import BarChart from "@/components/Echarts/BarChart.vue";
  84. import echarts from "echarts";
  85. export default {
  86. name: "BuildingSaveDialog",
  87. components: {
  88. BarChart,
  89. PieChart,
  90. LineChart,
  91. },
  92. props: {},
  93. data() {
  94. return {
  95. personInOutBarData: [
  96. {
  97. name: "员工",
  98. type: "bar",
  99. itemStyle: {
  100. color: "#43DCDB",
  101. //barBorderRadius: [10, 10, 0, 0], // 统一设置四个角的圆角大小
  102. },
  103. barWidth: 10,
  104. data: [110, 120, 130, 140, 150, 160, 155, 145, 135, 125, 115, 15],
  105. },
  106. {
  107. name: "访客",
  108. type: "bar",
  109. itemStyle: {
  110. color: "#FFD296",
  111. //barBorderRadius: [10, 10, 0, 0], // 统一设置四个角的圆角大小
  112. },
  113. barWidth: 10,
  114. data: [10, 20, 30, 40, 50, 60, 55, 45, 35, 25, 15, 5],
  115. },
  116. ],
  117. personInOutBarAxis: {
  118. type: "category",
  119. data: [
  120. "01月",
  121. "02月",
  122. "03月",
  123. "04月",
  124. "05月",
  125. "06月",
  126. "07月",
  127. "08月",
  128. "09月",
  129. "10月",
  130. "11月",
  131. "12月",
  132. ],
  133. axisLabel: {
  134. color: "white", // 设置横坐标轴字体颜色为红色
  135. },
  136. axisLine:{
  137. show:true,
  138. lineStyle:{
  139. color:"#08595B"
  140. }
  141. },
  142. axisTick: {
  143. show: false,
  144. },
  145. splitArea:false
  146. },
  147. personInOutBarYaxis: {
  148. type: "value",
  149. boundaryGap: [0, 0.01],
  150. name: '人',
  151. nameTextStyle: {
  152. color: '#fff',
  153. },
  154. axisLine:{
  155. show:false
  156. },
  157. axisLabel: {
  158. color: "white", // 设置横坐标轴字体颜色为红色
  159. },
  160. splitLine: {
  161. show: false,
  162. },
  163. axisTick: {
  164. show: false,
  165. },
  166. splitArea:false
  167. },
  168. personInOutBarLegend: {
  169. top: 0,
  170. orient: "horizontal",
  171. right: 0,
  172. itemWidth: 17, // 设置图例标记的宽度
  173. itemHeight: 10, // 设置图例标记的高度
  174. textStyle: {
  175. color: "#FFF",
  176. },
  177. },
  178. barGrid: {
  179. top: 30,
  180. left: "2%",
  181. right: "2%",
  182. containLabel: true,
  183. bottom: 0,
  184. },
  185. departmentPersonInOutBarData: [
  186. {
  187. name: "员工",
  188. type: "bar",
  189. itemStyle: {
  190. color: "#43DCDB",
  191. //barBorderRadius: [10, 10, 0, 0], // 统一设置四个角的圆角大小
  192. },
  193. barWidth: 20,
  194. data: [110, 150, 160, 135, 115, 15],
  195. },
  196. {
  197. name: "访客",
  198. type: "bar",
  199. itemStyle: {
  200. color: "#FFD296",
  201. //barBorderRadius: [10, 10, 0, 0], // 统一设置四个角的圆角大小
  202. },
  203. barWidth: 20,
  204. data: [10, 20, 30, 40, 50, 60, 55, 45, 35, 25, 15, 5],
  205. },
  206. ],
  207. departmentPersonInOutBarAxis: {
  208. type: "category",
  209. data: [
  210. "财务资产部",
  211. "离退休工作部",
  212. "后勤保障部",
  213. "物资管理部",
  214. "数字化工作部",
  215. "纪委办公室",
  216. ],
  217. axisLabel: {
  218. interval: 0,
  219. color: "white", // 设置横坐标轴字体颜色为红色
  220. },
  221. axisLine:{
  222. show:true,
  223. lineStyle:{
  224. color:"#08595B"
  225. }
  226. },
  227. axisTick: {
  228. show: false,
  229. },
  230. splitArea:false
  231. },
  232. departmentPersonInOutBarYaxis: {
  233. type: "value",
  234. boundaryGap: [0, 0.01],
  235. name: '人',
  236. nameTextStyle: {
  237. color: '#fff',
  238. },
  239. axisLine:{
  240. show:false
  241. },
  242. axisLabel: {
  243. color: "white", // 设置横坐标轴字体颜色为红色
  244. },
  245. splitLine: {
  246. show: false,
  247. },
  248. axisTick: {
  249. show: false,
  250. },
  251. splitArea:false
  252. },
  253. departmentPersonInOutBarLegend: {
  254. top: 0,
  255. orient: "horizontal",
  256. right: 0,
  257. itemWidth: 17, // 设置图例标记的宽度
  258. itemHeight: 10, // 设置图例标记的高度
  259. textStyle: {
  260. color: "#FFF",
  261. },
  262. },
  263. visitorDataList: [
  264. {
  265. name: "于俊",
  266. time: "2024 / 11 / 15 15:01",
  267. department: "财务资产部",
  268. },
  269. {
  270. name: "于俊",
  271. time: "2024 / 11 / 15 14:58",
  272. department: "财务资产部",
  273. },
  274. {
  275. name: "于俊",
  276. time: "2024 / 11 / 15 14:55",
  277. department: "财务资产部",
  278. },
  279. {
  280. name: "于俊",
  281. time: "2024 / 11 / 15 14:01",
  282. department: "财务资产部",
  283. },
  284. ],
  285. };
  286. },
  287. created() {
  288. },
  289. destroyed() {},
  290. beforeDestroy() {},
  291. mounted() {},
  292. methods: {
  293. //鼠标移出
  294. leaveFun(){
  295. setTimeout(()=>{
  296. this.$emit("closeDialog")
  297. },200)
  298. },
  299. preventDefault() {
  300. console.log(11)
  301. }
  302. },
  303. };
  304. </script>
  305. <style lang="scss">
  306. .building-dialog-area {
  307. overflow: hidden;
  308. width: 580px;
  309. height:1000px;
  310. background: url("../../../assets/images/main/main_bg.png") no-repeat;
  311. background-size: 100% 100%;
  312. padding: 19px 15px 11px 15px;
  313. .dialog-title {
  314. display: flex;
  315. flex-direction: row;
  316. align-items: center;
  317. justify-content: center;
  318. position: relative;
  319. margin-bottom: 10px;
  320. img {
  321. width: 284px;
  322. height: 32px;
  323. }
  324. .title {
  325. font-size: 20px;
  326. font-weight: 900;
  327. font-family: "PingFangSC";
  328. width: 100%;
  329. position: absolute;
  330. display: flex;
  331. align-items: center;
  332. justify-content: center;
  333. top: -5px;
  334. color: #fff;
  335. }
  336. }
  337. .dialog-cont {
  338. width:100%;
  339. height: 920px;
  340. padding: 15px;
  341. overflow-y: scroll;
  342. background: url("../../../assets/images/main/components_long_bg.png") no-repeat;
  343. background-size: 100% 100%;
  344. .dialog-left{
  345. width: 520px;
  346. float: left;
  347. }
  348. .dialog-right{
  349. width: 520px;
  350. float: right;
  351. }
  352. }
  353. .dialog-list{
  354. width: 100%;
  355. display: flex;
  356. justify-content: space-between !important;
  357. margin-bottom:20px;
  358. .dialog-item{
  359. width: calc(50% - 20px);
  360. }
  361. .dialog-item-cont{
  362. display: flex;
  363. justify-content: center;
  364. align-items: center;
  365. margin-top:40px;
  366. }
  367. .wid100{
  368. width:100%;
  369. .content-title{
  370. width:100%;
  371. background: url("../../../assets/images/main/title_pro_long.png") no-repeat;
  372. }
  373. }
  374. }
  375. .content-title {
  376. width: 100%;
  377. height: 26px;
  378. background: url("../../../assets/images/main/title_pro.png") no-repeat;
  379. background-size: 100% 100%;
  380. font-family: "PingFangSC";
  381. font-size: 16px;
  382. font-weight: bold;
  383. color: #00ffff;
  384. padding-left: 25px;
  385. .title {
  386. display: block;
  387. position: relative;
  388. top:-5px;
  389. }
  390. }
  391. .content {
  392. margin-top: 20px;
  393. .title-format {
  394. display: flex;
  395. flex-direction: row;
  396. align-items: center;
  397. img {
  398. width: 6px;
  399. height: 24px;
  400. margin-right: 6px;
  401. }
  402. .title-info {
  403. display: flex;
  404. flex-direction: column;
  405. font-size: 12px;
  406. color: #ffffff;
  407. .title-en {
  408. font-size: 8px;
  409. color: #ffffff;
  410. opacity: 0.4;
  411. }
  412. }
  413. }
  414. .total-data {
  415. display: flex;
  416. align-items: baseline;
  417. color: #19fcde;
  418. margin-top: 4px;
  419. .total {
  420. font-size: 40px;
  421. font-family: 'electronicFont';
  422. }
  423. .unit {
  424. font-size: 12px;
  425. }
  426. }
  427. .data-content{
  428. display: flex;
  429. flex-direction: row;
  430. align-items: center;
  431. flex-wrap: wrap;
  432. .data-item{
  433. position: relative;
  434. display: flex;
  435. flex-direction: column;
  436. align-items: center;
  437. justify-content: center;
  438. margin-right: 24px;
  439. img{
  440. width: 89px;
  441. height: 82px;
  442. }
  443. .desc{
  444. font-size: 14px;
  445. color: #FFFFFF;
  446. margin-top: 7px;
  447. opacity: 0.4;
  448. }
  449. .data{
  450. position: absolute;
  451. top:20px;
  452. left:0;
  453. width: 89px;
  454. font-size: 30px;
  455. display: flex;
  456. align-items: center;
  457. justify-content: center;
  458. color:#19fcde;
  459. font-family: 'electronicFont';
  460. }
  461. }
  462. .data-item:nth-child(2n){
  463. margin-right: 0;
  464. }
  465. }
  466. .data-list {
  467. display: flex;
  468. flex: 1;
  469. flex-direction: row;
  470. align-items: center;
  471. justify-content: space-between;
  472. .data-item {
  473. display: flex;
  474. flex-direction: column;
  475. align-items: center;
  476. justify-content: center;
  477. flex: 1;
  478. border-right: 1px solid rgba(25, 252, 222, 0.2);
  479. .data-detail {
  480. display: flex;
  481. flex-direction: row;
  482. align-items: baseline;
  483. color: #00ffff;
  484. margin-top: 11px;
  485. font-size: 12px;
  486. .data {
  487. font-size: 30px;
  488. font-family: 'electronicFont';
  489. }
  490. }
  491. }
  492. .data-item:last-child {
  493. border-right: none;
  494. }
  495. }
  496. .rate-area{
  497. position: relative;
  498. img{
  499. width: 198px;
  500. height: 114px;
  501. }
  502. .rate{
  503. display: flex;
  504. flex-direction: column;
  505. align-items: center;
  506. justify-content: center;
  507. width: 100%;
  508. position: absolute;
  509. top: 0;
  510. left: 0;
  511. color: #FFF;
  512. .rate-data{
  513. display: flex;
  514. flex-direction: row;
  515. align-items: baseline;
  516. color: #FFBA44;
  517. .data{
  518. font-family: 'electronicFont';
  519. font-size: 30px;
  520. }
  521. .unit{
  522. font-size: 12px;
  523. }
  524. }
  525. .desc{
  526. font-size: 12px;
  527. width: 58px;
  528. text-align: center;
  529. }
  530. }
  531. }
  532. }
  533. .other-cont{
  534. display: flex;
  535. .icon{
  536. display: block;
  537. width:70px;
  538. height:auto;
  539. }
  540. .other-info{
  541. padding-left:2px;
  542. .desc{
  543. font-size:12px;
  544. color:#FFFFFF;
  545. font-weight: bold;
  546. }
  547. .num-info{
  548. width:100%;
  549. padding-top:2px;
  550. display: flex;
  551. align-items: center;
  552. .num{
  553. font-size:30px;
  554. color:#19FCDE;
  555. font-weight: bold;
  556. font-family: "electronicFont";
  557. }
  558. .unit{
  559. font-size:12px;
  560. color:#00FFFF;
  561. font-weight: 500;
  562. position: relative;
  563. top:4px;
  564. }
  565. .mar{
  566. margin-left: 20px;
  567. }
  568. }
  569. }
  570. }
  571. .camera-cont {
  572. width: 100%;
  573. display: flex;
  574. justify-content: space-between;
  575. align-items: center;
  576. .camera-item {
  577. display: flex;
  578. flex-direction: column;
  579. justify-content: center;
  580. align-items: center;
  581. position: relative;
  582. .num-info{
  583. display: flex;
  584. justify-content: center;
  585. align-items: center;
  586. .num{
  587. font-size: 30px;
  588. color: #19FCDE;
  589. font-weight: bold;
  590. font-family: "electronicFont";
  591. padding-left:4px;
  592. }
  593. .num2{
  594. font-size: 30px;
  595. color: #19FCDE;
  596. font-weight: bold;
  597. font-family: "electronicFont";
  598. padding-left:4px;
  599. position: absolute;
  600. top:20px;
  601. }
  602. .unit{
  603. font-size: 12px;
  604. color: #00ffff;
  605. font-weight: 500;
  606. position: relative;
  607. top:3px;
  608. }
  609. }
  610. .icon{
  611. display: block;
  612. width:46px;
  613. height:auto;
  614. }
  615. .icon2{
  616. display: block;
  617. width:101px;
  618. height:auto;
  619. }
  620. .title{
  621. font-size: 12px;
  622. color: #FFFFFF;
  623. margin-top:6px;
  624. font-weight: normal;
  625. }
  626. }
  627. }
  628. .use-energy{
  629. width:100%;
  630. padding:0 15px;
  631. .use-energy-fir{
  632. width:100%;
  633. display: flex;
  634. align-items: center;
  635. font-size:14px;
  636. color:#FFFFFF;
  637. font-weight: 500;
  638. .num{
  639. font-weight: 900;
  640. color:#00FFFF;
  641. padding:0 8px;
  642. }
  643. }
  644. .use-energy-snd{
  645. width:100%;
  646. margin-top:15px;
  647. display: flex;
  648. align-items: center;
  649. .use-energy-snd-list{
  650. display: flex;
  651. align-items: center;
  652. .icon{
  653. display: block;
  654. width:34px;
  655. height: 34px;
  656. }
  657. .use-energy-snd-info{
  658. padding-left: 4px;
  659. .desc{
  660. font-size: 12px;
  661. color:#FFFFFF;
  662. }
  663. .num-info{
  664. display: flex;
  665. align-items: center;
  666. .num{
  667. font-size: 24px;
  668. color: #19FCDE;
  669. font-weight: bold;
  670. font-family: "electronicFont";
  671. }
  672. .unit{
  673. font-size:12px;
  674. color:#00FFFF;
  675. font-weight: 500;
  676. position: relative;
  677. top:4px;
  678. left:2px;
  679. }
  680. }
  681. }
  682. }
  683. .use-energy-snd-list:last-child{
  684. margin-left: 36px;
  685. }
  686. }
  687. }
  688. .circle-cont{
  689. width:100%;
  690. display: flex;
  691. flex-wrap: wrap;
  692. padding:0 15px;
  693. .circle-list {
  694. width:80px;
  695. display: flex;
  696. flex-direction: column;
  697. justify-content: center;
  698. align-items: center;
  699. margin-bottom: 10px;
  700. .name{
  701. font-size:12px;
  702. color:#FFFFFF;
  703. font-weight: 500;
  704. padding-top:6px;
  705. width:100%;
  706. overflow:hidden;
  707. text-align: center;
  708. white-space: nowrap;
  709. }
  710. }
  711. .el-progress__text{
  712. font-size:12px !important;
  713. color:#fff !important;
  714. }
  715. }
  716. .table-cont{
  717. width:100%;
  718. .table-top{
  719. width:100%;
  720. height: 26px;
  721. background: url("../../../assets/images/building_guarantee/img_11.png") no-repeat;
  722. background-size: 100% 100%;
  723. padding:0 25px 0 10px;
  724. display: flex;
  725. justify-content: space-between;
  726. align-items: center;
  727. font-size:12px;
  728. color:#00FFFF;
  729. }
  730. .table-bot{
  731. width:100%;
  732. .table-list{
  733. width:100%;
  734. height:38px;
  735. padding:0 25px 0 10px;
  736. display: flex;
  737. justify-content: space-between;
  738. align-items: center;
  739. font-size:12px;
  740. color:#FFFFFF;
  741. font-weight: 500;
  742. }
  743. }
  744. }
  745. .table-cont .fir{
  746. width:20%;
  747. text-align: left;
  748. }
  749. .table-cont .snd{
  750. width:20%;
  751. text-align: left;
  752. }
  753. .table-cont .thd{
  754. width:40%;
  755. text-align: left;
  756. }
  757. .table-cont .fou{
  758. width:20%;
  759. text-align: left;
  760. }
  761. .data-chart {
  762. margin-top: 12px !important;
  763. margin-bottom: 10px !important;
  764. }
  765. .tab-cont {
  766. width: 100%;
  767. display: flex;
  768. align-items: center;
  769. padding-left: 15px;
  770. padding-bottom: 15px;
  771. .tab-list {
  772. width: 127px;
  773. height: 30px;
  774. background: url("../../../assets/images/building_guarantee/img_2.png")
  775. no-repeat;
  776. background-size: 100% 100%;
  777. font-family: "PingFangSC";
  778. font-size: 14px;
  779. font-weight: 500;
  780. color: #00ffff;
  781. padding-left: 15px;
  782. line-height: 30px;
  783. }
  784. .tab-list:last-child {
  785. margin-left: 20px;
  786. }
  787. }
  788. ::-webkit-scrollbar {
  789. display: none;
  790. width: 3px;
  791. height: 3px;
  792. }
  793. ::-webkit-scrollbar-thumb {
  794. //滑块部分
  795. // border-radius: 5px;
  796. background-color: #58cbbb;
  797. }
  798. ::-webkit-scrollbar-track {
  799. //轨道部分
  800. // box-shadow: inset 0 0 5px #ddd;
  801. background: #ddd;
  802. // border-radius: 5px;
  803. }
  804. }
  805. </style>