b6a2f994 by lxs

多个异步请求结束后再关闭加载动画

1 parent 2c58d9fe
...@@ -48,7 +48,7 @@ const treeInfo = ref({ ...@@ -48,7 +48,7 @@ const treeInfo = ref({
48 expandOnNodeClick: false, 48 expandOnNodeClick: false,
49 data: [], 49 data: [],
50 }); 50 });
51 const toolH = ref(82) 51 // const toolH = ref(82)
52 const toolRef = ref(); 52 const toolRef = ref();
53 const expand1 = ref(true) 53 const expand1 = ref(true)
54 const expand2 = ref(true) 54 const expand2 = ref(true)
...@@ -389,9 +389,9 @@ const getPermissionList = (val = {}, init = true) => { ...@@ -389,9 +389,9 @@ const getPermissionList = (val = {}, init = true) => {
389 tempInfo = data.filter(item => item.guid == taskDetail.value.classifyGuid)[0] 389 tempInfo = data.filter(item => item.guid == taskDetail.value.classifyGuid)[0]
390 } 390 }
391 listClick(tempInfo); 391 listClick(tempInfo);
392 nextTick(() => { 392 // nextTick(() => {
393 toolH.value = toolRef.value.offsetHeight 393 // toolH.value = toolRef.value.offsetHeight
394 }) 394 // })
395 } 395 }
396 } else { 396 } else {
397 permissionList.value.push(...JSON.parse(JSON.stringify(data))) 397 permissionList.value.push(...JSON.parse(JSON.stringify(data)))
...@@ -439,9 +439,9 @@ onBeforeMount(() => { ...@@ -439,9 +439,9 @@ onBeforeMount(() => {
439 }) 439 })
440 440
441 onMounted(() => { 441 onMounted(() => {
442 window.addEventListener('resize', function () { 442 // window.addEventListener('resize', function () {
443 toolH.value = toolRef.value.offsetHeight 443 // toolH.value = toolRef.value.offsetHeight
444 }) 444 // })
445 }) 445 })
446 446
447 </script> 447 </script>
...@@ -475,7 +475,7 @@ onMounted(() => { ...@@ -475,7 +475,7 @@ onMounted(() => {
475 <span class="title_text">{{ templateInfo.description || '--' }}</span> 475 <span class="title_text">{{ templateInfo.description || '--' }}</span>
476 </div> 476 </div>
477 </div> 477 </div>
478 <div class="panel_content" :style="{ height: 'calc(100% - ' + toolH + 'px)' }"> 478 <div class="panel_content">
479 <div class="box_left"> 479 <div class="box_left">
480 <Tree ref="treeInfoRef" :treeInfo="treeInfo" @nodeClick="nodeClick" /> 480 <Tree ref="treeInfoRef" :treeInfo="treeInfo" @nodeClick="nodeClick" />
481 </div> 481 </div>
...@@ -584,6 +584,7 @@ onMounted(() => { ...@@ -584,6 +584,7 @@ onMounted(() => {
584 display: flex; 584 display: flex;
585 flex-wrap: wrap; 585 flex-wrap: wrap;
586 padding: 16px 16px 8px; 586 padding: 16px 16px 8px;
587 min-height: 82px;
587 588
588 .title_item { 589 .title_item {
589 display: flex; 590 display: flex;
...@@ -618,14 +619,15 @@ onMounted(() => { ...@@ -618,14 +619,15 @@ onMounted(() => {
618 619
619 .panel_content { 620 .panel_content {
620 height: 100%; 621 height: 100%;
621 display: flex;
622 flex: 1; 622 flex: 1;
623 border-top: 1px solid #d9d9d9; 623 border-top: 1px solid #d9d9d9;
624 position: relative;
624 625
625 .box_left { 626 .box_left {
626 width: 200px; 627 width: 200px;
627 height: 100%; 628 height: 100%;
628 border-right: 1px solid #d9d9d9; 629 border-right: 1px solid #d9d9d9;
630 position: absolute;
629 631
630 .aside_title { 632 .aside_title {
631 padding: 0 8px; 633 padding: 0 8px;
...@@ -643,7 +645,10 @@ onMounted(() => { ...@@ -643,7 +645,10 @@ onMounted(() => {
643 645
644 .box_right { 646 .box_right {
645 width: calc(100% - 200px); 647 width: calc(100% - 200px);
648 height: 100%;
646 padding-top: 8px; 649 padding-top: 8px;
650 position: absolute;
651 right: 0;
647 652
648 .el-breadcrumb { 653 .el-breadcrumb {
649 padding: 0 12px; 654 padding: 0 12px;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!