You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

BrainAnalysis.vue 3.4 kB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <div style="width: 100%;">
  3. <div id="pro_main">
  4. <div style="margin-top: 10px;">
  5. <b class="pro_item">云脑分析</b> <span class="update_time">数据更新时间:</span> <span
  6. style="font-size: 12px;">{{lastUpdatedTime}}&nbsp/&nbsp从有记录起开始统计</span>
  7. </div>
  8. <bar-label :width="'95%'" :height="'500px'"></bar-label>
  9. <div style="margin-top: 20px;">
  10. <span class="sta_iterm">统计周期:</span>
  11. <button type="button" class='btnLast' id="all" v-bind:class="{colorChange:7==dynamic}"
  12. @click="resetPage(),getAllProList('all',7)">所有</button>
  13. <span style="float:right; margin-right: 20px;">
  14. <div style="display:inline-block;margin-left: 40px; ">
  15. <a class="el-icon-download" v-if="tableData!=''"
  16. :href="'/api/v1/cloudbrainboard/downloadAll'"></a>
  17. <i class="el-icon-download" v-else="tableData=''" href="#"
  18. style="color:rgba(187, 187, 187, 100);" @click='popMark()'></i>
  19. <!-- <span ><a id = "download_file" :href= "'../api/v1/projectboard/downloadAll'" >下载报告</a> </span> -->
  20. <span>
  21. <a id="download_file" v-if="tableData!=''"
  22. :href="'/api/v1/cloudbrainboard/downloadAll'">下载报告</a>
  23. <a id="download_file" v-else="tableData=''" href="#" style="color:rgba(187, 187, 187, 100);"
  24. @click='popMark()'>下载报告</a>
  25. </span>
  26. </div>
  27. </span>
  28. </div>
  29. </div>
  30. </div>
  31. </template>
  32. <script>
  33. // import barLabel from './basic/barLabel.vue';
  34. const { AppSubUrl, StaticUrlPrefix, csrf } = window.config;
  35. import { export2Excel } from '../excel/util.js'
  36. export default {
  37. name: 'ProAnalysis',
  38. components: {
  39. // barLabel,
  40. },
  41. methods: {
  42. popMark() {
  43. alert("数据为空时,不能下载!")
  44. },
  45. exportData() {
  46. // this.getOneProList(this.pro_id,'all',true,7)
  47. // this.getOneProList(this.pro_id,'all',false,7)
  48. // this.fileName()
  49. if (this.tableDataID != '') {
  50. this.currentPage = 1
  51. var saveFileName = this.getFileName()
  52. export2Excel(this.columns, this.tableDataID, saveFileName)
  53. } else {
  54. alert("数据为空时,不能下载!")
  55. }
  56. },
  57. },
  58. }
  59. </script>
  60. <style scoped>
  61. .pro_item {
  62. font-size: 16px;
  63. color: rgba(16, 16, 16, 100);
  64. font-family: SourceHanSansSC-bold;
  65. }
  66. .update_time {
  67. line-height: 17px;
  68. font-size: 12px;
  69. color: rgba(187, 187, 187, 100);
  70. margin-left: 10px;
  71. }
  72. .btnLast {
  73. line-height: 1.5;
  74. margin: -3.5px;
  75. border: 1px solid rgba(22, 132, 252, 100);
  76. /* border-right: none; */
  77. background: #FFFF;
  78. color: #1684FC;
  79. width: 60px;
  80. height: 30px;
  81. border-radius: 0px 4px 4px 0px;
  82. }
  83. </style>