report.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <template>
  2. <view>
  3. <web-view :src="url" class="map"></web-view>
  4. <view class="charts-box">
  5. <qiun-data-charts
  6. @getIndex='getdata'
  7. type="ring"
  8. :opts='ringoptions'
  9. :chartData="Ring"
  10. background= "#24262D"
  11. />
  12. <qiun-data-charts
  13. @getIndex='getdata'
  14. type="ring"
  15. :opts='ringoptions1'
  16. :chartData="Ring1"
  17. background= "#24262D"
  18. />
  19. <qiun-data-charts
  20. @getIndex='getdata'
  21. type="column"
  22. :chartData="chartData"
  23. background="none"
  24. />
  25. </view>
  26. </view>
  27. <!-- <web-view v-if="flag" :src="url"></web-view> -->
  28. <!-- <iframe v-else :src="url" width="340" height="360" allowfullscreen allow="autoplay; fullscreen; microphone;"></iframe> -->
  29. </template>
  30. <script>
  31. export default {
  32. data() {
  33. return {
  34. // url:"https://datav.aliyuncs.com/share/235518097ffd673bc1eb05011b9a02b6",
  35. url: 'http://192.168.1.116:8011',
  36. flag: true,
  37. chartData:{
  38.  categories:['2016','2017','2018','2019','2020','2021'],
  39.  series:[{
  40.   name:'目标值',
  41.   data:[35, 36, 31, 33, 13, 34]
  42.  },{
  43.   name:'完成量',
  44.   data:[18, 27, 21, 24, 6, 28]
  45.  }]
  46. },
  47. ringoptions:{
  48. "type": "ring",
  49. "canvasId": "",
  50. "canvas2d": false,
  51. "background": "#24262D",
  52. "borderColor":'#24262D',
  53. "animation": true,
  54. "timing": "easeOut",
  55. "duration": 1000,
  56. "color": [
  57. '#75d1f4', '#3a3b40'
  58. ],
  59. "rotate": false,
  60. "errorReload": true,
  61. "fontSize": 13,
  62. "fontColor": "#666666",
  63. "enableScroll": false,
  64. "touchMoveLimit": 60,
  65. "enableMarkLine": false,
  66. "dataLabel": true,
  67. "dataPointShape": false,
  68. "dataPointShapeType": "solid",
  69. "tapLegend": true,
  70. "legend": {
  71. "show": true,
  72. "position": "top",
  73. "padding": 5,
  74. "margin": 5,
  75. "backgroundColor": "rgba(0,0,0,0)",
  76. "borderColor": "rgba(0,0,0,0)",
  77. "borderWidth": 0,
  78. "fontSize": 13,
  79. "fontColor": "#fff",
  80. "lineHeight": 25,
  81. "hiddenColor": "#CECECE",
  82. "itemGap": 10
  83. },
  84. "title": {
  85. "name": "总量合计",
  86. "fontSize": 15,
  87. "color": "#fff",
  88. },
  89. "subtitle": {
  90. "name": "70%",
  91. "fontSize": 25,
  92. "color": "#fff",
  93. },
  94. "extra": {
  95. "ring": {
  96. "ringWidth": 20,
  97. "centerColor": "#24262D",
  98. "activeOpacity": 0.5,
  99. "activeRadius": 10,
  100. "offsetAngle": 0,
  101. "customRadius": 0,
  102. "labelWidth": 15,
  103. "border": true,
  104. "borderWidth": 3,
  105. "borderColor": "#24262D",
  106. "linearType": "none"
  107. },
  108. }
  109. },
  110. ringoptions1:{
  111. "type": "ring",
  112. "canvasId": "",
  113. "canvas2d": false,
  114. "background": "#24262D",
  115. "borderColor":'#24262D',
  116. "animation": true,
  117. "timing": "easeOut",
  118. "duration": 1000,
  119. "color": [
  120. '#247ef4', '#3a3b40'
  121. ],
  122. "rotate": false,
  123. "errorReload": true,
  124. "fontSize": 13,
  125. "fontColor": "#666666",
  126. "enableScroll": false,
  127. "touchMoveLimit": 60,
  128. "enableMarkLine": false,
  129. "dataLabel": true,
  130. "dataPointShape": false,
  131. "dataPointShapeType": "solid",
  132. "tapLegend": true,
  133. "legend": {
  134. "show": true,
  135. "position": "top",
  136. "padding": 5,
  137. "margin": 5,
  138. "backgroundColor": "rgba(0,0,0,0)",
  139. "borderColor": "rgba(0,0,0,0)",
  140. "borderWidth": 0,
  141. "fontSize": 13,
  142. "fontColor": "#fff",
  143. "lineHeight": 25,
  144. "hiddenColor": "#CECECE",
  145. "itemGap": 10
  146. },
  147. "title": {
  148. "name": "总量合计",
  149. "fontSize": 15,
  150. "color": "#fff",
  151. },
  152. "subtitle": {
  153. "name": "70%",
  154. "fontSize": 25,
  155. "color": "#fff",
  156. },
  157. "extra": {
  158. "ring": {
  159. "ringWidth": 20,
  160. "centerColor": "#24262D",
  161. "activeOpacity": 0.5,
  162. "activeRadius": 10,
  163. "offsetAngle": 0,
  164. "customRadius": 0,
  165. "labelWidth": 15,
  166. "border": true,
  167. "borderWidth": 3,
  168. "borderColor": "#24262D",
  169. "linearType": "none"
  170. },
  171. }
  172. },
  173. "Ring":{
  174. "series":[{
  175. "name":"已完成量",
  176. "data":50
  177. },{
  178. "name":"未完成量",
  179. "data":30
  180. }]
  181. },
  182. "Ring1":{
  183. "series":[{
  184. "name":"已开票",
  185. "data":50
  186. },{
  187. "name":"未开票",
  188. "data":30
  189. }]
  190. }
  191. }
  192. },
  193. onLoad: function(option) {
  194. if (option.url) {
  195. this.url = option.url;
  196. uni.setNavigationBarTitle({
  197. title: "库点监控"
  198. })
  199. this.flag = false
  200. }
  201. },
  202. methods: {}
  203. }
  204. </script>
  205. <style>
  206. /* .map {
  207. position:relative;
  208. height: 400px;
  209. } */
  210. .charts-box{
  211. position:relative;
  212. top:70vh;
  213. }
  214. </style>