修改权限

wp1.0
fanluyan 2 years ago
parent b0fe9a7a79
commit 38bb14f3dd

@ -276,10 +276,10 @@ export default {
index: "/photographicDevice",
title: "拍照装置管理",
},
{
index: "/devicePhotoSchedule",
title: "拍照时间表设置",
},
// {
// index: "/devicePhotoSchedule",
// title: "",
// },
// {
// index: "/deviceUpgrade",
// title: "",

@ -195,7 +195,10 @@
<el-button type="primary" @click="handleShowInfo">
装置信息</el-button
>
<el-button type="primary" @click.native.stop="handleSetSchedule()"
<el-button
v-if="roleUser != 2"
type="primary"
@click.native.stop="handleSetSchedule()"
>拍照时间表</el-button
>
@ -247,7 +250,11 @@
<el-button type="primary" @click="handlehistoryPic">
历史图片</el-button
>
<el-button type="primary" @click="handleParams">
<el-button
v-if="roleUser != 2"
type="primary"
@click="handleParams"
>
参数配置</el-button
>
</div>
@ -442,6 +449,7 @@ export default {
time: 20,
},
commondChannel: 1,
roleUser: "",
};
},
watch: {
@ -457,6 +465,8 @@ export default {
this.getDateTime();
},
created() {
this.roleUser = localStorage.getItem("role");
console.log(this.roleUser);
//
this.zzradio =
JSON.parse(localStorage.getItem("radio")) !== null

Loading…
Cancel
Save