地铁二期项目正式开始

Index.cshtml 68KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841
  1. @using YTSoft.BaseCallCenter.Model;
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <title>郑州市轨道交通全媒体客服平台</title>
  7. <meta name="renderer" content="webkit">
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  9. <meta http-equiv="Access-Control-Allow-Origin" content="*">
  10. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  11. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  12. <meta name="apple-mobile-web-app-capable" content="yes">
  13. <meta name="format-detection" content="telephone=no">
  14. <link rel="icon" href="../favicon.ico">
  15. <link type="text/css" href="/Content/layui/css/layui.css" rel="stylesheet" />
  16. <link type="text/css" href="/Content/layui/css/modules/layui-icon-extend/iconfont.css" rel="stylesheet" />
  17. <link type="text/css" href="/Content/css/index.css" rel="stylesheet" />
  18. <link type="text/css" href="/Content/css/myindex.css" rel="stylesheet" />
  19. <link type="text/css" href="/Content/css/font-awesome/css/font-awesome.css" rel="stylesheet" />
  20. <script src="/Content/js/jquery.min.js"></script>
  21. <script src="/Content/js/ytsoft.config.js"></script>
  22. <script src="~/Content/js/ytsoft.http.js"></script>
  23. <script src="/Content/seatformjs/ocxopt.js"></script>
  24. <script src="/Content/js/callSocket.js"></script>
  25. <script type="text/javascript">
  26. //监控获取指定坐席状态结果事件
  27. function IframeSetAgentState(agentid, state) {
  28. try {
  29. window.frames["frame_zxjkgl"].GetState(agentid, state);
  30. }
  31. catch (e) {
  32. }
  33. }
  34. ///转移
  35. function PhoneCallZY(tel) {
  36. try {
  37. var callinphone = document.getElementById("forZYnumber").value;
  38. OCX_TransferToPhone(tel, "");
  39. }
  40. catch (e) {
  41. //$.ligerDialog.error(e.message);
  42. }
  43. }
  44. ///多方通话
  45. function PhoneCallDFTH(tel) {
  46. try {
  47. var callinphone = document.getElementById("forZYnumber").value;
  48. OCX_ThirdParty(tel, "");
  49. }
  50. catch (e) {
  51. //$.ligerDialog.error(e.message);
  52. }
  53. }
  54. ///工单接单时候调用的外呼方法
  55. function PhoneCallOutJD(type, tel, workorderid) {
  56. }
  57. function addCallOutInfo() {
  58. var tel = OCX_GetCalleeNumber(document.getElementById("txtAgentId").value);
  59. becallout = true;
  60. becallcome = false;
  61. CallOutRecordIsWrite = true;
  62. //添加外呼记录
  63. var userid = document.getElementById("txtAgentId").value;
  64. var usercode = document.getElementById("txtLabourwork").value;
  65. var username = document.getElementById("txtAgentName").value;
  66. var extnumber = document.getElementById("txtPhoneNum").value;
  67. var timeno = new Date().getTime();
  68. username = encodeURI(username);
  69. $.ajax({
  70. type: 'get',
  71. url: '/OCXOpt/OCXOptCallAjax/?optaction=callout&callernum=' + tel + "&userid=" + userid + "&usercode=" + usercode + "&username=" + username + "&extnumber" + extnumber + "&timeno=" + timeno,
  72. dataType: 'html',
  73. success: function (res) {
  74. try {
  75. var DialIsOK = false;
  76. var arr = res.split('|');
  77. document.getElementById("CallHjbh").value = arr[2];
  78. telajaxopt("/OCXOpt/OCXOptCallAjax/?optaction=zhaijiEvent&callid=" + parent.document.getElementById("CallHjbh").value); //更新摘机事件
  79. } catch (e) {
  80. }
  81. }
  82. });
  83. }
  84. ///外呼
  85. function PhoneCallOut(type, tel) {
  86. var usercode = document.getElementById("txtLabourwork").value;
  87. var extnumber = document.getElementById("txtPhoneNum").value;
  88. console.log("9" + tel.toString())
  89. $.ajax({
  90. type: 'get',
  91. url: '/CallRecord/GetCallOutprefix/?phone=' + tel,
  92. dataType: 'html',
  93. success: function (res) {
  94. //"Type":"MakeCall","AgentID":"8002","AgentExten":"1001","DestinationNumber":"9018937726571"
  95. console.log(res)
  96. obj = {};
  97. obj.Type = "MakeCall";
  98. obj.AgentID = usercode;
  99. obj.AgentExten = extnumber;
  100. obj.AgentGroup = "12";
  101. obj.Header = "9";
  102. obj.DestinationNumber = res.toString() + tel.toString();
  103. Send();
  104. }
  105. });
  106. }
  107. var hfcallstate = false;
  108. var outtype = "";
  109. function SetCallState(state) {
  110. hfcallstate = state;
  111. }
  112. function GetCallOutHFRes() {
  113. if (hfcallstate) {
  114. hfcallstate = false;
  115. return true;
  116. }
  117. else {
  118. return false;
  119. }
  120. }
  121. ///外呼
  122. function PhoneCallOutHF(type, tel, hfid) {
  123. becallout = true;
  124. becallcome = false;
  125. hfcallstate = false;
  126. CallOutRecordIsWrite = true;
  127. outtype = "hf";
  128. //添加外呼记录
  129. var userid = document.getElementById("txtAgentId").value;
  130. var usercode = document.getElementById("txtLabourwork").value;
  131. var username = document.getElementById("txtAgentName").value;
  132. var extnumber = document.getElementById("txtPhoneNum").value;
  133. var timeno = new Date().getTime();
  134. username = encodeURI(username);
  135. layui.layer
  136. //$.ligerDialog.waitting('开始呼叫...');
  137. $.ajax({
  138. type: 'get',
  139. url: '/OCXOpt/OCXOptCallAjax/?optaction=callouthf&callid=' + hfid + '&callernum=' + tel + "&userid=" + userid + "&usercode=" + usercode + "&username=" + username + "&extnumber" + extnumber + "&timeno=" + timeno,
  140. dataType: 'html',
  141. success: function (res) {
  142. try {
  143. var DialIsOK = false;
  144. var arr = res.split('|');
  145. document.getElementById("CallHjbh").value = arr[2];
  146. //成功执行外呼叫
  147. if (arr[0] == "1") { //呼叫内部(座席)电话
  148. //2015-04-20
  149. becallout = true;
  150. becallcome = false;
  151. DialIsOK = OCX_CallOut(5, "", arr[1]);
  152. }
  153. else { //呼叫外部电话
  154. DialIsOK = OCX_CallOut(5, "", arr[1]);
  155. }
  156. if (DialIsOK != true) {
  157. alert('外呼失败');
  158. //$.ligerDialog.error('外呼失败');
  159. }
  160. } catch (e) {
  161. //$.ligerDialog.error(e.message);
  162. }
  163. //$.ligerDialog.closeWaitting();
  164. }
  165. });
  166. }
  167. function OptClick(name) {
  168. var obj = document.getElementById(name);
  169. if (obj.attributes["ostate"].value != 0) {
  170. switch (name) {
  171. case "gd":
  172. button_ReleaseAnswer();
  173. //挂断
  174. break;
  175. case "wh":
  176. //外呼先示忙
  177. //AgentBusy();
  178. //otype 1外呼 2转移 3多方通话
  179. OpenWindowShow1('telmanage/calloutopt.aspx?otype=1', '电话外呼', 800, 500);
  180. break;
  181. case "zm":
  182. //示忙
  183. AgentBusy();
  184. break;
  185. case "zx":
  186. AgentFree();
  187. break;
  188. case "dfth":
  189. //多方会话
  190. OpenWindowShow1('telmanage/calloutopt.aspx?otype=3', '多方通话', 800, 500);
  191. break;
  192. case "zy":
  193. //转移
  194. OpenWindowShow1('telmanage/calloutopt.aspx?otype=2', '电话转移', 800, 500);
  195. break;
  196. case "bc":
  197. //保持
  198. button_KeepCall(); //保持方法
  199. break;
  200. case "jh":
  201. //接回
  202. button_GetKeepCall();
  203. break;
  204. case "qr":
  205. //签入
  206. button_QRCall();
  207. break;
  208. case "qc":
  209. //签出
  210. button_QCCall();
  211. break;
  212. }
  213. }
  214. }
  215. //转移
  216. function ZYhj(callnumber) {
  217. //var zyzj = document.getElementById("forZYnumber").value;
  218. debugger
  219. var usercode = document.getElementById("txtLabourwork").value;
  220. var extnumber = document.getElementById("txtPhoneNum").value;
  221. if (callnumber != "") {
  222. obj = {};
  223. obj.Type = "Transfer";
  224. obj.TaskType = "0"; //0:拨号外呼;1:未接来电外呼;2:回访外呼
  225. obj.TaskPhoneID = ""; //回访的电话ID
  226. obj.AgentID = usercode;
  227. obj.AgentExten = extnumber;
  228. obj.DestinationNumber = callnumber;
  229. Send();
  230. //Form_setWinfromenble("false", "false", "false", "false", "false", "false", "false", "false", "false", "false");
  231. }
  232. else {
  233. alert("转移失败!");
  234. }
  235. }
  236. //释放呼叫 2.1.8
  237. function button_ReleaseAnswer() {//挂机
  238. var usercode = document.getElementById("txtLabourwork").value;
  239. var extnumber = document.getElementById("txtPhoneNum").value;
  240. console.log("挂断")
  241. obj = {};
  242. obj.Type = "DropCall";
  243. obj.AgentID = usercode;
  244. obj.AgentExten = extnumber;
  245. Send();
  246. try {
  247. //MydTransToIVR();
  248. }
  249. catch (e) { }
  250. try {
  251. //var rtn = OCX_Hangup();
  252. }
  253. catch (e) { }
  254. }
  255. //满意度
  256. function MydTransToIVR() {
  257. var cid = document.getElementById("CallHjbh").value;
  258. var rtn = OCX_TransferToIVR("2", cid);
  259. }
  260. //转回IVR
  261. function AgentTransToIVR() {
  262. var usercode = document.getElementById("txtLabourwork").value;
  263. var extnumber = document.getElementById("txtPhoneNum").value;
  264. obj = {};
  265. obj.Type = "TurnIvr";
  266. obj.AgentID = usercode;
  267. obj.AgentExten = extnumber;
  268. obj.AgentGroup = "12";
  269. obj.IvrName = "THZIVR";
  270. obj.IvrPos = "1";
  271. ivrState = true;
  272. Send();
  273. //var cid=document.getElementById("CallHjbh").value;
  274. //var rtn = OCX_TransferToIVR("2", cid);
  275. }
  276. //座席示忙 2.1.12
  277. function AgentBusy() {
  278. //将座席状态设置为忙态。
  279. //var rtn = OCX_SetBusy();
  280. //2014-10-22
  281. //becallout = true;
  282. //becallcome = false;
  283. //rgmstate = true;
  284. /*2020-09-24miaofuhao注释*/
  285. var usercode = document.getElementById("txtLabourwork").value;
  286. var extnumber = document.getElementById("txtPhoneNum").value;
  287. if ($(".fa-pause").hasClass("selectClass")) {
  288. obj = {};
  289. obj.Type = "SayBusy";
  290. obj.AgentID = usercode;
  291. obj.AgentExten = extnumber;
  292. obj.AgentGroup = "12";
  293. obj.AgentType = "0";
  294. Send();
  295. } else {
  296. layer.msg('当前是置忙状态', { icon: 5, time: 2000 });
  297. }
  298. /*2020-09-24miaofuhao注释*/
  299. }
  300. //座席示闲 2.1.13
  301. function AgentFree() {
  302. //将座席状态设置为闲态。
  303. //var rtn = OCX_SetFree();
  304. //2014-10-22
  305. //becallout = false;
  306. //becallcome = true;
  307. //rgmstate = false;
  308. //return rtn;
  309. /*2020-09-24miaofuhao注释*/
  310. var usercode = document.getElementById("txtLabourwork").value;
  311. var extnumber = document.getElementById("txtPhoneNum").value;
  312. if ($(".fa-play").hasClass("selectClass")) {
  313. obj = {};
  314. obj.Type = "SayFree";
  315. obj.AgentID = usercode;
  316. obj.AgentExten = extnumber;
  317. obj.AgentGroup = "12";
  318. obj.AgentType = "0";
  319. Send();
  320. } else {
  321. //layer.msg('当前是置闲状态', { icon: 5, time: 2000 });
  322. }
  323. /*2020-09-24miaofuhao注释*/
  324. }
  325. //保持呼叫 2.1.17
  326. function button_KeepCall() {
  327. //该方法把座席正在通话的普通语音呼叫保持(只对语音呼叫有效)。
  328. var usercode = document.getElementById("txtLabourwork").value;
  329. var extnumber = document.getElementById("txtPhoneNum").value;
  330. obj = {};
  331. obj.Type = "Hold";
  332. obj.AgentID = usercode;
  333. obj.AgentExten = extnumber;
  334. Send();
  335. }
  336. //取保持 2.1.18
  337. function button_GetKeepCall() {
  338. //查询座席当前保持的所有语音呼叫
  339. var usercode = document.getElementById("txtLabourwork").value;
  340. var extnumber = document.getElementById("txtPhoneNum").value;
  341. obj = {};
  342. obj.Type = "Retrieve";
  343. obj.AgentID = usercode;
  344. obj.AgentExten = extnumber;
  345. Send();
  346. }
  347. function buttonCallNew(telNum) {
  348. becallout = true;
  349. becallcome = false;
  350. var strHjbhout = AjaxPost("../WinIVR/GetAjaxPageInf.aspx?PgType=3&tel=" + telNum); //呼叫编号
  351. document.getElementById("CallHjbh").value = strHjbhout;
  352. //判断电话是本地还是外地的
  353. var callNumberNew = "";
  354. var res = _framepage_headframe.getPhone(telNum);
  355. if (res != "") {
  356. callNumberNew = res.value;
  357. }
  358. button_CallOut(callNumberNew, strHjbhout);
  359. }
  360. //外呼事件 2.1.7
  361. function button_CallOut(callnumber, hjbh) {
  362. var res = true;
  363. var cssok = 0;
  364. cssok = OCX_CallOut(5, "", callnumber);
  365. if (cssok == "0") {
  366. res = true;
  367. }
  368. else {
  369. res = false;
  370. }
  371. return res;
  372. }
  373. //重新登录
  374. function resetlogin() {
  375. var bol = window.confirm("确定要重新登录吗?");
  376. if (bol) {
  377. if (document.getElementById("txtIsAgent").value == "true") {
  378. //button_QCCallNew();
  379. }
  380. window.open("../SignIn.aspx", "_top");
  381. }
  382. }
  383. //退出方法
  384. function relogout() {
  385. var bol = window.confirm("确定要退出登录吗?");
  386. if (bol) {
  387. AjaxPost("../WinIVR/GetAjaxPageInf.aspx?PgType=14");
  388. _framepage_headframe.UpdateLoginOutInfo(document.getElementById("hfUserId").value);
  389. top.close();
  390. }
  391. }
  392. </script>
  393. <script language="javascript" type="text/javascript">
  394. //退出系统
  395. function logout() {
  396. $.post("/Default/LoginOut/", function (data, states) {
  397. if (states == "success") {
  398. if (data == "success") {
  399. layer.confirm('确定退出系统?', { icon: 3, title: '提示' }, function (index) {
  400. try {
  401. if (document.getElementById("txtIsAgent").value == "true") {
  402. OCX_AgentLogOut();
  403. }
  404. }
  405. catch (e) {
  406. }
  407. //do something
  408. location.href = "/Default/Login";
  409. layer.close(index);
  410. });
  411. }
  412. }
  413. })
  414. }
  415. </script>
  416. <script type="text/javascript">
  417. //电话操作
  418. var becallout = false; //呼出
  419. var becallcome = false; //来电
  420. var CallOutRecordIsWrite = false; //呼出记录是否已写入
  421. var rgmstate = false;//人工忙状态
  422. function ToIndex() {
  423. //document.getElementById("mainframe").src = "/Main/IndexCenter";
  424. //<i class="layui-icon">&#xe68e;</i> <cite openid="-1">首页</cite>
  425. var tabIndex = -1;
  426. $(".layui-tab-title.top_tab li").each(function () {
  427. if ($(this).attr("lay-id") == 'maintab_index') {
  428. tabIndex = 1;
  429. }
  430. })
  431. if (tabIndex != 1) {
  432. var timeno = new Date().getTime();
  433. //新增一个Tab项
  434. element.tabAdd('bodyTab', {
  435. title: '<i class=\"layui-icon\">&#xe68e;</i> <cite openid=\"-1\">首页</cite>'
  436. , content: '<iframe id=\"mainframe_index\" src=\"/Main/IndexCenter?timeno=' + timeno + '\"></iframe>'
  437. , id: 'maintab_index' //实际使用一般是规定好的id,这里以时间戳模拟下
  438. })
  439. }
  440. element.tabChange('bodyTab', 'maintab_index');
  441. element.tabMove(); //顶部窗口是否可滚动
  442. }
  443. //初始化页面
  444. function Init() {
  445. try {
  446. //禁止后退键 作用于Firefox、Opera
  447. document.onkeypress = banBackSpace;
  448. //禁止后退键 作用于IE、Chrome
  449. document.onkeydown = banBackSpace;
  450. }
  451. catch (e) { }
  452. //show();
  453. }
  454. //签出
  455. function button_QCCall() {
  456. try {
  457. var result = OCX_AgentLogOut();
  458. }
  459. catch (e) {
  460. document.getElementById("spanServerRes").innerHTML = e.message;
  461. }
  462. }
  463. function AgentQR() {
  464. //reconnect();
  465. var usercode = document.getElementById("txtLabourwork").value;
  466. var extnumber = document.getElementById("txtPhoneNum").value;
  467. var typed = document.getElementById("HdIswin"); //是否是坐席用户
  468. if (typed.value == "true") {
  469. var timeno = new Date().getTime();
  470. /*2020-09-24miaofuhao注释*/
  471. if (!$(".fa-phone").hasClass("selectClass")) {
  472. Connect()
  473. } else {
  474. obj = {};
  475. obj.Type = "Logout";
  476. obj.AgentID = usercode;
  477. obj.AgentExten = extnumber;
  478. Send();
  479. //layer.msg('您已签入,无需重新签入', { icon: 5, time: 2000 });
  480. }
  481. /*2020-09-24miaofuhao注释*/
  482. InitPhoneBack();
  483. }
  484. else {
  485. document.getElementById("spanServerRes").innerHTML = "非坐席登录";
  486. }
  487. }
  488. function InitPhoneBack() {
  489. Initialize();
  490. }
  491. function Initialize() {
  492. try {
  493. var result = OCX_AgentLogin(document.getElementById("txtMostlyAddress").value, document.getElementById("txtServerPort").value, document.getElementById("txtLabourNo").value, document.getElementById("txtAgentGroup").value + "_" + document.getElementById("txtAgentRight").value, document.getElementById("txtPhoneNum").value);
  494. }
  495. catch (e) {
  496. document.getElementById("spanServerRes").innerHTML = e.message;
  497. }
  498. }
  499. //处理键盘事件 禁止后退键(Backspace)密码或单行、多行文本框除外
  500. function banBackSpace(e) {
  501. try {
  502. var ev = e || window.event; //获取event对象
  503. var obj = ev.target || ev.srcElement; //获取事件源
  504. var t = obj.type || obj.getAttribute('type'); //获取事件源类型
  505. //获取作为判断条件的事件类型
  506. var vReadOnly = obj.getAttribute('readonly');
  507. //处理null值情况
  508. vReadOnly = (vReadOnly == "") ? false : vReadOnly;
  509. //当敲Backspace键时,事件源类型为密码或单行、多行文本的,
  510. //并且readonly属性为true或enabled属性为false的,则退格键失效
  511. var flag1 = (ev.keyCode == 8 && (t == "password" || t == "text" || t == "textarea")
  512. && vReadOnly == "readonly") ? true : false;
  513. //当敲Backspace键时,事件源类型非密码或单行、多行文本的,则退格键失效
  514. var flag2 = (ev.keyCode == 8 && t != "password" && t != "text" && t != "textarea")
  515. ? true : false;
  516. //判断
  517. if (flag2) {
  518. return false;
  519. }
  520. if (flag1) {
  521. return false;
  522. }
  523. }
  524. catch (e) {
  525. return false;
  526. }
  527. }
  528. </script>
  529. <script type="text/javascript">
  530. function setLinkStatus(str) {
  531. //var imgServerState = document.getElementById("imgServerState");
  532. if (str == "True") {
  533. $('#imgServerState').attr('src', '/Content/images/server1.png');
  534. $('#imgServerState').attr('alt', '签入');
  535. // imgServerState.src = "/Content/images/server1.png";
  536. //imgServerState.alt = "签入";
  537. }
  538. else {
  539. $('#imgServerState').attr('src', '/Content/images/server0.png');
  540. $('#imgServerState').attr('alt', '未签入');
  541. //imgServerState.src = "/Content/images/server0.png";
  542. //imgServerState.alt = "未签入";
  543. }
  544. }
  545. function setAgentStatus(str) {
  546. //var imgAgentState = document.getElementById("imgAgentState");
  547. switch (str) {
  548. case "离席":
  549. $('#imgAgentState').attr('src', '/Content/images/zx2.png');
  550. $('#imgAgentState').attr('alt', '未登录');
  551. //imgAgentState.src = "/Content/images/zx2.png";
  552. //imgAgentState.alt = "未登录";
  553. break;
  554. case "空闲":
  555. $('#imgAgentState').attr('src', '/Content/images/zx1.png');
  556. $('#imgAgentState').attr('alt', '空闲');
  557. //imgAgentState.src = "/Content/images/zx1.png";
  558. //imgAgentState.alt = "空闲";
  559. break;
  560. case "忙":
  561. $('#imgAgentState').attr('src', '/Content/images/zx3.png');
  562. $('#imgAgentState').attr('alt', '忙');
  563. //imgAgentState.src = "/Content/images/zx3.png";
  564. //imgAgentState.alt = "忙";
  565. break;
  566. case "业务处理":
  567. $('#imgAgentState').attr('src', '/Content/images/zx4.png');
  568. $('#imgAgentState').attr('alt', '业务处理');
  569. //imgAgentState.src = "/Content/images/zx4.png";
  570. //imgAgentState.alt = "业务处理";
  571. break;
  572. }
  573. }
  574. //变换图标
  575. function Form_setWinfromenble(bl) {
  576. }
  577. function Form_setHW(bl) {
  578. if (bl == "True") {
  579. document.getElementById("txt_1").value = "1";
  580. document.getElementById("i_1").style.color = "#395E67";
  581. }
  582. else {
  583. document.getElementById("i_1").style.color = "#cccccc";
  584. document.getElementById("txt_1").value = "0";
  585. }
  586. }
  587. function Form_setZX(bl) {
  588. if (bl == "True") {
  589. document.getElementById("txt_7").value = "1";
  590. document.getElementById("i_7").style.color = "#395E67";
  591. }
  592. else {
  593. document.getElementById("i_7").style.color = "#cccccc";
  594. document.getElementById("txt_7").value = "0";
  595. }
  596. }
  597. function Form_setZM(bl) {
  598. if (bl == "True") {
  599. document.getElementById("txt_8").value = "1";
  600. document.getElementById("i_8").style.color = "#395E67";
  601. }
  602. else {
  603. document.getElementById("i_8").style.color = "#cccccc";
  604. document.getElementById("txt_8").value = "0";
  605. }
  606. }
  607. function OptNull() {
  608. }
  609. function OptNullByName(name) {
  610. var obj = document.getElementById(name);
  611. obj.src = "../images/totle/" + name + "3.png";
  612. obj.attributes["ostate"].value = 0;
  613. //obj.ostate = 0;
  614. obj.style.cursor = "default";
  615. }
  616. function OptByName(name) {
  617. var obj = document.getElementById(name);
  618. obj.src = "../images/totle/" + name + "1.png";
  619. obj.attributes["ostate"].value = 1;
  620. //obj.ostate = 1;
  621. obj.style.cursor = "hand";
  622. }
  623. </script>
  624. <style type="text/css">
  625. .defaultClass {
  626. color: #cccccc;
  627. }
  628. .selectClass {
  629. color: #83d944;
  630. }
  631. </style>
  632. </head>
  633. <body onload="Init()" class="main_body blue" onbeforeunload="closeSocket()">
  634. <div class="layui-layout layui-layout-admin">
  635. <!-- 顶部 -->
  636. <div class="layui-header header">
  637. <div class="layui-main mag0">
  638. <a href="###" class="logo" style=" text-align:left; padding-left:15px;">全媒体客服平台<img
  639. style="height:55px; display:none;" src="/Content/images/logo1.png" /><span>&nbsp;&nbsp;</span></a>
  640. <!-- 功能模块Id -->
  641. <input id="HdModuleFunIdCount" type="hidden" value="0" />
  642. <input id="ismonitoring" type="hidden" value="false" />
  643. <input id="HdIswin" type="hidden" value="@Model.IsSeat" />
  644. <input id="UserID" type="hidden" value="@Model.UserAccountModel.F_UserId" />
  645. <input id="Password" type="hidden" value="@Model.UserAccountModel.F_Password" />
  646. <input id="hfUserId" type="hidden" value="@Model.UserAccountModel.F_UserId" />
  647. <iframe src="/Main/iframeocx" name="iframeocx" frameborder="0" height="0" width="0"
  648. style="display: none;"></iframe>
  649. @*--(用于初始化用的信息)--*@
  650. <input id="txtMostlyAddress" type="hidden" value="@Model.CTIserverIP" />@*--(主用CTI服务器IP)*@
  651. <input id="ServerType" type="hidden" value="20" />@*--(服务器类型)--*@
  652. <input id="txtLabourNo" type="hidden"
  653. value="@Model.UserAccountModel.F_WorkNumber" />@*--<%=Request.Cookies["ID"].Value %>(工号)--*@
  654. <input id="pwd" type="hidden" value="" />@*--<%=Request.Cookies["ID"].Value %>(密码)--*@
  655. <input id="txtPhoneID" type="hidden" value="@Model.UserAccountModel.F_UserCode" />@*--(通讯进程号)--*@
  656. <input id="txtSubordinationAddress" type="hidden" value="@Model.CTIserverIP" />@*--(备用CTI服务器IP)--*@
  657. <input id="txtIsAgent" type="hidden" value="@Model.UserAccountModel.F_SeatFlag" />
  658. <!-- 是否具有话务功能,是否坐席登录 -->
  659. <input id="txtAgentId" type="hidden" value="@Model.UserAccountModel.F_UserId" /><!-- 坐席ID -->
  660. <input id="txtAgentName" type="hidden" value="@Model.UserAccountModel.F_UserName" />
  661. <input id="txtAgentRight" type="hidden" value="@Model.UserAccountModel.F_SeatRight" />
  662. <input id="txtAgentGroup" type="hidden" value="@Model.UserAccountModel.F_GroupId" />
  663. <input id="txtServerPort" type="hidden" value="@Model.CTIserverPort" />
  664. <!-- 坐席权限 -->
  665. @*--(用于登录的信息)--*@
  666. <input id="SeatType" type="hidden"
  667. value="@Model.UserAccountModel.F_SeatRight" />@*--<%=Request.Cookies["SkillSet"].Value %>(坐席类型)--*@
  668. <input id="txtPhoneNum" type="hidden"
  669. value="@Model.UserAccountModel.F_ExtensionNumber" />@*--<%=Request.Cookies["ExtNum"].Value %>(分机号)--*@
  670. <input id="keepcall" type="hidden" value="" />
  671. @*--(keep号码)--*@
  672. <input id="txtLabourwork" type="hidden" value="@Model.UserAccountModel.F_UserCode" />@*--(登录工号)--*@
  673. <input id="passwd" type="hidden" value="" />@*--(登录坐席密码)--*@
  674. <input id="hjbh" type="hidden" value="" />@*--(外乎呼叫编号)--*@
  675. <input id="CallHjbh" type="hidden" value="" />@*--(来电呼叫编号)--*@
  676. <input id="forZYnumber" type="hidden" value="" />@*--(用来存储来电号码--*@
  677. <input id="callnum" type="hidden" value="" />@*--(来电主叫号码)--*@
  678. <ul class="layui-nav topLevelMenus" pc>
  679. <li class="layui-nav-item" onclick="AgentQR()" data-menu="contentManagement" title="语音签入">
  680. <input id="txt_1" type="hidden" value="0" /><a title="语音签入">
  681. <i id="i_1" class="fa fa-phone defaultClass" data-icon=""></i></a>
  682. </li>
  683. <li class="layui-nav-item" data-menu="memberCenter" pc>
  684. <a><i id="i_2" class="layui-icon" style=" color:#cccccc;" data-icon="&#xe611;">&#xe611;</i></a>
  685. </li>
  686. <li class="layui-nav-item btnWX" data-menu="systemeSttings" pc>
  687. <a><i id="i_3" class="fa fa-weixin defaultClass" data-icon=""></i></a>
  688. </li>
  689. <li class="layui-nav-item btnWB" data-menu="seraphApi" pc>
  690. <a><i id="i_4" class="fa fa-weibo defaultClass" data-icon=""></i></a>
  691. </li>
  692. <li class="layui-nav-item" pc>
  693. <a><i id="i_5" class="fa fa-th-large" style=" color:#cccccc;" data-icon=""></i></a>
  694. </li>
  695. <li class="layui-nav-item" pc>
  696. <a><i id="i_6" class="fa fa-envelope-o" style=" color:#cccccc;" data-icon=""></i></a>
  697. </li>
  698. <li class="layui-nav-item" pc>
  699. <input id="txt_7" type="hidden" value="0" />
  700. <a onclick="AgentFree()" title="坐席就绪">
  701. <i id="i_7" class="fa fa-play defaultClass" data-icon=""></i></a>
  702. </li>
  703. <li class="layui-nav-item" pc>
  704. <input id="txt_8" type="hidden" value="0" />
  705. <a onclick="AgentBusy()" title="坐席小休">
  706. <i id="i_8" class="fa fa-pause defaultClass" data-icon=""></i>
  707. </a>
  708. </li>
  709. </ul>
  710. <!-- 顶部右侧菜单 -->
  711. <ul class="layui-nav top_menu">
  712. <li class="layui-nav-item">
  713. <a id="telLayerInfo" style=" display:none;"><img src="/Content/images/phone128.png"
  714. class="layui-nav-img userAvatar" width="35" height="35"><cite class="adminName">未处理来电</cite><sup
  715. id="supLayerCount" class="layui-badge">0</sup>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
  716. <dl id="telLayerInfoChild" class="layui-nav-child"></dl>
  717. </li>
  718. <!--软电话-->
  719. <li class="layui-nav-item " title="软电话">
  720. <i class="fa fa-whatsapp" data-method="confirmTrans"
  721. style="font-size: 25px !important; margin-right: 0px;margin-top:15px; color:gray"></i>
  722. </li>
  723. <li class="layui-nav-item" title="通讯录" id="CustomerTelphone">
  724. @*<a href="javascript:;" title="通讯录" onclick="OpenOtherForm('通讯录', '/HrEmployeeBase/EmployeeSearchList')">
  725. <i class="fa fa-address-card" style="font-size: 25px !important; margin-left :15px;margin-top:15px;
  726. color:gray">
  727. </i>
  728. </a>*@
  729. <a id="customerphone">
  730. <i class="fa fa-address-card"
  731. style="font-size: 25px !important; margin-left :15px;margin-top:15px; color:powderblue;"></i>
  732. </a>
  733. </li>
  734. <!--微信-->
  735. @*<li id="wxMap" class="layui-nav-item inform" title="微信">
  736. <i class="fa fa-weixin defaultClass" style="font-size: 20px !important; margin-right: 5px;"></i>
  737. <sup class="layui-badge wXCount" style="display:none;">0</sup>
  738. </li>*@
  739. <!--微博-->
  740. @*<li id="wbMap" class="layui-nav-item inform" title="微博">
  741. <i class="fa fa-weibo defaultClass" style=" font-size: 20px !important;margin-right:13px;"></i>
  742. <sup class="layui-badge wBCount" style="display:none;">0</sup>
  743. </li>*@
  744. <li class="layui-nav-item">
  745. <a title="小工具"><i class="layui-icon" style=" font-size: 25px !important;">&#xe631;</i></a>
  746. <dl class="layui-nav-child">
  747. <dd>
  748. <a onclick="OpenOtherForm('周边', 'https://www.amap.com/')"><i class="fa fa-map-marker"
  749. style="font-size: 20px !important; margin-right: 5px;"></i><cite
  750. style="text-align:left">周边</cite></a>
  751. </dd>
  752. <dd>
  753. <a onclick="OpenOtherForm('线路查询', 'http://www.zzmetro.com/lines/query/line')"><i class="fa fa-plane"
  754. style="font-size: 20px !important; margin-right: 5px;"></i><cite
  755. style="text-align:left">线路查询</cite></a>
  756. </dd>
  757. <dd>
  758. <a onclick="OpenOtherForm('票价查询', 'http://www.zzmetro.com/lines/query/ticket')"><i class="fa fa-ticket"
  759. style="font-size: 20px !important; margin-right: 5px;"></i><cite
  760. style="text-align:left">票价查询</cite></a>
  761. </dd>
  762. <dd>
  763. <a onclick="OpenOtherForm('运营时间', 'http://www.zzmetro.com/lines/query/operating_hours')"><i
  764. class="fa fa-clock-o" style="font-size: 20px !important; margin-right: 5px;"></i><cite
  765. style="text-align:left">运营时间</cite></a>
  766. </dd>
  767. <dd>
  768. <a onclick="OpenOtherForm('站点查询', 'http://www.zzmetro.com/lines/query/station')"><i class="fa fa-train"
  769. style="font-size: 20px !important; margin-right: 5px;"></i><cite
  770. style="text-align:left">站点查询</cite></a>
  771. </dd>
  772. <dd>
  773. <a onclick="OpenOtherForm('快速通讯录', 'http://portal.zzmetro.com/index.php?m=content&c=txl')"><i
  774. class="fa fa-tty" style="font-size: 20px !important; margin-right: 5px;"></i><cite
  775. style="text-align:left">快速通讯录</cite></a>
  776. </dd>
  777. <dd>
  778. <a onclick="OpenOtherForm('官网入口', 'http://www.zzmetro.com/')"><i class="fa fa-internet-explorer"
  779. style="font-size: 20px !important; margin-right: 5px;"></i><cite
  780. style="text-align:left">官网入口</cite></a>
  781. </dd>
  782. <dd>
  783. <a onclick="OpenOtherForm('常见Q&A', ' /RepositoryCategory/RepositoryCategoryContentList/?dType=2')"><i
  784. class="fa fa-quora" style="font-size: 20px !important; margin-right: 5px;"></i><cite
  785. style="text-align:left">常见Q&A</cite></a>
  786. </dd>
  787. <dd>
  788. <a onclick="OpenOtherForm('常用语', ' /RepositoryCategory/RepositoryCategoryContentList/?dType=4')"><i
  789. class="fa fa-book" style="font-size: 20px !important; margin-right: 5px;"></i><cite
  790. style="text-align:left">常用语</cite></a>
  791. </dd>
  792. <dd>
  793. <a onclick="OpenOtherForm('我的常用语', ' /RepositoryCategory/RepositoryCategoryContentList/?dType=1')"><i
  794. class="fa fa-rebel" style="font-size: 20px !important; margin-right: 5px;"></i><cite
  795. style="text-align:left">我的常用语</cite></a>
  796. </dd>
  797. <dd>
  798. <a onclick="OpenOtherForm('邮箱入口', 'http://mail.zzmetro.cn/index.php')"><i class="fa fa-envelope"
  799. style="font-size: 20px !important; margin-right: 5px;color:deepskyblue;"></i><cite
  800. style="text-align:left">邮箱入口</cite></a>
  801. </dd>
  802. </dl>
  803. </li>
  804. <li class="layui-nav-item" id="userInfo">
  805. <a><img src="@Model.UserAccountModel.F_HomePhone" class="layui-nav-img userAvatar" width="35"
  806. height="35"><cite class="adminName">@Model.UserAccountModel.F_UserName</cite></a>
  807. <dl class="layui-nav-child">
  808. <dd>
  809. <a id="userinfo"><i class="layui-icon">&#xe705;</i><cite>个人信息</cite></a>
  810. </dd>
  811. <dd>
  812. <a id="userpwd"><i class="layui-icon"> &#xe620;</i><cite>修改密码</cite></a>
  813. </dd>
  814. <dd>
  815. <a href="javascript:logout()" id="exitsystem"><i class="fa fa-power-off"> </i><cite>退出系统</cite></a>
  816. </dd>
  817. </dl>
  818. </li>
  819. </ul>
  820. </div>
  821. </div>
  822. <!-- 左侧导航 -->
  823. <div class="layui-side layui-bg-black">
  824. <div class="navBar layui-side-scroll" id="navBar">
  825. <ul class="layui-nav layui-nav-tree" lay-filter="demo" lay-shrink="all">
  826. @if (Model != null && Model.MenuModelList != null && Model.MenuModelList.Count > 0)
  827. {
  828. int i = 0;
  829. foreach (T_Sys_ModuleFunctions rootNode in Model.MenuModelList)
  830. {
  831. if (i == 0)
  832. {
  833. <li class="layui-nav-item layui-nav-itemed">
  834. <a data-url="@rootNode.F_OptUrl"><i class="@rootNode.F_ImgUrl"></i> @rootNode.F_Name</a>
  835. @if (rootNode.ChildMenuModelList != null && rootNode.ChildMenuModelList.Count > 0)
  836. {
  837. <dl class="layui-nav-child">
  838. @foreach (T_Sys_ModuleFunctions childNode in rootNode.ChildMenuModelList)
  839. {
  840. <dd><a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon=""
  841. data-url="@childNode.F_OptUrl">@childNode.F_Name</a></dd>
  842. }
  843. </dl>
  844. }
  845. </li>
  846. }
  847. else
  848. {
  849. <li class="layui-nav-item">
  850. @if (rootNode.F_ModuleId > 0)
  851. {
  852. <a id="@rootNode.F_FunctionId" aname="@rootNode.F_Name" aicon="@rootNode.F_ImgUrl"
  853. data-url="@rootNode.F_OptUrl">
  854. <i class="@rootNode.F_ImgUrl defaultClass"></i> @rootNode.F_Name
  855. <sup class="layui-badge @rootNode.F_ModuleCode" style="display:none;margin-left:155px;">0</sup>
  856. </a>
  857. }
  858. else
  859. {
  860. if (rootNode.F_FunctionId == 5)
  861. {
  862. <a id="@rootNode.F_FunctionId" aname="@rootNode.F_Name" aicon="@rootNode.F_ImgUrl"
  863. data-url="@rootNode.F_OptUrl"><i class="@rootNode.F_ImgUrl"></i> @rootNode.F_Name<sup
  864. style="position:inherit;margin-left:40px;" class="layui-badge totalOrderCount">0</sup></a>
  865. }
  866. else
  867. {
  868. <a id="@rootNode.F_FunctionId" aname="@rootNode.F_Name" aicon="@rootNode.F_ImgUrl"
  869. data-url="@rootNode.F_OptUrl"><i class="@rootNode.F_ImgUrl"></i> @rootNode.F_Name</a>
  870. }
  871. }
  872. @if (rootNode.ChildMenuModelList != null && rootNode.ChildMenuModelList.Count > 0)
  873. {
  874. <dl class="layui-nav-child">
  875. @foreach (T_Sys_ModuleFunctions childNode in rootNode.ChildMenuModelList)
  876. {
  877. if (childNode.F_FunctionId == 16)
  878. {
  879. <dd>
  880. <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
  881. @childNode.F_Name
  882. <sup class="layui-badge orderNeedCount" style="margin-left:50px;">0</sup>
  883. </a>
  884. </dd>
  885. }
  886. else if (childNode.F_FunctionId == 17)
  887. {
  888. <dd>
  889. <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
  890. @childNode.F_Name
  891. <sup class="layui-badge orderCount" style="margin-left:50px;">0</sup>
  892. </a>
  893. </dd>
  894. }
  895. else if (childNode.F_FunctionId == 18)
  896. {
  897. <dd>
  898. <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
  899. @childNode.F_Name
  900. <sup class="layui-badge orderCount" style="margin-left:50px;">0</sup>
  901. </a>
  902. </dd>
  903. }
  904. else if (childNode.F_FunctionId == 69)
  905. {
  906. <dd>
  907. <a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon="" data-url="@childNode.F_OptUrl">
  908. @childNode.F_Name
  909. <sup class="layui-badge orderCountWb" style="margin-left:50px;">0</sup>
  910. </a>
  911. </dd>
  912. }
  913. else
  914. {
  915. <dd><a id="@childNode.F_FunctionId" aname="@childNode.F_Name" aicon=""
  916. data-url="@childNode.F_OptUrl">@childNode.F_Name</a></dd>
  917. }
  918. }
  919. </dl>
  920. }
  921. </li>
  922. }
  923. i++;
  924. }
  925. }
  926. </ul>
  927. </div>
  928. </div>
  929. <!-- 右侧内容 -->
  930. <div class="layui-body layui-form">
  931. <iframe id="mainframe" src="/Main/IndexCenter"></iframe>
  932. @*<div class="layui-tab mag0" lay-filter="bodyTab" id="top_tabs_box">
  933. <div class="switchover1">
  934. <i class="switcRight layui-icon">&#xe603;</i>
  935. </div>
  936. <ul class="layui-tab-title top_tab" id="top_tabs">
  937. <li class="layui-this maintabframecss" lay-id="maintab_index"><i class="layui-icon">&#xe68e;</i> <cite
  938. openid="-1">首页</cite></li>
  939. </ul>
  940. <!--tab 滑动-->
  941. <div class="switchover">
  942. <i class="switcLeft layui-icon">&#xe602;</i>
  943. </div>
  944. <ul class="layui-nav closeBox">
  945. <li class="layui-nav-item">
  946. <a href="javascript:;"><i class="layui-icon caozuo">&#xe643;</i> 操作</a>
  947. <dl class="layui-nav-child">
  948. <dd>
  949. <a href="javascript:;" class="refresh refreshThis"><i class="layui-icon">&#x1002;</i> 刷新当前</a>
  950. </dd>
  951. <dd>
  952. <a href="javascript:;" class="closePageOther"><i class="layui-icon">&#x1007;</i> 关闭其他</a>
  953. </dd>
  954. <dd>
  955. <a href="javascript:;" class="closePageAll"><i class="layui-icon">&#x1006;</i> 关闭全部</a>
  956. </dd>
  957. </dl>
  958. </li>
  959. </ul>
  960. <div class="layui-tab-content clildFrame">
  961. <div id="mainframeTab_index" class="layui-tab-item layui-show">
  962. <iframe id="mainframe_index" src="/Main/IndexCenter"></iframe>
  963. </div>
  964. </div>
  965. </div>*@
  966. </div>
  967. <!-- 底部 -->
  968. <div class="layui-footer footer">
  969. <div style="float: left; padding-left: 8px;" id="TelState">
  970. <div style="float: left; padding-top: 4px;">
  971. 服务状态:
  972. </div>
  973. <div style="float: left; padding-top: 3px;">
  974. <img id="imgServerState" src="/Content/images/server0.png" alt="未连接" />
  975. </div>
  976. <div style="float: left; padding-top: 3px;">
  977. &nbsp;&nbsp;坐席状态:
  978. </div>
  979. <div style="float: left; padding-top: 3px;">
  980. <img id="imgAgentState" src="/Content/images/zx2.png" alt="未登录" />
  981. </div>
  982. <div style="float: left; padding-top: 3px;">
  983. &nbsp;&nbsp;排队数量:
  984. </div>
  985. <div style="float: left; padding-top: 3px;">
  986. <span id="spanqueuingnum" class="layui-badge">0</span>
  987. </div>
  988. <div style="float: left; padding-top: 3px;">
  989. &nbsp;&nbsp;<span id="spanServerRes" style="color: #eeeeee;"></span>
  990. </div>
  991. </div>
  992. <div style="float:right;">
  993. <p><span>© 版权所有 郑州市轨道交通</span></p>
  994. </div>
  995. </div>
  996. </div>
  997. <!-- 移动导航 -->
  998. @*<div class="site-tree-mobile"><i class="layui-icon">&#xe602;</i></div>
  999. <div class="site-mobile-shade"></div>*@
  1000. <script type="text/javascript">
  1001. function OpenOtherForm(title, url) {
  1002. window.open(url, title);
  1003. //top.OCX_OpenOtherForm(title, url);
  1004. }
  1005. </script>
  1006. <script src="/Content/layui/layui.js"></script>
  1007. <script src="/Content/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
  1008. @*<script type="text/javascript" src="/Content/js/index.js" charset="utf-8"></script>*@
  1009. <script type="text/javascript" src="/Content/js/cache.js"></script>
  1010. <script src="/Content/js/myindex.js" type="text/javascript" charset="utf-8"></script>
  1011. <script src="~/Content/js/passWord/pwdValueDate.js"></script>
  1012. <script>
  1013. layui.use(['layer', 'jquery'], function () {
  1014. var form = layui.form,
  1015. layer = parent.layer === undefined ? layui.layer : parent.layer,
  1016. $ = layui.jquery;
  1017. $(".fa-whatsapp").click(function () {
  1018. if ($("#HdIswin").val()) {
  1019. layer.open({
  1020. type: 2,
  1021. anim: 4,
  1022. scrollbar: false,
  1023. content: '/Main/PhoneCall',
  1024. area: ['400px', '420px'],
  1025. id: 'PhoneCall',
  1026. title: '软电话'
  1027. });
  1028. }
  1029. else {
  1030. layer.msg('无权限', { icon: 5, time: 2000 });
  1031. return;
  1032. }
  1033. });
  1034. })
  1035. </script>
  1036. <script type="text/javascript">
  1037. function telajaxopt(opturl) {
  1038. var r = "";
  1039. try {
  1040. $.ajax({
  1041. type: 'get',
  1042. url: opturl,
  1043. dataType: 'html',
  1044. async: false,
  1045. cache: false,
  1046. success: function (res) {
  1047. r = res;
  1048. }
  1049. });
  1050. }
  1051. catch (e) {
  1052. //$.ligerDialog.error(e.message);
  1053. }
  1054. return r;
  1055. }
  1056. //电话操作事件
  1057. //话机状态改变事件
  1058. function OnPhoneStatusNotify(status) {
  1059. var timeno = new Date().getTime();
  1060. //document.getElementById("spanServerRes").innerHTML = "状态:" + status;
  1061. }
  1062. //获取APPID
  1063. function GetAPPID() {
  1064. var cid = OCX_GetCallID("");
  1065. //更新APPID
  1066. return cid;
  1067. }
  1068. function UpdateRecPath() {
  1069. var appid = "";
  1070. appid = GetAPPID();
  1071. var timeno = new Date().getTime();
  1072. var callID = document.getElementById("CallHjbh").value;
  1073. telajaxopt("/OCXOpt/OCXOptCallAjax/?optaction=luyinEvent&callid=" + callID + "&path=" + appid + "&timeno=" + timeno); //录音开始事件
  1074. }
  1075. //录音成功
  1076. function Form_callComming(callerNum, parth) {
  1077. var timeno = new Date().getTime();
  1078. telajaxopt("/OCXOpt/OCXOptCallAjax/?optaction=luyinEvent&callid=" + document.getElementById("CallHjbh").value + "&path=" + parth + "&timeno=" + timeno); //录音开始事件
  1079. //Form_setWinfromenble("True", "false", "false", "false", "True", "True", "True", "false", "false", "false");
  1080. }
  1081. function getCallerNum() {
  1082. var calnum = document.getElementById("callnum").value;
  1083. return calnum;
  1084. }
  1085. function clearCallerNum() {
  1086. document.getElementById("callnum").value = "";
  1087. }
  1088. function getCallHjbh() {
  1089. var cid = document.getElementById("CallHjbh").value;
  1090. return cid;
  1091. }
  1092. function clearCallHjbh() {
  1093. document.getElementById("CallHjbh").value = "";
  1094. }
  1095. </script>
  1096. <script>
  1097. var tellayercount = 0;
  1098. var nowtime = "";
  1099. var arrLayerTime = new Array();
  1100. function ShowLayerByTimes(times) {
  1101. nowtime = times;
  1102. var aid = "layui-layer" + times;
  1103. //$('#' + aid).show();
  1104. $("#" + aid).find(".layui-layer-max").click();
  1105. }
  1106. function CloseLayerByTimes(times) {
  1107. var aid = "layui-layer" + times;
  1108. //$('#' + aid).show();
  1109. $("#" + aid).find(".layui-layer-close").click();
  1110. }
  1111. function CloseLayerNow() {
  1112. var aid = "layui-layer" + nowtime;
  1113. //$('#' + aid).show();
  1114. $("#" + aid).find(".layui-layer-close").click();
  1115. }
  1116. function InitTelLayerList() {
  1117. var html = "";
  1118. for (var ai = 0; ai < arrLayerTime.length; ai++) {
  1119. var atime = arrLayerTime[ai];
  1120. var aid = "layui-layer" + atime;
  1121. var title = $('#' + aid + ' .layui-layer-title').text();
  1122. var sindex = title.indexOf('-');
  1123. title = title.substr(0, sindex);
  1124. html += "<dd><a href=\"javascript:ShowLayerByTimes(" + atime + ");\" ><i class=\"fa fa-phone\"></i><cite>" + title + "</cite></a></dd>";
  1125. }
  1126. $('#telLayerInfoChild').html(html);
  1127. }
  1128. function CloseOpenTel(atime) {
  1129. tellayercount--;
  1130. if (tellayercount <= 0) {
  1131. tellayercount = 0;
  1132. document.getElementById("telLayerInfo").style.display = "none";
  1133. }
  1134. document.getElementById("supLayerCount").innerHTML = tellayercount;
  1135. //var atime = layero.attr("times");
  1136. var sindex = arrLayerTime.indexOf(atime);
  1137. if (sindex > -1) {
  1138. arrLayerTime.splice(sindex, 1);
  1139. }
  1140. InitTelLayerList();
  1141. }
  1142. function OpenTelLayer(t, urlSrc) {//多窗口模式,层叠置顶
  1143. layui.use(['element', 'layer'], function () {
  1144. var element = layui.element,
  1145. layer = layui.layer; //获得layer模块
  1146. layer.open({
  1147. type: 2 //此处以iframe举例
  1148. , title: t
  1149. , area: ['80%', '80%']
  1150. , shade: 0
  1151. , maxmin: true
  1152. , content: urlSrc
  1153. , zIndex: layer.zIndex //重点1
  1154. , success: function (layero) {
  1155. tellayercount++;
  1156. document.getElementById("supLayerCount").innerHTML = tellayercount;
  1157. document.getElementById("telLayerInfo").style.display = "inline";
  1158. layer.setTop(layero); //重点2
  1159. nowtime = layero.attr("times");
  1160. arrLayerTime.push(layero.attr("times"));
  1161. InitTelLayerList();
  1162. }, min: function (layero) {
  1163. //setTimeout(function () { layero.css({ left:"180px",width:"280px" }); }, 0);
  1164. //alert(layero.attr("times"));
  1165. //var w = document.body.clientWidth;
  1166. //var rowcount = w / 181;
  1167. //for (var i = 0; i < arrLayerTime.length; i++) {
  1168. // var atime = arrLayerTime[i];
  1169. // var id = "layui-layer" + atime;
  1170. // var obj = document.getElementById(id);
  1171. //}
  1172. var atime = layero.attr("times");
  1173. var aid = "layui-layer" + atime;
  1174. //$('#' + aid).hide();
  1175. setTimeout(function () { layero.css({ width: "0px", height: "0px" }); }, 0);
  1176. }, cancel: function (index, layero) {
  1177. CloseOpenTel(layero.attr("times"));
  1178. }
  1179. });
  1180. });
  1181. }
  1182. function tabMove() {
  1183. $(window).on("resize", function (event) {
  1184. var topTabsBox = $("#top_tabs_box"),
  1185. topTabsBoxWidth = $("#top_tabs_box").width(),
  1186. topTabs = $("#top_tabs"),
  1187. topTabsWidth = $("#top_tabs").width(),
  1188. tabLi = topTabs.find("li.layui-this"),
  1189. top_tabs = document.getElementById("top_tabs"),
  1190. event = event || window.event;
  1191. try {
  1192. if (topTabsWidth > topTabsBoxWidth) {
  1193. if (tabLi.position().left > topTabsBoxWidth || tabLi.position().left + topTabsBoxWidth > topTabsWidth) {
  1194. topTabs.css("left", topTabsBoxWidth - topTabsWidth);
  1195. } else {
  1196. topTabs.css("left", -tabLi.position().left);
  1197. }
  1198. //拖动效果
  1199. var flag = false;
  1200. var cur = {
  1201. x: 0,
  1202. y: 0
  1203. }
  1204. var nx, dx, x;
  1205. function down() {
  1206. flag = true;
  1207. var touch;
  1208. if (event.touches) {
  1209. touch = event.touches[0];
  1210. } else {
  1211. touch = event;
  1212. }
  1213. cur.x = touch.clientX;
  1214. dx = top_tabs.offsetLeft;
  1215. }
  1216. function move() {
  1217. var self = this;
  1218. if (flag) {
  1219. window.getSelection ? window.getSelection().removeAllRanges() : document.selection.empty();
  1220. var touch;
  1221. if (event.touches) {
  1222. touch = event.touches[0];
  1223. } else {
  1224. touch = event;
  1225. }
  1226. nx = touch.clientX - cur.x;
  1227. x = dx + nx;
  1228. if (x > 0) {
  1229. x = 0;
  1230. } else {
  1231. if (x < topTabsBoxWidth - topTabsWidth) {
  1232. x = topTabsBoxWidth - topTabsWidth;
  1233. } else {
  1234. x = dx + nx;
  1235. }
  1236. }
  1237. top_tabs.style.left = x + "px";
  1238. //阻止页面的滑动默认事件
  1239. document.addEventListener("touchmove", function () {
  1240. event.preventDefault();
  1241. }, false);
  1242. }
  1243. }
  1244. //鼠标释放时候的函数
  1245. function end() {
  1246. flag = false;
  1247. }
  1248. //pc端拖动效果
  1249. topTabs.on("mousedown", down);
  1250. topTabs.on("mousemove", move);
  1251. $(document).on("mouseup", end);
  1252. //移动端拖动效果
  1253. topTabs.on("touchstart", down);
  1254. topTabs.on("touchmove", move);
  1255. topTabs.on("touchend", end);
  1256. } else {
  1257. //移除pc端拖动效果
  1258. topTabs.off("mousedown", down);
  1259. topTabs.off("mousemove", move);
  1260. topTabs.off("mouseup", end);
  1261. //移除移动端拖动效果
  1262. topTabs.off("touchstart", down);
  1263. topTabs.off("touchmove", move);
  1264. topTabs.off("touchend", end);
  1265. topTabs.removeAttr("style");
  1266. return false;
  1267. }
  1268. }
  1269. catch (e) {
  1270. alert(e.message);
  1271. }
  1272. }).resize();
  1273. }
  1274. var tabFilter, menu = [], liIndex, curNav, delMenu,
  1275. changeRefreshStr = window.sessionStorage.getItem("changeRefresh");
  1276. //layui.use(['layer', 'jquery'], function () {
  1277. // var form = layui.form,
  1278. // layer = parent.layer === undefined ? layui.layer : parent.layer,
  1279. // $ = layui.jquery;
  1280. layui.use('element', function () {
  1281. var element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
  1282. //var element = layui.element,
  1283. // $ = layui.$,
  1284. // layId,
  1285. // Tab = function () {
  1286. // this.tabConfig = {
  1287. // openTabNum: undefined, //最大可打开窗口数量
  1288. // tabFilter: "bodyTab", //添加窗口的filter
  1289. // url: undefined //获取菜单json地址
  1290. // }
  1291. // };
  1292. /*
  1293. //通过title获取lay-id
  1294. Tab.prototype.getLayId = function (title) {
  1295. $(".layui-tab-title.top_tab li").each(function () {
  1296. if ($(this).find("cite").text() == title) {
  1297. layId = $(this).attr("lay-id");
  1298. }
  1299. })
  1300. return layId;
  1301. }
  1302. //通过title判断tab是否存在
  1303. Tab.prototype.hasTab = function (title) {
  1304. var tabIndex = -1;
  1305. $(".layui-tab-title.top_tab li").each(function () {
  1306. if ($(this).find("cite").text() == title) {
  1307. tabIndex = 1;
  1308. }
  1309. })
  1310. return tabIndex;
  1311. }
  1312. function AddTabPage(aid, aicon, nullicon, aname, urlSrc) {
  1313. var timeno = new Date().getTime();
  1314. var tabIndex = -1;
  1315. $(".layui-tab-title.top_tab li").each(function () {
  1316. if ($(this).attr("lay-id") == 'maintab_' + aid + '') {
  1317. tabIndex = 1;
  1318. }
  1319. })
  1320. if (tabIndex != 1) {
  1321. //新增一个Tab项
  1322. element.tabAdd('bodyTab', {
  1323. title: '<i class=\"' + aicon + '\">' + nullicon + '</i> <cite openid=\"' + aid + '\">' + aname + '</cite><i class=\"layui-icon layui-unselect layui-tab-close\">&#x1006;</i>'
  1324. , content: '<iframe id=\"mainframe_' + aid + '\" src=\"' + urlSrc + '?timeno=' + timeno + '\"></iframe>'
  1325. , id: 'maintab_' + aid + '' //实际使用一般是规定好的id,这里以时间戳模拟下
  1326. })
  1327. }
  1328. element.tabChange('bodyTab', 'maintab_' + aid + '');
  1329. tabMove(); //顶部窗口是否可滚动
  1330. }
  1331. */
  1332. var pwd = $("#Password").val();
  1333. if (checkStrong(pwd) == "0" || checkStrong(pwd) == "1") {
  1334. layer.open({
  1335. content: '密码等级太低,请先修改密码'
  1336. , btn: ['好的', '稍后再去']
  1337. , yes: function (index, layero) {
  1338. layer.close(index);
  1339. //AddTabPage('editpsd', 'fa fa-lock', '', '修改密码','/SystemManage/UserPwdEdit');
  1340. document.getElementById("mainframe").src = "/SystemManage/UserPwdEdit";
  1341. }
  1342. });
  1343. }
  1344. $("#userpwd").click(function () {
  1345. document.getElementById("mainframe").src = "/SystemManage/UserPwdEdit";
  1346. //AddTabPage('editpsd', 'fa fa-lock', '', '修改密码', '/SystemManage/UserPwdEdit');
  1347. });
  1348. $("#customerphone").click(function () {
  1349. document.getElementById("mainframe").src = "/HrEmployeeBase/EmployeeSearchList";
  1350. //AddTabPage('emplist', 'layui-icon layui-icon-form', '&#xe63c;', '通讯录', '/HrEmployeeBase/EmployeeSearchList');
  1351. //layer.open({
  1352. // type: 2,
  1353. // anim: 4,
  1354. // scrollbar: false,
  1355. // content: '/HrEmployeeBase/EmployeeSearchList',
  1356. // area: ['1000px', '500px'],
  1357. // id: 'UserInfo',
  1358. // title: '通讯录'
  1359. //});
  1360. });
  1361. $("#userinfo").click(function () {
  1362. document.getElementById("mainframe").src = "/SystemManage/UserView";
  1363. //AddTabPage('userinfo', 'fa fa-user', '', '个人信息', '/SystemManage/UserView');
  1364. //layer.open({
  1365. // type: 2,
  1366. // anim: 4,
  1367. // scrollbar: false,
  1368. // content: '/SystemManage/UserView',
  1369. // area: ['800px', '500px'],
  1370. // id: 'UserInfo',
  1371. // title: '个人信息'
  1372. //});
  1373. });
  1374. //转主页
  1375. $(".logo").on("click", function () { //此处添加禁止连续点击刷新一是为了降低服务器压力,另外一个就是为了防止超快点击造成chrome本身的一些js文件的报错(不过貌似这个问题还是存在,不过概率小了很多)
  1376. //var tabIndex = -1;
  1377. //$(".layui-tab-title.top_tab li").each(function () {
  1378. // if ($(this).attr("lay-id") == 'maintab_index') {
  1379. // tabIndex = 1;
  1380. // }
  1381. //})
  1382. //if (tabIndex != 1) {
  1383. // var timeno = new Date().getTime();
  1384. // //新增一个Tab项
  1385. // element.tabAdd('bodyTab', {
  1386. // title: '<i class=\"layui-icon\">&#xe68e;</i> <cite openid=\"-1\">首页</cite>'
  1387. // , content: '<iframe id=\"mainframe_index\" src=\"/Main/IndexCenter?timeno=' + timeno + '\"></iframe>'
  1388. // , id: 'maintab_index' //实际使用一般是规定好的id,这里以时间戳模拟下
  1389. // })
  1390. //}
  1391. //element.tabChange('bodyTab', 'maintab_index');
  1392. //tabMove(); //顶部窗口是否可滚动
  1393. var timeno = new Date().getTime();
  1394. document.getElementById("mainframe").src = "/Main/IndexCenter?timeno=" + timeno;
  1395. })
  1396. //删除tab
  1397. //$("body").on("click", ".top_tab li i.layui-tab-close", function () {
  1398. // try {
  1399. // //删除tab后重置session中的menu和curmenu
  1400. // liIndex = $(this).parent("li").index();
  1401. // element.tabDelete("bodyTab", $(this).parent("li").attr("lay-id")).init();
  1402. // tabMove();
  1403. // }
  1404. // catch (e) { }
  1405. //})
  1406. //刷新当前
  1407. //$(".refresh").on("click", function () { //此处添加禁止连续点击刷新一是为了降低服务器压力,另外一个就是为了防止超快点击造成chrome本身的一些js文件的报错(不过貌似这个问题还是存在,不过概率小了很多)
  1408. // try {
  1409. // if ($(this).hasClass("refreshThis")) {
  1410. // $(this).removeClass("refreshThis");
  1411. // $(".clildFrame .layui-tab-item.layui-show").find("iframe")[0].contentWindow.location.reload();
  1412. // setTimeout(function () {
  1413. // $(".refresh").addClass("refreshThis");
  1414. // }, 2000)
  1415. // } else {
  1416. // layer.msg("您点击的速度超过了服务器的响应速度,还是等两秒再刷新吧!");
  1417. // }
  1418. // }
  1419. // catch (e) { }
  1420. //})
  1421. //关闭其他
  1422. //$(".closePageOther").on("click", function () {
  1423. // try {
  1424. // if ($("#top_tabs li").length > 2 && $("#top_tabs li.layui-this cite").text() != "首页") {
  1425. // $("#top_tabs li").each(function () {
  1426. // if ($(this).attr("lay-id") != 'maintab_index' && !$(this).hasClass("layui-this")) {
  1427. // element.tabDelete("bodyTab", $(this).attr("lay-id")).init();
  1428. // }
  1429. // })
  1430. // } else if ($("#top_tabs li.layui-this cite").text() == "首页" && $("#top_tabs li").length > 1) {
  1431. // $("#top_tabs li").each(function () {
  1432. // if ($(this).attr("lay-id") != 'maintab_index' && !$(this).hasClass("layui-this")) {
  1433. // element.tabDelete("bodyTab", $(this).attr("lay-id")).init();
  1434. // }
  1435. // })
  1436. // } else {
  1437. // layer.msg("没有可以关闭的窗口了");
  1438. // }
  1439. // //渲染顶部窗口
  1440. // tabMove();
  1441. // }
  1442. // catch (e) { }
  1443. //})
  1444. //关闭全部
  1445. //$(".closePageAll").on("click", function () {
  1446. // try {
  1447. // if ($("#top_tabs li").length > 1) {
  1448. // $("#top_tabs li").each(function () {
  1449. // if ($(this).attr("lay-id") != 'maintab_index') {
  1450. // element.tabDelete("bodyTab", $(this).attr("lay-id")).init();
  1451. // }
  1452. // })
  1453. // } else {
  1454. // layer.msg("没有可以关闭的窗口了");
  1455. // }
  1456. // //渲染顶部窗口
  1457. // tabMove();
  1458. // }
  1459. // catch (e) { }
  1460. //})
  1461. //通过title获取lay-id
  1462. //Tab.prototype.getLayId = function (title) {
  1463. // $(".layui-tab-title.top_tab li").each(function () {
  1464. // if ($(this).find("cite").text() == title) {
  1465. // layId = $(this).attr("lay-id");
  1466. // }
  1467. // })
  1468. // return layId;
  1469. //}
  1470. //监听导航点击
  1471. element.on('nav(demo)', function (elem) {
  1472. //console.log(elem)
  1473. // layer.msg(elem.text());
  1474. var urlSrc = $(this).find("a").attr("data-url");
  1475. var aname = $(this).find("a").attr("aname");
  1476. var aid = $(this).find("a").attr("id");
  1477. var aicon = $(this).find("a").attr("aicon");
  1478. var nullicon = "";
  1479. if (aicon == "") {
  1480. aicon = "layui-icon layui-icon-tabs";
  1481. nullicon = "&#xe62a;";
  1482. }
  1483. var cssClass = $(this).find("a").find("i").attr("class");
  1484. if (cssClass != null && (cssClass.indexOf("fa-weibo") > 0 || cssClass.indexOf("fa-weixin")) && cssClass.indexOf("selectClass") <= 0) {
  1485. alert("未签入!")
  1486. return;
  1487. }
  1488. var timeno = new Date().getTime();
  1489. if (urlSrc != "") {
  1490. if (urlSrc == "/ScreenDisplay/MainScreen") {
  1491. OpenOtherForm("郑州地铁客服中心大屏数据展示", "http://" + window.location.host + urlSrc + "/");
  1492. }
  1493. else {
  1494. if (urlSrc.indexOf("CallRecord/CallScreen") >= 0) {
  1495. //OpenTelLayer('18695836988-来电', urlSrc);
  1496. document.getElementById("mainframe").src = urlSrc;
  1497. }
  1498. else {
  1499. if (urlSrc.indexOf('?') < 0) {
  1500. document.getElementById("mainframe").src = urlSrc + "?timeno=" + timeno + "";
  1501. //var tabIndex = -1;
  1502. //$(".layui-tab-title.top_tab li").each(function () {
  1503. // if ($(this).attr("lay-id") == 'maintab_' + aid + '') {
  1504. // tabIndex = 1;
  1505. // }
  1506. //})
  1507. //if (tabIndex != 1) {
  1508. // //新增一个Tab项
  1509. // element.tabAdd('bodyTab', {
  1510. // title: '<i class=\"' + aicon + '\">' + nullicon + '</i> <cite openid=\"' + aid + '\">' + aname + '</cite><i class=\"layui-icon layui-unselect layui-tab-close\">&#x1006;</i>'
  1511. // , content: '<iframe id=\"mainframe_' + aid + '\" scrolling=\"auto\" src=\"' + urlSrc + '?timeno=' + timeno + '\"></iframe>'
  1512. // , id: 'maintab_' + aid + '' //实际使用一般是规定好的id,这里以时间戳模拟下
  1513. // })
  1514. //}
  1515. //element.tabChange('bodyTab', 'maintab_' + aid + '');
  1516. //tabMove(); //顶部窗口是否可滚动
  1517. }
  1518. else {
  1519. document.getElementById("mainframe").src = urlSrc + "&timeno=" + timeno + "";
  1520. //try {
  1521. // var tabIndex = -1;
  1522. // $(".layui-tab-title.top_tab li").each(function () {
  1523. // if ($(this).attr("lay-id") == 'maintab_' + aid + '') {
  1524. // tabIndex = 1;
  1525. // }
  1526. // })
  1527. // if (tabIndex != 1) {
  1528. // //新增一个Tab项
  1529. // element.tabAdd('bodyTab', {
  1530. // title: '<i class=\"' + aicon + '\">' + nullicon + '</i> <cite openid=\"' + aid + '\">' + aname + '</cite><i class=\"layui-icon layui-unselect layui-tab-close\">&#x1006;</i>'
  1531. // , content: '<iframe id=\"mainframe_' + aid + '\" scrolling=\"auto\" src=\"' + urlSrc + '&timeno=' + timeno + '\"></iframe>'
  1532. // , id: 'maintab_' + aid + '' //实际使用一般是规定好的id,这里以时间戳模拟下
  1533. // })
  1534. // }
  1535. // element.tabChange('bodyTab', 'maintab_' + aid + '');
  1536. // //setTimeout(alert(1), 5000);
  1537. // tabMove(); //顶部窗口是否可滚动
  1538. // //if (aid == "2" || aid == "3") {
  1539. // // alert("加载完成");
  1540. // //}
  1541. //}
  1542. //catch (e) {
  1543. // alert(e.message);
  1544. //}
  1545. }
  1546. }
  1547. }
  1548. //if (urlSrc.indexOf('?') < 0) {
  1549. // document.getElementById("mainframe").src = urlSrc + "?timeno=" + timeno + "";
  1550. //}
  1551. //else {
  1552. // document.getElementById("mainframe").src = urlSrc + "&timeno=" + timeno + "";
  1553. //}
  1554. }
  1555. });
  1556. });
  1557. $("#navBar .layui-nav-item").click(function () {
  1558. $("#navBar .layui-nav-item").removeClass("layui-nav-itemed");
  1559. $("#navBar .layui-nav-item").removeClass("layui-this");
  1560. if ($(this).has('dl').length) {//如果有子菜单,显示下拉样式
  1561. $(this).addClass("layui-nav-itemed");
  1562. } else {//如果没有子菜单,显示菜单项样式
  1563. $(this).addClass("layui-this");
  1564. }
  1565. });
  1566. </script>
  1567. </body>
  1568. <script type="text/javascript">
  1569. ///获取微信消息
  1570. ///1、微信 2、微博
  1571. function GetWxMessageCount(messageType, className) {
  1572. $.ajax({
  1573. url: "/OtherPage/GetWebChartCount",
  1574. type: "get",
  1575. contentType: "application/json",
  1576. dataType: "text",
  1577. cache: false,
  1578. data: { "pageType": messageType },
  1579. success: function (result, status) {
  1580. if (status) {
  1581. $(className).html(result);
  1582. }
  1583. }
  1584. });
  1585. }
  1586. //微信
  1587. var wX;
  1588. function wXTimedCount() {
  1589. GetWxMessageCount(1, ".wXCount");
  1590. wX = setTimeout("wXTimedCount()", 5000)
  1591. }
  1592. $(".btnWX").click(function () {
  1593. var rgs = $(".fa-weixin").hasClass("defaultClass");
  1594. if (rgs) {
  1595. $(".fa-weixin").removeClass("defaultClass");
  1596. $(".fa-weixin").addClass("selectClass");
  1597. $(".wXCount").css("display", "block");
  1598. wXTimedCount();
  1599. }
  1600. else {
  1601. $(".fa-weixin").removeClass("selectClass");
  1602. $(".fa-weixin").addClass("defaultClass");
  1603. $(".wXCount").css("display", "none");
  1604. clearTimeout(wX);
  1605. }
  1606. });
  1607. //微博
  1608. var wB;
  1609. function wBTimedCount() {
  1610. GetWxMessageCount(2, ".wBCount");
  1611. wB = setTimeout("wBTimedCount()", 5000)
  1612. }
  1613. $(".btnWB").click(function () {
  1614. var rgs = $(".fa-weibo").hasClass("defaultClass");
  1615. if (rgs) {
  1616. $(".fa-weibo").removeClass("defaultClass");
  1617. $(".fa-weibo").addClass("selectClass");
  1618. $(".wBCount").css("display", "block");
  1619. wBTimedCount();
  1620. }
  1621. else {
  1622. $(".fa-weibo").removeClass("selectClass");
  1623. $(".fa-weibo").addClass("defaultClass");
  1624. $(".wBCount").css("display", "none");
  1625. clearTimeout(wB);
  1626. }
  1627. });
  1628. //待办工单
  1629. function MyOrderCount() {
  1630. try {
  1631. //补录工单
  1632. if ($(".orderNeedCount") != undefined) {
  1633. $.ajax({
  1634. url: "/OtherPage/GetMyOrderNeedCount/",
  1635. type: "get",
  1636. contentType: "application/json",
  1637. dataType: "text",
  1638. cache: false,
  1639. data: null,
  1640. success: function (result, status) {
  1641. if (status) {
  1642. $(".orderNeedCount").html(result);
  1643. }
  1644. }
  1645. });
  1646. }
  1647. //微博工单//orderCountWb
  1648. //if ($(".orderCountWb") != undefined) {
  1649. // $.ajax({
  1650. // url: "/OtherPage/GetMyOrderCountWb/",
  1651. // type: "get",
  1652. // contentType: "application/json",
  1653. // dataType: "text",
  1654. // cache: false,
  1655. // data: null,
  1656. // success: function (result, status) {
  1657. // if (status) {
  1658. // $(".orderCountWb").html(result);
  1659. // }
  1660. // }
  1661. // });
  1662. //}
  1663. //待办工单
  1664. if ($(".orderCount") != undefined) {
  1665. $.ajax({
  1666. url: "/OtherPage/GetMyOrderCount/",
  1667. type: "get",
  1668. contentType: "application/json",
  1669. dataType: "text",
  1670. cache: false,
  1671. data: null,
  1672. success: function (result, status) {
  1673. if (status) {
  1674. $(".orderCount").html(result);
  1675. }
  1676. }
  1677. });
  1678. }
  1679. if ($(".orderCount") != undefined || $(".orderNeedCount") != undefined) {
  1680. var totalOrderCount = 0;
  1681. var myOrderCount = 0;
  1682. var myNeedCount = 0;
  1683. var myorderCountWb = 0;
  1684. if ($(".orderCount") != undefined) {
  1685. myOrderCount = $(".orderCount").html();
  1686. }
  1687. if ($(".orderNeedCount") != undefined) {
  1688. myNeedCount = $(".orderNeedCount").html();
  1689. }
  1690. //orderCountWb
  1691. //if ($(".orderCountWb") != undefined) {
  1692. // myorderCountWb = $(".orderCountWb").html();
  1693. //}
  1694. totalOrderCount = parseInt(myOrderCount) + parseInt(myNeedCount);
  1695. $(".totalOrderCount").html(totalOrderCount);
  1696. setTimeout("MyOrderCount()", 5000);
  1697. }
  1698. }
  1699. catch (e) {
  1700. }
  1701. }
  1702. //获取待办工单数量
  1703. MyOrderCount();
  1704. </script>
  1705. </html>