|
|
@@ -6,9 +6,9 @@
|
|
|
<!-- <editInspection :caseId="caseId" :currentRecord="currentRecord" :editOrShow="editOrShow" ref="editInspectionRef" /> -->
|
|
|
<photoEdit :caseId="caseId" :title="pageTitle" ref="photoEditRef" />
|
|
|
<!-- 查看页 -->
|
|
|
- <showIndex :caseId="caseId" :currentRecord="currentRecord" :fromRoute="fromRoute" @showItem="showItem" :processingIds="processingIds" :recentAddedItem="recentAddedItem" @playVideo="playVideo" v-if="editOrShow === 'show'" />
|
|
|
+ <showIndex :caseId="caseId" :currentRecord="currentRecord" :fromRoute="fromRoute" :showObj="showObj" :processingIds="processingIds" :recentAddedItem="recentAddedItem" @playVideo="playVideo" v-if="editOrShow === 'show'" />
|
|
|
<!-- 编辑页 -->
|
|
|
- <editIndex :caseId="caseId" :currentRecord="currentRecord" :fromRoute="fromRoute" @showItem="showItem" :processingIds="processingIds" :recentAddedItem="recentAddedItem" @start="startShot" @playVideo="playVideo" v-else />
|
|
|
+ <editIndex :caseId="caseId" :currentRecord="currentRecord" :fromRoute="fromRoute" :showObj="showObj" :processingIds="processingIds" :recentAddedItem="recentAddedItem" @start="startShot" @playVideo="playVideo" v-else />
|
|
|
</div>
|
|
|
<shot v-if="isShot" @close="closeHandler" @append="appendFragment" @playVideo="playVideo"
|
|
|
@updateCover="(cover: string) => $emit('updateCover', cover)" @deleteRecord="$emit('delete')" :record="record" />
|
|
|
@@ -76,6 +76,9 @@ const currentRecord = ref<any>({}); // 当前的caseID获取的row
|
|
|
const fusionList = ref([]);
|
|
|
const scenes = ref([]);
|
|
|
const showObj = ref<any>({
|
|
|
+ info: true,
|
|
|
+ scene: true,
|
|
|
+ mix3d: true,
|
|
|
siteInspection: true,
|
|
|
otherFiles: true,
|
|
|
screenRecord: true
|
|
|
@@ -143,10 +146,12 @@ const initData = async () => {
|
|
|
getFusionAndSceneList({ caseId: caseId.value, type: 'scene' }).then(res => {
|
|
|
console.log('getFusionAndSceneList', res)
|
|
|
scenes.value = res || []
|
|
|
+ showObj.value.scene = res.length
|
|
|
})
|
|
|
getFusionAndSceneList({ caseId: caseId.value, type: 'fusion' }).then(res => {
|
|
|
console.log('getFusionAndSceneList', res)
|
|
|
fusionList.value = res || []
|
|
|
+ showObj.value.mix3d = res.length
|
|
|
})
|
|
|
|
|
|
caseFilesTypeGetTree(caseId.value).then(res => {
|
|
|
@@ -346,7 +351,6 @@ const closePreview = () => {
|
|
|
palyUrl.value = null;
|
|
|
}
|
|
|
const showItem = (item) => {
|
|
|
- console.log(item, 'showItem')
|
|
|
if(editOrShow.value === 'edit') return true;
|
|
|
if(!item) return false;
|
|
|
switch (item.key) {
|