index.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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: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:remove']"
  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() {
  116. },
  117. bh_brn(scope) {
  118. this.$confirm('是否确认销号', "提醒", {
  119. confirmButtonText: "确定",
  120. cancelButtonText: "取消",
  121. type: "warning"
  122. }).then(function() {
  123. delProject(scope.id).then(() => {
  124. this.getList();
  125. this.msgSuccess("提交成功");
  126. })
  127. })
  128. },
  129. infoBtn(scope) {
  130. this.$confirm('是否确认提交申请', "提醒", {
  131. confirmButtonText: "确定",
  132. cancelButtonText: "取消",
  133. type: "warning"
  134. }).then(function() {
  135. setExamine({
  136. code: 1,
  137. bmProjectId: scope.id
  138. });
  139. }).then(() => {
  140. this.getList();
  141. this.msgSuccess("提交成功");
  142. })
  143. },
  144. getList() {
  145. getStatisticst('8,9').then(res => {
  146. this.infoList = res.rows
  147. })
  148. },
  149. }
  150. }
  151. </script>
  152. <style lang="scss" scoped>
  153. .rig_tab_top {
  154. display: flex;
  155. background: #6DCEF6;
  156. line-height: 36px;
  157. color: #fff;
  158. .rig_tab_item {
  159. font-size: 14px;
  160. flex: 1;
  161. text-align: center;
  162. }
  163. }
  164. .rig_cont {
  165. border: 1px solid #CDCDCD;
  166. box-sizing: border-box;
  167. margin-bottom: 31px;
  168. max-height: 270px;
  169. overflow-y: auto;
  170. scrollbar-width: none;
  171. /* firefox */
  172. -ms-overflow-style: none;
  173. /* IE 10+ */
  174. &::-webkit-scrollbar {
  175. display: none;
  176. /* Chrome Safari */
  177. }
  178. .rig_items {
  179. line-height: 36px;
  180. color: #343434;
  181. font-size: 12px;
  182. display: flex;
  183. span {
  184. flex: 1;
  185. text-align: center;
  186. }
  187. }
  188. }
  189. .in_right {
  190. padding: 15px 15px 0;
  191. border: 1px solid #DADADA;
  192. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  193. .rig_title {
  194. color: #1C84C6;
  195. font-size: 18px;
  196. line-height: 36px;
  197. margin-bottom: 15px;
  198. }
  199. }
  200. .in_left {
  201. padding: 24px 20px 40px;
  202. .toReviewed {
  203. padding: 19px 16px;
  204. border: 1px solid #DADADA;
  205. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  206. margin-bottom: 38px;
  207. .rev_title {
  208. margin-bottom: 23px;
  209. }
  210. }
  211. .exl_box {
  212. border: 1px solid #DADADA;
  213. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  214. padding: 20px;
  215. box-sizing: border-box;
  216. .exl_title {
  217. display: flex;
  218. justify-content: space-between;
  219. span {
  220. color: #1C84C6;
  221. font-size: 18px;
  222. line-height: 36px;
  223. }
  224. }
  225. }
  226. }
  227. </style>