smart-tal-dashboard.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <style lang="less" scoped>
  2. @import './smart-tal-dashboard.less';
  3. </style>
  4. <template>
  5. <div id="smart-dashboard">
  6. <div class="Header">
  7. <Row type="flex" justify="center" align="middle">
  8. <Col :span="3">
  9. <img style="height: 20px;" src="../../../assets/mark.svg"/>
  10. </Col>
  11. <Col :span="8">
  12. <Icon size="20" type="md-pin" style="vertical-align: middle;color: #94998a" /><span class="smart-markD">{{ $t('breadcrumbs')}}</span>
  13. </Col>
  14. <Col :span="11">
  15. <Menu class="menu" mode="horizontal" theme="dark">
  16. <MenuItem name="1">
  17. <Icon type="ios-paper" />
  18. {{ $t('menu1')}}
  19. </MenuItem>
  20. <MenuItem name="2">
  21. <Icon type="ios-people" />
  22. {{ $t('menu2')}}
  23. </MenuItem>
  24. <MenuItem name="3">
  25. <Icon type="ios-people" />
  26. {{ $t('menu3')}}
  27. </MenuItem>
  28. <MenuItem name="4">
  29. <Icon type="ios-construct" />
  30. {{ $t('menu4')}}
  31. </MenuItem>
  32. </Menu>
  33. </Col>
  34. <Col :span="2" style="text-align: center;">
  35. <!-- <Icon style="font-size: 24px; color: #FAFAFA;" type="md-person" /> -->
  36. <img style="width: 35px;" src="@/assets/image/touxiang.png">
  37. </Col>
  38. </Row>
  39. </div>
  40. <div class="content">
  41. <div style="text-align: center;padding-top: 5px;height: 5%;">
  42. </div>
  43. <Row class="box" type="flex" justify="center">
  44. <Col :span="11" class="block-1">
  45. <div style="height: 100%;">
  46. <div class="block-border" style="height: 66%;position: relative;background-color: rgba(217, 217, 217, 0.14);">
  47. <!-- 边角设计 start-->
  48. <div class="image-border image-border-left-top" ></div>
  49. <div class="image-border image-border-right-top" ></div>
  50. <div class="image-border image-border-left-bottom" ></div>
  51. <div class="image-border image-border-lright-bottom" ></div>
  52. <!-- 边角设计 end-->
  53. <div style="height: 100%;">
  54. <Row type="flex" justify="center" align="middle" style="height: 25%;">
  55. <Col :span="4" style="text-align: center;">
  56. <span style="font-size: 1.25em;color: rgb(148, 153, 138)">收课总数</span>
  57. <h5 style="font-size: 2.5em;color: rgb(250, 250, 250);font-weight: 100;">7,732</h5>
  58. </Col>
  59. <Col :span="4" style="text-align: center;">
  60. <span style="font-size: 1.25em;color: rgb(148, 153, 138)">教师数</span>
  61. <h5 style="font-size: 2.5em;color: rgb(250, 250, 250);font-weight: 100;">108</h5>
  62. </Col>
  63. <Col :span="4" style="text-align: center;">
  64. <span style="font-size: 1.25em;color: rgb(148, 153, 138)">特级典藏数</span>
  65. <h5 style="font-size: 2.5em;color: rgb(250, 250, 250);font-weight: 100;">1,381</h5>
  66. </Col>
  67. <Col :span="4" style="text-align: center;">
  68. <span style="font-size: 1.25em;color: rgb(148, 153, 138)">高级典藏数</span>
  69. <h5 style="font-size: 2.5em;color: rgb(250, 250, 250);font-weight: 100;">2,569</h5>
  70. </Col>
  71. <Col :span="4" style="text-align: center;">
  72. <span style="font-size: 1.25em;color: rgb(148, 153, 138)">一级典藏数</span>
  73. <h5 style="font-size: 2.5em;color: rgb(250, 250, 250);font-weight: 100;">3,782</h5>
  74. </Col>
  75. </Row>
  76. <Row type="flex" justify="center" align="middle" style="height: 25%;">
  77. <Col :span="4" style="text-align: center;">
  78. <span style="font-size: 1.25em;color: rgb(148, 153, 138)">本日</span>
  79. <h5 style="font-size: 2.5em;color: rgb(250, 250, 250);font-weight: 100;">10</h5>
  80. </Col>
  81. <Col :span="4" style="text-align: center;">
  82. <span style="font-size: 1.25em;color: rgb(148, 153, 138)">近七日</span>
  83. <h5 style="font-size: 2.5em;color: rgb(250, 250, 250);font-weight: 100;">88</h5>
  84. </Col>
  85. <Col :span="4" style="text-align: center;">
  86. <span style="font-size: 1.25em;color: rgb(148, 153, 138)">近30日</span>
  87. <h5 style="font-size: 2.5em;color: rgb(250, 250, 250);font-weight: 100;">474</h5>
  88. </Col>
  89. <Col :span="4" style="text-align: center;">
  90. <span style="font-size: 1.25em;color: rgb(148, 153, 138)">本学期</span>
  91. <h5 style="font-size: 2.5em;color: rgb(250, 250, 250);font-weight: 100;">1,530</h5>
  92. </Col>
  93. </Row>
  94. <Row style="height: 50%">
  95. <Col :span="12" style="height: 100%;">
  96. <RingPie :tooltip="true" :title="'年级'" :pieData="[ {value:3482, name:'一年级'},{value:2137, name:'二年级'},{value:1302, name:'三年级'},{value:805, name:'四年级'},{value:6, name:'五年级'}]" :id="'ringpie1'"></RingPie>
  97. </Col>
  98. <Col :span="12" style="height: 100%;">
  99. <RingPie :tooltip="true" :title="'科目'" :pieData="[ {value:1958, name:'语文'},{value: 1396, name:'数学'},{value: 469, name:'英文'},{value: 206, name:'科学'},{value: 332, name:'艺术'},{value: 2087, name:'其他'}]" :id="'ringpie2'"></RingPie>
  100. </Col>
  101. </Row>
  102. </div>
  103. </div>
  104. <div style="height: 1.5%"></div>
  105. <div style="height: 30.5%;">
  106. <Row :gutter="16" type="flex" justify="space-between" align="middle" style="height: 100%;">
  107. <Col :span="12" style="height: 100%;">
  108. <div class="block-border" style="position: relative;background-color: rgba(217, 217, 217, 0.14);height: 100%;">
  109. <!-- 边角设计 start-->
  110. <div class="image-border image-border-left-top" ></div>
  111. <div class="image-border image-border-right-top" ></div>
  112. <div class="image-border image-border-left-bottom" ></div>
  113. <div class="image-border image-border-lright-bottom" ></div>
  114. <!-- 边角设计 end-->
  115. <Bubble style="padding-right: 16px;"
  116. :bubleData="[ [0,0,1564], [1,0, 404], [2,0, 436], [3,0, 579], [4,0, 467],[5,0, 32],
  117. [0,1,638], [1,1, 224], [2,1, 328], [3,1, 515], [4,1, 408],[5,1, 24],
  118. [0,2,394], [1,2, 169], [2,2, 199], [3,2, 241], [4,2, 286],[5,2, 13],
  119. [0,3,445], [1,3, 87], [2,3, 97], [3,3, 95], [4,3, 81],[5,3, 1],
  120. [0,4,1], [1,4, 0], [2,4, 0], [3,4, 0], [4,4, 4],[5,4, 0],]"
  121. :title="'科技互动指数关系图(年级)'"
  122. :id="'bubble1'"></Bubble>
  123. </div>
  124. </Col>
  125. <Col :span="12" style="height: 100%;">
  126. <div class="block-border" style="position: relative;background-color: rgba(217, 217, 217, 0.14);height: 100%;">
  127. <!-- 边角设计 start-->
  128. <div class="image-border image-border-left-top" ></div>
  129. <div class="image-border image-border-right-top" ></div>
  130. <div class="image-border image-border-left-bottom" ></div>
  131. <div class="image-border image-border-lright-bottom" ></div>
  132. <!-- 边角设计 end-->
  133. <Bubble style="padding-right: 16px;"
  134. :bubleData="[ [0,0,78], [1,0, 20], [2,0, 41], [3,0, 46], [4,0, 19],[5,0, 0],
  135. [0,1,190], [1,1, 0], [2,1, 0], [3,1, 0], [4,1, 0],[5,1, 0],
  136. [0,2,776], [1,2, 241], [2,2, 294], [3,2, 361], [4,2, 275],[5,2, 0],
  137. [0,3,249], [1,3, 53], [2,3, 38], [3,3, 57], [4,3, 66],[5,3, 0],
  138. [0,4,144], [1,4, 27], [2,4, 32], [3,4, 52], [4,4, 73],[5,4, 0],
  139. [0,5,57], [1,5, 20], [2,5, 44], [3,5, 54], [4,5, 30],[5,5, 0],
  140. [0,6,154], [1,6, 49], [2,6, 87], [3,6, 177], [4,6, 280],[5,6, 21],
  141. [0,7,586], [1,7, 160], [2,7, 195], [3,7, 224], [4,7, 218],[5,7, 13],
  142. [0,8,56], [1,8, 0], [2,8, 15], [3,8, 28], [4,8, 13],[5,8, 0],
  143. [0,9,592], [1,9, 271], [2,9, 279], [3,9, 369], [4,9, 202],[5,9, 11],
  144. ]"
  145. :title="'科技互动指数关系图(科目)'"
  146. :ylabel="['音乐', '软件测试', '语文', '英语', '美术', '科学', '班会', '数学', '开学课程', '其他']" :id="'bubble2'"></Bubble>
  147. </div>
  148. </Col>
  149. </Row>
  150. </div>
  151. </div>
  152. </Col>
  153. <Col :span="11" class="block-2">
  154. <!-- block-2 -->
  155. <div class="block-border" style="height: 38%;position: relative;background-color: rgba(217, 217, 217, 0.14);">
  156. <!-- 边角设计 start-->
  157. <div class="image-border image-border-left-top" ></div>
  158. <div class="image-border image-border-right-top" ></div>
  159. <div class="image-border image-border-left-bottom" ></div>
  160. <div class="image-border image-border-lright-bottom" ></div>
  161. <!-- 边角设计 end-->
  162. <div style="height: 100%;">
  163. <Row type="flex" justify="center" align="middle" style="height: 25%;">
  164. <Col :span="4" style="text-align: center;">
  165. <span style="font-size: 1.25em;color: rgb(148, 153, 138)">本日互动/教法</span>
  166. <h5 style="font-size: 2.3em;color: rgb(250, 250, 250);font-weight: 100;">33/50</h5>
  167. </Col>
  168. <Col :span="4" style="text-align: center;">
  169. <span style="font-size: 1.25em;color: rgb(148, 153, 138)">30日互动/教法</span>
  170. <h5 style="font-size: 2.3em;color: rgb(250, 250, 250);font-weight: 100;">46/47</h5>
  171. </Col>
  172. <Col :span="4" style="text-align: center;">
  173. <span style="font-size: 1.25em;color: rgb(148, 153, 138)">本学期互动/教法</span>
  174. <h5 style="font-size: 2.3em;color: rgb(250, 250, 250);font-weight: 100;">46/45</h5>
  175. </Col>
  176. <Col :span="4" style="text-align: center;">
  177. <span style="font-size: 1.25em;color: rgb(148, 153, 138)">所有互动/教法</span>
  178. <h5 style="font-size: 2.3em;color: rgb(250, 250, 250);font-weight: 100;">62/57</h5>
  179. </Col>
  180. </Row>
  181. <div style="height: 5%;"></div>
  182. <Row type="flex" justify="space-around" align="middle" style="height: 70%">
  183. <Col :span="11" style="height: 100%;">
  184. <InteractiveLine :id="'interactiveline1'"></InteractiveLine>
  185. </Col>
  186. <Col :span="11" style="height: 100%;">
  187. <BnteractiveBarLine :id="'BnteractiveBarLine1'"></BnteractiveBarLine>
  188. </Col>
  189. </Row>
  190. </div>
  191. </div>
  192. <div style="height: 1.5%"></div>
  193. <div class="block-border" style="height: 26.5%;position: relative;background-color: rgba(217, 217, 217, 0.14);">
  194. <!-- 边角设计 start-->
  195. <div class="image-border image-border-left-top" ></div>
  196. <div class="image-border image-border-right-top" ></div>
  197. <div class="image-border image-border-left-bottom" ></div>
  198. <div class="image-border image-border-lright-bottom" ></div>
  199. <!-- 边角设计 end-->
  200. <TechnologyBar :id="'234'"></TechnologyBar>
  201. </div>
  202. <div style="height: 1.5%"></div>
  203. <div style="height: 30.5%;">
  204. <Row :gutter="16" type="flex" justify="space-between" align="middle" style="height: 100%;">
  205. <Col :span="12" style="height: 100%;">
  206. <div class="block-border" style="position: relative;background-color: rgba(217, 217, 217, 0.14);height: 100%;">
  207. <!-- 边角设计 start-->
  208. <div class="image-border image-border-left-top" ></div>
  209. <div class="image-border image-border-right-top" ></div>
  210. <div class="image-border image-border-left-bottom" ></div>
  211. <div class="image-border image-border-lright-bottom" ></div>
  212. <!-- 边角设计 end-->
  213. <Bubble style="padding-right: 16px;"
  214. :bubleData="[ [0,0,2039], [1,0, 380], [2,0, 479], [3,0, 365], [4,0, 212],[5,0,7],
  215. [0,1,965], [1,1, 298], [2,1, 357], [3,1, 328], [4,1, 181],[5,1, 8],
  216. [0,2,581], [1,2, 158], [2,2, 219], [3,2, 197], [4,2, 138],[5,2, 9],
  217. [0,3,589], [1,3, 73], [2,3, 70], [3,3, 42], [4,3, 31],[5,3, 0],
  218. [0,4,1], [1,4, 0], [2,4, 0], [3,4, 1], [4,4, 4],[5,4, 4],]"
  219. :title="'教法应用指数关系图(年级)'"
  220. :id="'bubble3'"></Bubble>
  221. </div>
  222. </Col>
  223. <Col :span="12" style="height: 100%;">
  224. <div class="block-border" style="position: relative;background-color: rgba(217, 217, 217, 0.14);height: 100%;">
  225. <!-- 边角设计 start-->
  226. <div class="image-border image-border-left-top" ></div>
  227. <div class="image-border image-border-right-top" ></div>
  228. <div class="image-border image-border-left-bottom" ></div>
  229. <div class="image-border image-border-lright-bottom" ></div>
  230. <!-- 边角设计 end-->
  231. <Bubble style="padding-right: 16px;"
  232. :bubleData="[ [0,0,121], [1,0, 36], [2,0, 29], [3,0, 13], [4,0, 5],[5,0, 0],
  233. [0,1,189], [1,1, 2], [2,1, 0], [3,1, 1], [4,1, 0],[5,1, 0],
  234. [0,2,1160], [1,2, 258], [2,2, 277], [3,2, 194], [4,2, 65],[5,2, 4],
  235. [0,3,345], [1,3, 36], [2,3, 50], [3,3, 29], [4,3, 9],[5,3, 0],
  236. [0,4,195], [1,4, 44], [2,4, 49], [3,4, 38], [4,4, 6],[5,4, 0],
  237. [0,5,96], [1,5, 26], [2,5, 35], [3,5, 38], [4,5, 11],[5,5, 0],
  238. [0,6,302], [1,6, 127], [2,6, 145], [3,6, 138], [4,6, 55],[5,6, 1],
  239. [0,7,837], [1,7, 173], [2,7, 174], [3,7, 156], [4,7, 56],[5,7, 0],
  240. [0,8,82], [1,8, 13], [2,8, 11], [3,8, 9], [4,8, 5],[5,8, 0],
  241. [0,9,638], [1,9, 156], [2,9, 307], [3,9, 275], [4,9, 330],[5,9, 18],
  242. ]"
  243. :title="'教法应用指数关系图(科目)'"
  244. :ylabel="['音乐', '软件测试', '语文', '英语', '美术', '科学', '班会', '数学', '开学课程', '其他']" :id="'bubble4'"></Bubble>
  245. </div>
  246. </Col>
  247. </Row>
  248. </div>
  249. </Col>
  250. </Row>
  251. </div>
  252. </div>
  253. </template>
  254. <script>
  255. import InteractiveLine from '@/components/graph/interactiveLine'
  256. import BnteractiveBarLine from '@/components/graph/interactiveBarLine'
  257. import TechnologyBar from '@/components/graph/technologyBar'
  258. import RingPie from '@/components/graph/ringPie'
  259. import Bubble from '@/components/graph/bubble'
  260. export default {
  261. name:'smart-dashboard',
  262. data () {
  263. return {
  264. }
  265. },
  266. components:{
  267. InteractiveLine,
  268. TechnologyBar,
  269. Bubble,
  270. RingPie,
  271. BnteractiveBarLine,
  272. },
  273. methods:{
  274. }
  275. }
  276. </script>