|
@@ -18,7 +18,7 @@
|
|
|
// display: showScene ? 'none' : 'block'
|
|
|
}"
|
|
|
>
|
|
|
- <div class="poprs sceneList" v-if="sceneList.length">
|
|
|
+ <!-- <div class="poprs sceneList" v-if="sceneList.length">
|
|
|
<el-dropdown placement="bottom" style="width: 100%" trigger="click" @command="handleCommand">
|
|
|
<el-button >
|
|
|
<div style="width: 200px;" class="truncate" :title="sceneListName">
|
|
@@ -26,22 +26,13 @@
|
|
|
</div>
|
|
|
<el-icon class="el-icon--right"><arrow-down /></el-icon>
|
|
|
</el-button>
|
|
|
- <!-- <span class="el-dropdown-link" style="color: #fff">
|
|
|
- {{sceneListName}}
|
|
|
- <el-icon class="el-icon--right">
|
|
|
- <arrow-down />
|
|
|
- </el-icon>
|
|
|
- </span> -->
|
|
|
<template #dropdown>
|
|
|
<el-dropdown-menu>
|
|
|
<el-dropdown-item class="truncate" style="max-width: 400px;" v-for="item,index in sceneList" :key="index" :command="item.id">{{ item.name || '多元融合' }}</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</template>
|
|
|
</el-dropdown>
|
|
|
- <!-- <div v-for="item,index in sceneList" :key="index">
|
|
|
- {{ item.name }}
|
|
|
- </div> -->
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<!-- @load="setupSDK($event.target)" -->
|
|
|
<iframe
|
|
|
v-if="caseId"
|
|
@@ -80,7 +71,7 @@ const caseId = computed(() => {
|
|
|
});
|
|
|
// const qpisceneList = ref(getCaseSceneListData() as any[]);
|
|
|
const sceneList = ref([]);
|
|
|
-const sceneURL = ref(``)
|
|
|
+const sceneURL = ref(`/code/index.html?caseId=${caseId.value}#/show`)
|
|
|
const sceneListName = ref('')
|
|
|
const modeList = ref([])
|
|
|
const init = async () => {
|
|
@@ -97,7 +88,7 @@ const init = async () => {
|
|
|
// let url = getUrlSrc({ id: 0 }, caseId.value)
|
|
|
// sceneURL.value = url;
|
|
|
}
|
|
|
-init()
|
|
|
+// init()
|
|
|
const qpisceneList = computed(() => getCaseSceneListData(caseId.value as number));
|
|
|
watch(() => qpisceneList.value, () => {
|
|
|
if(!qpisceneList.value instanceof Array){
|