Jelajahi Sumber

前端页面优化调整

Qifeng-Wu 5 tahun lalu
induk
melakukan
636099f125

+ 7 - 7
happy-job-base-system/src/main/webapp/webpage/modules/omcandidate/omBlacklistCandidateList.jsp

@@ -94,7 +94,7 @@ $(document).ready(function() {
 			,{
 		        field: 'name',
 		        title: '姓名',
-		        sortable: true,
+		        sortable: false,
 		        sortName: 'name',
 		        formatter:function(value, row , index){
 		        	value = jp.unescapeHTML(value);
@@ -106,7 +106,7 @@ $(document).ready(function() {
 			,{
    		        field: 'phone',
    		        title: '手机号',
-   		        sortable: true,
+   		        sortable: false,
    		        sortName: 'phone',
                    formatter:function(value, row , index){
                 	   return value?value:"—";
@@ -115,7 +115,7 @@ $(document).ready(function() {
 			,{
 		        field: 'status',
 		        title: '当前状态',
-		        sortable: true,
+		        sortable: false,
 		        sortName: 'status',
 	        	formatter: function(value, row , index){
 	        		return jp.getDictLabel(${fns:toJson(fns:getDictList('om_candidate_status'))}, value, "候选中");
@@ -124,7 +124,7 @@ $(document).ready(function() {
 			,{
 		        field: 'latestTrackTime',
 		        title: '最后跟进时间',
-		        sortable: true,
+		        sortable: false,
 		        sortName: 'latestTrackTime',
 		        formatter:function(value, row , index){
 		        	value = row.latestTrackTime?value:row.updateDate;
@@ -139,7 +139,7 @@ $(document).ready(function() {
 			,{
 		        field: 'blacklistTime',
 		        title: '拉黑时间',
-		        sortable: true,
+		        sortable: false,
 		        sortName: 'blacklistTime',
 		        formatter:function(value, row , index){
                     return timeFormat(value);
@@ -280,11 +280,11 @@ $(document).ready(function() {
 			<form:form id="searchForm" modelAttribute="omCandidate" class="form form-horizontal well clearfix">
 			 <div class="col-xs-12 col-sm-3 col-md-2">
 				<label class="label-item single-overflow pull-left" title="姓名">姓名:</label>
-				<form:input path="name" htmlEscape="false" maxlength="30" placeholder="请输入姓名" class=" form-control"/>
+				<form:input path="name" htmlEscape="false" maxlength="30" placeholder="请输入姓名" class=" form-control" autocomplete="off"/>
 			</div>
 			<div class="col-xs-12 col-sm-3 col-md-2">
 				<label class="label-item single-overflow pull-left" title="手机号">手机号:</label>
-				<form:input path="phone" htmlEscape="false" maxlength="20" placeholder="请输入手机号" class=" form-control"/>
+				<form:input path="phone" htmlEscape="false" maxlength="20" placeholder="请输入手机号" class=" form-control" autocomplete="off"/>
 			</div>
 			<div class="col-xs-12 col-sm-3 col-md-2">
 				<label class="label-item single-overflow pull-left" title="当前状态">当前状态:</label>

+ 3 - 3
happy-job-base-system/src/main/webapp/webpage/modules/omcandidate/omCandidateForm.jsp

@@ -142,13 +142,13 @@
 		<div class="form-group col-sm-6">
 			<label class="col-sm-3 control-label"><font color="red">*</font>姓名:</label>
 			<div class="col-sm-3">
-				<form:input path="name" htmlEscape="false" maxlength="30" placeholder="请输入用户真实姓名" class="form-control input-sm required"/>
+				<form:input path="name" htmlEscape="false" maxlength="30" placeholder="请输入用户真实姓名" class="form-control input-sm required" autocomplete="off"/>
 			</div>
 		</div>
 		<div class="form-group col-sm-6">
 			<label class="col-sm-3 control-label"><font color="red">*</font>手机号:</label>
 			<div class="col-sm-3">
-				<form:input path="phone" htmlEscape="false" maxlength="18" placeholder="请输入用户手机号" class="form-control input-sm required isphone existedphone"/>
+				<form:input path="phone" htmlEscape="false" maxlength="18" placeholder="请输入用户手机号" class="form-control input-sm required isphone existedphone" autocomplete="off"/>
 			</div>
 		</div>
 		<div class="form-group col-sm-6">
@@ -176,7 +176,7 @@
 		<div class="form-group col-sm-6">
 			<label class="col-sm-3 control-label">籍贯:</label>
 			<div class="col-sm-3">
-				<form:input path="nativePlace" htmlEscape="false" maxlength="45" placeholder="请输入用户籍贯" class="form-control input-sm"/>
+				<form:input path="nativePlace" htmlEscape="false" maxlength="45" placeholder="请输入用户籍贯" class="form-control input-sm" autocomplete="off"/>
 			</div>
 		</div>
 		<div class="form-group col-sm-6">

+ 14 - 13
happy-job-base-system/src/main/webapp/webpage/modules/omcandidate/omCandidateList.jsp

@@ -94,7 +94,7 @@ $(document).ready(function() {
 			,{
 		        field: 'name',
 		        title: '姓名',
-		        sortable: true,
+		        sortable: false,
 		        sortName: 'name',
 		        formatter:function(value, row , index){
 		        	value = jp.unescapeHTML(value);
@@ -106,7 +106,7 @@ $(document).ready(function() {
 			,{
    		        field: 'phone',
    		        title: '手机号',
-   		        sortable: true,
+   		        sortable: false,
    		        sortName: 'phone',
                    formatter:function(value, row , index){
                        return value?value:"—";
@@ -115,7 +115,7 @@ $(document).ready(function() {
 			,{
 		        field: 'status',
 		        title: '当前状态',
-		        sortable: true,
+		        sortable: false,
 		        sortName: 'status',
 	        	formatter: function(value, row , index){
 	        		if(value==2) value = 0;//面试未通过
@@ -135,15 +135,15 @@ $(document).ready(function() {
 		        	if(row.status == 0){//候选中
 		        		
                     }else if(row.status == 2){//面试未通过
-                    	info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border-color:#333;background:#fff;font-size:12px;">最近</button> '+"待面试(未通过)"; 
+                    	info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border:2px solid #333;background:#fff;font-size:12px;font-weight:bold">最近</button> '+"待面试(未通过)"; 
                     }else if(row.status == 4){//未录用
-                    	info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border-color:#333;background:#fff;font-size:12px;">最近</button> '+"待录用(未录用)"; 
+                    	info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border:2px solid #333;background:#fff;font-size:12px;font-weight:bold">最近</button> '+"待录用(未录用)"; 
                     }else if(row.status == 6){//未入职
-                    	info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border-color:#333;background:#fff;font-size:12px;">最近</button> '+"待入职(未入职)"; 
+                    	info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border:2px solid #333;background:#fff;font-size:12px;font-weight:bold">最近</button> '+"待入职(未入职)"; 
                     }else if(row.status == 8){//已离职
-                    	info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border-color:#333;background:#fff;font-size:12px;">最近</button> '+"在职(办理离职)"; 
+                    	info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border:2px solid #333;background:#fff;font-size:12px;font-weight:bold">最近</button> '+"在职(办理离职)"; 
                     }else if(row.status == 1){//待面试
-                    	info = '<button disabled="disabled" class="btn btn-xs" style="color:#0F70E1;border-color:#0F70E1;background:#fff;font-size:12px;">面试</button> <span style="color:#0F70E1">'+
+                    	info = '<button disabled="disabled" class="btn btn-xs" style="color:#0F70E1;border:2px solid #0F70E1;background:#fff;font-size:12px;font-weight:bold">面试</button> <span style="color:#0F70E1">'+
                     			timeFormat(row.omCandidateTrack.interviewTime)+'</span>';
                     }else if(row.status == 3){//待录用
                     	//info = '--';
@@ -151,7 +151,8 @@ $(document).ready(function() {
                     	//info = '--';
                 	}else if(row.status == 7){//已入职(在职)
                 		if(row.omCandidateTrack.cashbackDate){
-                			info = '<button disabled="disabled" class="btn btn-xs" style="color:#D40000;border-color:#D40000;background:#fff;font-size:12px;">返费</button> '+dateFormat(row.omCandidateTrack.cashbackDate);
+                			info = '<button disabled="disabled" class="btn btn-xs" style="color:#D40000;border:2px solid #D40000;background:#fff;font-size:12px;font-weight:bold">返费</button>&nbsp;'+ 
+                			'<span style="color:#D40000">'+dateFormat(row.omCandidateTrack.cashbackDate)+'</span>';
                 		}
                 	}
                     return info;
@@ -160,7 +161,7 @@ $(document).ready(function() {
 			,{
 		        field: 'belongUser',
 		        title: '跟进人',
-		        sortable: true,
+		        sortable: false,
 		        sortName: 'belongUser',
 		        formatter:function(value, row , index){
 		        	 return value?value:"—";
@@ -169,7 +170,7 @@ $(document).ready(function() {
 			,{
 		        field: 'latestTrackTime',
 		        title: '最后跟进时间',
-		        sortable: true,
+		        sortable: false,
 		        sortName: 'latestTrackTime',
 		        formatter:function(value, row , index){
 		        	value = row.latestTrackTime?value:row.updateDate;
@@ -357,11 +358,11 @@ $(document).ready(function() {
 			<input type="hidden" name="type" value="-1"/><!-- 定义type=-1用于sql过滤非黑名单的数据 -->
 			 <div class="col-xs-12 col-sm-3 col-md-2">
 				<label class="label-item single-overflow pull-left" title="姓名">姓名:</label>
-				<form:input path="name" htmlEscape="false" maxlength="30" placeholder="请输入姓名" class=" form-control"/>
+				<form:input path="name" htmlEscape="false" maxlength="30" placeholder="请输入姓名" class=" form-control" autocomplete="off"/>
 			</div>
 			<div class="col-xs-12 col-sm-3 col-md-2">
 				<label class="label-item single-overflow pull-left" title="手机号">手机号:</label>
-				<form:input path="phone" htmlEscape="false" maxlength="30" placeholder="请输入手机号" class=" form-control"/>
+				<form:input path="phone" htmlEscape="false" maxlength="30" placeholder="请输入手机号" class=" form-control" autocomplete="off"/>
 			</div>
 			<div class="col-xs-12 col-sm-3 col-md-2">
 				<label class="label-item single-overflow pull-left" title="当前状态">当前状态:</label>

+ 2 - 2
happy-job-base-system/src/main/webapp/webpage/modules/omcandidate/omCandidateRemarkForm.jsp

@@ -31,10 +31,10 @@
 			
 			//编辑
 		    var id = "${omCandidate.id}";
-		    var mode = "${mode}";
-		    if(id != null && id != '' &&  (mode == 'edit' || mode == 'view' || mode == 'rePublish')){
+		    if(id){
 		        $(".t_h_s i").html($(".remark_content").val().length);
 		    } 
+		    
 		    //备注
 		    $(".remark_content").change(function(){
 		        $(".t_h_s i").html($(".remark_content").val().length);

+ 4 - 4
happy-job-base-system/src/main/webapp/webpage/modules/omcandidate/omCandidateTrackInfo.jsp

@@ -9,22 +9,22 @@
 			<c:when test="${omCandidateTrack.status==1||omCandidateTrack.status==3||omCandidateTrack.status==5||omCandidateTrack.status==7}">
 			<div class="panel-body" style="background:#F8FBFF">
 				<div class="form-group col-sm-12" style="margin-top:10px">
-					<div class="form-group col-sm-4" style="font-size:18px;color:#0F70E1">
+					<div class="form-group col-sm-4" style="font-size:16px;color:#0F70E1">
 			</c:when>
 			<c:when test="${omCandidateTrack.status==2||omCandidateTrack.status==4||omCandidateTrack.status==6}">
 			<div class="panel-body" style="background:#FFF8F8">
 				<div class="form-group col-sm-12" style="margin-top:10px">
-					<div class="form-group col-sm-4" style="font-size:18px;color:#D00000">
+					<div class="form-group col-sm-4" style="font-size:16px;color:#D00000">
 			</c:when>
 			<c:when test="${omCandidateTrack.status==8}">
 			<div class="panel-body" style="background:#F9FFF8">
 				<div class="form-group col-sm-12" style="margin-top:10px">
-					<div class="form-group col-sm-4" style="font-size:18px;color:#17AC00">
+					<div class="form-group col-sm-4" style="font-size:16px;color:#17AC00">
 			</c:when>
 			<c:otherwise>
 			<div class="panel-body">
 				<div class="form-group col-sm-12" style="margin-top:10px">
-					<div class="form-group col-sm-4" style="font-size:18px">
+					<div class="form-group col-sm-4" style="font-size:16px">
 			</c:otherwise>
 		</c:choose>
 					<label class="col-sm-4 control-label">${fns:getDictLabel(omCandidateTrack.status, 'om_candidate_status', '-')}</label>

+ 38 - 15
happy-job-base-system/src/main/webapp/webpage/modules/omcandidate/omOwnCandidateList.jsp

@@ -94,7 +94,7 @@ $(document).ready(function() {
 			,{
 		        field: 'name',
 		        title: '姓名',
-		        sortable: true,
+		        sortable: false,
 		        sortName: 'name',
 		        formatter:function(value, row , index){
 		        	value = jp.unescapeHTML(value);
@@ -106,7 +106,7 @@ $(document).ready(function() {
 			,{
    		        field: 'phone',
    		        title: '手机号',
-   		        sortable: true,
+   		        sortable: false,
    		        sortName: 'phone',
                    formatter:function(value, row , index){
                 	   return value?value:"—";
@@ -115,7 +115,7 @@ $(document).ready(function() {
 			,{
 		        field: 'status',
 		        title: '当前状态',
-		        sortable: true,
+		        sortable: false,
 		        sortName: 'status',
 	        	formatter: function(value, row , index){
 	        		if(value==2) value = 0;//面试未通过
@@ -135,23 +135,24 @@ $(document).ready(function() {
 		        	if(row.status == 0){//候选中
 		        		
                     }else if(row.status == 2){//面试未通过
-                    	info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border-color:#333;background:#fff;font-size:12px;">最近</button> '+"待面试(未通过)"; 
+                    	info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border:2px solid #333;background:#fff;font-size:12px;font-weight:bold">最近</button> '+"待面试(未通过)"; 
                     }else if(row.status == 4){//未录用
-                    	info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border-color:#333;background:#fff;font-size:12px;">最近</button> '+"待录用(未录用)"; 
+                    	info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border:2px solid #333;background:#fff;font-size:12px;font-weight:bold">最近</button> '+"待录用(未录用)"; 
                     }else if(row.status == 6){//未入职
-                    	info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border-color:#333;background:#fff;font-size:12px;">最近</button> '+"待入职(未入职)"; 
+                    	info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border:2px solid #333;background:#fff;font-size:12px;font-weight:bold">最近</button> '+"待入职(未入职)"; 
                     }else if(row.status == 8){//已离职
-                    	info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border-color:#333;background:#fff;font-size:12px;">最近</button> '+"在职(办理离职)"; 
+                    	info = '<button disabled="disabled" class="btn btn-xs" style="color:#000;border:2px solid #333;background:#fff;font-size:12px;font-weight:bold">最近</button> '+"在职(办理离职)"; 
                     }else if(row.status == 1){//待面试
-                    	info = '<button onclick="interviewTime('+row.omCandidateTrack.id+')" class="btn btn-xs" style="color:#0F70E1;border-color:#0F70E1;background:#fff;font-size:12px;">面试</button> <span style="color:#0F70E1">'+
-                    			timeFormat(row.omCandidateTrack.interviewTime)+'</span>';
+                    	info = '<button onclick="interviewTime('+row.omCandidateTrack.id+')" class="btn btn-xs" style="color:#0F70E1;border:2px solid #0F70E1;background:#fff;font-size:12px;font-weight:bold">面试</button>&nbsp;'+ 
+                    	'<a onclick="interviewTime('+row.omCandidateTrack.id+')" style="color:#0F70E1">'+timeFormat(row.omCandidateTrack.interviewTime)+'</a>';
                     }else if(row.status == 3){//待录用
                     	//info = '--';
                     }else if(row.status == 5){//待入职
                     	//info = '--';
                 	}else if(row.status == 7){//已入职(在职)
                 		if(row.omCandidateTrack.cashbackDate){
-                			info = '<button disabled="disabled" class="btn btn-xs" style="color:#D40000;border-color:#D40000;background:#fff;font-size:12px;">返费</button> '+dateFormat(row.omCandidateTrack.cashbackDate);
+                			info = '<button disabled="disabled" class="btn btn-xs" style="color:#D40000;border:2px solid #D40000;background:#fff;font-size:12px;font-weight:bold">返费</button>&nbsp;'+ 
+                			'<span style="color:#D40000">'+dateFormat(row.omCandidateTrack.cashbackDate)+'</span>';
                 		}
                 	}
                     return info;
@@ -160,7 +161,7 @@ $(document).ready(function() {
 			,{
 		        field: 'latestTrackTime',
 		        title: '最后跟进时间',
-		        sortable: true,
+		        sortable: false,
 		        sortName: 'latestTrackTime',
 		        formatter:function(value, row , index){
 		        	value = row.latestTrackTime?value:row.updateDate;
@@ -303,7 +304,7 @@ $(document).ready(function() {
 
   //候选人备注	  
   function remark(id){
-	  jp.openSaveDialog('备注', "${ctx}/omcandidate/omCandidate/remark?id="+id, '500PX', '380px');
+	  openSaveDialog('备注', "${ctx}/omcandidate/omCandidate/remark?id="+id, '500PX', '380px');
   }
   //预约面试  
   function interview(id){
@@ -407,7 +408,29 @@ $(document).ready(function() {
 	            top.layer.close(index);
 	        });
 	    return false;
-	}  
+	}
+  //打开对话框(添加修改)
+  function openSaveDialog(title,url,width,height){
+      var auto = true;//是否使用响应式,使用百分比时,应设置为false
+      if(width.indexOf("%")>=0 || height.indexOf("%")>=0 ){
+          auto =false;
+      }
+      top.layer.open({
+          type: 2,
+          area: [width, height],
+          title: title,
+          auto:auto,
+          maxmin: true, //开启最大化最小化按钮
+          content: url ,
+          btn: ['保存', '取消'],
+          yes: function(index, layero){
+              var iframeWin = layero.find('iframe')[0]; //得到弹出的窗口对象,执行窗口内iframe页的方法:iframeWin.method();
+              iframeWin.contentWindow.save();//调用保存事件,在 弹出页内,需要定义save方法。处理保存事件。
+          },
+          cancel: function(index){
+          }
+      });
+  }
 </script>
 </head>
 <body>
@@ -424,11 +447,11 @@ $(document).ready(function() {
 			<form:form id="searchForm" modelAttribute="omCandidate" class="form form-horizontal well clearfix">
 			 <div class="col-xs-12 col-sm-3 col-md-2">
 				<label class="label-item single-overflow pull-left" title="姓名">姓名:</label>
-				<form:input path="name" htmlEscape="false" maxlength="30" placeholder="请输入姓名" class=" form-control"/>
+				<form:input path="name" htmlEscape="false" maxlength="30" placeholder="请输入姓名" class=" form-control" autocomplete="off"/>
 			</div>
 			<div class="col-xs-12 col-sm-3 col-md-2">
 				<label class="label-item single-overflow pull-left" title="手机号">手机号:</label>
-				<form:input path="phone" htmlEscape="false" maxlength="30" placeholder="请输入手机号" class=" form-control"/>
+				<form:input path="phone" htmlEscape="false" maxlength="30" placeholder="请输入手机号" class=" form-control" autocomplete="off"/>
 			</div>
 			<div class="col-xs-12 col-sm-3 col-md-2">
 				<label class="label-item single-overflow pull-left" title="当前状态">当前状态:</label>