Kaynağa Gözat

增加监管对坐席档案的修改权限

zhengbingbing 6 yıl önce
ebeveyn
işleme
3ed6d33ea0
1 değiştirilmiş dosya ile 13 ekleme ve 3 silme
  1. 13 3
      CallCenterWeb.UI/keHuManager/js/customerInfo.js

+ 13 - 3
CallCenterWeb.UI/keHuManager/js/customerInfo.js

@@ -17,8 +17,13 @@ $(document).ready(function() {
17 17
 	//获取客户信誉等级
18 18
 	// helper.getDropList.getlistDropByDic($('#sc_layer'), 'KHLayer');
19 19
 	
20
+	//管理员 || 超级管理员
20 21
 	if($.cookie("userRoleId") == '17' || $.cookie("userRoleId") == '57' ){
21
-		$('.hide_btn').show();
22
+		$('.hide_btn').show();$('.hide_btnd').show();
23
+	}
24
+	//监管
25
+	if($.cookie("userRoleId") == '54'){
26
+		$('.hide_btn').show();$('.hide_btnd').hide();
22 27
 	}
23 28
 	initTable();
24 29
 	$("#sc_btns").on('click',initTable);
@@ -70,8 +75,13 @@ function initTable() {
70 75
 		},
71 76
 		onLoadSuccess: function() { //加载成功时执行
72 77
 			//layer.msg("加载成功");
78
+			//管理员 || 超级管理员
73 79
 			if($.cookie("userRoleId") == '17' || $.cookie("userRoleId") == '57' ){
74
-				$('.hide_btn').show();
80
+				$('.hide_btn').show();$('.hide_btnd').show();
81
+			}
82
+			//监管
83
+			if($.cookie("userRoleId") == '54'){
84
+				$('.hide_btn').show();$('.hide_btnd').hide();
75 85
 			}
76 86
 		},
77 87
 		onLoadError: function() { //加载失败时执行
@@ -87,7 +97,7 @@ function formatterOprate(val, row) {
87 97
 		'<li><a href="javascript:;" class="aBtn" authorize="yes" id="HY_details_' + row.F_CustomerId + '" onclick="btn_details(\'' + row.F_CustomerId + '\')" title="详情">详情</a></li>' +
88 98
 		'<li><a href="javascript:;" class="aBtn hide_btn" authorize="yes" id="HY_edit_' + row.F_CustomerId + '" onclick="btn_edit(\'' + row.F_CustomerId + '\')" title="修改">修改</a></li>' +
89 99
 		'<li><a href="javascript:;" class="aBtn" authorize="yes" id="HY_addCus_' + row.F_CustomerId + '" onclick="btn_addCus(\'' + row.F_CustomerId + '\')" title="添加联系人信息">添加</a></li>' +
90
-		'<li><a href="javascript:;" class="aBtn hide_btn" authorize="yes" id="HY_delete_' + row.F_CustomerId + '" onclick="btn_delete(' + row.F_CustomerId + ')" title="删除">删除</a></li>' +
100
+		'<li><a href="javascript:;" class="aBtn hide_btnd" authorize="yes" id="HY_delete_' + row.F_CustomerId + '" onclick="btn_delete(' + row.F_CustomerId + ')" title="删除">删除</a></li>' +
91 101
 		'</ul>';
92 102
 }
93 103