黄千龙
2023-08-09 626f3c3bb25e204568019e8d568e2d7547d1037a
force-app/main/default/pages/QLMAttachmentPreview.page
@@ -1,6 +1,7 @@
<apex:page action="{!init}" id="Page"  controller="QLMAttachmentPreviewController" showheader="false" sidebar="false">
<apex:page action="{!init}" id="Page"  controller="QLMAttachmentPreviewController" showheader="false" sidebar="false" lightningStylesheets="true">
    <!-- 文件列表 点击行项目 预览图片 非图片格式点击下载  -->
    <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/>
    <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}">
    </apex:stylesheet>
    <apex:includescript value="{!URLFOR($Resource.jquery183minjs)}">
@@ -109,7 +110,7 @@
    // 返回按钮根据传id返回上一级操作
        function test(){
        var queryVal=GetQueryValue('parentId');
        // var url='https://ocsm--stagefull.my.salesforce.com/'+queryVal;
        // var url='https://ocsm--partial--c.sandbox.vf.force.com/'+queryVal;
        var url='https://ocsm.my.salesforce.com/'+queryVal;
        window.location.href=url;
        }
@@ -170,8 +171,8 @@
                <apex:column style="width: 60%;   height: 25px;text-align: center;font-size: 13px;
      border-left: 1px solid #cbcbcb;">
                    <!--  //javascript:void(0) 为了实现a标签跳转 -->
                    <a href="javascript:void(0);" onclick="openUrl('{!attach.Id}','{!attach.Name}')">
                        <apex:outputfield id="attachMentName" value="{!attach.Name}">
                    <a href="javascript:void(0);" onclick="openUrl('{!attach.Id}','{!attach.Title}')">
                        <apex:outputfield id="attachMentName" value="{!attach.Title}">
                        </apex:outputfield>
                    </a>
                    <!-- onclick="ClearJson('{!attach.Name}')" -->