houseArea.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799
  1. <template>
  2. <div class="main-data house-area-operation" v-if="flag >= 2">
  3. <!-- <div class="title-area">房产土地</div> -->
  4. <div class="content-area">
  5. <div class="content-left wid100">
  6. <div class="content-title">
  7. <span class="title">房产资源存量
  8. <span class="smallTitle">截止至{{timeString}}</span>
  9. </span>
  10. </div>
  11. <div class="content">
  12. <div class="total-cont">
  13. <span class="title">房产数量
  14. <span class="smallTitle">(处)</span>
  15. </span>
  16. </div>
  17. <div class="charts-cont">
  18. <pie-chart
  19. v-if="show"
  20. :chart-data="pieData"
  21. :legend="pieLegend"
  22. :center="pieCenter"
  23. width="520px"
  24. height="180px"
  25. />
  26. </div>
  27. <div class="total-cont">
  28. <span class="title">房产面积
  29. <span class="smallTitle">(万m²)</span>
  30. </span>
  31. </div>
  32. <div class="data-content">
  33. <div class="data-item">
  34. <div class="data1">
  35. <div>{{ stockOfEstateResourcesList.pieChart[0].houseAcreage}}</div>
  36. </div>
  37. <div>
  38. <img src="@/assets/images/logistics_guarantee/houSl.png">
  39. </div>
  40. <div class="name1">{{ stockOfEstateResourcesList.pieChart[0].typeName}}</div>
  41. </div>
  42. <div class="data-item">
  43. <div class="data1">
  44. <div>{{ stockOfEstateResourcesList.pieChart[1].houseAcreage}}</div>
  45. </div>
  46. <div>
  47. <img src="@/assets/images/logistics_guarantee/houSl.png">
  48. </div>
  49. <div class="name1">{{ stockOfEstateResourcesList.pieChart[1].typeName}}</div>
  50. </div>
  51. <div class="data-item">
  52. <div class="data1">
  53. <div>{{ stockOfEstateResourcesList.pieChart[2].houseAcreage}}</div>
  54. </div>
  55. <div>
  56. <img src="@/assets/images/logistics_guarantee/houSl.png">
  57. </div>
  58. <div class="name1">{{ stockOfEstateResourcesList.pieChart[2].typeName}}</div>
  59. </div>
  60. <div class="data-item">
  61. <div class="data1">
  62. <div>{{ stockOfEstateResourcesList.pieChart[3].houseAcreage}}</div>
  63. </div>
  64. <div>
  65. <img src="@/assets/images/logistics_guarantee/houSl.png">
  66. </div>
  67. <div class="name1">{{ stockOfEstateResourcesList.pieChart[3].typeName}}</div>
  68. </div>
  69. </div>
  70. </div>
  71. <div class="content-title" style="margin-top: 60px;">
  72. <span class="title">土地资源存量
  73. <span class="smallTitle">截止至{{timeString}}</span>
  74. </span>
  75. </div>
  76. <div class="content">
  77. <div class="total-cont">
  78. <span class="title">土地数量
  79. <span class="smallTitle">(宗)</span>
  80. </span>
  81. </div>
  82. <bar-chart
  83. v-if="show"
  84. :chart-data="buildingAreaBarData"
  85. :x-axis="buildingAreaBarAxis"
  86. :yAxis="buildingAreaBarYaxis"
  87. y-color="#FFF"
  88. l-color="#FFF"
  89. width="480px"
  90. height="140px"
  91. />
  92. <div class="total-cont">
  93. <span class="title">土地面积
  94. <span class="smallTitle">(万m²)</span>
  95. </span>
  96. </div>
  97. <div class="data-content">
  98. <div class="data-item">
  99. <div class="data">
  100. <div>{{ stockOfLandResourcesList[0].landAcreage }}</div>
  101. </div>
  102. <div>
  103. <img src="@/assets/images/logistics_guarantee/mate.png">
  104. </div>
  105. <div class="name">{{ stockOfLandResourcesList[0].typeName }}</div>
  106. </div>
  107. <div class="data-item">
  108. <div class="data">
  109. <div>{{ stockOfLandResourcesList[1].landAcreage }}</div>
  110. </div>
  111. <div>
  112. <img src="@/assets/images/logistics_guarantee/mate.png">
  113. </div>
  114. <div class="name">{{ stockOfLandResourcesList[1].typeName }}</div>
  115. </div>
  116. <div class="data-item">
  117. <div class="data">
  118. <div>{{ stockOfLandResourcesList[2].landAcreage }}</div>
  119. </div>
  120. <div>
  121. <img src="@/assets/images/logistics_guarantee/mate.png">
  122. </div>
  123. <div class="name">{{ stockOfLandResourcesList[2].typeName }}</div>
  124. </div>
  125. <div class="data-item">
  126. <div class="data">
  127. <div>{{ stockOfLandResourcesList[3].landAcreage }}</div>
  128. </div>
  129. <div>
  130. <img src="@/assets/images/logistics_guarantee/mate.png">
  131. </div>
  132. <div class="name">{{ stockOfLandResourcesList[3].typeName }}</div>
  133. </div>
  134. </div>
  135. </div>
  136. <!-- <div class="content-title" style="margin-top: 25px">
  137. <span class="title">{{timeMonth}}年度投资房产完成情况</span>
  138. </div>
  139. <div class="content">
  140. <div class="data-list">
  141. <div class="data-item">
  142. <img
  143. src="@/assets/images/logistics_guarantee/estate.png"
  144. class="img"
  145. />
  146. </div>
  147. <div class="data-item">
  148. <div class="rightList1">
  149. <div class="left-list">
  150. <div class="left-info">
  151. <div class="name">
  152. <div> <img src="@/assets/images/logistics_guarantee/tateSwin.png"></div>
  153. <div>新增房产</div>
  154. </div>
  155. <div class="num">{{ investFinishStateList.new }}<span class="unit">个</span></div>
  156. </div>
  157. </div>
  158. <div class="left-list">
  159. <div class="left-info">
  160. <div class="name">
  161. <div> <img src="@/assets/images/logistics_guarantee/tateSwin.png"></div>
  162. <div>投资计划房产</div>
  163. </div>
  164. <div class="num">{{ investFinishStateList.invest }}<span class="unit">个</span></div>
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. </div> -->
  171. </div>
  172. </div>
  173. </div>
  174. </template>
  175. <script>
  176. import LineChart from "@/components/Echarts/LineChart.vue";
  177. import PieChart from "@/components/Echarts/PieChart.vue";
  178. import BarChart from "@/components/Echarts/BarChart.vue";
  179. import echarts from "echarts";
  180. import {
  181. stockOfEstateResources,stockOfLandResources,investFinishState
  182. } from "@/api/screen/service";
  183. export default {
  184. name: "HouseArea",
  185. components: { BarChart, PieChart, LineChart },
  186. props: {
  187. appOrg: {
  188. type: String,
  189. default: "0000",
  190. },
  191. },
  192. watch:{
  193. appOrg(newValue,oldValue){
  194. this.show = false;
  195. setTimeout(()=>{
  196. this.show = true;
  197. },0)
  198. },
  199. },
  200. data() {
  201. return {
  202. show:true,
  203. flag: 0,
  204. currentTime: new Date(),
  205. stockOfEstateResourcesList:{},
  206. stockOfLandResourcesList:{},
  207. investFinishStateList:{},
  208. // pieData: [
  209. // { value: 24.15, name: "办公物资" },
  210. // { value: 24.15, name: "楼宇资源" },
  211. // { value: 24.15, name: "房产资源" },
  212. // { value: 24.15, name: "服务设备" },
  213. // { value: 24.15, name: "土地资源" },
  214. // { value: 24.15, name: "车辆资源" },
  215. // ],
  216. pieData:[],
  217. pieLegend: {
  218. top: 55,
  219. orient: "vertical",
  220. left: 300,
  221. itemWidth: 8, // 设置图例标记的宽度
  222. itemHeight: 8, // 设置图例标记的高度
  223. textStyle: {
  224. color: "#FFF",
  225. },
  226. },
  227. pieCenter: ["30%", "50%"],
  228. buildingAreaBarData: [],
  229. buildingAreaBarYaxis: {
  230. type: "category",
  231. data: ["周转用房土地", "办公土地", "物资仓储土地","供电所土地"],
  232. axisLabel: {
  233. color: "white", // 设置横坐标轴字体颜色为红色
  234. },
  235. axisLine: {
  236. show: false,
  237. },
  238. axisTick: {
  239. show: false,
  240. },
  241. splitArea: false,
  242. axisLine: {
  243. show: false,
  244. },
  245. },
  246. buildingAreaBarAxis: {
  247. type: "value",
  248. boundaryGap: [0, 0.01],
  249. name: "",
  250. nameTextStyle: {
  251. color: "#fff",
  252. },
  253. axisLine: {
  254. lineStyle: {
  255. color: "#465A64",
  256. },
  257. },
  258. axisLabel: {
  259. color: "white", // 设置横坐标轴字体颜色为红色
  260. },
  261. splitLine: {
  262. show: false,
  263. },
  264. axisTick: {
  265. show: false,
  266. },
  267. splitArea: false,
  268. },
  269. buildingAreaBarLegend: {
  270. show: false,
  271. },
  272. barGrid: {
  273. top: 10,
  274. left: "2%",
  275. right: "2%",
  276. containLabel: true,
  277. bottom: 0,
  278. },
  279. };
  280. },
  281. computed: {
  282. timeString() {
  283. const year = this.currentTime.getFullYear();
  284. const month = String(this.currentTime.getMonth() + 1);
  285. const day = String(this.currentTime.getDate());
  286. return `${year}年${month}月${day}日`;
  287. },
  288. timeMonth(){
  289. const year = this.currentTime.getFullYear();
  290. return `${year}`;
  291. }
  292. },
  293. created() {
  294. //房产资源存量
  295. this.stockOfEstateResources();
  296. //土地资源存量
  297. this.stockOfLandResources();
  298. //2025年度投资房产完成情况
  299. // this.investFinishState();
  300. },
  301. destroyed() {},
  302. beforeDestroy() {},
  303. mounted() {},
  304. methods: {
  305. //房产资源存量
  306. stockOfEstateResources() {
  307. stockOfEstateResources(this.$props.appOrg).then((res) => {
  308. if (Number(res.code) === 200) {
  309. this.stockOfEstateResourcesList=res.data;
  310. const colorList = ['#FEB948','#7465EF','#2F82FE','#2FFEA0','#242CC4','#2FFEA0','#E16B21'];
  311. const stockOfEstateAssetList = res.data.pieChart;
  312. this.pieData = stockOfEstateAssetList.map((item, index) => {
  313. return {
  314. value: item.houseNum, // 数据值
  315. name: item.typeName, // 数据名称
  316. itemStyle: {
  317. color: colorList[index % colorList.length] // 循环使用颜色列表
  318. }
  319. };
  320. });
  321. this.flag++
  322. }
  323. });
  324. },
  325. //土地资源存量
  326. stockOfLandResources() {
  327. stockOfLandResources(this.$props.appOrg).then((res) => {
  328. if (Number(res.code) === 200) {
  329. this.stockOfLandResourcesList=res.data.chart
  330. this.buildingAreaBarData=[
  331. {
  332. name: "",
  333. type: "bar",
  334. stack: "a",
  335. itemStyle: {
  336. color: "#02C698",
  337. //barBorderRadius: [10, 10, 0, 0], // 统一设置四个角的圆角大小
  338. },
  339. barWidth: 10,
  340. data: [res.data.chart[3].landNum,0, 0 ,0],
  341. },
  342. {
  343. name: "",
  344. type: "bar",
  345. stack: "a",
  346. itemStyle: {
  347. color: "#409EFF",
  348. //barBorderRadius: [10, 10, 0, 0], // 统一设置四个角的圆角大小
  349. },
  350. barWidth: 10,
  351. data: [0,res.data.chart[2].landNum,0,0],
  352. },
  353. {
  354. name: "",
  355. type: "bar",
  356. stack: "a",
  357. itemStyle: {
  358. color: "#00FF9D",
  359. //barBorderRadius: [10, 10, 0, 0], // 统一设置四个角的圆角大小
  360. },
  361. barWidth: 10,
  362. data: [0,0,res.data.chart[1].landNum,0],
  363. },
  364. {
  365. name: "",
  366. type: "bar",
  367. stack: "a",
  368. itemStyle: {
  369. color: "#EFB264",
  370. //barBorderRadius: [10, 10, 0, 0], // 统一设置四个角的圆角大小
  371. },
  372. barWidth: 10,
  373. data: [0,0,0,res.data.chart[0].landNum],
  374. },
  375. ]
  376. this.flag++
  377. }
  378. });
  379. },
  380. //2025年度投资房产完成情况
  381. investFinishState() {
  382. investFinishState(this.$props.appOrg).then((res) => {
  383. if (Number(res.code) === 200) {
  384. this.investFinishStateList=res.data;
  385. }
  386. });
  387. },
  388. },
  389. };
  390. </script>
  391. <style lang="scss">
  392. .house-area-operation {
  393. .content-area {
  394. display: flex;
  395. padding: 15px 20px 0 15px;
  396. align-items: flex-start;
  397. justify-content: space-between;
  398. }
  399. // .content-title {
  400. // width: 230px;
  401. // height: 26px;
  402. // background: url("../../../assets/images/main/title_pro.png") no-repeat;
  403. // background-size: 100% 100%;
  404. // font-family: "PingFangSC";
  405. // font-size: 14px;
  406. // font-weight: bold;
  407. // color: #00ffff;
  408. // padding-left: 17px;
  409. // .title {
  410. // display: block;
  411. // }
  412. // }
  413. .content {
  414. // margin-top: 10px;
  415. padding-left: 20px;
  416. .smallTitle{
  417. font-size: 10px;
  418. font-weight: 100;
  419. }
  420. .data-content{
  421. display: flex;
  422. justify-content: space-between;
  423. align-items: center;
  424. overflow: visible;
  425. padding-top:15px;
  426. margin: 25px 10px 10px 0;
  427. .mar{
  428. margin-bottom: 15px;
  429. }
  430. .data-item{
  431. height:30px;
  432. display: flex;
  433. flex-direction: column;
  434. justify-content: center;
  435. align-items: center;
  436. overflow: visible;
  437. .data{
  438. width: auto;
  439. font-size: 32px;
  440. color:#00FFFF;
  441. font-family: 'electronicFont';
  442. position: relative;
  443. top: -5px;
  444. display: flex;
  445. align-items: center;
  446. }
  447. .name{
  448. font-size: 14px;
  449. color:#FFFFFF;
  450. position: relative;
  451. top:5px;
  452. font-family: "fashionZh";
  453. }
  454. .data1{
  455. width: auto;
  456. font-size: 32px;
  457. color:#00FFFF;
  458. font-family: 'electronicFont';
  459. position: relative;
  460. top: 12px;
  461. display: flex;
  462. align-items: center;
  463. }
  464. .name1{
  465. font-size: 14px;
  466. color:#FFFFFF;
  467. position: relative;
  468. font-family: "fashionZh";
  469. }
  470. }
  471. }
  472. }
  473. .content-title {
  474. width: 230px;
  475. height: 26px;
  476. background: url("../../../assets/images/main/title_pro_long.png") no-repeat !important;
  477. background-size: 100% 100%;
  478. font-family: "PingFangSC";
  479. font-size: 16px;
  480. font-weight: bold;
  481. color: #00ffff;
  482. padding-left: 20px !important;
  483. .title {
  484. display: block;
  485. position: relative;
  486. top:-5px !important;
  487. }
  488. .smallTitle{
  489. font-size: 10px;
  490. font-weight: 100;
  491. color: #ffffff;
  492. }
  493. }
  494. .content-title.long {
  495. width: 100%;
  496. background: url("../../../assets/images/main/title_pro_long.png") no-repeat !important;
  497. }
  498. .wid100{
  499. width:100%;
  500. .content-title{
  501. width:100%;
  502. background: url("../../../assets/images/main/title_pro_long.png") no-repeat;
  503. }
  504. }
  505. .title-format {
  506. display: flex;
  507. flex-direction: row;
  508. align-items: center;
  509. img {
  510. width: 6px;
  511. height: 24px;
  512. margin-right: 6px;
  513. }
  514. .title-info {
  515. display: flex;
  516. flex-direction: column;
  517. font-size: 12px;
  518. color: #ffffff;
  519. .title-en {
  520. font-size: 8px;
  521. color: #ffffff;
  522. opacity: 0.4;
  523. }
  524. }
  525. }
  526. .tab-cont {
  527. width: 100%;
  528. display: flex;
  529. align-items: center;
  530. padding-left: 15px;
  531. padding-bottom: 15px;
  532. padding-top: 10px;
  533. .tab-list {
  534. width: 98px;
  535. height: 30px;
  536. background: url("../../../assets/images/logistics_guarantee/img_2.png")
  537. no-repeat;
  538. background-size: 100% 100%;
  539. font-family: "PingFangSC";
  540. font-size: 14px;
  541. font-weight: 500;
  542. color: #00ffff;
  543. padding-left: 15px;
  544. line-height: 30px;
  545. }
  546. .tab-list:last-child {
  547. margin-left: 15px;
  548. }
  549. }
  550. .total-cont {
  551. width: 100%;
  552. height: 35px;
  553. background: url("../../../assets/images/main/lightLone.png") no-repeat;
  554. background-size: 100% 100%;
  555. font-family: "PingFangSC";
  556. font-size: 14px;
  557. font-weight: bold;
  558. color: #ffffff;
  559. padding-left: 25px;
  560. padding-top: 8px;
  561. margin-top: 28px;
  562. .total-list {
  563. display: flex;
  564. align-items: baseline;
  565. width: 152px;
  566. justify-content: center;
  567. // margin-left: 40px;
  568. .total {
  569. font-size: 32px;
  570. color: #00FFFF;
  571. font-weight: bold;
  572. font-family: "electronicFont";
  573. }
  574. .unit {
  575. font-size: 12px;
  576. color: #00ffff;
  577. font-weight: 500;
  578. padding-left:4px;
  579. }
  580. .unitY {
  581. font-size: 12px;
  582. color: #00FFFF;
  583. font-weight: 500;
  584. padding-left:4px;
  585. }
  586. }
  587. .total-list1{
  588. display: flex;
  589. align-items: baseline;
  590. width: 160px;
  591. justify-content: center;
  592. // margin-right: 30px;
  593. .total {
  594. font-size: 32px;
  595. color: #00FFFF;
  596. font-weight: bold;
  597. font-family: "electronicFont";
  598. }
  599. .unit {
  600. font-size: 12px;
  601. color: #00ffff;
  602. font-weight: 500;
  603. padding-left:4px;
  604. }
  605. .unitY {
  606. font-size: 12px;
  607. color: #00FFFF;
  608. font-weight: 500;
  609. padding-left:4px;
  610. }
  611. }
  612. }
  613. .charts-cont {
  614. width: 100%;
  615. //padding-top: 20px;
  616. }
  617. .device-cont {
  618. width: 100%;
  619. padding: 10px 15px 0 15px;
  620. .title {
  621. font-size: 14px;
  622. color: #ffffff;
  623. font-weight: bold;
  624. }
  625. .device-info {
  626. display: flex;
  627. justify-content: space-between;
  628. align-items: center;
  629. padding-top: 15px;
  630. .device-item {
  631. position: relative;
  632. img {
  633. width: 117px;
  634. height: 68px;
  635. }
  636. .rate {
  637. display: flex;
  638. flex-direction: column;
  639. align-items: center;
  640. justify-content: center;
  641. width: 100%;
  642. position: absolute;
  643. top: -10px;
  644. left: 2px;
  645. color: #fff;
  646. .rate-data {
  647. display: flex;
  648. flex-direction: row;
  649. align-items: baseline;
  650. color: #ffba44;
  651. .data {
  652. font-size: 30px;
  653. font-family: "electronicFont";
  654. }
  655. .unit {
  656. font-size: 12px;
  657. }
  658. }
  659. .desc {
  660. font-size: 12px;
  661. text-align: center;
  662. }
  663. }
  664. }
  665. }
  666. }
  667. .data-list {
  668. display: flex;
  669. flex: 1;
  670. flex-direction: row;
  671. justify-content: space-between;
  672. align-items: flex-start;
  673. padding-top: 5px;
  674. .data-item {
  675. display: flex;
  676. flex-direction: column;
  677. align-items: center;
  678. justify-content: center;
  679. flex: 1;
  680. img {
  681. // width: 70px;
  682. }
  683. .data-detail {
  684. display: flex;
  685. flex-direction: row;
  686. align-items: baseline;
  687. color: #00ffff;
  688. font-size: 12px;
  689. margin-bottom: -20px;
  690. .data {
  691. font-family: "electronicFont";
  692. font-size: 30px;
  693. }
  694. }
  695. .desc {
  696. font-size: 13px;
  697. width: 78px;
  698. text-align: center;
  699. color: #00ffff;
  700. margin-top: 4px;
  701. font-weight: bold;
  702. }
  703. }
  704. }
  705. //左边菜单
  706. .rightList1{
  707. display: flex;
  708. flex-wrap: wrap;
  709. padding: 15px;
  710. .left-list{
  711. display: flex;
  712. align-items: center;
  713. margin-bottom: 25px;
  714. margin-right: 40px;
  715. img{
  716. display: block;
  717. width:25px;
  718. height:20px;
  719. margin-right: 5px;
  720. }
  721. .left-info{
  722. padding-left:12px;
  723. .num{
  724. font-size: 30px;
  725. color:#00FFFF;
  726. font-family: "electronicFont";
  727. display: flex;
  728. flex-direction: row;
  729. align-items: baseline;
  730. .unit{
  731. font-size: 12px;
  732. }
  733. }
  734. .name{
  735. display: flex;
  736. font-size: 14px;
  737. color:#FFFFFF;
  738. font-family: 'fashionZh';
  739. padding-top:4px;
  740. }
  741. }
  742. }
  743. }
  744. ::-webkit-scrollbar {
  745. width: 3px;
  746. height: 3px;
  747. }
  748. ::-webkit-scrollbar-thumb {
  749. //滑块部分
  750. // border-radius: 5px;
  751. background-color: #58cbbb;
  752. }
  753. ::-webkit-scrollbar-track {
  754. //轨道部分
  755. // box-shadow: inset 0 0 5px #ddd;
  756. background: #ddd;
  757. // border-radius: 5px;
  758. }
  759. .unit-label {
  760. color: rgba(255, 255, 255, 0) !important;
  761. }
  762. }
  763. </style>