Przeglądaj źródła

工资
网站信息发布

ZYjames 5 dni temu
rodzic
commit
81d1f061b5

+ 4 - 1
tpl/gongzi/js/list.js

@@ -48,7 +48,7 @@ app.controller("listCtrl", ["$scope", "$http", "$timeout", function ($scope, $ht
                 if (item.code != "ID" && item.code != "ROUTEINFOID" &&
                     item.code != "SORTID" && item.code != "APPCODE" &&
                     item.code != "CTIME" && item.code != "RYSF" && item.code != "RYFL" && item.code != "SFZHM" && item.code != "CJGZSJ" && item.code != "ZW") {
-                    self.thead.push({ code: item.code, cname: item.cname, ckind: item.ckind })
+                    self.thead.push({ code: item.code, cname: item.cname, ckind: item.ckind, show: true })
                 }
             })
             self.date = sp.currentYear() + "-" + formate(sp.currentMonth())
@@ -130,6 +130,9 @@ app.controller("listCtrl", ["$scope", "$http", "$timeout", function ($scope, $ht
                             if (item1.ckind == "datetime") {
                                 item[item1.code] = sp.format(item[item1.code]).slice(0, 10)
                             }
+                            if ((item1.ckind == "decimal" && item[item1.code] == 0) || item[item1.code] == "" || item[item1.code] == null | item[item1.code] == undefined) {
+                                item1.show = false;
+                            }
                         })
                     })
                 }

+ 2 - 2
tpl/gongzi/list.html

@@ -44,13 +44,13 @@
                                                 <thead>
                                                     <tr>
                                                         <th width="50">序号</th>
-                                                        <th style="min-width:100px" ng-repeat="item in ctl.thead" ng-bind="item.cname"></th>
+                                                        <th style="min-width:100px" ng-repeat="item in ctl.thead" ng-if="item.show" ng-bind="item.cname"></th>
                                                     </tr>
                                                 </thead>
                                                 <tbody>
                                                     <tr ng-repeat="item in ctl.list">
                                                         <td ng-bind="$index+1"></td>
-                                                        <td ng-repeat="item1 in ctl.thead"><span title="{{item[item1.code]}}" ng-bind="item[item1.code]"></span></td>
+                                                        <td ng-repeat="item1 in ctl.thead" ng-if="item1.show"><span title="{{item[item1.code]}}" ng-bind="item[item1.code]"></span></td>
                                                     </tr>
                                                 </tbody>
                                             </table>

+ 12 - 0
tpl/wangzhaninfo/WZFBD/formedit.html

@@ -40,6 +40,18 @@
 </head>
 <body>
     <div ng-controller="formeditCtrl as ctl" id="app" ng-cloak>
+        <div class="sp-layer" id="newCreate" style="width: 1520px;">
+            <div class="sp-layer-head" style="background:#2176d6">
+                <div class="sp-page sp-text-center sp-font16">
+                    <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
+                        ×
+                    </div>
+                </div>
+            </div>
+            <div class="sp-layer-body">
+                <iframe style="width:1500px;height:700px;border:0" ng-src="{{ctl.newCreatePdf}}"></iframe>
+            </div>
+        </div>
         <div class="wrapper wrapper-content">
             <div class="row">
                 <div class="col-md-12">

+ 7 - 2
tpl/wangzhaninfo/WZFBD/js/formedit.js

@@ -23,8 +23,10 @@ app.controller("formeditCtrl", ["$scope", "$http", "$timeout", "$sce", function
     self.get_lastReturnPage = sp.getUrlName("lastReturnPage");
     self.get_type = sp.getUrlName("type");
     self.return = "../list.html?lastReturnPageno=" + self.get_lastReturnPageno + "&type=" + self.get_type
+
+    self.newCreatePdf = apiurljs.login + "g2work/files2/inline/60a5fe2df36540ffe57aa29b7656c559/17369339517033f8dd719389c3256ac1e93ebbf59043a.pdf"
     
-		self.deviceType = localStorage.getItem("tjJxtGoldenlinkWork-deviceType");
+	self.deviceType = localStorage.getItem("tjJxtGoldenlinkWork-deviceType");
 
     var postCfg = {
         headers: {
@@ -563,7 +565,10 @@ app.controller("formeditCtrl", ["$scope", "$http", "$timeout", "$sce", function
     }
     //获取附件和插件
     self.getOther = function () {
-        if (self.routeinfoid == 0) { return }
+        if (self.routeinfoid == 0) {
+            sp.layer("#newCreate")
+            return
+        }
         var data = {
             tablename: "FILE_ATTACH",
             colums: "*",