update 国内、海外标准我的收藏不可移出标准

This commit is contained in:
赵霄
2023-09-28 13:35:02 +08:00
parent 4d45e7bc24
commit f2af02f75f
2 changed files with 10 additions and 0 deletions
@@ -476,6 +476,11 @@ export default {
this.$message.warning(this.$t('standardRegulationLibrary.selectLeastOneTableData'))
return
}
// 左侧节点选的是我的收藏,不可移出标准
if (this.selectedTreeNodeCodes[0] === 'MyCollection') {
this.$message.warn(this.$t('enterpriseStandardLibrary.standard.myCollectNotRemove'))
return
}
this.loading = true
const params = {
nodeCode: this.selectedTreeNodeCodes[0],
@@ -477,6 +477,11 @@ export default {
this.$message.warning(this.$t('standardRegulationLibrary.selectLeastOneTableData'))
return
}
// 左侧节点选的是我的收藏,不可移出标准
if (this.selectedTreeNodeCodes[0] === 'MyCollection') {
this.$message.warn(this.$t('enterpriseStandardLibrary.standard.myCollectNotRemove'))
return
}
this.loading = true
const params = {
nodeCode: this.selectedTreeNodeCodes[0],