ZYjames 6 месяцев назад
Родитель
Сommit
30e41c2aa2

+ 0 - 3
tpl/DWHYTCB/DWHYTCB/formeditFL.html

@@ -604,9 +604,6 @@
                                                             <td>
                                                                 <div class="sp-col-30" style="height:50px">公平性竞争审查:</div>
                                                                 <div class="sp-col-70">
-                                                                    <div class="sp-page-col">
-                                                                        <span style="cursor:pointer" title="公平竞争审查说明.doc" ng-click="ctl.downLoad1('4a3b5a902b1f91728e81ef1f52a51961/17199732507672ea21be00f893fa3b57c40ced986dcf3.doc')">模板下载</span>
-                                                                    </div>
                                                                     <div ng-if="ctl.opinion.GPXJZSCYJ==false">
                                                                         <div class="sp-page" style="min-height: 150px;">
                                                                             <table class="sp-grid sp-mb-5">

+ 2 - 0
tpl/RCSP/RCSP/formeditFL.html

@@ -957,6 +957,7 @@
                             <th width="117" ng-if="ctl.flagRCB==true">
                                 操作
                                 <span style="cursor:pointer" ng-click="ctl.addList()"><i class="fa  fa-plus"></i></span>
+                                <span style="cursor:pointer" ng-click="ctl.printEXCEL()" ng-if="ctl.userId==ctl.data.NGRID"><i class="fa  fa-sign-out"></i></span>
                             </th>
                         </tr>
                     </thead>
@@ -1504,6 +1505,7 @@
     <script src="../../../apiurljs.js"></script>
     <!--<script src="../../js/watermark.js"></script>-->
     <script src="../../../js/sm4.js"></script>
+    <script src="../../../js/excelJs.js"></script>
     <script>document.write('<scri' + 'pt src="../../flowchart_app_imgcss/js/yozo.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
     <script>document.write('<scri' + 'pt src="../../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>
     <script>document.write('<scri' + 'pt src="js/formeditFL.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>')</script>

+ 139 - 0
tpl/RCSP/RCSP/js/formeditFL.js

@@ -1630,6 +1630,145 @@ app.controller("formeditCtrl", ["$scope", "$http", "$timeout", "$interval", "$sc
         sp.layerhide()
     }
 
+    self.printEXCEL = function () {
+        self.columns = [
+            { header: "姓名", key: "XM", width: 20 },
+            { header: "单位", key: "DW", width: 30 },
+            { header: "职务", key: "ZW", width: 30 },
+            { header: "性别", key: "XB", width: 20 },
+            { header: "出生年月", key: "CSNY", width: 30 },
+            { header: "最高学历学位", key: "ZGXL", width: 30 },
+            { header: "毕业院校", key: "BYYX", width: 30 },
+            { header: "专业", key: "ZY", width: 35 },
+            { header: "参加工作时间", key: "CJGZSJ", width: 30 },
+            { header: "入党时间", key: "RDSJ", width: 30 },
+            { header: "是否有巡视巡察经验", key: "XSXCJY", width: 20 },
+            { header: "入库类别", key: "RKLB", width: 20 },
+            { header: "手机", key: "SJ", width: 20 },
+            { header: "备注", key: "BZ", width: 100 }
+        ]
+        self.listExcel = self.rcList.map(function (item) {
+            return {
+                XM: item.XM,
+                DW: item.DW,
+                ZW: item.ZW,
+                XB: item.XB,
+                CSNY: item.CSNY,
+                ZGXL: item.ZGXL,
+                BYYX: item.BYYX,
+                ZY: item.ZY,
+                CJGZSJ: item.CJGZSJ,
+                RDSJ: item.RDSJ,
+                XSXCJY: item.XSXCJY1,
+                RKLB: item.RKLB1,
+                SJ: item.SJ,
+                BZ: item.BZ
+            }
+        })
+        // 创建工作簿
+        var workbook = new ExcelJS.Workbook()
+        // 添加工作表
+        var worksheet = workbook.addWorksheet('sheet1')
+        // 设置表头
+        worksheet.columns = self.columns
+        // 添加表体数据
+        self.listExcel.forEach(function (item) {
+            worksheet.addRow(item)
+        })
+        /**
+        * 设置样式
+        */
+        // 1、设置标题行样式
+        var headerRow = worksheet.getRow(1)
+        // 连续遍历所有非空单元格
+        headerRow.eachCell(function (cell) {
+            // 边框 https://github.com/exceljs/exceljs/blob/HEAD/README_zh.md#%E8%BE%B9%E6%A1%86
+            cell.border = {
+                top: {
+                    style: 'thin'
+                },
+                left: {
+                    style: 'thin'
+                },
+                bottom: {
+                    style: 'thin'
+                },
+                right: {
+                    style: 'thin'
+                },
+            }
+            // 填充 https://github.com/exceljs/exceljs/blob/HEAD/README_zh.md#%E5%A1%AB%E5%85%85
+            cell.fill = {
+                type: 'pattern',
+                pattern: 'solid',
+                fgColor: {
+                    argb: '4f81bd'
+                }
+            }
+            // 字体 https://github.com/exceljs/exceljs/blob/HEAD/README_zh.md#%E5%AD%97%E4%BD%93
+            cell.font = {
+                name: '微软雅黑',
+                size: 11,
+                bold: true,
+                color: { argb: '000000' }
+            }
+            // 对齐 https://github.com/exceljs/exceljs/blob/HEAD/README_zh.md#%E5%AF%B9%E9%BD%90
+            cell.alignment = {
+                vertical: 'middle',
+                horizontal: 'center'
+            }
+        })
+
+        // 2、设置内容行样式
+        const bodyRow = worksheet.getRows(2, self.listExcel.length + 1)
+        bodyRow.forEach(function (row) {
+            //遍历此列中的所有当前单元格,包括空单元格
+            row.eachCell({ includeEmpty: true }, function (cell) {
+                // 边框
+                cell.border = {
+                    top: {
+                        style: 'thin'
+                    },
+                    left: {
+                        style: 'thin'
+                    },
+                    bottom: {
+                        style: 'thin'
+                    },
+                    right: {
+                        style: 'thin'
+                    },
+                }
+                // 字体 https://github.com/exceljs/exceljs/blob/HEAD/README_zh.md#%E5%AD%97%E4%BD%93
+                cell.font = {
+                    name: '微软雅黑',
+                    size: 11,
+                    color: { argb: '000000' }
+                }
+                // 对齐 https://github.com/exceljs/exceljs/blob/HEAD/README_zh.md#%E5%AF%B9%E9%BD%90
+                cell.alignment = {
+                    vertical: 'middle',
+                    horizontal: 'center'
+                }
+            })
+        })
+
+
+
+        // 导出表格
+        workbook.xlsx.writeBuffer().then(function (buffer) {
+            const blob = new Blob([buffer], {
+                type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
+            })
+            const link = document.createElement('a')
+            link.href = URL.createObjectURL(blob)
+            link.download = '市住建委党委巡察人才库人选登记表' + sp.format(sp.getLocalDate()) + '.xlsx'
+            link.click()
+            URL.revokeObjectURL(link.href) // 下载完成释放掉blob对象
+        })
+        //})
+    }
+
     //签写意见编辑状态
     self.opinion = {
         WZYLDQFYJ: false,

+ 2 - 2
tpl/deskunit/js/gzt.js

@@ -151,9 +151,9 @@ app.controller("indexCtrl", ["$scope", "$http", "$interval", "$timeout", functio
             return
         }
         if (self.deviceType == "pad") {
-            window.top.jumpPageParent(obj.FLOWCODE, obj.CNAME, obj.FILEN);
+            window.top.jumpPageParent(obj.FLOWCODE, obj.CNAME, obj.FILEN + "?flowids=" + obj.FLOWID);
         } else {
-            window.top.sp.addTabNav(obj.FLOWCODE, obj.CNAME, obj.FILEN);
+            window.top.sp.addTabNav(obj.FLOWCODE, obj.CNAME, obj.FILEN + "?flowids=" + obj.FLOWID);
         }
     }
 	self.goHref1=function(obj){

+ 2 - 2
tpl/deskunit/js/gztc.js

@@ -35,9 +35,9 @@ app.controller("indexCtrl", ["$scope", "$http", "$interval", "$timeout", functio
             return
         }
         if (self.deviceType == "pad") {
-            window.top.jumpPageParent(obj.FLOWCODE, obj.CNAME, obj.FILEN);
+            window.top.jumpPageParent(obj.FLOWCODE, obj.CNAME, obj.FILEN + "?flowids=" + obj.FLOWID);
         } else {
-            window.top.sp.addTabNav(obj.FLOWCODE, obj.CNAME, obj.FILEN);
+            window.top.sp.addTabNav(obj.FLOWCODE, obj.CNAME, obj.FILEN + "?flowids=" + obj.FLOWID);
         }
     }
     self.goHref1 = function (obj) {

+ 3 - 3
tpl/deskunit/js/gzty.js

@@ -35,9 +35,9 @@ app.controller("indexCtrl", ["$scope", "$http", "$interval", "$timeout", functio
 	        return
 	    }
 	    if (self.deviceType == "pad") {
-	        window.top.jumpPageParent(obj.FLOWCODE, obj.CNAME, obj.FILEN);
-		} else {
-			window.top.sp.addTabNav(obj.FLOWCODE, obj.CNAME, obj.FILEN);
+	        window.top.jumpPageParent(obj.FLOWCODE, obj.CNAME, obj.FILEN + "?flowids=" + obj.FLOWID);
+	    } else {
+	        window.top.sp.addTabNav(obj.FLOWCODE, obj.CNAME, obj.FILEN + "?flowids=" + obj.FLOWID);
 		}
 	}
 	self.goHref1 = function (obj) {

+ 2 - 1
tpl/shouwenbg/LDPSD/formeditZW.html

@@ -213,7 +213,8 @@
                                                 <div class="form-item" ng-if="!ctl.hide('show','SLDPS')">
                                                     <div class="sp-col-30" style="line-height:32px;" title="市领导批示">市领导<br />批&nbsp;&nbsp;示:</div>
                                                     <div class="sp-col-70">
-                                                        <textarea class="sp-textarea" ng-model="ctl.data.SLDPS" ng-disabled="ctl.hide('readonly','SLDPS')" ng-change="ctl.changeFiled('SLDPS')" title="{{ctl.data.SLDPS}}" rows="5" style="resize:none;"></textarea>
+                                                        <!--ng-trim="false"关闭过滤字符串前后空格-->
+                                                        <textarea class="sp-textarea" ng-model="ctl.data.SLDPS" ng-disabled="ctl.hide('readonly','SLDPS')" ng-trim="false" ng-change="ctl.changeFiled('SLDPS')" title="{{ctl.data.SLDPS}}" rows="5" style="resize:none;"></textarea>
                                                     </div>
                                                 </div>
                                                 <div class="form-item" ng-if="!ctl.hide('show','ZDDB')">

+ 6 - 0
tpl/shouwenbg/LDPSD/js/formeditFL.js

@@ -514,6 +514,8 @@ app.controller("formeditCtrl", ["$scope", "$http", "$timeout", "$interval", "$sc
                 ZBCSCODE: res.data.SW_LDPSCBD.ZBCSCODE,
                 SFBJ: res.data.SW_LDPSCBD.SFBJ == "" ? self.SFBJ[0].CODE : res.data.SW_LDPSCBD.SFBJ,
                 SFBJRQ: res.data.SW_LDPSCBD.SFBJRQ,
+                BJUSERNAME: res.data.SW_LDPSCBD.BJUSERNAME,
+                BJUSERID: res.data.SW_LDPSCBD.BJUSERID,
                 BJQK: res.data.SW_LDPSCBD.BJQK,
                 FGLDBJQR: res.data.SW_LDPSCBD.FGLDBJQR,
                 BZ: res.data.SW_LDPSCBD.BZ,
@@ -1781,8 +1783,12 @@ app.controller("formeditCtrl", ["$scope", "$http", "$timeout", "$interval", "$sc
         self.filedChange = true;
         if (self.data.FGLDBJQR == "C01") {
             self.data.SFBJRQ = sp.getLocalDate();
+            self.data.BJUSERID = self.userId;
+            self.data.BJUSERNAME = self.userName;
         } else {
             self.data.SFBJRQ = "";
+            self.data.BJUSERID = "";
+            self.data.BJUSERNAME = "";
         }
     }
     //验证是否重复

+ 2 - 0
tpl/shouwenbg/WJCBD/js/formeditFL.js

@@ -497,6 +497,8 @@ app.controller("formeditCtrl", ["$scope", "$http", "$timeout", "$interval", "$sc
                 ZBCS: res.data.SW_ZJWWJCBD.ZBCS,
                 SFBJ: res.data.SW_ZJWWJCBD.SFBJ == "" ? self.SFBJ[0].CODE : res.data.SW_ZJWWJCBD.SFBJ,
                 SFBJRQ: res.data.SW_ZJWWJCBD["SFBJRQ.GSHOW"] == "true" && (res.data.SW_ZJWWJCBD.SFBJRQ == ""|| res.data.SW_ZJWWJCBD.SFBJRQ == null) ? sp.getLocalDate() : res.data.SW_ZJWWJCBD.SFBJRQ,
+                BJUSERNAME: res.data.SW_ZJWWJCBD["SFBJRQ.GSHOW"] == "true" && (res.data.SW_ZJWWJCBD.BJUSERNAME == ""|| res.data.SW_ZJWWJCBD.BJUSERNAME == null) ? self.userName : res.data.SW_ZJWWJCBD.BJUSERNAME,
+                BJUSERID: res.data.SW_ZJWWJCBD["SFBJRQ.GSHOW"] == "true" && (res.data.SW_ZJWWJCBD.BJUSERID == ""|| res.data.SW_ZJWWJCBD.BJUSERID == null) ? self.userId : res.data.SW_ZJWWJCBD.BJUSERID,
                 BJQK: res.data.SW_ZJWWJCBD.BJQK,
                 BZ: res.data.SW_ZJWWJCBD.BZ,
                 NGR: res.data.SW_ZJWWJCBD.NGR == "" ? self.userName : res.data.SW_ZJWWJCBD.NGR,

+ 1 - 1
tpl/totalshouwen/js/list2.js

@@ -110,7 +110,7 @@ app.controller("listCtrl", ["$scope", "$http", "$timeout", function ($scope, $ht
                 res.data.forEach(function (item) {
                     item.APPDATE = sp.format(item.APPDATE)
                     item.ARCHIVESDATE = sp.format(item.ARCHIVESDATE)
-                    if (item.MARKARCHIVES == '1') {
+                    if (item.MARKARCHIVES == '1' || item.MARKARCHIVES == '2') {
                         item.STATUSINFO_CN = '办结'
                     } else{
                         item.STATUSINFO_CN = '在办'

+ 39 - 0
tpl/txlhz/index.html

@@ -26,9 +26,15 @@
                                 <li class="sp-menu-second" ng-class="{'activeNode':ctl.activeNode.CODE==item1.CODE}" ng-show="item.show" ng-repeat="item1 in item.C_H_I_L_D_DATA">
                                     <span class="sp-menu-ltitle" ng-if="item1.C_H_I_L_D_DATA.length!=0" ng-bind="item1.CNAME" title="{{item1.CNAME}}" ng-click="ctl.checkNode(item1,0)"></span>
                                     <span class="sp-menu-ltitle" ng-if="item1.C_H_I_L_D_DATA.length==0" ng-bind="item1.CNAME" title="{{item1.CNAME}}" ng-click="ctl.checkNode(item1,1)"></span>
+                                    <span class="sp-pull-right sp-mr-15" ng-if="ctl.UserRole==true" ng-click="ctl.LPEdit(item1)">
+                                        <i class="fa fa-edit sp-color-blue" title="编辑"></i>
+                                    </span>
                                     <ul>
                                         <li class="sp-menu-third" ng-class="{'activeNode':ctl.activeNode.CODE==item2.CODE}" ng-show="item1.show" ng-repeat="item2 in item1.C_H_I_L_D_DATA">
                                             <span class="sp-menu-ltitle" ng-bind="item2.CNAME" title="{{item2.CNAME}}" ng-click="ctl.checkNode(item2,1)"></span>
+                                            <span class="sp-pull-right sp-mr-15" ng-if="ctl.UserRole==true" ng-click="ctl.LPEdit(item2)">
+                                                <i class="fa fa-edit sp-color-blue" title="编辑"></i>
+                                            </span>
                                         </li>
                                     </ul>
                                 </li>
@@ -109,6 +115,39 @@
                 </table>
             </div>
         </div>
+        <div class="sp-layer" id="layer_box_edit" style="width:500px;">
+            <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">
+                <div class="sp-page">
+                    <table class="sp-grid-job">
+                        <tbody>
+                            <tr>
+                                <td style="width:150px;">当前节点名称</td>
+                                <td>
+                                    <input type="text" class="sp-input" ng-model="ctl.edit.cname" />
+                                </td>
+                            </tr>
+                        </tbody>
+                    </table>
+
+                    <div class="sp-page sp-text-center sp-pt-10 sp-pad-10">
+                        <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnSaveNode()">
+                            <i class="fa fa-check sp-mr-5"></i>保 存
+                        </button>
+                        <button class="sp-btn-default sp-btn-radius" onclick="sp.layerhide()">
+                            <i class="fa fa-close sp-mr-5"></i>取 消
+                        </button>
+                    </div>
+                </div>
+            </div>
+        </div>
         <div id="addUser" class="sp-layer" style="width:600px">
             <div class="sp-layer-head" style="background:#2176d6">
                 <div class="sp-page sp-text-center sp-font16">

+ 30 - 0
tpl/txlhz/js/index.js

@@ -59,6 +59,36 @@ app.controller("indexCtrl", ["$scope", "$http", "$timeout", function ($scope, $h
         sp.layer('#layer_box_add')
     }
 
+    self.LPEdit = function (obj) {
+        self.edit = {
+            "id": obj.ID,
+            "tablename": "SX_TONGXUNLUTREE",
+            "cname": obj.CNAME,
+            "userid": self.userId
+        }
+        sp.layer('#layer_box_edit');
+    }
+    self.btnSaveNode = function () {
+        var data = {
+            "id": self.edit.id,
+            "tablename": self.edit.tablename,
+            "setwhere": {
+                "CNAME": self.edit.cname
+            }
+        }
+        $http.post(apiurljs.login + "g2app/dataabase/setColumnsById", { data: s4.encryptData_CBC(JSON.stringify(data)) }, postCfg)
+        .success(function (obj) {
+            var res = strToJson(s4.decryptData_CBC(obj.data));
+            if (res.success) {
+                sp.layerhide();
+                self.getLeftTree();
+            } else {
+                sp.layerhide();
+                sp.dialog(res.message);
+            }
+        })
+    }
+
     self.checkNode = function (node, n) {
         if (n == 0) {
             node.show = !node.show;