| | |
| | | backgroundImg5: __webpack_require__(/*! @/static/background/home_ic_jiajianbaojilu@2x.png */ 174), |
| | | backgroundImg6: __webpack_require__(/*! @/static/background/home_ic_huanchang@2x.png */ 175), |
| | | backgroundImg7: __webpack_require__(/*! @/static/background/home_ic_huanchangjilu@2x.png */ 176), |
| | | backgroundImg8: __webpack_require__(/*! @/static/background/home_ic_yuangong@2x.png */ 177), |
| | | backgroundImg9: __webpack_require__(/*! @/static/background/home_ic_paiqian@2x.png */ 178) |
| | | backgroundImg8: __webpack_require__(/*! @/static/background/home_ic_yuangong@2x.png */ 177) |
| | | }; |
| | | }, |
| | | onLoad: function onLoad() {}, |
| | |
| | | } |
| | | switch (type) { |
| | | case 1: |
| | | if (this.userInfo.permissions.filter(function (item) { |
| | | return item === 'business:insuranceapply:query'; |
| | | }).length > 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/insuranceApplication/insuranceApplication' |
| | | }); |
| | | } else { |
| | | uni.showToast({ |
| | | title: '您没有权限', |
| | | icon: 'none' |
| | | }); |
| | | } |
| | | // if (this.userInfo.permissions.filter(item => item === 'business:insuranceapply:query').length > 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/insuranceApplication/insuranceApplication' |
| | | }); |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: '您没有权限', |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | break; |
| | | case 2: |
| | | if (this.userInfo.permissions.filter(function (item) { |
| | | return item === 'business:myPolicy:query'; |
| | | }).length > 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/myPolicy/myPolicy' |
| | | }); |
| | | } else { |
| | | uni.showToast({ |
| | | title: '您没有权限', |
| | | icon: 'none' |
| | | }); |
| | | } |
| | | // if (this.userInfo.permissions.filter(item => item === 'business:myPolicy:query').length > 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/myPolicy/myPolicy' |
| | | }); |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: '您没有权限', |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | break; |
| | | case 3: |
| | | if (this.userInfo.permissions.filter(function (item) { |
| | | return item === 'business:onlineReporting:create'; |
| | | }).length > 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/online_reporting/online_reporting' |
| | | }); |
| | | } else { |
| | | uni.showToast({ |
| | | title: '您没有权限', |
| | | icon: 'none' |
| | | }); |
| | | } |
| | | // if (this.userInfo.permissions.filter(item => item === 'business:onlineReporting:create').length > 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/online_reporting/online_reporting' |
| | | }); |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: '您没有权限', |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | break; |
| | | case 4: |
| | | if (this.userInfo.permissions.filter(function (item) { |
| | | return item === 'business:addsubtract:apply'; |
| | | }).length > 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/addition_subtraction_application/addition_subtraction_application' |
| | | }); |
| | | } else { |
| | | uni.showToast({ |
| | | title: '您没有权限', |
| | | icon: 'none' |
| | | }); |
| | | } |
| | | // if (this.userInfo.permissions.filter(item => item === 'business:addsubtract:apply').length > 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/addition_subtraction_application/addition_subtraction_application' |
| | | }); |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: '您没有权限', |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | break; |
| | | case 5: |
| | | if (this.userInfo.permissions.filter(function (item) { |
| | | return item === 'business:addsubtractInsuranceRecords:query'; |
| | | }).length > 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/add_subtract_insurance/add_subtract_insurance' |
| | | }); |
| | | } else { |
| | | uni.showToast({ |
| | | title: '您没有权限', |
| | | icon: 'none' |
| | | }); |
| | | } |
| | | // if (this.userInfo.permissions.filter(item => item === 'business:addsubtractInsuranceRecords:query').length > 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/add_subtract_insurance/add_subtract_insurance' |
| | | }); |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: '您没有权限', |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | break; |
| | | case 6: |
| | | if (this.userInfo.permissions.filter(function (item) { |
| | | return item === 'business:factoryChange:create'; |
| | | }).length > 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/add_subtract_insurance/add_subtract_insurance' |
| | | }); |
| | | } else { |
| | | uni.showToast({ |
| | | title: '您没有权限', |
| | | icon: 'none' |
| | | }); |
| | | } |
| | | // if (this.userInfo.permissions.filter(item => item === 'business:factoryChange:create').length > 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/factoryChange/factoryChange' |
| | | }); |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: '您没有权限', |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | break; |
| | | case 7: |
| | | if (this.userInfo.permissions.filter(function (item) { |
| | | return item === 'business:factoryChange:query'; |
| | | }).length > 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/dispatch_unit_records/dispatch_unit_records' |
| | | }); |
| | | } else { |
| | | uni.showToast({ |
| | | title: '您没有权限', |
| | | icon: 'none' |
| | | }); |
| | | } |
| | | // if (this.userInfo.permissions.filter(item => item === 'business:factoryChange:query').length > 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/dispatch_unit_records/dispatch_unit_records' |
| | | }); |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: '您没有权限', |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | break; |
| | | case 8: |
| | | if (this.userInfo.permissions.filter(function (item) { |
| | | return item === 'system:user:query'; |
| | | }).length > 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/employee_management/employee_management' |
| | | }); |
| | | } else { |
| | | uni.showToast({ |
| | | title: '您没有权限', |
| | | icon: 'none' |
| | | }); |
| | | } |
| | | // if (this.userInfo.permissions.filter(item => item === 'system:user:query').length > 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/employee_management/employee_management' |
| | | }); |
| | | // } else { |
| | | // uni.showToast({ |
| | | // title: '您没有权限', |
| | | // icon: 'none' |
| | | // }) |
| | | // } |
| | | break; |
| | | } |
| | | } |