index.vue 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. <template>
  2. <div class="in_box">
  3. <el-row>
  4. <el-col :span="18">
  5. <div class="in_left">
  6. <div class="toReviewed">
  7. <el-table v-loading="loading" style="max-height: 695px;overflow-y: auto;" :data="infoList">
  8. <el-table-column label="项目名称" align="center" prop="name" />
  9. <el-table-column label="时间" align="center" prop="createTime" />
  10. <el-table-column label="操作" width="280" align="center" class-name="small-padding fixed-width">
  11. <template slot-scope="scope">
  12. <el-button size="mini" type="text" style="background: #F5A40C;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:query']"
  13. @click="dec_btn(scope.row)">查看详情</el-button>
  14. <!-- <el-button size="mini" type="text" style="background: #0669B2;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
  15. @click="infoBtn(scope.row)" v-if="scope.row.projectStatus%2==1">提交</el-button>
  16. <el-button size="mini" type="text" style="background: #DE1939;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
  17. @click="bh_brn(scope.row)">销号</el-button> -->
  18. </template>
  19. </el-table-column>
  20. </el-table>
  21. </div>
  22. <div class="exl_box">
  23. <div class="exl_title">
  24. <span></span>
  25. <el-date-picker v-model="lb_value" style="width: 100px;" type="year" value-format="yyyy" @change="picher_fn"
  26. placeholder="选择年">
  27. </el-date-picker>
  28. </div>
  29. <echarts :ehaersList="ehaersList" :echartData="echartData" v-if="flags"></echarts>
  30. </div>
  31. </div>
  32. </el-col>
  33. <el-col :span="6" style="padding: 24px 12px 24px 0 ;">
  34. <div class="in_right">
  35. <div class="rig_title">
  36. "两区"及乡镇
  37. </div>
  38. <div class="rig_tab_top">
  39. <div class="rig_tab_item">
  40. 单位名称
  41. </div>
  42. <div class="rig_tab_item">
  43. 入规目标
  44. </div>
  45. <div class="rig_tab_item">
  46. 已完成任务
  47. </div>
  48. </div>
  49. <div class="rig_cont">
  50. <div class="rig_items" v-for="(item,index) in unitList" :key="index">
  51. <span>{{item.deptName}}</span>
  52. <span>{{item.targetSigningNum == '0.0000'?item.targetSigningNum:0}}个</span>
  53. <span>{{item.successMission?item.successMission:0}}个</span>
  54. </div>
  55. </div>
  56. </div>
  57. <div class="rig_tab_top" style="background-color: #1C84C6;">
  58. <div class="rig_title">
  59. 市直榜单
  60. </div>
  61. <div class="rig_tab_top">
  62. <div class="rig_tab_item">
  63. 单位名称
  64. </div>
  65. <div class="rig_tab_item">
  66. 实际到资
  67. </div>
  68. <div class="rig_tab_item">
  69. 投产项目
  70. </div>
  71. </div>
  72. <div class="rig_cont">
  73. <div class="rig_items" v-for="(item,index) in cityList" :key="index">
  74. <span>{{item.deptName}}</span>
  75. <span>{{item.payForMoney != '0.0000'?item.payForMoney:0}}万元</span>
  76. <span>{{item.successMission?item.successMission:0}}个</span>
  77. </div>
  78. </div>
  79. </div>
  80. </el-col>
  81. </el-row>
  82. </div>
  83. </template>
  84. <script>
  85. import echarts from '@/components/Echarts/index.vue'
  86. import {
  87. getStatisticst,
  88. delProject,
  89. toBeReviewedList,
  90. setExamine,
  91. setReject,
  92. setInvestmentList,
  93. getProjectInvestmentEharts, setInvestmentCityList
  94. } from '@/api/statistical'
  95. export default {
  96. data() {
  97. return {
  98. infoList: [],
  99. zjList: [],
  100. ehaersList: {},
  101. echartData: {
  102. name: '投产项目个数柱状图',
  103. numName: '投产项目个数',
  104. numNameArr: ['投产项目个数']
  105. },
  106. loading: false,
  107. unitList: [],
  108. cityList: [],
  109. flags: false,
  110. lb_value: '2021', // 柱状图类别
  111. }
  112. },
  113. components: {
  114. echarts
  115. },
  116. mounted() {
  117. this.getList()
  118. this.bd_btn()
  119. this.eharts_fn()
  120. this.city_btn()
  121. },
  122. methods: {
  123. picher_fn() {
  124. this.eharts_fn()
  125. },
  126. eharts_fn(val) {
  127. getProjectInvestmentEharts({
  128. year: this.lb_value
  129. }).then(res => {
  130. this.ehaersList = res.data
  131. this.flags = true
  132. })
  133. },
  134. bd_btn() {
  135. setInvestmentList().then(res => {
  136. this.unitList = res.rows
  137. })
  138. },
  139. city_btn() {
  140. setInvestmentCityList().then(res => {
  141. this.cityList = res.rows
  142. })
  143. },
  144. dec_btn(row) {
  145. this.$router.push({
  146. path: '/management/row/index',
  147. query: {
  148. setid: row.id,
  149. setrd: row.projectStatus,
  150. tabIndex: 4,
  151. },
  152. })
  153. },
  154. bh_brn(scope) {
  155. const _this = this
  156. this.$confirm('是否确认销号', "提醒", {
  157. confirmButtonText: "确定",
  158. cancelButtonText: "取消",
  159. type: "warning"
  160. }).then(function() {
  161. delProject(scope.id).then(() => {
  162. _this.getList();
  163. _this.msgSuccess("提交成功");
  164. })
  165. })
  166. },
  167. infoBtn(scope) {
  168. const _this = this
  169. this.$confirm('是否确认提交申请', "提醒", {
  170. confirmButtonText: "确定",
  171. cancelButtonText: "取消",
  172. type: "warning"
  173. }).then(function() {
  174. setExamine({
  175. code: 1,
  176. bmProjectId: scope.id
  177. });
  178. }).then(() => {
  179. _this.getList();
  180. _this.msgSuccess("提交成功");
  181. })
  182. },
  183. getList() {
  184. getStatisticst('8,9').then(res => {
  185. this.infoList = res.rows
  186. })
  187. },
  188. }
  189. }
  190. </script>
  191. <style lang="scss" scoped>
  192. .rig_tab_top {
  193. display: flex;
  194. background: #6DCEF6;
  195. line-height: 36px;
  196. color: #fff;
  197. .rig_tab_item {
  198. font-size: 14px;
  199. flex: 1;
  200. text-align: center;
  201. overflow: hidden;
  202. text-overflow: ellipsis;
  203. white-space: nowrap;
  204. }
  205. }
  206. .rig_cont {
  207. border: 1px solid #CDCDCD;
  208. box-sizing: border-box;
  209. margin-bottom: 31px;
  210. max-height: 270px;
  211. overflow-y: auto;
  212. scrollbar-width: none;
  213. /* firefox */
  214. -ms-overflow-style: none;
  215. /* IE 10+ */
  216. &::-webkit-scrollbar {
  217. display: none;
  218. /* Chrome Safari */
  219. }
  220. .rig_items {
  221. line-height: 36px;
  222. color: #343434;
  223. font-size: 12px;
  224. display: flex;
  225. span {
  226. flex: 1;
  227. text-align: center;
  228. }
  229. }
  230. }
  231. .in_right {
  232. padding: 15px 15px 0;
  233. border: 1px solid #DADADA;
  234. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  235. .rig_title {
  236. color: #1C84C6;
  237. font-size: 18px;
  238. line-height: 36px;
  239. margin-bottom: 15px;
  240. }
  241. }
  242. .in_left {
  243. padding: 24px 20px 40px;
  244. .toReviewed {
  245. padding: 19px 16px;
  246. border: 1px solid #DADADA;
  247. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  248. margin-bottom: 38px;
  249. .rev_title {
  250. margin-bottom: 23px;
  251. }
  252. }
  253. .exl_box {
  254. border: 1px solid #DADADA;
  255. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  256. padding: 20px;
  257. box-sizing: border-box;
  258. .exl_title {
  259. display: flex;
  260. justify-content: space-between;
  261. span {
  262. color: #1C84C6;
  263. font-size: 18px;
  264. line-height: 36px;
  265. }
  266. }
  267. }
  268. }
  269. </style>