Commit e5974890 authored by 沈翠玲's avatar 沈翠玲

外协

parent 4251ae03
...@@ -51,8 +51,19 @@ export default { ...@@ -51,8 +51,19 @@ export default {
data() { data() {
return { return {
curTab: 'PRO', curTab: 'PRO',
proImg: require('@/static/icons/png/pro.png'), proImg: require('@/static/icons/png/pro.png')
tabList: [{ }
},
computed: {
tabList () {
if (this.vuex_workunit && this.vuex_workunit.workunitName === '广州宝绅委外工作单元') {
return [{
path: 'PRO',
title: '外协',
icon: require('@/static/icons/png/wx.png')
}]
} else {
return [{
path: 'PRO', path: 'PRO',
title: '生产', title: '生产',
icon: require('@/static/icons/png/pro.png') icon: require('@/static/icons/png/pro.png')
...@@ -62,6 +73,7 @@ export default { ...@@ -62,6 +73,7 @@ export default {
icon: require('@/static/icons/png/qc.png') icon: require('@/static/icons/png/qc.png')
}] }]
} }
}
}, },
created() { created() {
uni.$on('switchTab', (indexCode) => { uni.$on('switchTab', (indexCode) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment