🐛 Fixing a bug.代码生成微调 ,优化生成细节

This commit is contained in:
冷冷 committed 2019-08-23 21:46:54 +08:00
1 parent 9dd89b36a3
commit 36b619d9da
2 files changed
+5 -21

No files matched your search

@@ -87,22 +87,13 @@
}).then(function () {
return delObj(row.$pk.lowerAttrName)
}).then(data => {
_this.tableData.splice(index, 1)
_this.$message({
showClose: true,
message: '删除成功',
type: 'success'
})
_this.$message.success('删除成功')
this.getList(this.page)
})
},
handleUpdate: function (row, index, done,loading) {
putObj(row).then(data => {
this.$message({
showClose: true,
message: '修改成功',
type: 'success'
})
this.$message.success('修改成功')
done()
this.getList(this.page)
}).catch(() => {
@@ -111,11 +102,7 @@
},
handleSave: function (row, done,loading) {
addObj(row).then(data => {
this.$message({
showClose: true,
message: '添加成功',
type: 'success'
})
this.$message.success('添加成功')
done()
this.getList(this.page)
}).catch(() => {
@@ -131,7 +118,4 @@
}
}
}
</script>
<style lang="scss" scoped>
</style>
</script>