Merge remote-tracking branch 'origin/master'

dev_2022-03-03
e 3 years ago
commit c8644c99b8
  1. 17
      src/views/data/Framework.vue

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

Loading…
Cancel
Save