新增公司按钮控制
This commit is contained in:
parent
a7b1ff6113
commit
6e7dd79610
|
|
@ -56,7 +56,10 @@
|
||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleAddCompany"
|
@click="handleAddCompany"
|
||||||
v-if="userId == 1"
|
v-if="
|
||||||
|
userId == 1 &&
|
||||||
|
(ENV === 'development-nw' || ENV === 'production-nw')
|
||||||
|
"
|
||||||
>新增公司</el-button
|
>新增公司</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
@ -421,6 +424,7 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
userId: sessionStorage.getItem('userId'),
|
userId: sessionStorage.getItem('userId'),
|
||||||
|
ENV: process.env.VUE_APP_ENV, // 获取当前运行环境 如是南网开发环境或线上环境 则显示新增公司按钮
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue