xmproject.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <view class="qsfinbox">
  3. <view class="zhanline"></view>
  4. <!-- 全市投资 -->
  5. <view class="countbox">
  6. <!-- 筛选 -->
  7. <!-- :start="startDate" :end="endDate" -->
  8. <!-- <view class="alldata flexc">
  9. <picker class="flexc" :value="alldate" @change="bindDateChange" :fields="fields">
  10. <view class="alldatain f15 cofe f500" >{{alldate||timetxt}}</view>
  11. </picker>
  12. <image :src="upimg"></image>
  13. </view> -->
  14. <!-- 折线图 -->
  15. <view class="qsfcharb">
  16. <qiun-data-charts type="line" :chartData="chartDatab" :opts='optsb' :ontouch="true"></qiun-data-charts>
  17. </view>
  18. </view>
  19. <!-- 项目产业类型进展列表 -->
  20. <view class="countbox">
  21. <view class="flexc mb16">
  22. <view class="titline"></view>
  23. <view class="f17 c34 fw">项目产业类型进展列表</view>
  24. </view>
  25. <view class="tablebox">
  26. <table border='0' class='table'>
  27. <thead class='thead'>
  28. <tr class="tr_one">
  29. <th style="width: 300rpx;" >产业类型</th>
  30. <th style="width: 200rpx;">年度计划投资(万元)</th>
  31. <th style="width: 200rpx;">纳统项目完成投资(万元)</th>
  32. </tr>
  33. </thead>
  34. <tbody class="tbody">
  35. <tr v-for="(item,index) in list" :key="index">
  36. <td style="width: 300rpx;" >{{item.name}}</td>
  37. <td style="width: 200rpx;" class='co1'>{{item.a}}10</td>
  38. <td style="width: 200rpx;" class='co2'>{{item.b}}10</td>
  39. </tr>
  40. <div class="shax" v-if="list.length>0">
  41. {{wtdt}}
  42. </div>
  43. <div class="shax" v-else><span>暂无数据</span></div>
  44. </tbody>
  45. </table>
  46. </view>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. export default{
  52. data(){
  53. return{
  54. tabidx:0,
  55. alldate:'',
  56. timetxt:'全部',
  57. upimg:require("@/static/images/index/up.png"),
  58. tablist:[{tit:'全市投资金额',val:0},{tit:'全市投资完成情况',val:1}],
  59. chartDataa:{
  60. "categories": [],
  61. series: [
  62. {
  63. data: [{"name":"环保问题","value":50,labelShow:false},{"name":"土地问题","value":30,labelShow:false},{"name":"其它问题","value":20,labelShow:false},{"name":"投资问题","value":18,labelShow:false},{"name":"土地问题","value":8,labelShow:false},{"name":"环保问题","value":50,labelShow:false},{"name":"土地问题","value":30,labelShow:false},{"name":"其它问题","value":20,labelShow:false},{"name":"投资问题","value":18,labelShow:false},{"name":"土地问题","value":8,labelShow:false},{"name":"环保问题","value":50,labelShow:false},{"name":"土地问题","value":30,labelShow:false},{"name":"其它问题","value":20,labelShow:false},{"name":"投资问题","value":18,labelShow:false},{"name":"土地问题","value":8,labelShow:false},]
  64. }
  65. ],
  66. "enableScroll":false
  67. },
  68. optsa: {
  69. padding:[0,0,0,0],
  70. title: {
  71. name: "315415.61",
  72. fontSize: 24,
  73. color: "#FC3500"
  74. },
  75. legend:{
  76. // show: false,
  77. position: "bottom",
  78. padding: 0,
  79. margin: 0,
  80. },
  81. // 副标题
  82. subtitle: {name: "累计投资(万元)",fontSize: 13,color: "#666666"},
  83. extra: {
  84. ring:{border: false,ringWidth: 20,},
  85. }
  86. },
  87. optsb:{
  88. enableScroll: true,
  89. xAxis:{
  90. itemCount: 5,
  91. // format:'overwarp',
  92. axisLabel: {
  93. interval: 0, // 设置数据间隔
  94. },
  95. },
  96. legend: {
  97. show: true,
  98. position: "top",
  99. float: "center",
  100. padding: 15,
  101. margin:15,
  102. },
  103. },
  104. chartDatab:{
  105. categories: ["建设新型","建设现代","建设文化","脱贫攻坚","生态环境保护修…","工业园"],
  106. color:["#FE3155","#419CFF"],
  107. series: [
  108. {
  109. name: "年度计划投资(万元)",
  110. data: [35,8,25,37,4,20],
  111. color:'#FE3155',
  112. },
  113. {
  114. name: "纳统项目完成投资(万元)",
  115. data: [70,40,65,100,44,68],
  116. color:'#419CFF',
  117. },
  118. ],
  119. },
  120. list:[{'name':'单位名称',}],
  121. wtdt:''
  122. }
  123. },
  124. onLoad() {
  125. },
  126. methods:{
  127. goCheck(){
  128. console.log(1)
  129. },
  130. bindDateChange(e){
  131. }
  132. }
  133. }
  134. </script>
  135. <style lang="scss" scoped>
  136. .countbox{padding: 40rpx 24rpx;
  137. .titline{width: 8rpx;height: 46rpx;background: #FC7300;margin-right: 20rpx;}
  138. .ct_num{display: flex;flex-wrap: wrap;
  139. .ct_numa{width: 33.33%;display: flex;padding-right: 10rpx;min-height: 160rpx;padding-bottom: 40rpx;box-sizing: border-box;
  140. .count_cir{width: 20rpx;height: 20rpx;border-radius: 10rpx;margin-right: 14rpx;flex:0 0 auto;margin-top: 6rpx;
  141. &.bg1{background: #3C9BCD;}
  142. &.bg2{background: #10D235;}
  143. &.bg3{background: #D388E4;;}
  144. &.bg4{background: #FF5061;}
  145. &.bg5{background: #FF7821;}
  146. &.bg6{background: #2529EA;}
  147. &.bg7{background: #50A0FF;}
  148. &.bg8{background: #60CB6D;}
  149. &.bg9{background: #E76677;}
  150. &.bg10{background: #F69702;}
  151. &.bg11{background: #975FEF;}
  152. }
  153. .ct_numb{display: flex;flex: 1;flex-direction: column;justify-content: space-between;
  154. .tit{font-size: 26rpx;font-weight: bold;color: #343434;margin-bottom: 20rpx;}
  155. }
  156. }
  157. }
  158. .qsfchara{width: 100%;height: 900rpx;
  159. .qsfcharat{display: flex;flex-wrap: wrap;
  160. .qsfchta{display: flex;align-items: center;width: 25%;margin-bottom: 16rpx;padding-right: 6rpx;box-sizing: border-box;}
  161. .qsfcir{width: 16rpx;height: 16rpx;background: #0041B7;border-radius: 50%;margin-right: 16rpx;}
  162. .tit{font-size: 30rpx;font-weight: 500;color: #343434;}
  163. }
  164. }
  165. .qsfcharb{width: 100%;}
  166. }
  167. // 表格
  168. .tablebox{padding:10rpx 0rpx 0;flex: 1;display: flex;flex-direction: column;overflow: hidden;
  169. th{padding:10rpx 8rpx;box-sizing: border-box;font-size: 28rpx;color: #343434;font-weight: bold;text-align: center;}
  170. }
  171. .table{border-spacing: 0;width: 700rpx;display: flex;flex-direction: column;overflow: hidden;margin: 0 auto;}
  172. .thead{width: 100%;background-color: #F1F1F1;flex: 0 0 auto;border-radius: 10rpx;
  173. }
  174. .tbody {flex: 1;overflow: auto;padding-bottom: 120rpx;}
  175. .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;
  176. &.co1{color: #FE3155;}
  177. &.co2{color:#1686F6;}
  178. }
  179. // 选择
  180. .alldata{padding: 20rpx;height: 80rpx;box-sizing: border-box;
  181. image{width: 22rpx;height: 16rpx;margin-left: 14rpx;}
  182. .alldatain{min-width: 124rpx;}
  183. }
  184. </style>