数据架构优化

dev^2
yujialong 3 years ago
parent 98e5a64b4a
commit 95b1b0f00f
  1. 12
      src/views/data/Framework.vue

@ -217,6 +217,7 @@ export default {
this.getType()
},
methods: {
//
getType(){
this.$post(this.api.getTableByClassification).then(res => {
// ,
@ -246,7 +247,7 @@ export default {
this.$refs.type.setCurrentKey(this.categoryId)
})
}
this.addEd = false
this.addEd = false // false
this.getData()
}).catch(res => {})
},
@ -292,6 +293,7 @@ export default {
this.id = row.data.id
this.categoryName = row.data.categoryName
},
//
delType(row){
//
this.$confirm('确定要删除吗?', '提示', {
@ -304,6 +306,7 @@ export default {
}).catch(res => {})
}).catch(() => {})
},
//
confirmType(){
if(this.submited) return false //
this.submited = true
@ -711,12 +714,7 @@ export default {
})
} else { //
this.$post(this.api.saveTable, tableIds).then(res => {
this.$message.success('导入成功')
this.getData()
this.importVisible = false
setTimeout(() => {
this.submited = false
},1000)
this.saveSuccess()
}).catch(res => {
this.submited = false
})

Loading…
Cancel
Save