index.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <template>
  2. <div class="in_box">
  3. <el-row>
  4. <el-col :span="19">
  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:edit']"
  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="5" 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.targetInvestmentNum?item.targetInvestmentNum:0}}个</span>
  53. <span>{{item.successMission?item.successMission:0}}个</span>
  54. </div>
  55. </div>
  56. </div>
  57. </el-col>
  58. </el-row>
  59. </div>
  60. </template>
  61. <script>
  62. import echarts from '@/components/Echarts/index.vue'
  63. import {
  64. getStatisticst,
  65. delProject,
  66. toBeReviewedList,
  67. setExamine,
  68. setReject,
  69. setInvestmentList,
  70. getProjectInvestmentEharts
  71. } from '@/api/statistical'
  72. export default {
  73. data() {
  74. return {
  75. infoList: [],
  76. zjList: [],
  77. ehaersList: {},
  78. echartData: {
  79. name: '投产项目个数柱状图',
  80. numName: '投产项目个数',
  81. numNameArr: ['投产项目个数']
  82. },
  83. loading: false,
  84. unitList: [],
  85. flags: false,
  86. lb_value: '2021', // 柱状图类别
  87. }
  88. },
  89. components: {
  90. echarts
  91. },
  92. mounted() {
  93. this.getList()
  94. this.bd_btn()
  95. this.eharts_fn()
  96. },
  97. methods: {
  98. picher_fn() {
  99. this.eharts_fn()
  100. },
  101. eharts_fn(val) {
  102. getProjectInvestmentEharts({
  103. year: this.lb_value
  104. }).then(res => {
  105. this.ehaersList = res.data
  106. this.flags = true
  107. })
  108. },
  109. bd_btn() {
  110. console.log(222)
  111. setInvestmentList().then(res => {
  112. this.unitList = res.rows
  113. })
  114. },
  115. dec_btn(row) {
  116. this.$router.push({
  117. path: '/management/row/index',
  118. query: {
  119. setid: row.id,
  120. setrd: row.projectStatus,
  121. tabIndex: 4,
  122. },
  123. })
  124. },
  125. bh_brn(scope) {
  126. const _this = this
  127. this.$confirm('是否确认销号', "提醒", {
  128. confirmButtonText: "确定",
  129. cancelButtonText: "取消",
  130. type: "warning"
  131. }).then(function() {
  132. delProject(scope.id).then(() => {
  133. _this.getList();
  134. _this.msgSuccess("提交成功");
  135. })
  136. })
  137. },
  138. infoBtn(scope) {
  139. const _this = this
  140. this.$confirm('是否确认提交申请', "提醒", {
  141. confirmButtonText: "确定",
  142. cancelButtonText: "取消",
  143. type: "warning"
  144. }).then(function() {
  145. setExamine({
  146. code: 1,
  147. bmProjectId: scope.id
  148. });
  149. }).then(() => {
  150. _this.getList();
  151. _this.msgSuccess("提交成功");
  152. })
  153. },
  154. getList() {
  155. getStatisticst('8,9').then(res => {
  156. this.infoList = res.rows
  157. })
  158. },
  159. }
  160. }
  161. </script>
  162. <style lang="scss" scoped>
  163. .rig_tab_top {
  164. display: flex;
  165. background: #6DCEF6;
  166. line-height: 36px;
  167. color: #fff;
  168. .rig_tab_item {
  169. font-size: 14px;
  170. flex: 1;
  171. text-align: center;
  172. }
  173. }
  174. .rig_cont {
  175. border: 1px solid #CDCDCD;
  176. box-sizing: border-box;
  177. margin-bottom: 31px;
  178. max-height: 270px;
  179. overflow-y: auto;
  180. scrollbar-width: none;
  181. /* firefox */
  182. -ms-overflow-style: none;
  183. /* IE 10+ */
  184. &::-webkit-scrollbar {
  185. display: none;
  186. /* Chrome Safari */
  187. }
  188. .rig_items {
  189. line-height: 36px;
  190. color: #343434;
  191. font-size: 12px;
  192. display: flex;
  193. span {
  194. flex: 1;
  195. text-align: center;
  196. }
  197. }
  198. }
  199. .in_right {
  200. padding: 15px 15px 0;
  201. border: 1px solid #DADADA;
  202. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  203. .rig_title {
  204. color: #1C84C6;
  205. font-size: 18px;
  206. line-height: 36px;
  207. margin-bottom: 15px;
  208. }
  209. }
  210. .in_left {
  211. padding: 24px 20px 40px;
  212. .toReviewed {
  213. padding: 19px 16px;
  214. border: 1px solid #DADADA;
  215. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  216. margin-bottom: 38px;
  217. .rev_title {
  218. margin-bottom: 23px;
  219. }
  220. }
  221. .exl_box {
  222. border: 1px solid #DADADA;
  223. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  224. padding: 20px;
  225. box-sizing: border-box;
  226. .exl_title {
  227. display: flex;
  228. justify-content: space-between;
  229. span {
  230. color: #1C84C6;
  231. font-size: 18px;
  232. line-height: 36px;
  233. }
  234. }
  235. }
  236. }
  237. </style>