luobisheng
2022-12-07 42421d3620b27c2e2d0759f638f223a6c0c2edaa
src/components/detail/index.vue
@@ -6,7 +6,7 @@
                    <label class="data-title">
                        问题类型:
                    </label> 
                    <span class="data-detail">违规</span>
                    <span class="data-detail">{{ getCategoryLabel(baseCase.category) }}</span>
                </div>
                <div class="data-item__right">
                    <label class="data-title">
@@ -38,12 +38,6 @@
                </div>
            </div>
            <div class="data-item">
                <!-- <div class="data-item__left">
                    <label class="data-title">
                        所属区县:
                    </label>
                    <span class="data-detail">xxx</span>
                </div> -->
                <div class="data-item__left">
                    <label class="data-title">
                        所属街道:
@@ -57,14 +51,6 @@
                    <span class="data-detail">{{baseCase.communityText}}</span>
                </div>
            </div>
            <!-- <div class="data-item">
                <div class="data-item__left">
                    <label class="data-title">
                        所属街道:
                    </label>
                    <span class="data-detail">{{baseCase.streetText}}</span>
                </div>
            </div> -->
            <div class="data-item">
                <div class="data-item__left">
                    <label class="data-title">
@@ -138,6 +124,8 @@
import MyFilePicture from '@/components/filePictrue'
import MySovleProblem from '@/components/solveProblem'
import MyScene from '@/components/scene'
import { CATEGOTY } from "@/utils/helper";
export default {
    components: { 
        MyProcess, MyFilePicture, MySovleProblem, MyScene
@@ -174,17 +162,18 @@
        }
    },
    created() {
        const {info} = this;
        this.baseCase = info.baseCase;
        this.handlePassVo = info.handlePassVo;
        this.currentSitVo = info.currentSitVo;
        this.filesPictureVo = info.filesPictureVo;
        console.log(info);
        this.baseCase = this.info.baseCase;
        this.handlePassVo = this.info.handlePassVo;
        this.currentSitVo = this.info.currentSitVo;
        this.filesPictureVo = this.info.filesPictureVo;
    },
    methods: {
        changeComponent(index) {
            this.activeIndex = index;
        },
      getCategoryLabel(category) {
          return CATEGOTY.find(item => item.value === category).label;
      }
    },
    props: ['info','mycode']
}