fix:视图详情报错修改
This commit is contained in:
@@ -17,9 +17,9 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
// this.$refs.dataList.bottomBox.showSubList = false
|
// this.$refs.dataList.bottomBox.showSubList = false
|
||||||
if (this.orderBy) {
|
// if (this.orderBy) {
|
||||||
this.detailViewRightObj = ''
|
// this.detailViewRightObj = ''
|
||||||
}
|
// }
|
||||||
this.detailType = flag
|
this.detailType = flag
|
||||||
let dataList = ''
|
let dataList = ''
|
||||||
localStorage.setItem('detail-view-' + this.tableId, this.detailType)
|
localStorage.setItem('detail-view-' + this.tableId, this.detailType)
|
||||||
@@ -66,7 +66,7 @@ export default {
|
|||||||
this.$refs[dataList].$refs.searchInput.searchLabelList = this.$refs.dataList.$refs.searchInput.searchLabelList.filter(item => searchLabel.label !== item.label)
|
this.$refs[dataList].$refs.searchInput.searchLabelList = this.$refs.dataList.$refs.searchInput.searchLabelList.filter(item => searchLabel.label !== item.label)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (this.orderBy && this.$refs.dataTable.$refs.dataTable) {
|
if (this.orderBy) {
|
||||||
const index = this.orderBy.indexOf('-')
|
const index = this.orderBy.indexOf('-')
|
||||||
let orderBy = ''
|
let orderBy = ''
|
||||||
let orderType = ''
|
let orderType = ''
|
||||||
@@ -78,8 +78,10 @@ export default {
|
|||||||
orderBy = this.orderBy
|
orderBy = this.orderBy
|
||||||
orderType = 'ascending'
|
orderType = 'ascending'
|
||||||
}
|
}
|
||||||
|
if (this.$refs.dataTable && this.$refs.dataTable.$refs.dataTable) {
|
||||||
this.$refs.dataTable.$refs.dataTable.sort(orderBy, orderType)
|
this.$refs.dataTable.$refs.dataTable.sort(orderBy, orderType)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}, 100)
|
}, 100)
|
||||||
},
|
},
|
||||||
detailViewRightShow (item) {
|
detailViewRightShow (item) {
|
||||||
|
|||||||
@@ -739,7 +739,6 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.tableData = response.data.list
|
this.tableData = response.data.list
|
||||||
console.log(this.$refs.dataTable.$refs.dataTable)
|
|
||||||
const globalSearchId = this.$store.getters.getGlobalSearchId
|
const globalSearchId = this.$store.getters.getGlobalSearchId
|
||||||
let detailViewRightObj = ''
|
let detailViewRightObj = ''
|
||||||
if (globalSearchId) {
|
if (globalSearchId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user