projectSettlement.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <template>
  2. <!-- 项目结项 -->
  3. <div class="projectSettlement">
  4. <div class="pAHeader">
  5. <div class="pAHeader1">项目结项</div>
  6. </div>
  7. <hr>
  8. <!-- 搜索栏开始 -->
  9. <div class="selects">
  10. <div class="selectsBlock">
  11. <span class="selectLabel">项目筛选</span>
  12. <el-select v-model="pavalues.value" placeholder="我的项目">
  13. <el-option
  14. v-for="item in options"
  15. :key="item.value"
  16. :label="item.label"
  17. :value="item.value">
  18. </el-option>
  19. </el-select>
  20. </div>
  21. <div class="selectsBlock">
  22. <span class="selectLabel">部门</span>
  23. <el-select v-model="pavalues.value1" placeholder="请选择">
  24. <el-option
  25. v-for="item in options1"
  26. :key="item.value"
  27. :label="item.label"
  28. :value="item.value">
  29. </el-option>
  30. </el-select>
  31. </div>
  32. <div class="selectsBlock">
  33. <span class="selectLabel">分类</span>
  34. <el-select v-model="pavalues.value2" placeholder="请选择">
  35. <el-option
  36. v-for="item in options2"
  37. :key="item.value"
  38. :label="item.label"
  39. :value="item.value">
  40. </el-option>
  41. </el-select>
  42. </div>
  43. <div class="selectsBlock">
  44. <span class="selectLabel">负责人</span>
  45. <el-select v-model="pavalues.value3" placeholder="请选择">
  46. <el-option
  47. v-for="item in options3"
  48. :key="item.value"
  49. :label="item.label"
  50. :value="item.value">
  51. </el-option>
  52. </el-select>
  53. </div>
  54. <div class="selectsBlock">
  55. <span class="selectLabel">状态</span>
  56. <el-select v-model="pavalues.value4" placeholder="请选择">
  57. <el-option
  58. v-for="item in options4"
  59. :key="item.value"
  60. :label="item.label"
  61. :value="item.value">
  62. </el-option>
  63. </el-select>
  64. </div>
  65. </div>
  66. <!-- 搜索栏结束 -->
  67. <!-- 表格开始 -->
  68. <div>
  69. <el-table
  70. ref="multipleTable"
  71. :data="tableData"
  72. tooltip-effect="dark"
  73. class="fontSize"
  74. :header-cell-style="{ background: '#f2f2f2',color:'#000' }"
  75. @selection-change="handleSelectionChange">
  76. <el-table-column
  77. type="selection"
  78. >
  79. </el-table-column>
  80. <el-table-column
  81. prop="projectName"
  82. label="项目名称"
  83. align="center"
  84. min-width="10%">
  85. </el-table-column>
  86. <el-table-column
  87. prop="projectPerson"
  88. align="center"
  89. label="项目负责人"
  90. min-width="10%">
  91. </el-table-column>
  92. <el-table-column
  93. prop="dept"
  94. label="所在部门"
  95. align="center"
  96. min-width="10%">
  97. </el-table-column>
  98. <el-table-column
  99. prop="budget"
  100. label="预算总经费(万)"
  101. align="center"
  102. min-width="10%">
  103. </el-table-column>
  104. <el-table-column
  105. prop="date"
  106. label="时间"
  107. align="center"
  108. min-width="10%">
  109. </el-table-column>
  110. <el-table-column
  111. prop="tel"
  112. label="联系电话"
  113. align="center"
  114. min-width="10%">
  115. </el-table-column>
  116. <el-table-column
  117. prop="state"
  118. label="状态"
  119. align="center"
  120. min-width="8%">
  121. </el-table-column>
  122. <el-table-column
  123. prop="operation"
  124. label="操作"
  125. width="300"
  126. align="center"
  127. >
  128. <template #default="scope">
  129. <div class="operations">
  130. <el-button type="primary" class="bt1" size="mini" @click="details">详情</el-button>
  131. <el-button type="primary" class="bt1" size="mini">审核</el-button>
  132. <el-button type="primary" class="bt1" size="mini" @click="edit(scope.row.id,scope.row.status)" style="background: #477edd">成果查看</el-button>
  133. </div>
  134. </template>
  135. </el-table-column>
  136. </el-table>
  137. </div>
  138. <!-- 表格结束 -->
  139. </div>
  140. </template>
  141. <script>
  142. export default {
  143. data() {
  144. return {
  145. options:[],
  146. options1:[],
  147. options2:[],
  148. options3:[],
  149. options4:[],
  150. tableData:[{
  151. projectName:'陆地游泳辅助器',
  152. projectPerson:'王多鱼',
  153. dept:'西虹市',
  154. budget:'200万',
  155. date:'2022年-11月-12日',
  156. tel:'16625153432',
  157. state:'已审核',
  158. },
  159. {
  160. projectName:'北极运冰',
  161. projectPerson:'王多鱼',
  162. dept:'西虹市',
  163. budget:'500万',
  164. date:'2022年-11月-12日',
  165. tel:'16625153432',
  166. state:'未审核',
  167. }
  168. ],
  169. pavalues:{
  170. value:'',
  171. value1:'',
  172. value2:'',
  173. value3:'',
  174. value4:'',
  175. }
  176. }
  177. },
  178. methods:{
  179. edit(){
  180. },
  181. details(){
  182. this.$router.push('/projectSettlement1')
  183. },
  184. handleSelectionChange(val) {
  185. this.multipleSelection = val;
  186. }
  187. }
  188. }
  189. </script>
  190. <style lang="less">
  191. .projectSettlement{
  192. .selects{
  193. width: 100%;
  194. margin-top: 20px;
  195. display: flex;
  196. flex-wrap: wrap;
  197. margin-bottom: 20px;
  198. .selectsBlock{
  199. display: flex;
  200. margin-right: 30px;
  201. margin-bottom: 20px;
  202. }
  203. .selectLabel{
  204. width: 64px;
  205. font-size: 16px;
  206. margin-right: 10px;
  207. display: inline-block;
  208. font-weight:bolder;
  209. text-align: justify;
  210. text-justify:distribute-all-lines;
  211. text-align-last: justify;
  212. transform: translate(0,22%);
  213. }
  214. }
  215. label{
  216. color: #000;
  217. }
  218. }
  219. </style>