修改
This commit is contained in:
@@ -164,7 +164,7 @@ export default {
|
||||
this.signed = sessionStorage.getItem('signed')
|
||||
|
||||
const obj = JSON.parse(sessionStorage.getItem('tidCid'))
|
||||
if(obj.item && obj.item.isState) {
|
||||
if(obj&&obj.item && obj.item.isState) {
|
||||
this.isState = obj.item.isState
|
||||
}
|
||||
|
||||
@@ -181,6 +181,7 @@ export default {
|
||||
computed: {
|
||||
...mapState('report', ['EnergyReportInfo']),
|
||||
levelShow() {
|
||||
// 客户经理 2
|
||||
if(this.$store.getters.userLevel != 2) {
|
||||
return false
|
||||
}
|
||||
@@ -268,6 +269,10 @@ export default {
|
||||
async getLoginCustomer() {
|
||||
this.loading2 = true
|
||||
try {
|
||||
let reportCustomerId = localStorage.getItem('reportCustomerId')
|
||||
if(reportCustomerId&&this.$route.name=='energyReport'){
|
||||
return
|
||||
}
|
||||
const res = await getLoginCustomerAPI()
|
||||
// console.log(res.data.customerId);
|
||||
if (res.code == 0) {
|
||||
|
||||
Reference in New Issue
Block a user