| | |
| | | v-if="roleType == 5"></unload-mypage> |
| | | <sampling-myPage ref="samplingRef" |
| | | v-if="roleType == 6"></sampling-myPage> |
| | | <tab-bar :current="(roleType==5 || roleType == 6 )?1:2"></tab-bar> |
| | | <entranceGuardMypage ref='entranceGuardRef' v-if="roleType == 7"/> |
| | | <tab-bar :current="(roleType==5 || roleType == 6 || roleType == 7)?1:2"></tab-bar> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | import freightForwarderMyPage from '@/pages/freight-forwarder-page/freightForwarder-my/freightForwarder-my.vue'; |
| | | import UnloadMypage from '@/pages/loadUnload-page/my-page/my-page.vue'; |
| | | import samplingMyPage from '@/pages/sampling-page/sampling-my.vue'; |
| | | import entranceGuardMypage from '@/pages/entranceGuard/entranceGuard' |
| | | export default { |
| | | components: { |
| | | customerMyPage, |
| | | driverMyPage, |
| | | freightForwarderMyPage, |
| | | UnloadMypage, |
| | | samplingMyPage |
| | | samplingMyPage, |
| | | entranceGuardMypage |
| | | }, |
| | | onLoad() { |
| | | this.init(); |
| | |
| | | this.$nextTick(()=>{ |
| | | this.$refs.samplingRef.init(); |
| | | }) |
| | | |
| | | case 7: |
| | | this.$nextTick(()=>{ |
| | | this.$refs.entranceGuardRef.init(); |
| | | }) |
| | | break; |
| | | default: |
| | | break; |