userCenterMaintenanceDataInformations.vue 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <template>
  2. <div style="width: 100%;background: #fff;min-height: 700px;color: #666;" class="userCenterMyProject">
  3. <div style="height: 60px;line-height: 60px;margin-left: 30px;margin-right: 30px; ">
  4. <span>{{$t('common.all')}}(10)</span>
  5. <span>{{$t('common.ToAudit')}}(2)</span>
  6. <span>{{$t('common.notApproved')}}(0)</span>
  7. <span>{{$t('common.Approved')}}(8)</span>
  8. <el-button type="primary" style="float: right;margin-right: 90px;margin-top: 10px;" @click="toView('addMaintenanceDataInformations','')">{{$t('common.Add')}}</el-button>
  9. </div>
  10. <div style="margin-left: 30px;">
  11. <el-table
  12. :data="tableData"
  13. stripe
  14. style="width: 100%" >
  15. <template slot="empty">
  16. {{$t('common.UserNoData')}}
  17. </template>
  18. <el-table-column fixed prop="date" :label="$t('common.indicatorName')" width="210" > </el-table-column>
  19. <el-table-column prop="name" :label="$t('common.indicatorValue')" width="120"> </el-table-column>
  20. <el-table-column prop="address" :label="$t('common.unit')" width="120"> </el-table-column>
  21. <el-table-column prop="address1" :label="$t('common.Level1Indicator')" width="120"></el-table-column>
  22. <el-table-column prop="address2" :label="$t('common.region')" width="120"> </el-table-column>
  23. <el-table-column prop="address3" :label="$t('common.ReviewState')" width="120"></el-table-column>
  24. <el-table-column prop="address4" :label="$t('common.ReleaseState')" width="120"> </el-table-column>
  25. <el-table-column fixed="right" prop="address5" :label="$t('common.Option')" width="210">
  26. <template slot-scope="scope">
  27. <el-button
  28. @click.native.prevent="change(scope.$index, tableData)"
  29. type="text"
  30. size="small">
  31. {{$t('common.Edit')}}
  32. </el-button>
  33. <el-button
  34. @click.native.prevent="release(scope.$index, tableData)"
  35. type="text"
  36. size="small">
  37. {{$t('common.release')}}
  38. </el-button>
  39. <el-button
  40. @click.native.prevent="withdraw(scope.$index, tableData)"
  41. type="text"
  42. size="small">
  43. {{$t('common.recall')}}
  44. </el-button>
  45. <el-button
  46. @click.native.prevent="deleteRow(scope.$index, tableData)"
  47. type="text"
  48. size="small">
  49. {{$t('common.Delete')}}
  50. </el-button>
  51. </template>
  52. </el-table-column>
  53. </el-table>
  54. </div>
  55. <div style="width: 100%;text-align: center;">
  56. <el-pagination
  57. style="margin-top: 50px;height: 80px;"
  58. background
  59. layout="prev, pager, next"
  60. :total="1000" @size-change="handleSizeChange"
  61. @current-change="handleCurrentChange">
  62. </el-pagination>
  63. </div>
  64. </div>
  65. </template>
  66. <script>
  67. export default {
  68. name: 'userCenterMaintenanceDataInformations',
  69. data () {
  70. return {
  71. formInline: {
  72. user: '',
  73. region: ''
  74. },
  75. tableData: [{
  76. date: '通信基站分布式光伏能源项目',
  77. name: '清洁能源',
  78. address: '中国',
  79. address1: '项目初创期',
  80. address2: '审核未通过',
  81. address3: '已发布',
  82. address4: '2000-5-15 15:30',
  83. address5: '上海市普陀区金沙江路 1518 弄',
  84. }, {
  85. date: '通信基站分布式光伏能源项目',
  86. name: '清洁能源',
  87. address: '中国',
  88. address1: '项目初创期',
  89. address2: '审核未通过',
  90. address3: '已发布',
  91. address4: '2000-5-15 15:30',
  92. address5: '上海市普陀区金沙江路 1518 弄',
  93. }, {
  94. date: '通信基站分布式光伏能源项目',
  95. name: '清洁能源',
  96. address: '中国',
  97. address1: '项目初创期',
  98. address2: '审核未通过',
  99. address3: '已发布',
  100. address4: '2000-5-15 15:30',
  101. address5: '上海市普陀区金沙江路 1518 弄',
  102. }, {
  103. date: '通信基站分布式光伏能源项目',
  104. name: '清洁能源',
  105. address: '中国',
  106. address1: '项目初创期',
  107. address2: '审核未通过',
  108. address3: '已发布',
  109. address4: '2000-5-15 15:30',
  110. address5: '上海市普陀区金沙江路 1518 弄',
  111. },{
  112. date: '通信基站分布式光伏能源项目',
  113. name: '清洁能源',
  114. address: '中国',
  115. address1: '项目初创期',
  116. address2: '审核未通过',
  117. address3: '已发布',
  118. address4: '2000-5-15 15:30',
  119. address5: '上海市普陀区金沙江路 1518 弄',
  120. }, {
  121. date: '通信基站分布式光伏能源项目',
  122. name: '清洁能源',
  123. address: '中国',
  124. address1: '项目初创期',
  125. address2: '审核未通过',
  126. address3: '已发布',
  127. address4: '2000-5-15 15:30',
  128. address5: '上海市普陀区金沙江路 1518 弄',
  129. }, {
  130. date: '通信基站分布式光伏能源项目',
  131. name: '清洁能源',
  132. address: '中国',
  133. address1: '项目初创期',
  134. address2: '审核未通过',
  135. address3: '已发布',
  136. address4: '2000-5-15 15:30',
  137. address5: '上海市普陀区金沙江路 1518 弄',
  138. }, {
  139. date: '通信基站分布式光伏能源项目',
  140. name: '清洁能源',
  141. address: '中国',
  142. address1: '项目初创期',
  143. address2: '审核未通过',
  144. address3: '已发布',
  145. address4: '2000-5-15 15:30',
  146. address5: '上海市普陀区金沙江路 1518 弄',
  147. }, {
  148. date: '通信基站分布式光伏能源项目',
  149. name: '清洁能源',
  150. address: '中国',
  151. address1: '项目初创期',
  152. address2: '审核未通过',
  153. address3: '已发布',
  154. address4: '2000-5-15 15:30',
  155. address5: '上海市普陀区金沙江路 1518 弄',
  156. }, {
  157. date: '通信基站分布式光伏能源项目',
  158. name: '清洁能源',
  159. address: '中国',
  160. address1: '项目初创期',
  161. address2: '审核未通过',
  162. address3: '已发布',
  163. address4: '2000-5-15 15:30',
  164. address5: '上海市普陀区金沙江路 1518 弄',
  165. }]
  166. }
  167. },
  168. methods:{
  169. toView(router,json){
  170. this.$router.push({name:router,params:json})
  171. },
  172. // 发布
  173. release(index, rows) {
  174. console.log(index, rows)
  175. },
  176. // 编辑
  177. change(index, rows) {
  178. console.log(index, rows)
  179. },
  180. // 删除
  181. deleteRow(index, rows) {
  182. console.log(index, rows)
  183. },
  184. // 撤回
  185. withdraw(index,rows) {
  186. console.log(index, rows)
  187. },
  188. handleSizeChange(val) {
  189. console.log(`每页 ${val} 条`);
  190. },
  191. handleCurrentChange(val) {
  192. console.log(`当前页: ${val}`);
  193. }
  194. }
  195. }
  196. </script>
  197. <style scoped>
  198. .el-input {
  199. width: 200px ;
  200. }
  201. .el-form-item__content,.el-select {
  202. width: 200px !important;
  203. }
  204. .el-table thead {
  205. background: #eee;
  206. }
  207. .userCenterMyProject >>> .el-pagination .el-pager li,
  208. .userCenterMyProject >>> .el-pagination .btn-next,
  209. .userCenterMyProject >>> .el-pagination .btn-prev{
  210. width: 35px;
  211. height: 35px;
  212. line-height: 35px;
  213. }
  214. .userCenterMyProject >>> .el-pagination.is-background .el-pager li:not(.disabled).active {
  215. background: #0050d8;
  216. }
  217. </style>