index.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <template>
  2. <view class="content-box">
  3. <view class="uni-list title-date-box">
  4. <view class="uni-list-cell">
  5. <view class="uni-list-cell-db display-flex-start">
  6. <picker mode="date" fields="year" @change="bindDateChange" class="picker-class">
  7. <view class="uni-input display-between items-center">{{dateYear}}年<image src="../../static/arrow_down.svg" mode="aspectFit"></image></view>
  8. </picker>
  9. <picker :range="arrayMonth" :value="dateMonth" @change="bindDateMonthChange" class="picker-class">
  10. <view class="uni-input display-between items-center" style="color: #707070;">{{dateMonth}}<image src="../../static/calendar_icon.svg" mode="aspectFit"></image></view>
  11. </picker>
  12. </view>
  13. </view>
  14. </view>
  15. <qiun-title-bar title="规上工业企业"/>
  16. <view class="block-box display-wrap items-center" style="justify-content: space-evenly;height: 340rpx;">
  17. <view class="block-box-content" style="background-color: #77AFCA;" @click="goScale('规上工业企业')">
  18. <view>规上工业企业</view>
  19. <view>21</view>
  20. </view>
  21. <view class="block-box-content" style="background-color: #A5C9D3;">
  22. <view>工业增加值增速</view>
  23. <view>同比增长3.2%</view>
  24. </view>
  25. <view class="block-box-content" style="background-color: #8D7E95;" @click="goScale('先进制造业企业')">
  26. <view>先进制造业</view>
  27. <view>6</view>
  28. </view>
  29. <view class="block-box-content" style="background-color: #C1ABBC;">
  30. <view>先进制造业总产值</view>
  31. <view>同比增长17%</view>
  32. </view>
  33. </view>
  34. <qiun-title-bar title="2021年规上工业任务目标"/>
  35. <view class="charts-box">
  36. <qiun-data-charts type="bar" background="#4C4C4C" :opts="{xAxis:{max:40},extra:{bar:{linearType:'custom',barBorderCircle:true}}}" :chartData="chartData"/>
  37. </view>
  38. <qiun-title-bar title="先进制造业产值(亿元)"/>
  39. <view class="charts-box">
  40. <qiun-data-charts type="column" :chartData="chartData1" background="#4C4C4C"/>
  41. </view>
  42. <qiun-title-bar title="工业产值"/>
  43. <view class="charts-box">
  44. <qiun-data-charts type="demotype" :opts="{fontColor:'#666',xAxis:{boundaryGap:'justify'}}" :chartData="chartData2"/>
  45. </view>
  46. <qiun-title-bar title="工业投资" style="border-top:10rpx solid #f2f2f2" />
  47. <view class="block-box display-around items-center">
  48. <view class="block-box-content" style="width:30%;background-color:#F2CD4F;" @click="goProject(0)">
  49. <view>在库项目</view>
  50. <view>18</view>
  51. </view>
  52. <view class="block-box-content" style="width:30%;background-color: #9776F2;" @click="goProject(1)">
  53. <view>技改项目</view>
  54. <view>2</view>
  55. </view>
  56. <view class="block-box-content" style="width:30%;background-color: #51A9E3;" @click="goProject(2)">
  57. <view>在谈项目</view>
  58. <view>2</view>
  59. </view>
  60. </view>
  61. <qiun-title-bar title="2021年工业投资任务目标"/>
  62. <view class="charts-box">
  63. <qiun-data-charts type="bar" background="#4C4C4C" :opts="{xAxis:{max:40},extra:{bar:{linearType:'custom',barBorderCircle:true}}}" :chartData="chartData"/>
  64. </view>
  65. <qiun-title-bar title="工业投资额"/>
  66. <view class="charts-box">
  67. <qiun-data-charts type="demotype" :opts="{fontColor:'#666',xAxis:{boundaryGap:'justify'}}" :chartData="chartData2"/>
  68. </view>
  69. <qiun-title-bar title="重点项目" style="border-top:10rpx solid #f2f2f2" />
  70. <view class="block-box display-around items-center">
  71. <view class="block-box-content" style="width:30%;background-color:#F2CD4F;" @click="goImportant(0)">
  72. <view>重点项目</view>
  73. <view>18</view>
  74. </view>
  75. <view class="block-box-content" style="width:30%;background-color: #9776F2;" @click="goImportant(1)">
  76. <view>新建/续建</view>
  77. <view>13/8</view>
  78. </view>
  79. <view class="block-box-content" style="width:30%;background-color: #51A9E3;">
  80. <view>总投资(万元)</view>
  81. <view>2256457</view>
  82. </view>
  83. </view>
  84. <qiun-title-bar title="重点项目级别分布"/>
  85. <view class="charts-box">
  86. <qiun-data-charts type="bar" background="#4C4C4C" :opts="{xAxis:{max:40},extra:{bar:{linearType:'custom',barBorderCircle:true}}}" :chartData="chartData"/>
  87. </view>
  88. <qiun-title-bar title="工业投资额"/>
  89. <view class="charts-box">
  90. <qiun-data-charts type="demotype" :opts="{fontColor:'#666',xAxis:{boundaryGap:'justify'}}" :chartData="chartData2"/>
  91. </view>
  92. <qiun-title-bar title="科技创新指标" style="border-top:10rpx solid #f2f2f2;margin-bottom: 10rpx;" />
  93. <view class="block-box display-around items-center">
  94. <view class="block-box-content" style="width:47%;color: #555;" @click="goScale('科技创新企业')">
  95. <view>国家高新技术企业</view>
  96. <view>8/<text style="color: red;">5</text></view>
  97. </view>
  98. <view class="block-box-content" style="width:47%;color: #555;" @click="goScale('科技创新企业')">
  99. <view>科技型中小企业</view>
  100. <view>70/<text style="color: red;">50</text></view>
  101. </view>
  102. </view>
  103. <view class="display-around-column items-center" style="height: 620rpx; margin: 10rpx 0 10rpx 0;">
  104. <view class="block-box-content" style="width:97%;color: #555;">
  105. <view>累计研发投入规上工业企业</view>
  106. <view>7/<text style="color: red;">6</text></view>
  107. </view>
  108. <view class="block-box-content" style="width:97%;color: #555;">
  109. <view>累计研发投入规上服务业企业</view>
  110. <view>2/<text style="color: red;">1</text></view>
  111. </view>
  112. <view class="block-box-content" style="width:97%;color: #555;">
  113. <view>累计研发投入占主营业务5%的企业</view>
  114. <view>4/<text style="color: red;">4</text></view>
  115. </view>
  116. <view class="block-box-content" style="width:97%;color: #555;">
  117. <view>累计研发投入500万以上的企业</view>
  118. <view>2/<text style="color: red;">2</text></view>
  119. </view>
  120. </view>
  121. <qiun-title-bar title="各新城指标排序" style="border-top:10rpx solid #f2f2f2" />
  122. <view class="uni-list title-date-box" style="border: none;">
  123. <view class="uni-list-cell">
  124. <view class="uni-list-cell-db display-flex-start">
  125. <picker :range="arrayNewCity" :value="sortSelect" @change="bindDateCityChange" class="picker-class" style="width: 65%;">
  126. <view class="uni-input display-between items-center" style="color: #707070;">{{sortSelect}}<image src="../../static/arrow_down.svg" mode="aspectFit"></image></view>
  127. </picker>
  128. </view>
  129. </view>
  130. </view>
  131. <qiun-title-bar title="各新城规上工业企业数量"/>
  132. <view class="charts-box">
  133. <qiun-data-charts type="column" :chartData="chartData1" background="#4C4C4C"/>
  134. </view>
  135. <qiun-title-bar title="各新城规上工业企业数量占比"/>
  136. <view class="charts-box" style="margin-bottom: 20rpx;">
  137. <qiun-data-charts type="pie" :chartData="chartDataPie" background="#4C4C4C"/>
  138. </view>
  139. </view>
  140. </template>
  141. <script>
  142. export default {
  143. data() {
  144. return{
  145. dateYear:new Date().getFullYear(),
  146. dateMonth:new Date().getMonth() + 1 + '月',
  147. arrayMonth:["1月", "2月","3月", "4月","5月", "6月","7月", "8月","9月", "10月","11月", "12月"],
  148. arrayNewCity:['规上工业企业数量','工业产值及增速','工业增加值增速','工业投资及增速','工业技改及增速'],
  149. sortSelect:'规上工业企业数量',
  150. chartData:{
  151. categories: ["a", "b"],
  152. series: [
  153. {name: "目标任务",data: [35, 36]},
  154. {name: "目前已完成", data: [18, 27]
  155. }]
  156. },
  157. chartData1:{
  158. "categories": ["大志药业", "东航赛峰", "豆福源", "东方航食", "空港航食", "黎明发电"],
  159. "series": [
  160. {
  161. "name": "先进制造业产值(亿元)",
  162. "data": [1.02,.75,.83,.37,.58,.53],
  163. }
  164. ]
  165. },
  166. chartData2:{
  167. "categories": ["1月", "2月","3月", "4月","5月", "6月","7月", "8月","9月", "10月","11月", "12月"],
  168. "series": [
  169. {name: "本年度",data: [15,10,16,23,21,36,25,7,18,29,33,12]},
  170. {name: "上年度", data: [5,8,11,18,16,31,20,2,13,25,28,11]}
  171. ]
  172. },
  173. chartDataPie:{
  174. "categories": ["空港", "沣东", "秦汉", "泾河", "沣西"],
  175. "series": [
  176. {
  177. "data": [
  178. {
  179. "name": "空港",
  180. "value": 50
  181. },
  182. {
  183. "name": "沣东",
  184. "value": 30
  185. },
  186. {
  187. "name": "秦汉",
  188. "value": 20
  189. },
  190. {
  191. "name": "泾河",
  192. "value": 18
  193. },
  194. {
  195. "name": "沣西",
  196. "value": 8
  197. }
  198. ]
  199. }
  200. ]
  201. }
  202. }
  203. },
  204. methods:{
  205. bindDateChange(e){
  206. this.dateYear = e.target.value
  207. },
  208. bindDateMonthChange(e){
  209. this.dateMonth = this.arrayMonth[e.target.value]
  210. },
  211. bindDateCityChange(){
  212. this.sortSelect = this.arrayNewCity[e.target.value]
  213. },
  214. goScale(title){
  215. uni.navigateTo({
  216. url:'./largeScale/index?title=' + title
  217. })
  218. },
  219. goProject(idx){
  220. uni.navigateTo({
  221. url:'./projectPage/index?idx=' + idx
  222. })
  223. },
  224. goImportant(idx){
  225. uni.navigateTo({
  226. url:'./importantPage/index?idx=' + idx
  227. })
  228. }
  229. }
  230. };
  231. </script>
  232. <style>
  233. .content-box {
  234. display: flex;
  235. flex-direction: column;
  236. flex: 1;
  237. }
  238. .title-date-box {
  239. margin-top: 10px;
  240. border-bottom: 1px solid #d7d7d7;
  241. padding-bottom: 10px;
  242. }
  243. .charts-box-title{
  244. width: 100%;
  245. height: 100rpx;
  246. }
  247. .charts-box {
  248. width: 100%;
  249. height: 600rpx;
  250. }
  251. .picker-class {
  252. border-radius: 10rpx;
  253. padding: 10rpx;
  254. width: 180rpx;
  255. font-size: 28rpx;
  256. background: #f5f5f5;
  257. margin-left: 20rpx;
  258. }
  259. .picker-class image {
  260. width: 26rpx;
  261. height: 26rpx;
  262. }
  263. .block-box-content {
  264. display: flex;
  265. flex-direction: column;
  266. justify-content: center;
  267. align-items: center;
  268. font-size: 30rpx;
  269. border-radius: 10rpx;
  270. width: 45%;
  271. height: 140rpx;
  272. color: #fff;
  273. background-color:#F2F2F2;
  274. }
  275. </style>