|
@@ -20,12 +20,15 @@
|
|
|
>
|
|
|
<div class="poprs sceneList" v-if="sceneList.length">
|
|
|
<el-dropdown placement="bottom-start" trigger="click" @command="handleCommand">
|
|
|
- <span class="el-dropdown-link" style="color: #fff">
|
|
|
+ <el-button >
|
|
|
+ {{sceneListName}}<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>
|
|
|
+ </span> -->
|
|
|
<template #dropdown>
|
|
|
<el-dropdown-menu>
|
|
|
<el-dropdown-item v-for="item,index in sceneList" :key="index" :command="item.id">{{ item.name || '多元融合' }}</el-dropdown-item>
|
|
@@ -90,11 +93,15 @@ const init = async () => {
|
|
|
init()
|
|
|
const qpisceneList = computed(() => getCaseSceneListData(caseId.value as number));
|
|
|
watch(() => qpisceneList.value, () => {
|
|
|
- let newqpisceneList = JSON.parse(JSON.stringify(qpisceneList.value))
|
|
|
+ if(!qpisceneList.value instanceof Array){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ let newqpisceneList = qpisceneList.value && JSON.parse(JSON.stringify(qpisceneList.value)) || []
|
|
|
if(modeList.value.length){
|
|
|
newqpisceneList.unshift({ id: -1, type: 99, name: '多元融合' });
|
|
|
}
|
|
|
- sceneList.value = [...newqpisceneList]
|
|
|
+ console.log('qpisceneList', qpisceneList.value, newqpisceneList);
|
|
|
+ sceneList.value = qpisceneList.value && [...newqpisceneList] || []
|
|
|
})
|
|
|
console.log(sceneList, 'sceneList');
|
|
|
onMounted(() => {
|