mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-31 14:38:02 +00:00
fix: 全局组织禁用批量更新及修复翻译问题
This commit is contained in:
@@ -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
|
||||||
|
@@ -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) {
|
||||||
|
@@ -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) {
|
||||||
|
@@ -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
|
||||||
}
|
}
|
||||||
|
@@ -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: [
|
||||||
|
@@ -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)
|
||||||
}
|
}
|
||||||
|
@@ -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)
|
||||||
}
|
}
|
||||||
|
@@ -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)
|
||||||
}
|
}
|
||||||
|
@@ -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)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user