up
This commit is contained in:
@ -378,6 +378,7 @@ const chartModeDiv = ref(null);
|
||||
let cunVar = ref(null);
|
||||
let zhenVar = ref(null);
|
||||
let regionName = ref('');
|
||||
let flags = ref(false);
|
||||
let amount = ref([
|
||||
{
|
||||
wheatUnitOutputValue: 0,
|
||||
@ -1051,13 +1052,13 @@ function rightFoldClick() {
|
||||
const SwitchMode = () => {
|
||||
SwitchFlag.value = !SwitchFlag.value;
|
||||
const statInfo = chartModeDiv.value; // 获取图表元素
|
||||
statInfo.style.width = window.innerWidth - 200 + 'px'; //初始化echarts图表宽度
|
||||
statInfo.style.height = window.innerHeight - 200 + 'px';
|
||||
statInfo.style.width = document.querySelector('.chartMode').offsetWidth + 'px'; //初始化echarts图表宽度
|
||||
statInfo.style.height = document.querySelector('.chartMode').offsetHeight + 'px';
|
||||
const myChart = echarts.init(statInfo);
|
||||
// 设置宽度自适应
|
||||
window.addEventListener('resize', () => {
|
||||
statInfo.style.width = window.innerWidth - 200 + 'px';
|
||||
statInfo.style.height = window.innerHeight - 200 + 'px';
|
||||
statInfo.style.width = document.querySelector('.chartMode').offsetWidth + 'px';
|
||||
statInfo.style.height = document.querySelector('.chartMode').offsetHeight + 'px';
|
||||
myChart.resize();
|
||||
});
|
||||
chartModes();
|
||||
@ -1242,13 +1243,13 @@ const onSubmit = () => {
|
||||
}
|
||||
}
|
||||
const statInfo = chartModeDiv.value; // 获取图表元素
|
||||
statInfo.style.width = window.innerWidth - 100 + 'px'; //初始化echarts图表宽度
|
||||
statInfo.style.height = window.innerHeight - 100 + 'px';
|
||||
statInfo.style.width = document.querySelector('.app-main').offsetWidth-50 + 'px'; //初始化echarts图表宽度
|
||||
statInfo.style.height = document.querySelector('.app-main').offsetHeight + 'px';
|
||||
const myChart = echarts.init(statInfo);
|
||||
// 设置宽度自适应
|
||||
window.addEventListener('resize', () => {
|
||||
statInfo.style.width = window.innerWidth - 200 + 'px';
|
||||
statInfo.style.height = window.innerHeight - 200 + 'px';
|
||||
statInfo.style.width = document.querySelector('.app-main').offsetWidth + 'px';
|
||||
statInfo.style.height = document.querySelector('.app-main').offsetHeight + 'px';
|
||||
myChart.resize();
|
||||
});
|
||||
chartModes();
|
||||
@ -1316,6 +1317,7 @@ const Nindex = index => {
|
||||
return index + 1 + (page - 1) * pagesize;
|
||||
};
|
||||
|
||||
|
||||
/*-------------echarts--------------*/
|
||||
function areachar() {
|
||||
const areaDivIntance = echarts.init(areaDiv.value);
|
||||
@ -1943,8 +1945,8 @@ function chartModes() {
|
||||
},
|
||||
},
|
||||
grid: {
|
||||
top: '15%',
|
||||
bottom: '15%',
|
||||
top: '5%',
|
||||
bottom: '20%',
|
||||
},
|
||||
// legend: {
|
||||
// data: ['人群数量', '基金金额'],
|
||||
@ -1959,7 +1961,7 @@ function chartModes() {
|
||||
type: 'slider',
|
||||
width: '40%',
|
||||
zoomLock: true,
|
||||
top: '90%',
|
||||
top: '85%',
|
||||
start: 0,
|
||||
end: ends,
|
||||
showDataShadow: false,
|
||||
|
Reference in New Issue
Block a user