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