You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.0 KiB
37 lines
1.0 KiB
const app = {
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
mounted() {
|
|
this.getQsfb();
|
|
this.getWnfb();
|
|
this.getSsjd();
|
|
},
|
|
methods: {
|
|
tabClick: function (index) {
|
|
this.cur = index;
|
|
},
|
|
getQsfb() {
|
|
let qsfbDiv = echarts.init(document.getElementById('qsfb'), 'white', { renderer: 'canvas' });
|
|
qsfbDiv.clear();
|
|
qsfbDiv.setOption(qsfbData);
|
|
},
|
|
getWnfb() {
|
|
let wnfbDiv = echarts.init(document.getElementById('wnfb'), 'white', { renderer: 'canvas' });
|
|
wnfbDiv.clear();
|
|
wnfbDiv.setOption(wnfbData);
|
|
},
|
|
getSsjd() {
|
|
console.log('1111')
|
|
let ssjdDiv = echarts.init(document.getElementById('ssjd'), 'white', { renderer: 'canvas' });
|
|
ssjdDiv.clear();
|
|
ssjdDiv.setOption(ssjdData);
|
|
}
|
|
}
|
|
}
|
|
|
|
Vue.createApp(app).mount("#app");
|
|
|