index.vue 2.33 KB
<template>
    <div class="content_box">
        <el-tabs v-model="activeName" class="tabs" @tab-click="handleClick"   >
            <el-tab-pane label="多幢基本信息" name="dzxx"><dzxx v-if="dzJbxxVisble"></dzxx></el-tab-pane>
            <el-tab-pane label="附件材料" name="fjcl"><fjcl v-if="fjclVisible" ref="fjcl" :is-disabled="isDisabled"></fjcl></el-tab-pane>
            <el-tab-pane label="历史回溯" name="lshs"><lshs v-if="lshsVisible" :type="type" :bsm="$route.query.bsm"></lshs></el-tab-pane>
            <el-tab-pane label="登记簿" name="djb"><djb></djb></el-tab-pane>
            <el-tab-pane label="流程跟踪" name="lcgz"  v-if="$store.state.isWorkFlow || $store.state.lcgzShow" lazy>
                <lcgz  ref="lcgz" ></lcgz>
            </el-tab-pane>
        </el-tabs>
    </div>
</template>

<script>
    import dzxx from "./dzxx";
    import fjcl from "./../zd/fjcl/fjcl"
    import {queryStatus} from "@api/search"
    import Lshs from '@components/lshs/index';
    import Lcgz from "../zd/lcgz"
    import djb from "./djb";
    export default {
        name: "",
        components: {
            dzxx,fjcl,Lshs,djb,lcgz
        },
        props: {},
        data() {
            return {
                isDisabled:false,
                activeName: "dzxx",
                dzJbxxVisble:true,
                lshsVisible:false,
                type:'dz',
                fjclVisible:false
            };
        },
        methods: {
            loadingStatus() {
                let bsm=this.$store.state.dzbsm;
                queryStatus(bsm).then(res => {
                    if (res.success) {
                        let qszt = res.result.qszt;
                        this.isDisabled = +qszt !== 0;
                    }
                })
            },
            handleClick(tab, event) {
                this.loadingStatus();
                switch (tab.name) {
                    case 'dzxx':
                        this.dzJbxxVisble = true;
                        break
                    case 'fjcl':
                        this.fjclVisible = true;
                        break;
                    default:
                        break;
                }
            },
        },
        created() {},
        mounted() {},
        computed: {},
        watch: {},
    };
</script>
<style scoped lang="less">
</style>