index.vue 6.6 KB

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