fix: Root org disable some action

This commit is contained in:
w940853815
2025-03-14 10:24:03 +08:00
committed by w940853815
parent 28a4d4761a
commit e116dcc230
2 changed files with 5 additions and 2 deletions

View File

@@ -27,7 +27,7 @@
</IBox>
</div>
</div>
<div class="drawer-footer">
<div v-if="!isRootOrg" class="drawer-footer">
<div v-if="isBatch">
<el-input v-model="comment" :placeholder="$tc('PleaseEnterReason')" type="textarea" />
<span class="buttons">
@@ -116,6 +116,9 @@ export default {
}
return false
},
isRootOrg() {
return this.$store.getters.currentOrgIsRoot
}
},
methods: {

View File

@@ -221,7 +221,7 @@ export default {
const actions = _.cloneDeep(riskActions)
const filteredActions = []
for (const action of actions) {
action.disabled = await this.checkDisabled(action)
action.disabled = await this.checkDisabled(action) || (action.name !== 'review' && this.$store.getters.currentOrgIsRoot)
const has = await this.checkHas(action)
if (has) {
filteredActions.push(action)