Browse Source

服务未设置联系人bug

luyanan 6 years ago
parent
commit
de71768b71
3 changed files with 36 additions and 15 deletions
  1. 2 2
      cmp-portal/css/cmpindex.css
  2. 34 7
      cmp-portal/js/cmp-serviceIssue.js
  3. 0 6
      cmp-portal/js/resourceIssue.js

+ 2 - 2
cmp-portal/css/cmpindex.css

524
.keydrop>ul>li.orgList img{width:50px;height:50px;margin-right:10px;}
524
.keydrop>ul>li.orgList img{width:50px;height:50px;margin-right:10px;}
525
.keydrop>ul>li.orgList p{line-height:50px;font-size:14px;}
525
.keydrop>ul>li.orgList p{line-height:50px;font-size:14px;}
526
/*资源导入*/
526
/*资源导入*/
527
/*.flexCenter{position: relative; min-height:90px;
527
.flexCenter{position: relative; min-height:90px;
528
		    display: -webkit-box;
528
		    display: -webkit-box;
529
			display: -webkit-flex;
529
			display: -webkit-flex;
530
			display: -ms-flexbox; 
530
			display: -ms-flexbox; 
531
			display:         flex; 
531
			display:         flex; 
532
	        -webkit-align-items: center;
532
	        -webkit-align-items: center;
533
	                align-items: center;}*/
533
	                align-items: center;}
534
.tipShow{background: #fff7e7;border-bottom: 1px solid #E5E5E5;line-height: 18px;padding:16px 20px;overflow:hidden;color: #7b4b2b;font-size: 14px;}
534
.tipShow{background: #fff7e7;border-bottom: 1px solid #E5E5E5;line-height: 18px;padding:16px 20px;overflow:hidden;color: #7b4b2b;font-size: 14px;}
535
.tipShow .tipClose{display:inline-block;width:14px;height:14px;background:url(../images/g_resource_button_guanbi_2_nor.png);background-size:cover;cursor:pointer;}
535
.tipShow .tipClose{display:inline-block;width:14px;height:14px;background:url(../images/g_resource_button_guanbi_2_nor.png);background-size:cover;cursor:pointer;}
536
.itemListBolck .itemListCon ul.importUl .madiaHead{top:50%;margin-top:-40px;}
536
.itemListBolck .itemListCon ul.importUl .madiaHead{top:50%;margin-top:-40px;}

+ 34 - 7
cmp-portal/js/cmp-serviceIssue.js

4
	var sevriceId = GetQueryString("sevriceId");
4
	var sevriceId = GetQueryString("sevriceId");
5
	var re, reEnd, ue = UE.getEditor('editor', {}),
5
	var re, reEnd, ue = UE.getEditor('editor', {}),
6
		temp = [];
6
		temp = [];
7
	var defaultLinkMan=[];
7
	if(orgId == "" || orgId == null || orgId == "null") {
8
	if(orgId == "" || orgId == null || orgId == "null") {
8
		location.href = "cmp-settled-log.html";
9
		location.href = "cmp-settled-log.html";
9
	}
10
	}
407
			},
408
			},
408
			success: function(data, textState) {
409
			success: function(data, textState) {
409
				if(data.success) {
410
				if(data.success) {
410
					unauthUser(data.data);
411
					if(data.data.length>0){
412
						unauthUser(data.data);
413
					}else{
414
						var str = '<div class="default-text default-text-2" style="border:none"><div>您当前没有认证员工</div>'+
415
						   '<a href="cmp-staffList.html">点击这里进行认证</a></div>';
416
						$("#expertli").html(str);
417
					}
411
				}
418
				}
412
			},
419
			},
413
			error: function(XMLHttpRequest, textStats, errorThrown) {
420
			error: function(XMLHttpRequest, textStats, errorThrown) {
416
		})
423
		})
417
	}
424
	}
418
	UnauthorizedUser();
425
	UnauthorizedUser();
419

426
	getDefaultUser();
420
	function unauthUser($res) {
427
	function unauthUser($res) {
421
		if(sevriceId) {
428
		if(sevriceId) {
422
			selUse();
429
			selUse();
424
		var osting = ""
431
		var osting = ""
425
		for(var i = 0; i < $res.length; i++) {
432
		for(var i = 0; i < $res.length; i++) {
426
			var img;
433
			var img;
427
			//var styC="";
428
			var oClass = autho($res[i].authType, $res[i].orgAuth, $res[i].authStatus);
434
			var oClass = autho($res[i].authType, $res[i].orgAuth, $res[i].authStatus);
429
			var oTitle = "";
435
			var oTitle = "";
430
			/*if(!resourceId) {
431
				
432
			}*/
433

436
			for(var j=0; j<defaultLinkMan.length;j++){
437
				if($res[i].id === defaultLinkMan[j]){
438
					styC="selectAdd";
439
				}
440
			}
434
			if($res[i].title) {
441
			if($res[i].title) {
435
				oTitle = $res[i].title;
442
				oTitle = $res[i].title;
436
			} else {
443
			} else {
457
		}
464
		}
458
		$("#expertli").html(osting);
465
		$("#expertli").html(osting);
459
	}
466
	}
467
	
468
	function getDefaultUser() {
469
		$.ajax({
470
			url: "/ajax/org/linkman/queryAll",
471
			type: "GET",
472
			dataType: "json",
473
			data: {
474
				"oid": orgId
475
			},
476
			success: function(data) {
477
				if(data.success  && data.data != "") {
478
					var $data = data.data
479
					for(var i = 0; i < $data.length; i++){
480
						defaultLinkMan.push($data[i].pid)	
481
					}
482
					
483
				}
484
			}
485
		})
486
	}
460
	/*选择用户*/
487
	/*选择用户*/
461
	$("#expertli").on("click", "li", function() {
488
	$("#expertli").on("click", "li", function() {
462
		var userL = $("#expertli").find(".selectAdd").length;
489
		var userL = $("#expertli").find(".selectAdd").length;

+ 0 - 6
cmp-portal/js/resourceIssue.js

426
			var styC="";
426
			var styC="";
427
			var oClass = autho($res[i].authType, $res[i].orgAuth, $res[i].authStatus);
427
			var oClass = autho($res[i].authType, $res[i].orgAuth, $res[i].authStatus);
428
			var oTitle="";
428
			var oTitle="";
429
			if(!resourceId) {
430
					/*if(i<5) {
431
					styC="selectAdd";
432
					oProfessor.push($res[i].id);
433
				}*/
434
			}
435
			for(var j=0; j<defaultLinkMan.length;j++){
429
			for(var j=0; j<defaultLinkMan.length;j++){
436
				if($res[i].id === defaultLinkMan[j]){
430
				if($res[i].id === defaultLinkMan[j]){
437
					styC="selectAdd";
431
					styC="selectAdd";