修改权限

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

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

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

Loading…
Cancel
Save