当前位置:   article > 正文

vue可视化大屏datav组件库(代码篇)_dv-full-screen-container

dv-full-screen-container
  1. <template>
  2. <div id="content">
  3. <dv-full-screen-container class="demo1" style="height: 880px; width: 1558px; margin-left: 0px;">
  4. <dv-border-box-11 title="云端展示" class="demo2">
  5. <dv-loading v-if="loading===true ? true:false">Loading...</dv-loading>
  6. <div v-if="loading === false ? true : false">
  7. <dv-decoration-1 class="dv-decoration-1" style="width:300px;height:80px;" />
  8. <dv-decoration-2 class="dv-decoration-2" :reverse="true" style="width:3px;height:680px;" />
  9. <dv-decoration-2 class="dv-decoration-2-reverse" :reverse="true" style="width:5px;height:680px;" />
  10. <dv-decoration-5 class="dv-decoration-5" dur="6" style="width:300px;height:40px;" />"
  11. <dv-decoration-6 class="dv-decoration-6" style="width:300px;height:30px;" />
  12. <dv-decoration-9 class="dv-decoration-9 " style="width:200px;height:200px;">
  13. 50%
  14. </dv-decoration-9>
  15. <dv-decoration-8 class="dv-decoration-8" style="width:300px;height:50px;" />
  16. <dv-decoration-8 class="dv-decoration-8-reverse" :reverse="true" style="width:300px;height:50px;" />
  17. <dv-decoration-10 class="dv-decoration-10" style="width:96%;height:5px;" />
  18. <dv-decoration-11 class="dv-decoration-11" style="width:200px;height:60px; color: #fff;">大数据平台
  19. </dv-decoration-11>
  20. <dv-decoration-12 class="dv-decoration-12" style="width:130px;height:130px;" />
  21. <dv-active-ring-chart class="dv-active-ring-chart" :config="config"
  22. style="width:210px;height:210px" />
  23. <dv-capsule-chart class="dv-capsule-chart" :config="config" style="width:400px;height:300px" />
  24. <dv-conical-column-chart class="dv-conical-column-chart" :config="config"
  25. style="width:400px;height:200px;" />
  26. <dv-water-level-pond class="dv-water-level-pond" :config="config4"
  27. style="width:150px;height:200px" />
  28. <dv-scroll-board class="dv-scroll-board" :config="config1" style="width:450px;height:250px" />
  29. <dv-scroll-ranking-board class="dv-scroll-ranking-board" :config="config"
  30. style="width:450px;height:300px" />
  31. <dv-percent-pond class="dv-percent-pond" :config="config2" style="width:200px;height:100px;" />
  32. </div>
  33. </dv-border-box-11>
  34. </dv-full-screen-container>
  35. </div>
  36. </template>
  37. <script>
  38. import Charts from '@jiaminghi/charts'
  39. export default {
  40. name: 'main',
  41. data() {
  42. return {
  43. loading: true,
  44. config: {
  45. radius: '80%',
  46. activeRadius: '90%',
  47. data: [
  48. {
  49. name: '周口',
  50. value: 55
  51. },
  52. {
  53. name: '南阳',
  54. value: 120
  55. },
  56. {
  57. name: '西峡',
  58. value: 78
  59. },
  60. {
  61. name: '驻马店',
  62. value: 66
  63. },
  64. {
  65. name: '新乡',
  66. value: 80
  67. }
  68. ],
  69. digitalFlopStyle: {
  70. fontSize: 20
  71. },
  72. showOriginValue: true,
  73. colors: ['#e062ae', '#fb7293', '#e690d1', '#32c5e9', '#96bfff'],
  74. unit: '空气质量',
  75. showValue: true
  76. },
  77. config1: {
  78. header: ['昨日访问人数', '今日人数', '访问量'],
  79. data: [
  80. ['3000', '3000', '3000'],
  81. ['1616', '41646', '3000'],
  82. ['6464', '243434', '6464'],
  83. ['46466', '64646', '6464'],
  84. ['46464', '464646', '464646'],
  85. ['464646', '464646', '46464'],
  86. ['4646', '464646', '644646'],
  87. ['464646', '646446', '464646'],
  88. ['46446', '46464', '464464'],
  89. ['4646', '6446', '64464']
  90. ],
  91. carousel: 'page',
  92. waitTime: 3000,
  93. },
  94. config2: {
  95. value: 66,
  96. borderWidth: 5,
  97. borderRadius: 10,
  98. borderGap: 5,
  99. lineDash: [10, 2],
  100. localGradient: true
  101. },
  102. config4: {
  103. data: [66, 45],
  104. shape: 'roundRect'
  105. }
  106. }
  107. },
  108. methods: {
  109. showview() {
  110. setTimeout(this.setloading, 3000)
  111. },
  112. setloading(){
  113. this.loading=false
  114. },
  115. data() {
  116. const option1 = {
  117. title: {
  118. text: '周销售额趋势'
  119. },
  120. xAxis: {
  121. name: '第一周',
  122. data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
  123. },
  124. yAxis: {
  125. name: '销售额',
  126. data: 'value'
  127. },
  128. series: [
  129. {
  130. data: [1200, 2230, 1900, 2100, 3500, 4200, 3985],
  131. type: 'line'
  132. }
  133. ]
  134. }
  135. const option2 = {
  136. title: {
  137. text: '周销售额趋势'
  138. },
  139. xAxis: {
  140. name: '第二周',
  141. data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
  142. },
  143. yAxis: {
  144. name: '销售额',
  145. data: 'value'
  146. },
  147. series: [
  148. {
  149. data: [2339, 1899, 2118, 1790, 3265, 4465, 3996],
  150. type: 'line'
  151. }
  152. ]
  153. }
  154. const container = document.getElementById('container')
  155. const myChart = new Charts(container)
  156. myChart.setOption({
  157. title: 'My Chart',
  158. option1,
  159. option2
  160. })
  161. }
  162. },
  163. mounted() {
  164. this.showview()
  165. }
  166. }
  167. </script>
  168. <style lang="less" scoped>
  169. .demo1 {
  170. color: rgb(18, 128, 77);
  171. font-size: 30px;
  172. font-weight: 1000;
  173. padding: 0;
  174. background-color: rgb(14, 14, 14);
  175. width: 100%;
  176. height: 100%;
  177. }
  178. .demo2 {
  179. display: flex;
  180. position: absolute;
  181. background-image: url('../image/3.jpeg');
  182. background-repeat: no-repeat;
  183. background-size: cover;
  184. -moz-background-size: 100% 100%;
  185. left: 0;
  186. top: 0;
  187. width: 100%;
  188. height: 100%;
  189. .dv-decoration-1 {
  190. position: absolute;
  191. padding: 0;
  192. margin: 1px;
  193. left: 40%;
  194. top: 60%;
  195. }
  196. .dv-decoration-2 {
  197. position: absolute;
  198. padding: 0;
  199. margin: 1px;
  200. left: 33%;
  201. top: 10%;
  202. }
  203. .dv-decoration-2-reverse{
  204. position: absolute;
  205. padding: 0;
  206. margin: 1px;
  207. left: 66%;
  208. top: 10%;
  209. }
  210. .dv-decoration-5 {
  211. position: absolute;
  212. padding: 0;
  213. margin: 1px;
  214. left: 40.3%;
  215. top: 6%;
  216. }
  217. .dv-decoration-6 {
  218. position: absolute;
  219. padding: 0;
  220. margin: 1px;
  221. left: 40.3%;
  222. top: 45%;
  223. }
  224. .dv-decoration-9 {
  225. position: absolute;
  226. padding: 0;
  227. margin: 1px;
  228. left: 5%;
  229. top: 6%;
  230. }
  231. .dv-decoration-8 {
  232. position: absolute;
  233. padding: 0;
  234. margin: 1px;
  235. left: 1%;
  236. top: 90%;
  237. }
  238. .dv-decoration-8-reverse {
  239. position: absolute;
  240. padding: 0;
  241. margin: 1px;
  242. left: 79.5%;
  243. top: 90%;
  244. }
  245. .dv-decoration-10 {
  246. position: absolute;
  247. padding: 0;
  248. margin: 1px;
  249. left: 2%;
  250. top: 96%;
  251. }
  252. .dv-decoration-11 {
  253. position: absolute;
  254. padding: 0;
  255. margin: 1px;
  256. left: 43%;
  257. top: 50%;
  258. }
  259. .dv-decoration-12 {
  260. position: absolute;
  261. padding: 0;
  262. margin: 1px;
  263. left: 85%;
  264. top: 7%;
  265. }
  266. .dv-active-ring-chart {
  267. position: absolute;
  268. padding: 0;
  269. margin: 1px;
  270. left: 4%;
  271. top: 31%;
  272. }
  273. .dv-capsule-chart {
  274. position: absolute;
  275. padding: 0;
  276. margin: 1px;
  277. left: 5%;
  278. top: 57%;
  279. }
  280. .dv-conical-column-chart {
  281. font-size: 20px !important;
  282. position: absolute;
  283. padding: 0;
  284. margin: 1px;
  285. left: 36%;
  286. top: 65%;
  287. }
  288. .dv-scroll-board {
  289. font-size: 20px !important;
  290. position: absolute;
  291. padding: 0;
  292. margin: 1px;
  293. left: 69%;
  294. top: 23%;
  295. opacity: 0.8;
  296. }
  297. .dv-scroll-ranking-board {
  298. font-size: 20px !important;
  299. position: absolute;
  300. padding: 0;
  301. margin: 1px;
  302. left: 69%;
  303. top: 55%;
  304. opacity: 0.8;
  305. }
  306. .dv-percent-pond {
  307. font-size: 20px !important;
  308. position: absolute;
  309. padding: 0;
  310. margin: 1px;
  311. left: 69%;
  312. top: 9%;
  313. opacity: 0.8;
  314. }
  315. .dv-water-level-pond {
  316. font-size: 20px !important;
  317. position: absolute;
  318. padding: 0;
  319. margin: 1px;
  320. left: 20%;
  321. top: 31%;
  322. opacity: 0.8;
  323. }
  324. }
  325. </style>

1.想复制随意哈但是可能是小白才会需要,懂一点的都看不上哈哈哈哈哈不说了继续努力

复制觉得有用记得点个赞(爱你~)

1.页面加载

 2.加载完成

 任重道远加油

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/107365
推荐阅读
相关标签
  

闽ICP备14008679号