修改
This commit is contained in:
@@ -114,6 +114,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) {
|
||||
|
||||
@@ -626,6 +626,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) {
|
||||
|
||||
@@ -716,6 +716,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) {
|
||||
|
||||
@@ -156,7 +156,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="manage-start-text">
|
||||
在建筑用能管理方面,贵单位{{ EnergyReportInfo.energyPlatform }}能源管控平台<span v-if="!(EnergyReportInfo.platformFeatures.split('')[0] == '未'||EnergyReportInfo.platformFeatures == '无')">,平台的功能包括具备{{ EnergyReportInfo.platformFeatures }}功能</span>。
|
||||
在建筑用能管理方面,贵单位{{ EnergyReportInfo.energyPlatform }}能源管控平台<span v-if="!(EnergyReportInfo.platformFeatures&&(EnergyReportInfo.platformFeatures.split('')[0] == '未'||EnergyReportInfo.platformFeatures == '无'))">,平台的功能包括具备{{ EnergyReportInfo.platformFeatures }}功能</span>。
|
||||
<span v-if="!(EnergyReportInfo.useEnergy == '无')">
|
||||
使用能源({{ EnergyReportInfo.useEnergy }})已经具备分项计量功能,用能单位能源计量器具配备{{ EnergyReportInfo.meterComplete }}。
|
||||
</span>
|
||||
@@ -264,6 +264,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) {
|
||||
|
||||
@@ -26,9 +26,12 @@
|
||||
<!-- <van-dropdown-menu class="timeSelect" v-if="timeSelectShow" >
|
||||
<van-dropdown-item v-model="yearVal" :options="yearList" @change="handelChangeTime" />
|
||||
</van-dropdown-menu> -->
|
||||
<div class="detail2-right-top-reset" @click="generateReport" v-if="timeSelectShow">
|
||||
<div class="detail2-right-top-reset" @click="generateReport(false)" v-if="timeSelectShow">
|
||||
重新生成
|
||||
</div>
|
||||
<div class="detail2-right-top-reset" @click="generateReport(true)" v-if="timeSelectShow&&isCq">
|
||||
刷新
|
||||
</div>
|
||||
</div>
|
||||
<div class="detail2-right-bottom">
|
||||
{{userCode}}:
|
||||
@@ -212,6 +215,9 @@ export default {
|
||||
res ='|' + this.EnergyReportInfo.buildType.split('/')[0]
|
||||
}
|
||||
return '公共机构'+res
|
||||
},
|
||||
isCq(){
|
||||
return process.env.VUE_APP_CITY_TYPE=='cq'
|
||||
}
|
||||
|
||||
},
|
||||
@@ -224,8 +230,8 @@ export default {
|
||||
created() {
|
||||
this.level = sessionStorage.getItem('level')
|
||||
this.getEnergyReportInfo()
|
||||
this.doDebounce = debounce(function () {
|
||||
this.getGenerateReport()
|
||||
this.doDebounce = debounce(function (flag) {
|
||||
this.getGenerateReport(flag)
|
||||
}, 5000, true)
|
||||
},
|
||||
methods: {
|
||||
@@ -423,13 +429,14 @@ export default {
|
||||
this.$router.push({path: '/energyReport'})
|
||||
},
|
||||
// 重新生成
|
||||
generateReport(){
|
||||
this.doDebounce()
|
||||
generateReport(flag){
|
||||
this.doDebounce(flag)
|
||||
},
|
||||
async getGenerateReport() {
|
||||
async getGenerateReport(flag) {
|
||||
let data = {
|
||||
customerId: this.energyData.customerId,
|
||||
taskId: this.energyData.taskId
|
||||
taskId: this.energyData.taskId,
|
||||
refresh: flag
|
||||
}
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
|
||||
@@ -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