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,13 +524,13 @@ div.zoomMask{position:absolute;background:url("../images/g-resource-mask.png") r
524 524
.keydrop>ul>li.orgList img{width:50px;height:50px;margin-right:10px;}
525 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 528
		    display: -webkit-box;
529 529
			display: -webkit-flex;
530 530
			display: -ms-flexbox; 
531 531
			display:         flex; 
532 532
	        -webkit-align-items: center;
533
	                align-items: center;}*/
533
	                align-items: center;}
534 534
.tipShow{background: #fff7e7;border-bottom: 1px solid #E5E5E5;line-height: 18px;padding:16px 20px;overflow:hidden;color: #7b4b2b;font-size: 14px;}
535 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 536
.itemListBolck .itemListCon ul.importUl .madiaHead{top:50%;margin-top:-40px;}

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

@ -4,6 +4,7 @@ $(function() {
4 4
	var sevriceId = GetQueryString("sevriceId");
5 5
	var re, reEnd, ue = UE.getEditor('editor', {}),
6 6
		temp = [];
7
	var defaultLinkMan=[];
7 8
	if(orgId == "" || orgId == null || orgId == "null") {
8 9
		location.href = "cmp-settled-log.html";
9 10
	}
@ -407,7 +408,13 @@ $(function() {
407 408
			},
408 409
			success: function(data, textState) {
409 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 420
			error: function(XMLHttpRequest, textStats, errorThrown) {
@ -416,7 +423,7 @@ $(function() {
416 423
		})
417 424
	}
418 425
	UnauthorizedUser();
419

426
	getDefaultUser();
420 427
	function unauthUser($res) {
421 428
		if(sevriceId) {
422 429
			selUse();
@ -424,13 +431,13 @@ $(function() {
424 431
		var osting = ""
425 432
		for(var i = 0; i < $res.length; i++) {
426 433
			var img;
427
			//var styC="";
428 434
			var oClass = autho($res[i].authType, $res[i].orgAuth, $res[i].authStatus);
429 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 441
			if($res[i].title) {
435 442
				oTitle = $res[i].title;
436 443
			} else {
@ -457,6 +464,26 @@ $(function() {
457 464
		}
458 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 488
	$("#expertli").on("click", "li", function() {
462 489
		var userL = $("#expertli").find(".selectAdd").length;

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

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