index.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <view class="nocheckBox">
  3. <navigation-bar :isBack="true" @toBack="toBackHandle"></navigation-bar>
  4. <view class="container">
  5. <view class="warningBox">
  6. <text class="title">基本信息</text>
  7. <view class="content" v-if="mapType === 'bj-lsyd'">
  8. <lsyd :objs="objs" />
  9. </view>
  10. <view class="content" v-else-if="mapType === 'syyd'">
  11. <sfyd :objs="objs" />
  12. </view>
  13. <view class="content" v-else-if="mapType === 'bj-gyyd-new'">
  14. <gyyd :objs="objs" />
  15. </view>
  16. <view class="content" v-else-if="mapType === 'bj-zzyd-new' || mapType === 'bj-jyyd'">
  17. <zzyd :objs="objs" />
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. import navigationBar from '../../components/navigationBar/navigationBar.vue';
  25. import httpAjax from '@/utils/https.js';
  26. import CustomMixins from '@/mixins/CustomMixins.js';
  27. import Lsyd from './components/lsyd.vue';
  28. import Gyyd from './components/gyyd.vue';
  29. import Sfyd from './components/sfyd.vue';
  30. import Zzyd from './components/zzyd.vue';
  31. const FormData = require('@/utils/formData/formData.js');
  32. export default {
  33. mixins: [CustomMixins],
  34. components: {
  35. navigationBar,
  36. Lsyd,
  37. Gyyd,
  38. Sfyd,
  39. Zzyd
  40. },
  41. data() {
  42. return {
  43. objs: {},
  44. collapseList: [],
  45. accordionVal: '',
  46. warningId: '',
  47. source: '',
  48. mapType: 'bj-lsyd'
  49. };
  50. },
  51. onReady(){
  52. wx.setNavigationBarTitle(({
  53. title: '要素一本账'
  54. }))
  55. },
  56. onReady() {
  57. uni.showTabBar();
  58. },
  59. onLoad(option) {
  60. const objs = JSON.parse(decodeURIComponent((option['obj'])));
  61. this.source = option['source'];
  62. this.mapType = option['type']
  63. this.objs = objs;
  64. },
  65. methods: {
  66. toBackHandle() {
  67. uni.navigateBack();
  68. },
  69. },
  70. };
  71. </script>
  72. <style lang="scss" scoped>
  73. @import './index.scss';
  74. </style>