Authored by ‘superliu’

业务视图左侧菜单最大宽度、对比分析点击编辑 初始化echars

@@ -2640,6 +2640,7 @@ grayColor{ @@ -2640,6 +2640,7 @@ grayColor{
2640 order: 1; 2640 order: 1;
2641 /*width: 250px;*/ 2641 /*width: 250px;*/
2642 min-width: 250px; 2642 min-width: 250px;
  2643 + max-width: 300px;
2643 overflow: hidden; 2644 overflow: hidden;
2644 /*margin-left: 10px;*/ 2645 /*margin-left: 10px;*/
2645 margin-left: 5px; 2646 margin-left: 5px;
@@ -7272,7 +7273,7 @@ form[lay-filter="tax-statistical-statement-condition"] { @@ -7272,7 +7273,7 @@ form[lay-filter="tax-statistical-statement-condition"] {
7272 } 7273 }
7273 /****** 动环配置 结束 ******/ 7274 /****** 动环配置 结束 ******/
7274 7275
7275 -/*资源视图、业务视图左侧树选中时添加背景颜色类似菜单树选择的样式*/ 7276 +/*资源视图、左侧树选中时添加背景颜色类似菜单树选择的样式*/
7276 .resIndexLeft .tree-node-select,.bizIndexLeft .tree-node-select { 7277 .resIndexLeft .tree-node-select,.bizIndexLeft .tree-node-select {
7277 font-size: 17px; 7278 font-size: 17px;
7278 font-weight: bold; 7279 font-weight: bold;
@@ -15,7 +15,6 @@ const timeRange = () => { @@ -15,7 +15,6 @@ const timeRange = () => {
15 proxy.$http.post(`/api-web/manage/ddic/findSucDdics/time_scope`, {}, function (res) { 15 proxy.$http.post(`/api-web/manage/ddic/findSucDdics/time_scope`, {}, function (res) {
16 if (res && res.data) { 16 if (res && res.data) {
17 timeRangeArr.value = res.data; 17 timeRangeArr.value = res.data;
18 -  
19 if (callback) { 18 if (callback) {
20 callback(res.data[0].ddicCode); 19 callback(res.data[0].ddicCode);
21 } 20 }
@@ -280,12 +279,20 @@ export default { @@ -280,12 +279,20 @@ export default {
280 loadTimeRange, 279 loadTimeRange,
281 } = timeRange(); 280 } = timeRange();
282 281
  282 +
  283 +
283 let timeRangeChange = (item) => { 284 let timeRangeChange = (item) => {
284 - let code = item.ddicCode;  
285 - loadFrequency(code); 285 + setTimeout(function(){
  286 + let code = item.ddicCode;
  287 + loadFrequency(code);
  288 + },300);
  289 +
286 290
287 // 加载echar 291 // 加载echar
288 - getChartData(); 292 + setTimeout(function(){
  293 + getChartData();
  294 + },600);
  295 +
289 } 296 }
290 297
291 //根菜单选择事件 298 //根菜单选择事件
@@ -319,6 +326,7 @@ export default { @@ -319,6 +326,7 @@ export default {
319 326
320 let getChartData = () => { 327 let getChartData = () => {
321 328
  329 + console.log("======form.value.scene===00000000--------",form.value.scene);
322 let timeScope = ''; 330 let timeScope = '';
323 try { 331 try {
324 timeScope = form.value.scene.timeScope.replaceAll("time_scope_", "") 332 timeScope = form.value.scene.timeScope.replaceAll("time_scope_", "")
@@ -572,15 +580,18 @@ export default { @@ -572,15 +580,18 @@ export default {
572 }); 580 });
573 581
574 //LH 582 //LH
  583 + setTimeout(function(){
  584 + let arrs= timeRangeArr.value
  585 + timeRangeChange(arrs[0]);
  586 + },300)
  587 +
575 } 588 }
576 //查询对比分析基础数据 589 //查询对比分析基础数据
577 let getBContrastInfoById=(id)=>{ 590 let getBContrastInfoById=(id)=>{
578 proxy.$http.get(`/api-web/ContrastAnalysis/getBContrastInfoById`,{id:id}, function (res) { 591 proxy.$http.get(`/api-web/ContrastAnalysis/getBContrastInfoById`,{id:id}, function (res) {
579 if (res.success) { 592 if (res.success) {
580 - console.log("=============",res);  
581 form.value.scene.name=res.object.configName; 593 form.value.scene.name=res.object.configName;
582 form.value.scene.desc=res.object.configDepict; 594 form.value.scene.desc=res.object.configDepict;
583 - // console.log("==================",res);  
584 595
585 } 596 }
586 }); 597 });
@@ -589,7 +600,7 @@ export default { @@ -589,7 +600,7 @@ export default {
589 // 挂载完 600 // 挂载完
590 Vue.onMounted(() => { 601 Vue.onMounted(() => {
591 602
592 - init(); 603 +
593 604
594 if(!id){ 605 if(!id){
595 activeName.value = 'second'; 606 activeName.value = 'second';
@@ -611,6 +622,7 @@ export default { @@ -611,6 +622,7 @@ export default {
611 } 622 }
612 }); 623 });
613 }); 624 });
  625 + init();
614 console.log('onMounted'); 626 console.log('onMounted');
615 }) 627 })
616 628