|
@@ -30,7 +30,11 @@
|
|
|
</div>
|
|
|
<div class="wrap">
|
|
|
<div class="main_top clearfix">
|
|
|
- <div class="button_box">
|
|
|
+ <div class="button_box_l">
|
|
|
+ <!-- <el-button round @click="linkToFun('/notificationSetting')">{{'Notification setting'}}</el-button> -->
|
|
|
+ <el-button round @click="linkToFun('/maintenanceStaff')">{{'Maintenance staff'}}</el-button>
|
|
|
+ </div>
|
|
|
+ <div class="button_box_r">
|
|
|
<el-button round @click="exportExcel()" v-loading="loading.exportExcel">{{'Export Excel'}}</el-button>
|
|
|
<el-button round @click="printing()" v-loading="loading.printing">{{'Print'}}</el-button>
|
|
|
<el-button round icon="el-icon-refresh" @click="refresh()">{{'Refresh'}}</el-button>
|
|
@@ -1420,7 +1424,6 @@
|
|
|
}
|
|
|
},
|
|
|
routerLink(type,data){
|
|
|
-
|
|
|
if(data){
|
|
|
// console.log(data.lampid)
|
|
|
var storage = window.localStorage;
|
|
@@ -1447,8 +1450,8 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- // console.log(this.role)
|
|
|
- if(this.role == 'Super administrator'){
|
|
|
+ console.log(this.role)
|
|
|
+ if(this.role == '1'){
|
|
|
isImplement = true;
|
|
|
}
|
|
|
if(isImplement){
|
|
@@ -1461,6 +1464,24 @@
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ linkToFun(val){
|
|
|
+ let isImplement = true;
|
|
|
+ if(this.role == '1'){
|
|
|
+ isImplement = true;
|
|
|
+ }
|
|
|
+ if(isImplement){
|
|
|
+ this.$router.push({path:val});
|
|
|
+ this.$store.commit('ROUTERSTRFUN',{
|
|
|
+ routerStr:val,
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.$message({
|
|
|
+ showClose: true,
|
|
|
+ message:'No view permissions',
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
routerLampLink(type,data){
|
|
|
window.open('#/'+type+'?id='+data.lampid+'&name='+data.number);
|
|
|
},
|
|
@@ -1652,7 +1673,17 @@
|
|
|
margin-bottom: 80px;
|
|
|
padding-top: 32px;
|
|
|
position: relative;
|
|
|
- .button_box{
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ .button_box_l{
|
|
|
+ float: right;
|
|
|
+ .el-button{
|
|
|
+ background: linear-gradient(140.3deg,rgba(252,132,64,1),rgba(254,113,33,1));
|
|
|
+ color: #fff;
|
|
|
+ margin-left: 18px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .button_box_r{
|
|
|
float: right;
|
|
|
.el-button{
|
|
|
background: linear-gradient(140.3deg,rgba(252,132,64,1),rgba(254,113,33,1));
|