From e14d6d0619330cad423f06493e3aa2371faa2a8f Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期六, 09 九月 2023 14:02:23 +0800
Subject: [PATCH] Sit期间修改

---
 force-app/main/default/pages/AssetMaintainIframe.page |   69 +++++++++++++++++++++++++---------
 1 files changed, 51 insertions(+), 18 deletions(-)

diff --git a/force-app/main/default/pages/AssetMaintainIframe.page b/force-app/main/default/pages/AssetMaintainIframe.page
index 0d1bcda..b9a9549 100644
--- a/force-app/main/default/pages/AssetMaintainIframe.page
+++ b/force-app/main/default/pages/AssetMaintainIframe.page
@@ -1,4 +1,4 @@
-<apex:page lightningStylesheets="true">
+<apex:page lightningStylesheets="true" title="澶囧搧缁存姢鏁版嵁鐩稿叧鎿嶄綔">
     <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
     <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
     <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
@@ -7,38 +7,71 @@
                 flex: 2;
                 padding: 20px;
             }
+            .you-button {
+            background-color: #d9d8d8 !important; 
+            box-shadow: 0px 7px 2px 0px #aeacac !important;
+            transition: all .5s !important;
+            }
+
+            /* .you-button:hover {
+                background-color: #fcdc5e !important;
+            } */
+
+        .you-button:active {
+            transform: translate(0,4px) !important;
+            text-shadow: -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0) !important;
+            box-shadow: 0px 1px 0px 0px #aeacac !important;
+        }
+
         </style>
     <apex:form >
         <apex:actionFunction action="{!loadPage}" name="cancel" rerender="allForm" oncomplete="unblockUI();"/>
         <div class="vf-container">
-            <div style="width:10%;float:left;">
+            <div style="width:9%;float:left;">
                 <div>
-                    <apex:commandButton style="width: 99%" value="鏁版嵁缁存姢" onclick="loadPage('/apex/AssetMaintain'); return false"/> 
+                    <apex:commandButton styleClass="you-button" style="width: 100%;" value="鏁版嵁缁存姢" onclick="loadPage('/apex/AssetMaintain'); return false"/> 
                 </div>
-                <div>
-                    <apex:commandButton style="width: 99%" value="缁存姢浜у搧涓绘暟鎹�" onclick="location.href = '/a3z/o'; return false"/> 
+                <div style="margin-top:10px;">
+                    <apex:commandButton style="width: 100%" value="鏁版嵁缁存姢鍗�" onclick="window.open('/lightning/o/AssetMaintainHeader__c/list?filterName=Recent')"/> 
+                </div>
+                <div style="margin-top:10px;">
+                    <apex:commandButton style="width: 100%" value="缁存姢浜у搧涓绘暟鎹�" onclick="window.open('/a3z/o')"/> 
                 </div>
             </div>
-            <div style="width:90%;float:right;" id="vf-content">
-                <!-- VF 椤甸潰鍐呭灏嗗湪姝ゅ鏄剧ず -->
-            </div>
+
+            <iframe src="/apex/AssetMaintain" id="iframepage" width="90%" style="margin-left:3px;" scrolling="auto" onload="changeFrameHeight()" frameborder="0"></iframe>
         </div>
     </apex:form>
         
     
         <script>
-            function loadPage(pageUrl) {
+            // function loadPage(pageUrl) {
     
-                var vfContent = "<iframe src='" + pageUrl + "' style='width: 100%; height: 1000px; border: none;'></iframe>";
-                document.getElementById("vf-content").innerHTML = vfContent;
+            //     var vfContent = "<iframe src='" + pageUrl + "' style='width: 100%; height: 1000px; border: none;'></iframe>";
+            //     document.getElementById("vf-content").innerHTML = vfContent;
                 
-            }
+            // }
     
-            window.addEventListener('load', function () {
-                blockme();
-                var vfContent = "<iframe src='/apex/AssetMaintain' style='width: 100%; height: 1000px; border: none;'></iframe>";
-                document.getElementById("vf-content").innerHTML = vfContent;
-                unblockUI();
-            });
+            // window.addEventListener('load', function () {
+            //     blockme();
+            //     var vfContent = "<iframe src='/apex/AssetMaintain' style='width: 100%; height: 1000px; border: none;'></iframe>";
+            //     document.getElementById("vf-content").innerHTML = vfContent;
+            //     unblockUI();
+            // });
+            function changeFrameHeight(){
+                var ifm= document.getElementById("iframepage");
+                ifm.height=document.documentElement.clientHeight-30;
+            }
+            function changeFlagColor(){
+
+            }
+            window.onresize=function(){
+                changeFrameHeight();
+            }
         </script>
 </apex:page>
\ No newline at end of file

--
Gitblit v1.9.1