Ver código fonte

Merge remote-tracking branch 'origin/master'

xs 5 anos atrás
pai
commit
066bbae377

+ 13 - 10
src/main/webapp/webpage/modules/sg/audit/information/informationList.js

@@ -1,13 +1,13 @@
 <%@ page contentType="text/html;charset=UTF-8" %>
 <script>
 $(document).ready(function() {
+	$('#informationTable').bootstrapTable('hideLoading');
 	//定义方法---在bootstrap数据循环中使用,必须定义在bootstrapTable之前
 	window.operateEvents = {
 		'click #TableView': function (e, value, row, index) {
 			jp.openTab("${ctx}/sg/material?projectId="+row.projectId,'查看《'+row.projectName+'》物料情况', true);
 		}
 	};
-	var h = $(window).height() - 100;
 	//bootstrapTable加载数据
 	$('#informationTable').bootstrapTable({
 		  //请求方法
@@ -17,7 +17,6 @@ $(document).ready(function() {
                contentType: "application/x-www-form-urlencoded",
                //显示检索按钮
 	       		showSearch: true,
-				height:h,
                //显示刷新按钮
                showRefresh: true,
                //显示切换手机试图按钮
@@ -66,12 +65,9 @@ $(document).ready(function() {
 			onLoadSuccess: function () {  //加载成功时执行
 				getTdValue();
 			},
-               	onShowSearch: function () {
-			$("#search-collapse").slideToggle();
-		},
-		formatNoMatches:function(){
-			return "你的自定义文字说明";
-		},
+			onShowSearch: function () {
+				$("#search-collapse").slideToggle();
+			},
                columns: [
                	{
 		        field: 'projectId',
@@ -245,7 +241,11 @@ $(document).ready(function() {
 			   events: operateEvents,
 			   formatter: operateFormatter
 		   }
-		     ]
+		     ],
+			formatNoMatches:function(){
+				return "没有对应数据";
+			},
+
 		});
 
 	function operateFormatter(value, row, index) {
@@ -261,11 +261,13 @@ $(document).ready(function() {
 	  //加载完成后,对第二次是否完成领退料判断变并变更行样式
 	function getTdValue() {
 		var tableId = document.getElementById("informationTable");
+		if (tableId.rows.length>2){
 		for(var i = 1;i < tableId.rows.length;i++) {
-			if(tableId.rows[i].cells[12].innerHTML.indexOf("是") != -1 || tableId.rows[i].cells[12].innerHTML.indexOf("否") != -1){
+			if(tableId.rows[i].cells[12].innerHTML!="-"){
 				tableId.rows[i].setAttribute("style","color: red;");
 			}
 		}
+		}
 		$("#hiddenSign").val("不是第一次加载")
 	}
 
@@ -508,6 +510,7 @@ $(document).ready(function() {
 		});
 	});
 
+
   function getIdSelections() {
         return $.map($("#informationTable").bootstrapTable('getSelections'), function (row) {
             return row.id

+ 1 - 1
src/main/webapp/webpage/modules/sg/audit/information/informationList.jsp

@@ -157,7 +157,7 @@
 		    </div>
 		
 	<!-- 表格 -->
-	<table id="informationTable"   data-toolbar="#toolbar" class="table" style="word-break:break-all; word-wrap:break-all;"></table>
+	<table id="informationTable"   data-toolbar="#toolbar" class="table" style="table-layout:fixed"></table>
 
     <!-- context menu -->
     <%--<ul id="context-menu" class="dropdown-menu">

+ 0 - 24
src/main/webapp/webpage/modules/sg/managementcenter/activiti/divideForm.js

@@ -15,30 +15,6 @@
         });
 
 
-        $("#agree").click(function () {
-            jp.prompt("备注说明", function (message) {
-                jp.post("${ctx}/act/task/audit3",
-                    {
-                        "taskId": "${construction.act.taskId}",
-                        "taskName": "${construction.act.taskName}",
-                        "taskDefKey": "${construction.act.taskDefKey}",
-                        "procInsId": "${construction.act.procInsId}",
-                        "procDefId": "${construction.act.procDefId}",
-                        "flag": "yes",
-                        "comment": window.encodeURI(message)
-                    },
-                    function (data) {
-                        if (data.success) {
-                            jp.success(data.msg);
-                            jp.go("${ctx}/act/task/todo")
-                        }else {
-                            jp.error(data.msg);
-                        }
-                    })
-            })
-        })
-
-
         $('#startTime').datetimepicker({
             format: "YYYY-MM-DD HH:mm:ss"
         });

+ 1 - 6
src/main/webapp/webpage/modules/sg/managementcenter/activiti/divideForm.jsp

@@ -19,9 +19,6 @@
 				var flag7 = false;//代表是否选择了人工判断
 				var flag8 = false;//代表无问题
 				var nValue = $('input[name="favorite"]:checked');
-				if (${pass_construction6=='0'}){
-					$('input[name="favorite"]')
-				}else {
 				$('input[name="favorite"]:checked').each(function(){//遍历每一个名字为interest的复选框,其中选中的执行函数
 					//判断选取的值如果时pass2,flag2为true,代表选择了项目关闭,选取的值不为pass2,flag1为true代表其它类型被选择
 					if ("pass8" == $(this).val()){
@@ -49,13 +46,11 @@
 					}
 					cValue=cValue+";"+($(this).val());//将选中的值添加到数组chk_value中
 				});
-				}
+				console.log(cValue);
 				if (nValue == null || nValue.size() <= 0) {
 					jp.error("请选择问题类型");
 				} else if(flag1==true&&flag2==true){
 					jp.error("项目关闭与其它类型问题不可同时发起");
-				}else if ((flag3==true&&flag5==true)||(flag3==true&&flag6==true)||(flag5==true&&flag6==true)){
-					jp.error("政处类型只能选择一种");
 				}else {
 					jp.prompt(" 审批意见", function (message) {
 						jp.post("${ctx}/act/task/divideForm",