导入数据优化

dev_2022-03-03
yujialong 3 years ago
parent e57444affb
commit 186e10078c
  1. 17
      src/views/data/Framework.vue

@ -394,7 +394,7 @@ export default {
},
//
editName(row){
this.curRow = JSON.parse(JSON.stringify(row))
this.curRow = JSON.parse(JSON.stringify(row)) //
this.nameVisible = true
},
//
@ -410,7 +410,7 @@ export default {
},
//
editHead(row){
this.curRow = JSON.parse(JSON.stringify(row))
this.curRow = JSON.parse(JSON.stringify(row)) //
this.preview(row, 1)
this.editIndex++ //
this.headVisible = true
@ -477,16 +477,15 @@ export default {
loadType(e){
clearTimeout(this.typeTimer)
let typeTree = this.$refs.typeTreeWrap
//
this.typeTimer = setTimeout(() => {
this.typeTreeScrollTop = typeTree.scrollTop - this.typeTreeScrollTop
// ,
if(this.typeTreeScrollTop > 0 && typeTree.clientHeight + typeTree.scrollTop == typeTree.scrollHeight){
if(this.typeTreeScrollTop > 0 && typeTree.scrollHeight - (typeTree.clientHeight + parseInt(typeTree.scrollTop)) < 10){
this.getMoreTable(this.importTypeList,this.curExpand)
setTimeout(() => {
this.$nextTick(() => {
this.renderChecked()
})
},300)
Promise.all(this.tablePromises).then(_ => {
this.renderChecked()
})
}
},50)
},
@ -569,8 +568,6 @@ export default {
this.importTypeList = res
this.importLoading.close()
this.importVisible = true
console.log('全部分类:', res)
console.log('该分类下已选的表id:', this.defaultTypeChecked)
})
}).catch(res => {
this.importLoading.close()

Loading…
Cancel
Save