qsfinish.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <template>
  2. <view class="qsfinbox">
  3. <view class="pfixed">
  4. <tab-list :tablist='tablist' :tabidx='tabidx' :height='90' @getCheck="goCheck"></tab-list>
  5. </view>
  6. <view class="zhanline"></view>
  7. <!-- 全市投资 -->
  8. <view class="countbox" v-if="tabidx==0">
  9. <view class="flexc mb16">
  10. <view class="titline"></view>
  11. <view class="f17 c34 fw">全市投资金额</view>
  12. </view>
  13. <view class="qsfchara">
  14. <qiun-data-charts type="ring" :chartData="chartDataa" :opts='optsa'></qiun-data-charts>
  15. <!-- 图例 -->
  16. <!-- <view class="qsfcharat">
  17. <view class="qsfchta">
  18. <view class="qsfcir"></view>
  19. <view class="tit">梅城镇</view>
  20. </view>
  21. </view> -->
  22. </view>
  23. <!-- 折线图 -->
  24. <view class="qsfcharb">
  25. <qiun-data-charts type="line" :chartData="chartDatab" :opts='optsb' :ontouch="true"></qiun-data-charts>
  26. <!-- 图例 -->
  27. <!-- <view class="qsfcharat">
  28. </view> -->
  29. </view>
  30. </view>
  31. <!-- 全市投资完成情况 -->
  32. <view class="tablebox" v-if="tabidx==1">
  33. <table border='0' class='table'>
  34. <thead class='thead'>
  35. <tr class="tr_one">
  36. <!-- 351 -->
  37. <th style="width: 210rpx;" >汇报单位</th>
  38. <th style="width: 170rpx;">项目总投资 (万元)</th>
  39. <th style="width: 160rpx;">年度计划投资 (万元)</th>
  40. <th style="width: 160rpx;">纳统项目完成投资 (万元)</th>
  41. <!-- <th style="width: 115rpx;">累计投资(万元)</th>
  42. <th style="width: 100rpx;">投资占比(%)</th> -->
  43. </tr>
  44. </thead>
  45. <tbody class="tbody">
  46. <tr v-for="(item,index) in list" :key="index">
  47. <td style="width: 210rpx;" >{{item.name}}</td>
  48. <td style="width: 170rpx;">{{item.a}}10</td>
  49. <td style="width: 160rpx;" >{{item.b}}10</td>
  50. <td style="width: 160rpx;" >{{item.c}}10</td>
  51. </tr>
  52. <div class="shax" v-if="list.length>0">
  53. {{wtdt}}
  54. </div>
  55. <div class="shax" v-else><span>暂无数据</span></div>
  56. </tbody>
  57. </table>
  58. </view>
  59. </view>
  60. </template>
  61. <script>
  62. import tabList from "@/components/toptab/tab.vue"
  63. export default{
  64. components:{tabList},
  65. data(){
  66. return{
  67. tabidx:0,
  68. tablist:[{tit:'全市投资金额',val:0},{tit:'全市投资完成情况',val:1}],
  69. chartDataa:{
  70. "categories": [],
  71. series: [
  72. {
  73. data: [{"name":"梅城镇","value":50,labelShow:false},{"name":"王河镇","value":30,labelShow:false},{"name":"官庄镇","value":20,labelShow:false},{"name":"黄泥镇","value":18,labelShow:false},{"name":"黄柏镇","value":50,labelShow:false},{"name":"黄铺镇","value":30,labelShow:false},{"name":"水吼镇","value":20,labelShow:false},{"name":"余井镇","value":18,labelShow:false},{"name":"梅城镇","value":50,labelShow:false},{"name":"王河镇","value":30,labelShow:false},{"name":"官庄镇","value":20,labelShow:false},{"name":"黄泥镇","value":18,labelShow:false},{"name":"黄柏镇","value":50,labelShow:false},{"name":"黄铺镇","value":30,labelShow:false},{"name":"水吼镇","value":20,labelShow:false},{"name":"余井镇","value":18,labelShow:false},]
  74. }
  75. ],
  76. "enableScroll":false
  77. },
  78. optsa: {
  79. padding:[0,0,0,0],
  80. title: {
  81. name: "315415.61",
  82. fontSize: 24,
  83. color: "#FC3500"
  84. },
  85. legend:{
  86. // show: false,
  87. position: "bottom",
  88. padding: 0,
  89. margin: 0,
  90. },
  91. // 副标题
  92. subtitle: {name: "累计投资(万元)",fontSize: 13,color: "#666666"},
  93. extra: {
  94. ring:{border: false,ringWidth: 20,},
  95. }
  96. },
  97. optsb:{
  98. enableScroll: true,
  99. xAxis:{
  100. itemCount: 5,
  101. },
  102. legend: {
  103. show: true,
  104. position: "top",
  105. float: "center",
  106. padding: 15,
  107. margin:15,
  108. },
  109. },
  110. chartDatab:{
  111. categories: ["梅城镇","王河镇","天柱山镇","黄泥镇","黄柏镇","黄铺镇"],
  112. color:["#FE3155","#419CFF"],
  113. series: [
  114. {
  115. name: "年度投资(万元)",
  116. data: [35,8,25,37,4,20],
  117. color:'#FE3155',
  118. },
  119. {
  120. name: "累计投资(万元)",
  121. data: [70,40,65,100,44,68],
  122. color:'#419CFF',
  123. },
  124. ],
  125. },
  126. list:[{'name':'单位名称',}],
  127. wtdt:''
  128. }
  129. },
  130. methods:{
  131. goCheck(e){
  132. this.tabidx=e
  133. console.log(1)
  134. }
  135. }
  136. }
  137. </script>
  138. <style lang="scss" scoped>
  139. .qsfinbox{padding-top: 90rpx;}
  140. .countbox{padding: 40rpx 24rpx;
  141. .titline{width: 8rpx;height: 46rpx;background: #FC7300;margin-right: 20rpx;}
  142. .ct_num{display: flex;flex-wrap: wrap;
  143. .ct_numa{width: 33.33%;display: flex;padding-right: 10rpx;min-height: 160rpx;padding-bottom: 40rpx;box-sizing: border-box;
  144. .count_cir{width: 20rpx;height: 20rpx;border-radius: 10rpx;margin-right: 14rpx;flex:0 0 auto;margin-top: 6rpx;
  145. &.bg1{background: #3C9BCD;}
  146. &.bg2{background: #10D235;}
  147. &.bg3{background: #D388E4;;}
  148. &.bg4{background: #FF5061;}
  149. &.bg5{background: #FF7821;}
  150. &.bg6{background: #2529EA;}
  151. &.bg7{background: #50A0FF;}
  152. &.bg8{background: #60CB6D;}
  153. &.bg9{background: #E76677;}
  154. &.bg10{background: #F69702;}
  155. &.bg11{background: #975FEF;}
  156. }
  157. .ct_numb{display: flex;flex: 1;flex-direction: column;justify-content: space-between;
  158. .tit{font-size: 26rpx;font-weight: bold;color: #343434;margin-bottom: 20rpx;}
  159. }
  160. }
  161. }
  162. .qsfchara{width: 100%;height: 900rpx;
  163. .qsfcharat{display: flex;flex-wrap: wrap;
  164. .qsfchta{display: flex;align-items: center;width: 25%;margin-bottom: 16rpx;padding-right: 6rpx;box-sizing: border-box;}
  165. .qsfcir{width: 16rpx;height: 16rpx;background: #0041B7;border-radius: 50%;margin-right: 16rpx;}
  166. .tit{font-size: 30rpx;font-weight: 500;color: #343434;}
  167. }
  168. }
  169. .qsfcharb{width: 100%;}
  170. }
  171. // 表格
  172. .tablebox{padding:10rpx 24rpx 0;flex: 1;display: flex;flex-direction: column;overflow: hidden;
  173. th{padding:10rpx 8rpx;box-sizing: border-box;font-size: 28rpx;color: #343434;font-weight: bold;text-align: center;}
  174. }
  175. .table{border-spacing: 0;width: 700rpx;display: flex;flex-direction: column;overflow: hidden;margin: 0 auto;}
  176. .thead{width: 100%;background-color: #F1F1F1;flex: 0 0 auto;border-radius: 10rpx;
  177. }
  178. .tbody {flex: 1;overflow: auto;padding-bottom: 120rpx;}
  179. .tbody td{height: 120rpx;box-sizing: border-box;padding: 24rpx 14rpx;font-weight: 500;color: #343434;font-size: 28rpx;border-bottom: 2rpx solid #CDCDCD;text-align: center;word-break: break-all;}
  180. </style>