feat(文书): 隐藏版本历史与删除入口
This commit is contained in:
@@ -91,6 +91,13 @@ const secondaryActions = computed<
|
||||
return []
|
||||
})
|
||||
|
||||
/**
|
||||
* 本次交付暂不包含「版本历史」与「删除 / 下架」入口,先隐藏对应按钮。
|
||||
* 相关 emit、页面处理函数与接口调用保持原样,需要时把开关改回 true 即可恢复。
|
||||
*/
|
||||
const showVersionAction = false
|
||||
const showRemoveAction = false
|
||||
|
||||
const removeTitle = computed(() => (props.isMock ? '删除此文书' : '下架此文书'))
|
||||
</script>
|
||||
|
||||
@@ -120,7 +127,7 @@ const removeTitle = computed(() => (props.isMock ? '删除此文书' : '下架
|
||||
编辑
|
||||
</button>
|
||||
<button
|
||||
v-if="canInitiate"
|
||||
v-if="showVersionAction && canInitiate"
|
||||
type="button"
|
||||
class="card-button"
|
||||
title="查看该文书的版本历史"
|
||||
@@ -159,7 +166,7 @@ const removeTitle = computed(() => (props.isMock ? '删除此文书' : '下架
|
||||
{{ action.label }}
|
||||
</button>
|
||||
<button
|
||||
v-if="canRemove"
|
||||
v-if="showRemoveAction && canRemove"
|
||||
type="button"
|
||||
class="card-button danger"
|
||||
:title="removeTitle"
|
||||
|
||||
Reference in New Issue
Block a user