CN-1087 feat: 完成剩余工作,包括工具栏

This commit is contained in:
chenjinsong
2023-08-01 17:58:27 +08:00
parent faf0ced7c9
commit 7f2d5ce52d
14 changed files with 320 additions and 171 deletions

View File

@@ -181,7 +181,7 @@ export default {
if (e.response && e.response.message) {
this.$message.error(e.response.message)
} else {
this.$message.error('Something went wrong...')
this.$message.error(this.$t('tip.somethingWentWrong'))
}
}).finally(() => {
this.blockOperation.save = false

View File

@@ -126,16 +126,12 @@ export default {
if (response.message) {
this.$message.error(response.message)
} else {
this.$message.error('Something went wrong...')
this.$message.error(this.$t('tip.somethingWentWrong'))
}
}
}).finally(() => {
this.toggleLoading(false)
if (!this.tableData || this.tableData.length === 0) {
this.isNoData = true
} else {
this.isNoData = false
}
this.isNoData = !this.tableData || this.tableData.length === 0
})
}
},