“dzb”
2022-10-03 4d9a35462803c7392dedca8d95fe21ff3d949466
src/components/detail/index.vue
@@ -119,9 +119,9 @@
            <div class="show-item">
                <div class="show-wrap">
                    <MyProcess v-if="activeIndex === 1" :handlePassVo="handlePassVo"></MyProcess>
                    <MyFilePicture v-else-if="activeIndex === 2" :currentSitVo="currentSitVo" ></MyFilePicture>
                    <MyFilePicture v-else-if="activeIndex === 2" :filesPictureVo="filesPictureVo" ></MyFilePicture>
                    <MySovleProblem v-else-if="activeIndex === 3" :problemProVo="problemProVo"></MySovleProblem>
                    <MyScene v-else></MyScene>
                    <MyScene v-else :currentSitVo="currentSitVo"></MyScene>
                </div>
            </div>
        </div>
@@ -133,7 +133,7 @@
import MySovleProblem from '@/components/solveProblem'
import MyScene from '@/components/scene'
export default {
    components: {
    components: {
        MyProcess, MyFilePicture, MySovleProblem, MyScene
    },
    data() {
@@ -159,22 +159,24 @@
                    title: '现场情况',
                    index: 4,
                },
            ],
            ],
            baseCase:{},
            handlePassVo:{},
            currentSitVo:{},
            problemProVo:{},
            filesPictureVo:{}
            
        }
    },
    created() {
        console.log('created');
        const {info} = this;
        const {info} = this;
        this.baseCase = info.baseCase;
        this.handlePassVo = info.handlePassVo;
        this.currentSitVo = info.currentSitVo;
        this.problemProVo = info.currentSitVo;
        console.log(info);
        this.problemProVo = info.problemProVo;
        this.filesPictureVo = info.filesPictureVo;
        console.log(info);
    },
    methods: {
        changeComponent(index) {