index.vue 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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 :echartData="echartData" :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. echartData: {
  94. name: '到资金额柱状图',
  95. numName: '到资金额',
  96. numNameArr: ['到资金额']
  97. },
  98. zjList: [],
  99. ehaersList: {},
  100. loading: false,
  101. unitList: [],
  102. flags: false,
  103. lb_value: '2021', // 柱状图类别
  104. }
  105. },
  106. components: {
  107. echarts
  108. },
  109. mounted() {
  110. this.getList()
  111. this.bd_btn()
  112. this.zj_btn()
  113. this.eharts_fn()
  114. },
  115. methods: {
  116. picher_fn() {
  117. this.eharts_fn()
  118. },
  119. eharts_fn(val) {
  120. getIndexEharts({
  121. year: this.lb_value
  122. }).then(res => {
  123. this.ehaersList = res.data
  124. this.flags = true
  125. })
  126. },
  127. zj_btn() {
  128. getUnitAmountList().then(res => {
  129. this.zjList = res.rows
  130. })
  131. },
  132. bd_btn() {
  133. getUnitList().then(res =>{
  134. this.unitList = res.rows
  135. })
  136. },
  137. dec_btn(row){
  138. this.$router.push({
  139. path: '/management/row/index',
  140. query: {
  141. setid: row.id,
  142. setrd: row.projectStatus,
  143. },
  144. })
  145. },
  146. bh_brn(scope) {
  147. const _this = this
  148. this.$confirm('是否确认驳回审核', "提醒", {
  149. confirmButtonText: "确定",
  150. cancelButtonText: "取消",
  151. type: "warning"
  152. }).then(function() {
  153. return setReject({
  154. code: 2,
  155. bmProjectId: scrop.id
  156. });
  157. }).then(() => {
  158. _this.getList();
  159. _this.msgSuccess("提交成功");
  160. })
  161. },
  162. infoBtn(scope) {
  163. const _this = this
  164. this.$confirm('是否确认提交审核', "提醒", {
  165. confirmButtonText: "确定",
  166. cancelButtonText: "取消",
  167. type: "warning"
  168. }).then(function() {
  169. return setExamine({
  170. code: 1,
  171. bmProjectId: scrop.id
  172. });
  173. }).then(() => {
  174. _this.getList();
  175. _this.msgSuccess("提交成功");
  176. })
  177. },
  178. getList() {
  179. toBeReviewedList().then(res => {
  180. console.log(res)
  181. this.infoList = res.rows
  182. })
  183. },
  184. }
  185. }
  186. </script>
  187. <style lang="scss" scoped>
  188. .rig_tab_top{
  189. display: flex;
  190. background: #6DCEF6;
  191. line-height: 36px;
  192. color: #fff;
  193. .rig_tab_item{
  194. font-size: 14px;
  195. flex: 1;
  196. text-align: center;
  197. }
  198. }
  199. .rig_cont{
  200. border: 1px solid #CDCDCD;
  201. box-sizing: border-box;
  202. margin-bottom: 31px;
  203. max-height: 270px;
  204. overflow-y: auto;
  205. scrollbar-width: none;
  206. /* firefox */
  207. -ms-overflow-style: none;
  208. /* IE 10+ */
  209. &::-webkit-scrollbar {
  210. display: none;
  211. /* Chrome Safari */
  212. }
  213. .rig_items{
  214. line-height: 36px;
  215. color: #343434;
  216. font-size: 12px;
  217. display: flex;
  218. span{
  219. flex: 1;
  220. text-align: center;
  221. }
  222. }
  223. }
  224. .in_right{
  225. padding: 15px 15px 0;
  226. border: 1px solid #DADADA;
  227. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  228. .rig_title{
  229. color: #1C84C6;
  230. font-size: 18px;
  231. line-height: 36px;
  232. margin-bottom: 15px;
  233. }
  234. }
  235. .in_left {
  236. padding: 24px 20px 40px;
  237. .toReviewed {
  238. padding: 19px 16px;
  239. border: 1px solid #DADADA;
  240. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  241. margin-bottom: 38px;
  242. .rev_title {
  243. margin-bottom: 23px;
  244. }
  245. }
  246. .exl_box {
  247. border: 1px solid #DADADA;
  248. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  249. padding: 20px;
  250. box-sizing: border-box;
  251. .exl_title {
  252. display: flex;
  253. justify-content: space-between;
  254. span {
  255. color: #1C84C6;
  256. font-size: 18px;
  257. line-height: 36px;
  258. }
  259. }
  260. }
  261. }
  262. </style>