|
|
|
@ -12,6 +12,7 @@ Page({
|
|
|
|
|
end:moment().format("YYYY-MM"),
|
|
|
|
|
showChart:true,
|
|
|
|
|
// select: false,
|
|
|
|
|
grade_value1: "",
|
|
|
|
|
grade_name1: '按级别',
|
|
|
|
|
grade_name2: '按价格',
|
|
|
|
|
grade_name3: '按能源',
|
|
|
|
@ -42,6 +43,7 @@ Page({
|
|
|
|
|
sEnergyType: '',
|
|
|
|
|
imageUrl: getApp().globalData.imageUrl,
|
|
|
|
|
mockData:[],
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
ec: {
|
|
|
|
|
lazyLoad:true // 设置图表懒加载
|
|
|
|
@ -215,10 +217,10 @@ Page({
|
|
|
|
|
action: 'getSpec',
|
|
|
|
|
}).then(res => {
|
|
|
|
|
// const data = res;
|
|
|
|
|
let arr = [{name:"全部级别",value:""}]
|
|
|
|
|
let arr = [{text:"全部级别",value:""}]
|
|
|
|
|
res.forEach(ele => {
|
|
|
|
|
let obj = {
|
|
|
|
|
name: ele.value,
|
|
|
|
|
text: ele.value,
|
|
|
|
|
value: ele.key
|
|
|
|
|
}
|
|
|
|
|
arr.push(obj)
|
|
|
|
@ -303,18 +305,11 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
// 按级别
|
|
|
|
|
mySelect1(e) {
|
|
|
|
|
var name = e.currentTarget.dataset.name.name
|
|
|
|
|
var value = e.currentTarget.dataset.name.value
|
|
|
|
|
iPageIndex=1
|
|
|
|
|
iPageSize = 20
|
|
|
|
|
this.data.Stats1=3
|
|
|
|
|
this.setData({
|
|
|
|
|
ranking:[],
|
|
|
|
|
grade_name1: name,
|
|
|
|
|
sSpec: value,
|
|
|
|
|
select1: false,
|
|
|
|
|
box1:this.getBox(this.data.Stats1),
|
|
|
|
|
font1:this.getFont(this.data.Stats1)
|
|
|
|
|
sSpec: e.detail,
|
|
|
|
|
})
|
|
|
|
|
this.getTrend()
|
|
|
|
|
},
|
|
|
|
|