|
18 | 18 | <span class='long_words link' @click="showAll(scope.row.weId, scope.row.id)" :title='scope.row.weId'>{{scope.row.weId}}</span> |
19 | 19 | </template> |
20 | 20 | </el-table-column> |
21 | | - <el-table-column label="创建时间" align="center" :formatter="dateFormat" width='200'></el-table-column> |
| 21 | + <!-- <el-table-column label="创建时间" align="center" :formatter="dateFormat" width='200'></el-table-column> --> |
| 22 | + <el-table-column label="创建时间" align="center" width='200'> |
| 23 | + <template slot-scope='scope'> |
| 24 | + <span>{{scope.row.createTime}}</span> |
| 25 | + </template> |
| 26 | + </el-table-column> |
22 | 27 | <el-table-column label="操作" align="center" width='400'> |
23 | 28 | <template slot-scope='scope'> |
24 | 29 | <el-button type="primary" class="btn" @click="showRegistIssuer(scope.row.weId)" :disabled='scope.row.issuer' style="width:180px;">注册为权威凭证发行者</el-button> |
25 | 30 | <el-button type="primary" class="btn" @click="showRegistWhiteList(scope.row.weId)" style="width:120px;" v-if="roleType === '1'">添加到白名单</el-button> |
26 | 31 | </template> |
27 | 32 | </el-table-column> |
28 | 33 | </el-table> |
29 | | - <el-pagination @current-change="indexChange" :current-page="page.pageIndex" :page-size="page.pageSize" layout="total, prev, slot, next" :total="page.total"> |
30 | | - <span style="text-align: center;">{{page.pageIndex}}</span> |
| 34 | + <el-pagination class="page" @current-change="indexChange" :current-page="page.pageIndex" :page-size="page.pageSize" layout="total, prev, pager, next" :total="page.total"> |
| 35 | + <!-- <span style="text-align: center;">{{page.pageIndex}}</span> --> |
31 | 36 | </el-pagination> |
32 | 37 | </div> |
33 | 38 |
|
@@ -437,23 +442,24 @@ export default { |
437 | 442 | var pageIndex = this.page.pageIndex |
438 | 443 | this.page.pageIndex = currentPage |
439 | 444 | var blockNumber, indexInBlock, direction |
440 | | - if (pageIndex > this.page.pageIndex) { // 向前 |
441 | | - blockNumber = this.page.weidList[0].weIdPojo.currentBlockNum |
442 | | - indexInBlock = this.page.weidList[0].weIdPojo.index + 1 |
443 | | - direction = false |
444 | | - } else { // 向后 |
445 | | - blockNumber = this.page.weidList[this.page.weidList.length - 1].weIdPojo.currentBlockNum |
446 | | - indexInBlock = this.page.weidList[this.page.weidList.length - 1].weIdPojo.index - 1 |
447 | | - direction = true |
448 | | - } |
| 445 | + indexInBlock=currentPage-1 |
| 446 | + // if (pageIndex > this.page.pageIndex) { // 向前 |
| 447 | + // blockNumber = this.page.weidList[0].weIdPojo.currentBlockNum |
| 448 | + // indexInBlock = this.page.weidList[0].weIdPojo.index + 1 |
| 449 | + // direction = false |
| 450 | + // } else { // 向后 |
| 451 | + // blockNumber = this.page.weidList[this.page.weidList.length - 1].weIdPojo.currentBlockNum |
| 452 | + // indexInBlock = this.page.weidList[this.page.weidList.length - 1].weIdPojo.index - 1 |
| 453 | + // direction = true |
| 454 | + // } |
449 | 455 | this.queryWeIdList(this.page.pageIndex, blockNumber, indexInBlock, direction) |
450 | 456 | }, |
451 | 457 | queryWeIdList (pageIndex, blockNumber, indexInBlock, direction) { |
452 | 458 | var formData = {} |
453 | | - formData.blockNumber = blockNumber |
| 459 | + // formData.blockNumber = blockNumber |
454 | 460 | formData.pageSize = this.page.pageSize |
455 | | - formData.indexInBlock = indexInBlock |
456 | | - formData.direction = direction |
| 461 | + formData.indexFirst = indexInBlock * this.page.pageSize |
| 462 | + // formData.direction = direction |
457 | 463 | formData.iDisplayStart = pageIndex * this.page.pageSize |
458 | 464 | formData.iDisplayLength = this.page.pageSize |
459 | 465 |
|
|
0 commit comments