|
@@ -202,17 +202,26 @@
|
|
|
let arr = localStorage.getItem('roleName').split(',')
|
|
|
// 根据 租户好判断是否要显示 积分余额
|
|
|
const content = JSON.parse(localStorage.getItem('saber-tenantId')).content
|
|
|
- if (content == 171757) {
|
|
|
- this.$nextTick(()=>{
|
|
|
- if (arr.indexOf('admin') != -1) {
|
|
|
- this.findObject(this.option.column, "pointsBalance").disabled = false
|
|
|
- }
|
|
|
- this.findObject(this.option.column, "pointsBalance").hide = false
|
|
|
- this.findObject(this.option.column, "pointsBalance").addDisplay = true
|
|
|
- this.findObject(this.option.column, "pointsBalance").editDisplay = true
|
|
|
- this.findObject(this.option.column, "pointsBalance").viewDisplay = true
|
|
|
- })
|
|
|
- }
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ if (arr.indexOf('admin') != -1) {
|
|
|
+ this.findObject(this.option.column, "pointsBalance").disabled = false
|
|
|
+ }
|
|
|
+ this.findObject(this.option.column, "pointsBalance").hide = false
|
|
|
+ this.findObject(this.option.column, "pointsBalance").addDisplay = true
|
|
|
+ this.findObject(this.option.column, "pointsBalance").editDisplay = true
|
|
|
+ this.findObject(this.option.column, "pointsBalance").viewDisplay = true
|
|
|
+ })
|
|
|
+ // if (content == 171757) {
|
|
|
+ // this.$nextTick(()=>{
|
|
|
+ // if (arr.indexOf('admin') != -1) {
|
|
|
+ // this.findObject(this.option.column, "pointsBalance").disabled = false
|
|
|
+ // }
|
|
|
+ // this.findObject(this.option.column, "pointsBalance").hide = false
|
|
|
+ // this.findObject(this.option.column, "pointsBalance").addDisplay = true
|
|
|
+ // this.findObject(this.option.column, "pointsBalance").editDisplay = true
|
|
|
+ // this.findObject(this.option.column, "pointsBalance").viewDisplay = true
|
|
|
+ // })
|
|
|
+ // }
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(["userInfo", "permission"]),
|