Commit 1c4210f6 by cwq0219

bug修复

1 parent 04d53752
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
width="60px" width="60px"
label="序号" label="序号"
type='index' type='index'
:index="index=>index+(pagination.pageNumber - 1) * pagination.pageSize + 1" :index="index=>index+(page.pageNumber - 1) * page.pageSize + 1"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
v-for="(item, index) in tableParams.tableColumns" v-for="(item, index) in tableParams.tableColumns"
...@@ -262,10 +262,10 @@ export default { ...@@ -262,10 +262,10 @@ export default {
params.sort = this.sort === 'descending' ? 1 : 0 params.sort = this.sort === 'descending' ? 1 : 0
} }
this.getListApi(params).then(res => { this.getListApi(params).then(res => {
this.pagination = { // this.pagination = {
pageNumber: res.pageNum, // pageNumber: res.pageNum,
pageSize: res.pageSize // pageSize: res.pageSize
} // }
// this.tableParams.needUnique && (res[this.tableParams.listName].forEach((item) => { // this.tableParams.needUnique && (res[this.tableParams.listName].forEach((item) => {
// item[this.tableParams.mutiSelectUniqueKey] // item[this.tableParams.mutiSelectUniqueKey]
// })) // }))
......
...@@ -185,7 +185,7 @@ export default { ...@@ -185,7 +185,7 @@ export default {
tableColumns: [{ tableColumns: [{
label: '序号', label: '序号',
prop: 'id', prop: 'id',
width: '50px' width: '80px'
}, { }, {
label: '标题', label: '标题',
prop: 'title' prop: 'title'
......
...@@ -64,7 +64,6 @@ ...@@ -64,7 +64,6 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<d2-table <d2-table
:hasNum="false"
:beforeSearchFn="beforeSearchFn" :beforeSearchFn="beforeSearchFn"
:searchForm="searchForm" :searchForm="searchForm"
:tableParams="tableParams" :tableParams="tableParams"
...@@ -88,10 +87,6 @@ export default { ...@@ -88,10 +87,6 @@ export default {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: 'list',
tableColumns: [{ tableColumns: [{
label: '序号',
prop: 'id',
width: '50px'
}, {
label: '设备SN', label: '设备SN',
prop: 'deviceSn' prop: 'deviceSn'
}, { }, {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!