Browse Source

完善待办任务列表、已办任务列表--序号排序问题

zhanglei
yunuo970428 2 years ago
parent
commit
a8917072ae
  1. 9
      anrui-system-ui/src/views/flow/doneList.vue
  2. 9
      anrui-system-ui/src/views/flow/todoList.vue

9
anrui-system-ui/src/views/flow/doneList.vue

@ -32,7 +32,7 @@
</div>
<div class="listcon">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width:100%" @selection-change="handleSelectionChange">
<el-table-column width="60px" label="序号" type="index" :index="tableKey+1" align="center"/>
<el-table-column width="60px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column width="180px" label="操作" align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="handleCheck(scope.row)">详情</el-button>
@ -464,8 +464,11 @@ export default {
handleSelectionChange() {
},
indexMethod() {
return 0
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
setIcon(val) {
if (val) {

9
anrui-system-ui/src/views/flow/todoList.vue

@ -32,7 +32,7 @@
</div>
<div class="listcon">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width:100%" @selection-change="handleSelectionChange">
<el-table-column width="60px" label="序号" type="index" :index="tableKey+1" align="center"/>
<el-table-column width="60px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column width="100px" label="操作" align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="handleCheck(scope.row)">办理</el-button>
@ -529,8 +529,11 @@ export default {
handleSelectionChange() {
},
indexMethod() {
return 0;
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
setIcon(val) {
if (val) {

Loading…
Cancel
Save