carStockDialog.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. <template>
  2. <div class="c1" @mouseleave="leaveFun">
  3. <div style="display: flex;justify-content: center;width: 100%;flex-wrap: wrap">
  4. <div style="position: relative;height: 38px">
  5. <div class="overTitle">监控管理</div>
  6. <img src="@/assets/images/main/cont_title_bg.png" width="284" alt="" class="Img">
  7. </div>
  8. <div class="c1_bg">
  9. <div class="c1_title"></div>
  10. <div class="c1_body">
  11. <div style="display: flex;justify-content: center;align-items: center;margin-bottom: 10px;flex-wrap: wrap">
  12. <div style="display: flex;width: 100%;align-items: center;justify-content: center;margin-bottom: 10px;">
  13. <img src="../../../../assets/zhang/pubicCar/car.png" width="68" style="margin-right: 20px">
  14. <div class="carInstall">
  15. <div style="width: 90%;display: flex;flex-wrap: wrap">
  16. <div style="width: 80%;margin-bottom: 10px">公务车终端安装率</div>
  17. <div style="width: 20%;text-align: right">87%</div>
  18. <div style="width: 100%;height: 5px;background-color: #14424C;border-radius: 5px">
  19. <div style="width: 87%;height: 5px;background-image: linear-gradient(.25turn, #0B1620 0%, #00FFFF 100%);border-radius: 5px"></div>
  20. </div>
  21. </div>
  22. <div style="width: 8%;height:30px;border-right: 3px #14424C solid"></div>
  23. </div>
  24. </div>
  25. <div style="display: flex;width: 100%;align-items: center;justify-content: center">
  26. <img src="../../../../assets/zhang/pubicCar/car.png" width="68" style="margin-right: 20px">
  27. <div class="carInstall">
  28. <div style="width: 90%;display: flex;flex-wrap: wrap">
  29. <div style="width: 80%;margin-bottom: 10px">公务车终端在线率</div>
  30. <div style="width: 20%;text-align: right">50%</div>
  31. <div style="width: 100%;height: 5px;background-color: #14424C;border-radius: 5px">
  32. <div style="width: 50%;height: 5px;background-image: linear-gradient(.25turn, #0B1620 0%, #00FFFF 100%);border-radius: 5px"></div>
  33. </div>
  34. </div>
  35. <div style="width: 8%;height:30px;border-right: 3px #14424C solid"></div>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. <div style="display: flex;width: 100%;flex-wrap: wrap">
  41. <div style="width: 50%;">
  42. <div class="c1_title_half">
  43. <div style="position: absolute;left: 20px;top: -5px;">处置未归档车辆数</div>
  44. </div>
  45. <div style="display: flex;align-items: center">
  46. <img src="../../../../assets/zhang/public_car.png" width="58" style="margin: 0 5px 0 33px">
  47. <div style="width: 108px;height: 24px;color: #00FFFF;font-size: 34px;margin-bottom: 10px">
  48. <span style="font-family: 'electronicFont'">5566</span>
  49. <span style="width: 15px;height: 24px;font-size: 14px;align-content: end">辆</span>
  50. </div>
  51. </div>
  52. </div>
  53. <div style="width: 50%;">
  54. <div class="c1_title_half">
  55. <div style="position: absolute;left: 20px;top: -5px;">未带工单预警数</div>
  56. </div>
  57. <div style="display: flex;align-items: center;cursor: pointer" @click="chooseX">
  58. <img src="../../../../assets/zhang/pubicCar/pentagonCar.png" width="55" style="margin: 0 5px 0 33px">
  59. <div style="width: 108px;height: 24px;color: #00FFFF;font-size: 34px;margin-bottom: 10px">
  60. <span style="font-family: 'electronicFont'">5566</span>
  61. <span style="width: 15px;height: 24px;font-size: 14px;align-content: end">辆</span>
  62. </div>
  63. </div>
  64. </div>
  65. <div style="width: 50%;margin-top: 10px">
  66. <div class="c1_title_half">
  67. <div style="position: absolute;left: 20px;top: -5px">超速预警数</div>
  68. </div>
  69. <div style="display: flex;align-items: center;cursor: pointer" @click="chooseY">
  70. <img src="../../../../assets/zhang/pubicCar/pentagonCar.png" width="55" style="margin: 0 5px 0 33px">
  71. <div style="width: 108px;height: 24px;color: #00FFFF;font-size: 34px;margin-bottom: 10px">
  72. <span style="font-family: 'electronicFont'">5566</span>
  73. <span style="width: 15px;height: 24px;font-size: 14px;align-content: end">辆</span>
  74. </div>
  75. </div>
  76. </div>
  77. <div style="width: 50%;margin-top: 10px">
  78. <div class="c1_title_half">
  79. <div style="position: absolute;left: 20px;top: -5px;">节假日预警数</div>
  80. </div>
  81. <div style="display: flex;align-items: center;cursor: pointer" @click="chooseZ">
  82. <img src="../../../../assets/zhang/pubicCar/pentagonCar.png" width="55" style="margin: 0 5px 0 33px">
  83. <div style="width: 108px;height: 24px;color: #00FFFF;font-size: 34px;margin-bottom: 10px">
  84. <span style="font-family: 'electronicFont'">5566</span>
  85. <span style="width: 15px;height: 24px;font-size: 14px;align-content: end">辆</span>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </template>
  94. <script>
  95. import LineChart from "@/components/Echarts/LineChart";
  96. import PieChart from "@/components/Echarts/PieChart";
  97. import BarChart from "@/components/Echarts/BarChart.vue";
  98. import echarts from "echarts";
  99. export default {
  100. name: "BuildingSaveDialog",
  101. components: {
  102. BarChart,
  103. PieChart,
  104. LineChart,
  105. },
  106. props: {},
  107. data() {
  108. return {
  109. // 公务用车资源情况
  110. dataList: [
  111. {
  112. name: "月均车运行天数",
  113. data: "56",
  114. unit: "天",
  115. },
  116. {
  117. name: "日派车单数",
  118. data: "30",
  119. unit: "单",
  120. },
  121. {
  122. name: "日行驶里程",
  123. data: "26",
  124. unit: "公里",
  125. },
  126. ],
  127. pieData: [
  128. {
  129. value: 30,
  130. name: "企业负责人用车",
  131. itemStyle: {
  132. color: "#00FFFF",
  133. },
  134. },
  135. {
  136. value: 26,
  137. name: "企业用车",
  138. itemStyle: {
  139. color: "#2F82FE",
  140. },
  141. },
  142. ],
  143. pieCenter: ["27%", "50%"],
  144. pieRadius: ["50%", "60%"],
  145. pieLegend: {
  146. orient: "vertical",
  147. top: 50,
  148. right: 0,
  149. itemWidth: 8, // 设置图例标记的宽度
  150. itemHeight: 8, // 设置图例标记的高度
  151. textStyle: {
  152. color: "#FFF",
  153. },
  154. },
  155. //各类车型
  156. totalPieData: [
  157. { value: 110, name: "商务车" },
  158. { value: 120, name: "越野车" },
  159. { value: 130, name: "小型客车" },
  160. { value: 140, name: "大型客车" },
  161. { value: 150, name: "小轿车" },
  162. ],
  163. totalCenter: ["30%", "50%"],
  164. totalPieLegend: {
  165. top: 20,
  166. right: 10,
  167. itemWidth: 8,
  168. itemHeight: 8,
  169. orient: "vertical",
  170. textStyle: {
  171. color: "#FFF",
  172. },
  173. },
  174. //车辆类型
  175. catePieData: [
  176. { value: 40, name: "新能源汽车" },
  177. { value: 20, name: "燃油汽车" },
  178. ],
  179. catePieLegend: {
  180. orient: "vertical",
  181. top: 60,
  182. right: 23,
  183. itemWidth: 8, // 设置图例标记的宽度
  184. itemHeight: 8, // 设置图例标记的高度
  185. textStyle: {
  186. color: "#FFF",
  187. },
  188. },
  189. catePieCenter: ["27%", "50%"],
  190. carTypeBarData: [
  191. {
  192. name: "",
  193. type: "bar",
  194. itemStyle: {
  195. color: "#D9821D",
  196. },
  197. barWidth: 20,
  198. data: [110, 120, 130, 140, 150],
  199. },
  200. ],
  201. carTypeBarAxis: {
  202. type: "category",
  203. data: ["商务车", "越野车", "小型客车", "大型客车", "小轿车"],
  204. axisLabel: {
  205. color: "white", // 设置横坐标轴字体颜色为红色
  206. rotate: 25,
  207. interval: 0
  208. },
  209. axisTick: {
  210. show: false,
  211. },
  212. axisLine: {
  213. lineStyle: {
  214. color: "#FFF",
  215. },
  216. },
  217. splitArea: false,
  218. },
  219. carTypeBarYAxis: {
  220. type: "value",
  221. boundaryGap: [0, 0.01],
  222. name: "辆",
  223. nameTextStyle: {
  224. color: "#fff",
  225. padding: [0,30,0,0],
  226. fontSize: 14,
  227. },
  228. axisLine: {
  229. show: false,
  230. },
  231. axisLabel: {
  232. color: "white", // 设置横坐标轴字体颜色为红色
  233. },
  234. splitLine: {
  235. show: false,
  236. },
  237. axisTick: {
  238. show: false,
  239. },
  240. splitArea: false,
  241. },
  242. carTypeBarLegend: {
  243. show: false,
  244. },
  245. carTotalData: [
  246. {
  247. name: "",
  248. type: "bar",
  249. itemStyle: {
  250. color: "#43DCDB"
  251. },
  252. barWidth: 40,
  253. data: [110, 120, 58, 200],
  254. },
  255. ],
  256. carTotalAxis: {
  257. type: "category",
  258. data: ["本部 ", "直属单位", "市公司", "县公司"],
  259. axisLabel: {
  260. color: "white" // 设置横坐标轴字体颜色为红色
  261. },
  262. axisLine: {
  263. lineStyle: {
  264. color: "#FFF",
  265. },
  266. },
  267. axisTick: {
  268. show: false,
  269. },
  270. splitArea: false,
  271. },
  272. carTotalYAxis: {
  273. type: "value",
  274. boundaryGap: [0, 0.01],
  275. name: "数量(辆)",
  276. nameTextStyle: {
  277. color: "#fff",
  278. padding: [0,5,0,0],
  279. fontSize: 14,
  280. },
  281. axisLine: {
  282. lineStyle: {
  283. color: "#465A64",
  284. },
  285. },
  286. axisLabel: {
  287. color: "white", // 设置横坐标轴字体颜色为红色
  288. },
  289. splitLine: {
  290. show: false,
  291. },
  292. axisTick: {
  293. show: false,
  294. },
  295. splitArea: false,
  296. },
  297. carTotalLegend: {
  298. show: false,
  299. },
  300. barGrid: {
  301. top: 30,
  302. left: "2%",
  303. right: "2%",
  304. containLabel: true,
  305. bottom: 0,
  306. },
  307. };
  308. },
  309. created() {},
  310. destroyed() {},
  311. beforeDestroy() {},
  312. mounted() {},
  313. methods: {
  314. chooseX(){
  315. this.$emit('chooseX')
  316. },
  317. chooseY(){
  318. this.$emit('chooseY')
  319. },
  320. chooseZ(){
  321. this.$emit('chooseZ')
  322. },
  323. //鼠标移出
  324. leaveFun(){
  325. setTimeout(()=>{
  326. this.$emit("closeDialog")
  327. },200)
  328. },
  329. preventDefault() {
  330. console.log(11);
  331. },
  332. },
  333. };
  334. </script>
  335. <style lang="scss" scoped>
  336. .c1 {
  337. width: 580px;
  338. height: 920px;
  339. padding-top: 19px;
  340. background: url("../../../../assets/images/main/main_bg.png") no-repeat;
  341. background-size: cover;
  342. }
  343. .overTitle{
  344. width: 100%;
  345. top: -5px;
  346. color: white;
  347. font-family: 'PingFangSC';
  348. font-size: 20px;
  349. font-weight: 900;
  350. position: absolute;
  351. display: flex;
  352. align-items: center;
  353. justify-content: center;
  354. }
  355. .c1_bg{
  356. width: 550px;
  357. height: 849px;
  358. background: url("../../../../assets/images/main/components_long_bg.png") no-repeat;
  359. background-size: cover;
  360. margin-top: 4px;
  361. }
  362. .c1_title{
  363. width: 100%;
  364. height: 36px;
  365. background: url("../../../../assets/images/main/title_pro_long.png") no-repeat;
  366. color: #00FFFF;
  367. margin: 20px 0 0 15px;
  368. position: relative;
  369. }
  370. .c1_title::after{
  371. content: '公务车终端概况';
  372. position: absolute;
  373. left: 20px;
  374. top: -5px;
  375. }
  376. .carInstall{
  377. width: 403px;
  378. height: 74px;
  379. margin-right: 3px;
  380. background: url("../../../../assets/zhang/pubicCar/gradientBox.png") no-repeat;
  381. color: #CFF8FF;
  382. font-size: 20px;
  383. display: flex;
  384. align-items: center;
  385. position: relative;
  386. }
  387. .carInstall::after{
  388. content: '';
  389. position: absolute;
  390. }
  391. .c1_title_half{
  392. width: 100%;
  393. height: 36px;
  394. background: url("../../../../assets/images/main/title_pro.png") no-repeat;
  395. color: #00FFFF;
  396. margin: 20px 0 0 15px;
  397. position: relative;
  398. }
  399. </style>