Fix:物料物块详情导入的panel API不存在,替换为可用的API名 (#1319)
* Fix:物料物块详情导入的panel API不存在,替换为可用的API名
This commit is contained in:
parent
b011de167c
commit
9ed2dad7f4
|
|
@ -16,19 +16,13 @@
|
||||||
<div>{{ detail?.current_history?.message }}</div>
|
<div>{{ detail?.current_history?.message }}</div>
|
||||||
<div class="block-item-history">{{ detail?.current_history?.updated_at }}</div>
|
<div class="block-item-history">{{ detail?.current_history?.updated_at }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-if="!isSettingPanel && !isShortcutPanel" class="block-detail-item block-detail-show-more"
|
||||||
v-if="!isSettingPanel && !isShortcutPanel"
|
@click="openHistory">
|
||||||
class="block-detail-item block-detail-show-more"
|
|
||||||
@click="openHistory"
|
|
||||||
>
|
|
||||||
<span>查看历史备份</span>
|
<span>查看历史备份</span>
|
||||||
<icon-double-right></icon-double-right>
|
<icon-double-right></icon-double-right>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-if="!isDefaultGroupId(selectedGroup.groupId) && !isSettingPanel && !isShortcutPanel"
|
||||||
v-if="!isDefaultGroupId(selectedGroup.groupId) && !isSettingPanel && !isShortcutPanel"
|
class="block-delete" @click="deleteBlock(selectedBlock || detail?.id)">
|
||||||
class="block-delete"
|
|
||||||
@click="deleteBlock(selectedBlock || detail?.id)"
|
|
||||||
>
|
|
||||||
<tiny-button :icon="IconDel">Delete</tiny-button>
|
<tiny-button :icon="IconDel">Delete</tiny-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -41,7 +35,7 @@ import { IconDel, iconDoubleRight } from '@opentiny/vue-icon'
|
||||||
import { inject } from 'vue'
|
import { inject } from 'vue'
|
||||||
import { useBlock, useModal, getMetaApi, META_SERVICE } from '@opentiny/tiny-engine-meta-register'
|
import { useBlock, useModal, getMetaApi, META_SERVICE } from '@opentiny/tiny-engine-meta-register'
|
||||||
import { requestUpdateGroup, fetchGroupBlocksById } from './http'
|
import { requestUpdateGroup, fetchGroupBlocksById } from './http'
|
||||||
import { setHistoryPanelVisible } from './js/usePanel'
|
import { setBlockVersionPanelVisible } from './js/usePanel'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -95,7 +89,7 @@ export default {
|
||||||
confirm({ title, status, message: messageRender, exec })
|
confirm({ title, status, message: messageRender, exec })
|
||||||
}
|
}
|
||||||
|
|
||||||
const openHistory = () => setHistoryPanelVisible(true)
|
const openHistory = () => setBlockVersionPanelVisible(true)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
isDefaultGroupId,
|
isDefaultGroupId,
|
||||||
|
|
@ -160,6 +154,7 @@ export default {
|
||||||
padding: 8px 12px;
|
padding: 8px 12px;
|
||||||
color: var(--te-materials-block-detail-text-color);
|
color: var(--te-materials-block-detail-text-color);
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
|
|
@ -177,6 +172,7 @@ export default {
|
||||||
|
|
||||||
.block-delete {
|
.block-delete {
|
||||||
padding: 12px 10px 10px;
|
padding: 12px 10px 10px;
|
||||||
|
|
||||||
.tiny-button {
|
.tiny-button {
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
}
|
}
|
||||||
|
|
@ -188,6 +184,7 @@ export default {
|
||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
.block-detail-item:not(.block-detail-show-more) {
|
.block-detail-item:not(.block-detail-show-more) {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue