projectSettlement.vue 5.9 KB

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