NEZ-1048 feat:asset详细视图 右侧内容区域 以及部分优化

This commit is contained in:
zhangyu
2021-10-11 14:05:07 +08:00
parent 46930a8878
commit 13bd9a0d8d
26 changed files with 482 additions and 71 deletions

View File

@@ -3,21 +3,32 @@ export default {
data () {
return {
detailType: 'list',
detailViewRightObj: {}
detailViewRightObj: '',
detailViewLoading: false
}
},
created () {
this.detailType = localStorage.getItem('detail-view-' + this.tableId) || 'list'
},
methods: {
changeDetailType (flag) {
if (this.detailType === flag) {
return
}
this.detailType = flag
localStorage.setItem('detail-view-' + this.tableId, this.detailType)
this.pageObj.pageNo = 1
this.detailViewLoading = true
if (flag === 'list') {
this.searchLabel = {}
this.searchCheckBox = {}
this.getTableData()
} else {
this.getDetail()
}
setTimeout(() => {
this.detailViewLoading = false
}, 100)
},
searchDetail (params) {
this.getDetail()
@@ -25,7 +36,7 @@ export default {
getDetail () {
const params = {
pageNo: this.pageObj.pageNo,
pageSize: 50
pageSize: this.pageObj.pageSize
}
this.tools.loading = true
this.$get(this.url, { ...params }).then(response => {