数据架构优化

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

Loading…
Cancel
Save