|
|
|
@ -65,6 +65,12 @@ export default { |
|
|
|
this.unsub(this.ajaxTv.getSymbol(o), this.timer); |
|
|
|
} |
|
|
|
}, |
|
|
|
periodCurrent(n,o){ |
|
|
|
if(n != o && o){ |
|
|
|
console.log('切换周期,页数为第一页') |
|
|
|
this.page[this.symbol] = 1;//切换周期,页数为第一页 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
lang() { |
|
|
|
@ -122,7 +128,8 @@ data() { |
|
|
|
sub: "", |
|
|
|
isCreateSocket: false, |
|
|
|
page: {}, |
|
|
|
tt:undefined |
|
|
|
tt:undefined, |
|
|
|
periodCurrent: '' |
|
|
|
}; |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
@ -239,11 +246,12 @@ methods: { |
|
|
|
onErrorCallback |
|
|
|
) { |
|
|
|
// handleClick |
|
|
|
this.periodCurrent = this.resolution(resolution); |
|
|
|
this.page[this.symbol] = this.page[this.symbol] || 1; |
|
|
|
let page = this.page[this.symbol] > 3 ? 3 : this.page[this.symbol]; |
|
|
|
let data = { |
|
|
|
symbol: this.ajaxTv.getSymbol(symbolInfo.name), |
|
|
|
period: this.resolution(resolution), |
|
|
|
period: this.periodCurrent, |
|
|
|
form: rangeStartDate, |
|
|
|
to: rangeEndDate, |
|
|
|
size: page * 200, |
|
|
|
|