chart.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <view style="margin-top: 80rpx;">
  3. <view class="font-senventy-two">
  4. 基础信息
  5. </view>
  6. <view class="square" @click="gotochart('/pages/chart/chartList')">
  7. <image src="/static/icon/project.png" mode="" class="icon"></image>
  8. <view class="font-thirty-six">
  9. 工程管理
  10. </view>
  11. </view>
  12. <view class="font-senventy-two">
  13. 统计信息
  14. </view>
  15. <view class="font-fifty-six SourceHanSansCN choose" @click="gotochart('/pages/chart/chartDetail?type=examineArea')">
  16. 小区合格率
  17. </view>
  18. <view class="font-fifty-six SourceHanSansCN choose" @click="gotochart('/pages/chart/chartDetail?type=ExamineWorker')">
  19. 职工合格率
  20. </view>
  21. <view class="font-fifty-six SourceHanSansCN choose" @click="gotochart('/pages/chart/chartDetail?type=getExamineServe')">
  22. 小区服务
  23. </view>
  24. <view class="font-fifty-six SourceHanSansCN choose" @click="gotochart('/pages/chart/chartDetail?type=getExaminePipeType')">
  25. 管材类别设计
  26. </view>
  27. <view class="font-fifty-six SourceHanSansCN choose" @click="gotochart('/pages/chart/chartDetail?type=getExaminePipeLength')">
  28. 管材长度
  29. </view>
  30. <view class="font-fifty-six SourceHanSansCN choose" @click="gotochart('/pages/chart/chartDetail?type=getExamineValveType')">
  31. 自闭阀类别
  32. </view>
  33. <view class="font-fifty-six SourceHanSansCN choose" @click="gotochart('/pages/chart/chartDetail?type=getAreaSum')">
  34. 小区汇总
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. import service from '@/api/index.js'
  40. export default {
  41. data() {
  42. return {
  43. // chartData: {
  44. // series: [{
  45. // data: []
  46. // }]
  47. // },
  48. }
  49. },
  50. onLoad() {
  51. // this.getList()
  52. // this.getExamineValveType()
  53. // this.getwork();
  54. },
  55. methods: {
  56. getList() {
  57. service.getList().then(res => {
  58. console.log('getList', res)
  59. })
  60. },
  61. gotochart(url) {
  62. uni.navigateTo({
  63. url,
  64. })
  65. },
  66. getExamineValveType() {
  67. service.getExamineValveType().then(res => {
  68. this.chartData.series[0].data = res
  69. console.log('getExamineValveType', res)
  70. })
  71. },
  72. // getOrderListFn() {
  73. // if (this.itemList.length < this.total) {
  74. // server.getOrderList(this.orderParams).then(response => {
  75. // this.orderParams.pageNum = response.current + 1
  76. // for (var i = 0; i < response.records.length; i++) {
  77. // this.itemList.push(response.records[i])
  78. // }
  79. // })
  80. // }
  81. // },
  82. }
  83. }
  84. </script>
  85. <style lang="scss" scoped>
  86. .choose {
  87. text-align: center;
  88. padding: 20rpx;
  89. margin: 30rpx;
  90. color: #FFFFFF;
  91. background: #43CEB1;
  92. border-radius: 64rpx;
  93. }
  94. .square{
  95. margin: 25rpx;
  96. .icon{
  97. margin-left: 22rpx;
  98. width: 100rpx;
  99. height: 100rpx;
  100. }
  101. }
  102. </style>