fix: 全局组织禁用批量更新及修复翻译问题

This commit is contained in:
Orange
2021-03-18 16:09:50 +08:00
parent 00909b364d
commit cd6418ef4b
9 changed files with 9 additions and 8 deletions

View File

@@ -199,6 +199,7 @@ export default {
{ {
name: 'Update', name: 'Update',
title: this.$t('common.Update'), title: this.$t('common.Update'),
can: !this.$store.getters.currentOrgIsRoot,
callback: function(val) { callback: function(val) {
this.showDialog = true this.showDialog = true
this.dialogInfo.asset = val.row.asset this.dialogInfo.asset = val.row.asset

View File

@@ -122,7 +122,7 @@ export default {
this.$message.success(this.$t('common.deleteSuccessMsg')) this.$message.success(this.$t('common.deleteSuccessMsg'))
this.zTree.removeNode(currentNode) this.zTree.removeNode(currentNode)
}).catch(() => { }).catch(() => {
// this.$message.error(this.$t('common.deleteErrorMsg' + ' ' + error)) // this.$message.error(this.$t('common.deleteErrorMsg') + ' ' + error)
}) })
}, },
onRename: function(event, treeId, treeNode, isCancel) { onRename: function(event, treeId, treeNode, isCancel) {

View File

@@ -22,7 +22,7 @@ export default {
this.$message.success(this.$t('common.deleteSuccessMsg')) this.$message.success(this.$t('common.deleteSuccessMsg'))
reload() reload()
}).catch(error => { }).catch(error => {
this.$message.error(this.$t('common.deleteErrorMsg' + ' ' + error)) this.$message.error(this.$t('common.deleteErrorMsg') + ' ' + error)
}) })
}, },
onDelete(col, row, cellValue, reload) { onDelete(col, row, cellValue, reload) {

View File

@@ -164,7 +164,7 @@ export default {
this.$message.success(this.$t('common.deleteSuccessMsg')) this.$message.success(this.$t('common.deleteSuccessMsg'))
this.$router.push({ name: this.validActions.deleteSuccessRoute }) this.$router.push({ name: this.validActions.deleteSuccessRoute })
} catch (error) { } catch (error) {
this.$message.error(this.$t('common.deleteErrorMsg' + ' ' + error)) this.$message.error(this.$t('common.deleteErrorMsg') + ' ' + error)
} finally { } finally {
instance.confirmButtonLoading = false instance.confirmButtonLoading = false
} }

View File

@@ -61,7 +61,7 @@ export default {
this.$refs.ListTable.reloadTable() this.$refs.ListTable.reloadTable()
this.$message.success(this.$t('common.deleteSuccessMsg')) this.$message.success(this.$t('common.deleteSuccessMsg'))
}).catch(error => { }).catch(error => {
this.$message.error(this.$t('common.deleteErrorMsg' + ' ' + error)) this.$message.error(this.$t('common.deleteErrorMsg') + ' ' + error)
}) })
}.bind(this), }.bind(this),
extraActions: [ extraActions: [

View File

@@ -53,7 +53,7 @@ export default {
this.$refs.GenericListTable.$refs.ListTable.$refs.ListTable.reloadTable() this.$refs.GenericListTable.$refs.ListTable.$refs.ListTable.reloadTable()
// this.$message.success(this.$t('common.deleteSuccessMsg')) // this.$message.success(this.$t('common.deleteSuccessMsg'))
}).catch(error => { }).catch(error => {
this.$message.error(this.$t('common.deleteErrorMsg' + ' ' + error)) this.$message.error(this.$t('common.deleteErrorMsg') + ' ' + error)
}) })
}.bind(this) }.bind(this)
} }

View File

@@ -45,7 +45,7 @@ export default {
this.$refs.GenericListTable.$refs.ListTable.$refs.ListTable.reloadTable() this.$refs.GenericListTable.$refs.ListTable.$refs.ListTable.reloadTable()
// this.$message.success(this.$t('common.deleteSuccessMsg')) // this.$message.success(this.$t('common.deleteSuccessMsg'))
}).catch(error => { }).catch(error => {
this.$message.error(this.$t('common.deleteErrorMsg' + ' ' + error)) this.$message.error(this.$t('common.deleteErrorMsg') + ' ' + error)
}) })
}.bind(this) }.bind(this)
} }

View File

@@ -53,7 +53,7 @@ export default {
this.$refs.GenericListTable.$refs.ListTable.$refs.ListTable.reloadTable() this.$refs.GenericListTable.$refs.ListTable.$refs.ListTable.reloadTable()
// this.$message.success(this.$t('common.deleteSuccessMsg')) // this.$message.success(this.$t('common.deleteSuccessMsg'))
}).catch(error => { }).catch(error => {
this.$message.error(this.$t('common.deleteErrorMsg' + ' ' + error)) this.$message.error(this.$t('common.deleteErrorMsg') + ' ' + error)
}) })
}.bind(this) }.bind(this)
} }

View File

@@ -51,7 +51,7 @@ export default {
this.$message.success(this.$t('common.deleteSuccessMsg')) this.$message.success(this.$t('common.deleteSuccessMsg'))
reload() reload()
}).catch(error => { }).catch(error => {
this.$message.error(this.$t('common.deleteErrorMsg' + ' ' + error)) this.$message.error(this.$t('common.deleteErrorMsg') + ' ' + error)
}) })
}.bind(this) }.bind(this)
} }