[update] 修改企标我的收藏不可移出标准
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user