index.vue 6.9 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. <div class="rev_title">
  8. 待审核项目
  9. </div>
  10. <el-table v-loading="loading" :data="infoList">
  11. <el-table-column label="项目名称" align="center" prop="name" />
  12. <el-table-column label="当前状态" align="center" prop="dictLabel" />
  13. <el-table-column label="时间" align="center" prop="createTime" />
  14. <el-table-column label="操作" width="280" align="center" class-name="small-padding fixed-width">
  15. <template slot-scope="scope">
  16. <el-button size="mini" type="text" style="background: #F5A40C;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']" @click="dec_btn(scope.row)">查看详情</el-button>
  17. <el-button size="mini" type="text" style="background: #DE1939;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
  18. @click="infoBtn(scope.row)">确认审核</el-button>
  19. <el-button size="mini" type="text" style="background: #1C84C6;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']" @click="bh_brn(scope.row)">驳回</el-button>
  20. </template>
  21. </el-table-column>
  22. </el-table>
  23. </div>
  24. <div class="exl_box">
  25. <div class="exl_title">
  26. <span>招资引资项目到资金额</span>
  27. <el-date-picker
  28. v-model="lb_value"
  29. style="width: 100px;"
  30. type="year"
  31. value-format="yyyy"
  32. @change="picher_fn"
  33. placeholder="选择年">
  34. </el-date-picker>
  35. </div>
  36. <echarts :ehaersList="ehaersList" v-if="flags"></echarts>
  37. </div>
  38. </div>
  39. </el-col>
  40. <el-col :span="5" style="padding: 24px 12px 24px 0 ;">
  41. <div class="in_right">
  42. <div class="rig_title">
  43. 单位榜单
  44. </div>
  45. <div class="rig_tab_top">
  46. <div class="rig_tab_item">
  47. 单位名称
  48. </div>
  49. <div class="rig_tab_item">
  50. 目标任务
  51. </div>
  52. <div class="rig_tab_item">
  53. 已完成任务
  54. </div>
  55. </div>
  56. <div class="rig_cont">
  57. <div class="rig_items" v-for="(item,index) in unitList" :key="index">
  58. <span>{{item.deptName}}</span>
  59. <span>{{item.targetInvestmentNum?item.targetInvestmentNum:0}}个</span>
  60. <span>{{item.successMission?item.successMission:0}}个</span>
  61. </div>
  62. </div>
  63. <div class="rig_tab_top" style="background-color: #1C84C6;">
  64. <div class="rig_tab_item">
  65. 单位名称
  66. </div>
  67. <div class="rig_tab_item">
  68. 目标到资
  69. </div>
  70. <div class="rig_tab_item">
  71. 实际到资
  72. </div>
  73. </div>
  74. <div class="rig_cont">
  75. <div class="rig_items" v-for="(item,index) in zjList" :key="index">
  76. <span>{{item.deptName}}</span>
  77. <span>{{item.targetArrivalAmount}}万</span>
  78. <span>{{item.payForMoney}}万</span>
  79. </div>
  80. </div>
  81. </div>
  82. </el-col>
  83. </el-row>
  84. </div>
  85. </template>
  86. <script>
  87. import echarts from '@/components/Echarts/index.vue'
  88. import {toBeReviewedList,setExamine,setReject,getUnitList,getUnitAmountList,getIndexEharts} from '@/api/index.js'
  89. export default {
  90. data() {
  91. return {
  92. infoList: [],
  93. zjList: [],
  94. ehaersList: {},
  95. loading: false,
  96. unitList: [],
  97. flags: false,
  98. lb_value: '2021', // 柱状图类别
  99. }
  100. },
  101. components: {
  102. echarts
  103. },
  104. mounted() {
  105. this.getList()
  106. this.bd_btn()
  107. this.zj_btn()
  108. this.zht_fn()
  109. this.eharts_fn()
  110. },
  111. methods: {
  112. picher_fn() {
  113. this.eharts_fn()
  114. },
  115. eharts_fn(val) {
  116. getIndexEharts({
  117. year: this.lb_value
  118. }).then(res => {
  119. this.ehaersList = res.data
  120. this.flags = true
  121. })
  122. },
  123. zht_fn() {
  124. },
  125. zj_btn() {
  126. getUnitAmountList().then(res => {
  127. this.zjList = res.rows
  128. })
  129. },
  130. bd_btn() {
  131. getUnitList().then(res =>{
  132. this.unitList = res.rows
  133. })
  134. },
  135. dec_btn(){
  136. },
  137. bh_brn(scope) {
  138. this.$confirm('是否确认驳回审核', "提醒", {
  139. confirmButtonText: "确定",
  140. cancelButtonText: "取消",
  141. type: "warning"
  142. }).then(function() {
  143. return setReject({
  144. code: 2,
  145. bmProjectId: scrop.id
  146. });
  147. }).then(() => {
  148. this.getList();
  149. this.msgSuccess("提交成功");
  150. })
  151. },
  152. infoBtn(scope) {
  153. this.$confirm('是否确认提交审核', "提醒", {
  154. confirmButtonText: "确定",
  155. cancelButtonText: "取消",
  156. type: "warning"
  157. }).then(function() {
  158. return setExamine({
  159. code: 1,
  160. bmProjectId: scrop.id
  161. });
  162. }).then(() => {
  163. this.getList();
  164. this.msgSuccess("提交成功");
  165. })
  166. },
  167. getList() {
  168. toBeReviewedList().then(res => {
  169. console.log(res)
  170. this.infoList = res.rows
  171. })
  172. },
  173. }
  174. }
  175. </script>
  176. <style lang="scss" scoped>
  177. .rig_tab_top{
  178. display: flex;
  179. background: #6DCEF6;
  180. line-height: 36px;
  181. color: #fff;
  182. .rig_tab_item{
  183. font-size: 14px;
  184. flex: 1;
  185. text-align: center;
  186. }
  187. }
  188. .rig_cont{
  189. border: 1px solid #CDCDCD;
  190. box-sizing: border-box;
  191. margin-bottom: 31px;
  192. max-height: 270px;
  193. overflow-y: auto;
  194. .rig_items{
  195. line-height: 36px;
  196. color: #343434;
  197. font-size: 12px;
  198. display: flex;
  199. span{
  200. flex: 1;
  201. text-align: center;
  202. }
  203. }
  204. }
  205. .in_right{
  206. padding: 15px 15px 0;
  207. border: 1px solid #DADADA;
  208. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  209. .rig_title{
  210. color: #1C84C6;
  211. font-size: 18px;
  212. line-height: 36px;
  213. margin-bottom: 15px;
  214. }
  215. }
  216. .in_left {
  217. padding: 24px 20px 40px;
  218. .toReviewed {
  219. padding: 19px 16px;
  220. border: 1px solid #DADADA;
  221. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  222. margin-bottom: 38px;
  223. .rev_title {
  224. margin-bottom: 23px;
  225. }
  226. }
  227. .exl_box {
  228. border: 1px solid #DADADA;
  229. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  230. padding: 20px;
  231. box-sizing: border-box;
  232. .exl_title {
  233. display: flex;
  234. justify-content: space-between;
  235. span {
  236. color: #1C84C6;
  237. font-size: 18px;
  238. line-height: 36px;
  239. }
  240. }
  241. }
  242. }
  243. </style>