|
|
@@ -25,7 +25,14 @@
|
|
|
详情暂未取到,已保留列表摘要。
|
|
|
<button type="button" @click="store.retry">重试</button>
|
|
|
</p>
|
|
|
- <div class="entity-drawer__body"><EntityDetailSections :detail="store.detail" @locate-device="(code) => emit('locate-device', code)" @focus-network="(code) => emit('focus-network', code)" @open-work-order="(code) => emit('open-work-order', code)" @open-relation="(item) => emit('open-relation', item)" /></div>
|
|
|
+ <div class="entity-drawer__body">
|
|
|
+ <EntityDetailSections :detail="store.detail" @locate-device="(code) => emit('locate-device', code)" @focus-network="(code) => emit('focus-network', code)" @open-work-order="(code) => emit('open-work-order', code)" @open-relation="(item) => emit('open-relation', item)">
|
|
|
+ <!-- 地下设施(管网/窨井)从详情直接进「地下管线详情视图」(维护者 2026-12-02)。 -->
|
|
|
+ <template #tabs-action>
|
|
|
+ <button v-if="undergroundReady" type="button" class="entity-drawer__underground" data-entity-underground @click="emit('open-underground')">查看详情 →</button>
|
|
|
+ </template>
|
|
|
+ </EntityDetailSections>
|
|
|
+ </div>
|
|
|
</aside>
|
|
|
</Transition>
|
|
|
</template>
|
|
|
@@ -34,8 +41,12 @@ import { computed } from 'vue'
|
|
|
import { entityDetailView } from '../domain/entityDetail.js'
|
|
|
import { useEntityDetailStore } from '../stores/entityDetailStore.js'
|
|
|
import EntityDetailSections from './EntityDetailSections.vue'
|
|
|
-defineProps({ side: { type: String, default: 'right' } })
|
|
|
-const emit = defineEmits(['locate-device', 'focus-network', 'open-work-order', 'open-relation'])
|
|
|
+defineProps({
|
|
|
+ side: { type: String, default: 'right' },
|
|
|
+ /** 当前详情对应的地下设施能否进「地下管线详情视图」(由外壳判定)。 */
|
|
|
+ undergroundReady: { type: Boolean, default: false },
|
|
|
+})
|
|
|
+const emit = defineEmits(['locate-device', 'focus-network', 'open-work-order', 'open-relation', 'open-underground'])
|
|
|
const store = useEntityDetailStore()
|
|
|
const view = computed(() => entityDetailView(store.detail))
|
|
|
</script>
|
|
|
@@ -103,6 +114,21 @@ const view = computed(() => entityDetailView(store.detail))
|
|
|
overflow-wrap: anywhere;
|
|
|
}
|
|
|
|
|
|
+/* 「查看详情 →」:贴在页签行右侧的蓝色文字入口(与设施卡的按钮同一位置)。 */
|
|
|
+.entity-drawer__underground {
|
|
|
+ margin-left: auto;
|
|
|
+ padding: 0;
|
|
|
+ border: 0;
|
|
|
+ background: none;
|
|
|
+ color: var(--cyan-hi, #35d8ff);
|
|
|
+ font: inherit;
|
|
|
+ font-size: var(--fs-caption, 10.5px);
|
|
|
+ cursor: pointer;
|
|
|
+ white-space: nowrap;
|
|
|
+}
|
|
|
+.entity-drawer__underground:hover,
|
|
|
+.entity-drawer__underground:focus-visible { color: var(--text-strong, #eaf6ff); }
|
|
|
+
|
|
|
.entity-drawer__close {
|
|
|
width: calc(22 * var(--u, 1px));
|
|
|
height: calc(22 * var(--u, 1px));
|