zhanghua
2022-10-18 5b2dd794ec680d47e907ff43a264a7f82c30a130
src/components/detail/index.vue
@@ -12,7 +12,7 @@
                    <label class="data-title">
                        大类名称:
                    </label>
                    <span class="data-detail">{{baseCase.category}}</span>
                    <span class="data-detail">{{baseCase.violations.categoryText}}</span>
                </div>
            </div>
            <div class="data-item">
@@ -20,13 +20,13 @@
                    <label class="data-title">
                        小类名称:
                    </label>
                    <span class="data-detail">xxx</span>
                    <span class="data-detail">{{baseCase.violations.typeText}}</span>
                </div>
                <div class="data-item__right">
                    <label class="data-title">
                        事件等级:
                    </label>
                    <span class="data-detail">xxx</span>
                    <span class="data-detail">{{baseCase.violations.gradeText}}</span>
                </div>
            </div>
            <div class="data-item">
@@ -34,7 +34,7 @@
                    <label class="data-title">
                        案由:
                    </label>
                    <span class="data-detail">xxx</span>
                    <span class="data-detail">{{baseCase.violations.actionCause}}</span>
                </div>
            </div>
            <div class="data-item">
@@ -48,7 +48,7 @@
                    <label class="data-title">
                        所属社区:
                    </label>
                    <span class="data-detail">xxx</span>
                    <span class="data-detail">{{baseCase.communityText}}</span>
                </div>
            </div>
            <div class="data-item">
@@ -56,7 +56,7 @@
                    <label class="data-title">
                        所属街道:
                    </label>
                    <span class="data-detail">{{baseCase.streetId}}</span>
                    <span class="data-detail">{{baseCase.streetText}}</span>
                </div>
            </div>
            <div class="data-item">
@@ -72,7 +72,7 @@
                    <label class="data-title">
                        关联商铺名称:
                    </label>
                    <span class="data-detail">xxx</span>
                    <span class="data-detail">{{baseCase.violations.shopName}}</span>
                </div>
            </div>
            <div class="data-item">
@@ -80,7 +80,7 @@
                    <label class="data-title">
                        问题描述:
                    </label>
                    <span class="data-detail">xxx</span>
                    <span class="data-detail">{{baseCase.violations.description}}</span>
                </div>
            </div>
            <div class="data-user">
@@ -89,13 +89,13 @@
                        <label class="data-title">
                            反映人:
                        </label>
                        <span class="data-detail">{{baseCase.createUser}}</span>
                        <span class="data-detail">{{baseCase.violations.informant}}</span>
                    </div>
                    <div class="data-item__right">
                        <label class="data-title">
                            联系方式:
                        </label>
                        <span class="data-detail">12345678901</span>
                        <span class="data-detail">{{baseCase.violations.informantPhoneCode}}</span>
                    </div>
                </div>
                <div class="data-item">
@@ -103,7 +103,7 @@
                        <label class="data-title">
                            身份证号:
                        </label>
                        <span class="data-detail">123456789987654321</span>
                        <span class="data-detail">{{baseCase.violations.informantIdCard}}</span>
                    </div>
                </div>
            </div>
@@ -118,10 +118,10 @@
            </div>
            <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>
                    <MySovleProblem v-else-if="activeIndex === 3" :problemProVo="problemProVo"></MySovleProblem>
                    <MyScene v-else></MyScene>
                    <MyProcess v-if="activeIndex === 1" :handlePassVo="handlePassVo" :baseCase="baseCase"></MyProcess>
                    <MyFilePicture v-else-if="activeIndex === 2" :filesPictureVo="filesPictureVo" ></MyFilePicture>
                    <MySovleProblem v-else-if="activeIndex === 3" :baseCase="baseCase" :handlePassVo="handlePassVo"></MySovleProblem>
                    <MyScene v-else :currentSitVo="currentSitVo" :baseCase="baseCase"></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:{},
            // 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) {