| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <customer-index v-if="roleType == 1" |
| | | <customer-index v-if="roleType == 1||roleType == 4" |
| | | ref="customerIndexRef" |
| | | :orderPlanDataStore="orderPlanDataStore"></customer-index> |
| | | <freight-forwarder-index v-if="roleType == 2" |
| | |
| | | }); |
| | | } |
| | | // 客户获取日计划 |
| | | if (this.roleType == 1) { |
| | | if (this.roleType == 1 || this.roleType == 4) { |
| | | this.$reqGet('GetOrderPlan').then(res => { |
| | | if (res.data) { |
| | | this.orderPlanDataStore = res.data; |
| | |
| | | if (this.globalisconnect) { |
| | | this.$store.dispatch('websocketInit') |
| | | this.changeisconnect(false) |
| | | console.log(this.globalisconnect, 'index的ws心事’'); |
| | | console.log(this.globalisconnect, 'index的ws数据’'); |
| | | } |
| | | this.userAuthorization(); |
| | | this.messageReq(); |
| | |
| | | console.log('页面卸载'); |
| | | this.$store.dispatch('websocketOnClose') |
| | | clearInterval(this.globalIntervalId); |
| | | this.changeisconnect(true) |
| | | }, |
| | | methods: { |
| | | ...mapMutations(['pushMessage', 'changeWeigh', 'changeinfraredStatus', 'changeisconnect', 'websocketInit']), |
| | |
| | | this.$refs.driverIndexRef.init(); |
| | | }); |
| | | break; |
| | | case 4: |
| | | console.log('customerIndexRef'); |
| | | this.$nextTick(() => { |
| | | this.$refs.customerIndexRef.init(); |
| | | }); |
| | | break; |
| | | default: |
| | | break; |
| | | } |