[update] 修改企标我的收藏不可移出标准

This commit is contained in:
lideqin
2023-09-28 11:36:16 +08:00
parent eac09c9422
commit 4d45e7bc24
3 changed files with 7 additions and 0 deletions
@@ -12,6 +12,7 @@ module.exports = {
exportZipFile: 'Enterprise Standard Document',
templateExport: 'Enterprise Standard Template',
pleaseSelectLeastOneNode: 'Please select Level 2 and below system first',
myCollectNotRemove: 'My collection system cannot be removed from the standard',
authorizationDepart: '授权部门',
authorizationUser: '授权人员',
maturityDate: '授权到期日期',
@@ -12,6 +12,7 @@ module.exports = {
exportZipFile: '企业标准文件',
templateExport: '企业标准模板',
pleaseSelectLeastOneNode: '请先选择企业标准下体系',
myCollectNotRemove: '我的收藏体系不可移出标准',
authorizationDepart: '授权部门',
authorizationUser: '授权人员',
maturityDate: '授权到期日期',
@@ -422,6 +422,11 @@ export default {
this.$message.warn(this.$t('enterpriseStandardLibrary.standard.pleaseSelectLeastOneNode'))
return
}
// 左侧节点选的是我的收藏,不可移出标准
if (this.currentTreeNode[0] === 'myCollect') {
this.$message.warn(this.$t('enterpriseStandardLibrary.standard.myCollectNotRemove'))
return
}
// 没有选择列表数据,需要提示“选中至少一条列表数据”
if (!this.selectedRowKeys || this.selectedRowKeys.length === 0) {
this.$message.warning(this.$t('selectLeastOne'))