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.

72 lines
2.4 KiB

11 months ago
function GetQueryString(name, istop) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (typeof (istop) != "undefined") r = top.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
const App = {
data() {
return {
schoolName:''
}
},
mounted() {
this.getXmssqk();
this.getWnfb();
// this.getXmzl();
// this.getXmzys();
this.schoolName=BASE64.decode(GetQueryString("schoolName"));
},
methods: {
getXmssqk() {
let xmssqkDiv = echarts.init(document.getElementById('xmssqk'), 'white', { renderer: 'canvas' });
xmssqkDiv.clear();
xmssqkDiv.setOption(xmssqkData);
xmssqkDiv.resize();
},
getXmzl() {
let xmzlDiv = echarts.init(document.getElementById('xmzl'), 'white', { renderer: 'canvas' });
xmzlDiv.clear();
xmzlDiv.setOption(wnfbData);
xmzlDiv.resize();
},
getXmzys() {
let xmzysDiv = echarts.init(document.getElementById('xmzys'), 'white', { renderer: 'canvas' });
xmzysDiv.clear();
3 months ago
xmzysDiv.setOption(wnfbYsDataXx);
11 months ago
xmzysDiv.resize();
},
getWnfb() {
let wnfbDiv = echarts.init(document.getElementById('wnfb'), 'white', { renderer: 'canvas' });
wnfbDiv.clear();
3 months ago
wnfbDiv.setOption(wnfbDataXx);
11 months ago
wnfbDiv.resize();
},
wnfbTabClick: function (id) {
let wnfbDiv = echarts.init(document.getElementById('wnfb'), 'white', { renderer: 'canvas' });
if (id === 'wnfbZl') {
$("#wnfbYs").css("color", "#AAAAAA");
$("#wnfbZl").css("color", "#3CD5FF");
wnfbDiv.clear();
3 months ago
wnfbDiv.setOption(wnfbDataXx);
11 months ago
} else {
$("#wnfbZl").css("color", "#AAAAAA");
$("#wnfbYs").css("color", "#7FCEB5");
wnfbDiv.clear();
3 months ago
wnfbDiv.setOption(wnfbYsDataXx);
11 months ago
}
},
}
}
const app = Vue.createApp(App);
app.use(ElementPlus);
app.component('Vue3SeamlessScroll', Vue3SeamlessScroll.Vue3SeamlessScroll);
app.mount("#app");