sandm 2 жил өмнө
parent
commit
9851273796

+ 7 - 1
app/admin/view/enterprise/goto_enterprise_detail_page.html

@@ -44,7 +44,7 @@
 
 </script>
 <div class="ibox float-e-margins">
-    <div class="ibox-content" style="height: 700px;">
+    <div class="ibox-content" style="height: 1000px;">
         <input type="text" class="form-control" id="id" name="id" value="{$ep.id}" style="display: none;"/>
         <div class="panel-body">
             <div class="panel panel-default">
@@ -207,6 +207,12 @@
                             <td>
                                 {$ep.agentEmail}
                             </td>
+                            <td>
+                                人才联络员信息备案表
+                            </td>
+                            <td>
+                                <button type="button" onclick="Feng.showFile('{$ep.beian|getFileView}','beian')">点击查看</button>
+                            </td>
                         </tr>
                     </table>
                 </div>

+ 5 - 0
app/common.php

@@ -176,3 +176,8 @@ function getStoragePath($path) {
     }
     return "";
 }
+
+function getFileView($path){
+    $complete_path = "http://report.jinjianghc.com/".getStoragePath($path);
+    return "http://fileview.jinjianghc.com/onlinePreview?url=".base64_encode($complete_path);
+}

+ 18 - 0
public/static/js/common/Feng.js

@@ -509,6 +509,24 @@ var Feng = {
     showExcel:function(url,id,title){
         window.location.href = url;
     },
+    showFile:function(url,id,title){
+        if(Feng.isEmptyStr(id)){
+            id = "id";
+        }
+        if(Feng.isEmptyStr(title)){
+            title = "预览";
+        }
+        var index = layer.open({
+            id:id,
+            type: 2,
+            shade: 0,
+            title: title,
+            area: ['600px', '350px'], //宽高
+            fix: false, //不固定
+            maxmin: true,
+            content: url,
+        });
+    },
     isEmptyStr:function(str) {
         if(str == null || str == ''){
             return true;