|
@@ -163,15 +163,12 @@ export default {
|
|
|
this.paging.pageSize = 10
|
|
|
this.paging.tableData = [...this.tableData].splice((this.paging.curIndex - 1 || 0) * this.paging.pageSize, this.paging.pageSize)
|
|
|
this.paging.pageTotal = this.tableData.length
|
|
|
- console.log('init', this.paging)
|
|
|
setTimeout(() => {
|
|
|
this.paging.loading = false
|
|
|
}, this.paging.timer)
|
|
|
},
|
|
|
print(row, index) {
|
|
|
[this.otherColumns.all, this.otherColumns.p0, this.otherColumns.p1] = this.columns.map(elm => elm).splice(1, 3)
|
|
|
- console.log(row, index, this.columns)
|
|
|
- console.log(this.otherColumns)
|
|
|
},
|
|
|
// 添加插入
|
|
|
setColumns(columns) {
|
|
@@ -216,9 +213,6 @@ export default {
|
|
|
}
|
|
|
return elm
|
|
|
}).filter(elm => elm)
|
|
|
- // console.log('newColumns', newColumns)
|
|
|
- // console.log('oldPlugin', oldPlugin)
|
|
|
- // return newColumns
|
|
|
},
|
|
|
// 设置表格列宽度
|
|
|
setMinWidth(item) {
|
|
@@ -279,10 +273,8 @@ export default {
|
|
|
query({ row, column }, lIndex) {
|
|
|
const index = lIndex - 1 || 0
|
|
|
const data = row[column.property]
|
|
|
- console.log(index)
|
|
|
// return
|
|
|
if (index <= 2) {
|
|
|
- console.log(284)
|
|
|
const yaxis = this.setList(data, index)
|
|
|
this.requireList = { toType: '缺陷', xaxis: this.bugPriority, title: '新增缺陷', yaxis: yaxis, dataIndex: index }
|
|
|
} else if (index === 3) {
|
|
@@ -349,7 +341,6 @@ export default {
|
|
|
/* S 分页 */
|
|
|
handleSizeChange(value) {
|
|
|
this.paging.loading = true
|
|
|
- console.log('handleSizeChange', value)
|
|
|
this.paging.pageSize = value
|
|
|
this.paging.tableData = [...this.tableData].splice((this.paging.curIndex - 1 || 0) * this.paging.pageSize, this.paging.pageSize)
|
|
|
setTimeout(() => {
|
|
@@ -358,7 +349,6 @@ export default {
|
|
|
},
|
|
|
handleCurrentChange(value) {
|
|
|
this.paging.loading = true
|
|
|
- console.log('handleCurrentChange', value)
|
|
|
this.paging.curIndex = value
|
|
|
this.paging.tableData = [...this.tableData].splice((this.paging.curIndex - 1 || 0) * this.paging.pageSize, this.paging.pageSize)
|
|
|
setTimeout(() => {
|