<template>
  <view class="nocheckBox">
    <navigation-bar :isBack="true" @toBack="toBackHandle"></navigation-bar>
    <view class="container">
      <view class="warningBox">
        <text class="title">基本信息</text>
        <view class="content" v-if="mapType === 'bj-lsyd'">
			<lsyd :objs="objs" />
        </view>
        <view class="content" v-else-if="mapType === 'syyd'">
			<sfyd :objs="objs" />
        </view>
        <view class="content" v-else-if="mapType === 'bj-gyyd-new'">
			<gyyd :objs="objs" />
        </view>
        <view class="content" v-else-if="mapType === 'bj-zzyd-new' || mapType === 'bj-jyyd'">
			<zzyd :objs="objs" />
        </view>
      </view>
    </view>
  </view>
</template>

<script>
import navigationBar from '../../components/navigationBar/navigationBar.vue';
import httpAjax from '@/utils/https.js';
import CustomMixins from '@/mixins/CustomMixins.js';
import Lsyd from './components/lsyd.vue';
import Gyyd from './components/gyyd.vue';
import Sfyd from './components/sfyd.vue';
import Zzyd from './components/zzyd.vue';

const FormData = require('@/utils/formData/formData.js');

export default {
  mixins: [CustomMixins],
  components: {
    navigationBar,
	Lsyd,
	Gyyd,
	Sfyd,
	Zzyd
  },
  data() {
    return {
      objs: {},
      collapseList: [],
      accordionVal: '',
      warningId: '',
	  source: '',
	  mapType: 'bj-lsyd'
    };
  },
  onReady(){
	wx.setNavigationBarTitle(({
		title: '要素一本账'
	}))  
  },
  onReady() {
    uni.showTabBar();
  },
  onLoad(option) {
    const objs = JSON.parse(decodeURIComponent((option['obj'])));
	this.source = option['source'];
	this.mapType = option['type']
    this.objs = objs;
  },
  methods: {
    toBackHandle() {
      uni.navigateBack();
    },
  },
};
</script>

<style lang="scss" scoped>
@import './index.scss';
</style>
