信阳市新县12345县长热线 - 代码来源于 息县数字城管XiXianSZCG_Web

index.html 117KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta name="renderer" content="webkit|ie-comp|ie-stand" />
  7. <meta http-equiv="Cache-Control" content="no-siteapp" />
  8. <title>信阳市新县12345县长热线_呼叫中心管理系统</title>
  9. <script src="./Script/Common/huayi.load.js"></script>
  10. <script src="./Script/Common/huayi.config.js"></script>
  11. <link rel="shortcut icon" href="img/32.ico" />
  12. <link href="./css/wh.css" rel="stylesheet">
  13. <link href="./css/plugins/iCheck/custom.css" rel="stylesheet">
  14. <link rel="stylesheet" href="./css/call.css" />
  15. <link rel="stylesheet" href="./css/personal.css" />
  16. <link rel="stylesheet" href="./js/zTree/zTreeStyle.css" />
  17. <link href="./css/plugins/cropper/cropper.min.css" rel="stylesheet">
  18. <link href="./css/plugins/jasny/jasny-bootstrap.min.css" rel="stylesheet">
  19. <style>
  20. @font-face {
  21. font-family: 'iconfont';
  22. src: url('./fonts/iconfont.eot');
  23. /* IE9*/
  24. src: url('./fonts/iconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  25. url('./fonts/iconfont.woff') format('woff'), /* chrome、firefox */
  26. url('./fonts/iconfont.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
  27. url('./fonts/iconfont.svg#iconfont') format('svg');
  28. /* iOS 4.1- */
  29. }
  30. body {
  31. font-family: "微软雅黑";
  32. }
  33. ul li {
  34. list-style: none;
  35. overflow: hidden;
  36. }
  37. .iconfont {
  38. font-family: "iconfont";
  39. font-style: normal;
  40. color: #FFFFFF;
  41. }
  42. .fr {
  43. float: right;
  44. }
  45. .fl {
  46. float: left;
  47. }
  48. .size-12 {
  49. font-size: 12px;
  50. }
  51. .title-box {
  52. margin-top: 5px;
  53. }
  54. .title-box li {
  55. margin-left: 30px;
  56. }
  57. .title-box li:hover {
  58. cursor: pointer;
  59. }
  60. .HoverColor {
  61. color: #f8ac59;
  62. }
  63. .FailureColor {
  64. color: #f95f5e;
  65. }
  66. .navbar-header {
  67. width: 100%;
  68. background-color: #2f4050;
  69. padding-top: 10px;
  70. }
  71. .title-box li p {
  72. color: #FFFFFF;
  73. font-size: 14px;
  74. font-weight: bold;
  75. letter-spacing: 2px;
  76. margin-top: 5px;
  77. }
  78. .size-14 {
  79. font-size: 14px;
  80. color: #FFFFFF !important;
  81. }
  82. .img-circle {
  83. width: 58px;
  84. }
  85. .xian {
  86. border: 1px solid #FFFFFF;
  87. display: inline-block;
  88. width: 15%;
  89. margin: 5px;
  90. }
  91. .ss {
  92. margin-left: 20px;
  93. }
  94. .fe-3 {
  95. font-size: 3em;
  96. }
  97. .title-box p {
  98. text-align: center;
  99. }
  100. .closed {
  101. display: inline-block;
  102. /* margin-left: 5%;*/
  103. cursor: pointer;
  104. color: #FFFFFF;
  105. float: right;
  106. margin-right: 5%;
  107. }
  108. .closed div {
  109. overflow: hidden;
  110. }
  111. .closed ul {
  112. margin-bottom: 0px;
  113. }
  114. .closed li {
  115. float: left;
  116. margin-right: 20px;
  117. }
  118. .closed i {
  119. display: inline-block;
  120. background: url(./img/chilun.png) no-repeat;
  121. margin-right: 5px;
  122. width: 14px;
  123. height: 16px;
  124. vertical-align: middle;
  125. }
  126. .ga {
  127. background-position: 0 0 !important;
  128. }
  129. .sz {
  130. background-position: 0 -15px !important;
  131. }
  132. .tc {
  133. background-position: 0 -33px !important;
  134. }
  135. .zhuangtai {
  136. display: block;
  137. width: 30%;
  138. margin-left: 10px;
  139. font-size: 14px;
  140. font-weight: 800;
  141. }
  142. .wq {
  143. color: #f95f5e;
  144. }
  145. #top-search li:hover {
  146. color: #eaeaea;
  147. }
  148. .content-tabs1 ul {
  149. padding-left: 0;
  150. }
  151. .content-tabs1 li {
  152. list-style: none;
  153. float: left;
  154. height: 5px;
  155. }
  156. .top1 {
  157. background-color: #68adfe;
  158. }
  159. .top2 {
  160. background-color: #9897f0;
  161. }
  162. .top3 {
  163. background-color: #87eebf;
  164. }
  165. .top4 {
  166. background-color: #68b0fe;
  167. }
  168. .top5 {
  169. background-color: #f95a83;
  170. }
  171. .top6 {
  172. background-color: #eb76dd;
  173. }
  174. .top7 {
  175. background-color: #69cbd0;
  176. }
  177. .top8 {
  178. background-color: #69cbd0;
  179. }
  180. .top9 {
  181. background-color: #aaf58d;
  182. }
  183. .top10 {
  184. background-color: #f76a53;
  185. }
  186. .top11 {
  187. background-color: #eb76dd;
  188. }
  189. .top12 {
  190. background-color: #6c77da;
  191. }
  192. .top13 {
  193. background: -webkit-linear-gradient(left, #f073db, #65abfc);
  194. background: -moz-linear-gradient(left, #f073db, #65abfc);
  195. background: -o-linear-gradient(left, #f073db, #65abfc);
  196. background: -webkit-gradient(linear, 100% 0, 0 0, from(#65abfc), to(#f073db));
  197. background: linear-gradient(left, #f073db, #65abfc);
  198. /* Opera 11.1 - 12.0 */
  199. /* Firefox 3.6 - 15 */
  200. /* 标准的语法 */
  201. }
  202. .zts {
  203. height: 30px;
  204. margin-left: 2%;
  205. line-height: 30px;
  206. padding-top: 15px;
  207. }
  208. .zts li {
  209. height: 20px;
  210. line-height: 20px;
  211. font-weight: bold;
  212. letter-spacing: 2px;
  213. }
  214. .quan {
  215. width: 15px;
  216. height: 15px !important;
  217. border-radius: 50%;
  218. margin-right: 2%;
  219. margin-left: 5px;
  220. margin-top: 2px;
  221. }
  222. .lx {
  223. background: #6a6d69;
  224. }
  225. .br {
  226. background: red;
  227. }
  228. .bl {
  229. background: #7ab85b;
  230. }
  231. .LH {
  232. line-height: 35px;
  233. }
  234. .zts span {
  235. line-height: 20px;
  236. margin-right: 50px;
  237. font-size: 12px;
  238. }
  239. .photo {
  240. width: 40px;
  241. height: 40px;
  242. border-width: 2px;
  243. border-style: solid;
  244. border-radius: 50%;
  245. border-color: #ffb400 #fc3c04 #fdfc01 #00e3c0;
  246. margin-bottom: 1px;
  247. }
  248. .photo img {
  249. display: block;
  250. width: 100%;
  251. height: 100%;
  252. }
  253. .ls {
  254. /*margin-left: 20px;*/
  255. text-align: center;
  256. }
  257. .ls span {
  258. margin-right: 10px;
  259. }
  260. .min-right {
  261. margin-right: 10px;
  262. }
  263. .navbar-top-links i {
  264. width: 24px;
  265. height: 21px;
  266. display: block;
  267. background: url(./img/topIcon.png) no-repeat;
  268. background-position: center center;
  269. margin: 0 auto;
  270. }
  271. /*挂断*/
  272. .DropCall {
  273. background-position: 0px 0 !important;
  274. }
  275. /*外呼*/
  276. .MakeCall {
  277. background-position: 0px -20px !important;
  278. }
  279. /*置忙*/
  280. .SayBusy {
  281. background-position: 0px -42px !important;
  282. }
  283. /*置闲*/
  284. .SayFree {
  285. background-position: 0px -65px !important;
  286. }
  287. /*多方通话*/
  288. .Meeting {
  289. background-position: 0px -85px !important;
  290. }
  291. /*转移*/
  292. .Transfer {
  293. background-position: 0px -108px !important;
  294. }
  295. /*保持*/
  296. .Hold {
  297. background-position: 0px -131px !important;
  298. }
  299. /*接回*/
  300. .Retrieve {
  301. background-position: 0px -153px !important;
  302. }
  303. /*签入*/
  304. .Login {
  305. background-position: 0px -197px !important;
  306. }
  307. /*签出*/
  308. .Logout {
  309. background-position: 0px -175px !important;
  310. }
  311. .navbar-top-links .active {
  312. background-position-x: -23px !important;
  313. }
  314. .ldcr-bottom .detail-con ul li .active a {
  315. color: #f95a83 !important;
  316. }
  317. .ldcr-bottom .detail-con ul li .active em {
  318. color: #f95a83 !important;
  319. }
  320. .ldcr-bottom .detail-con ul li .active+.explancon {
  321. display: block !important;
  322. }
  323. .searchbtn {
  324. width: 2.5em;
  325. height: 24px;
  326. border-radius: 5px;
  327. position: absolute;
  328. background-color: #f8ac59;
  329. background-image: url(./img/searIcon.png);
  330. background-repeat: no-repeat;
  331. background-position: center center;
  332. cursor: pointer;
  333. }
  334. .max-box {
  335. height: 42px;
  336. width: 100%;
  337. }
  338. .laydate_body .laydate_bottom,
  339. .laydate_body .laydate_top {
  340. height: 31px !important;
  341. }
  342. .laydate_body .laydate_y .laydate_yms ul li {
  343. width: 59px !important;
  344. }
  345. .col-sm-1 {
  346. padding-right: 0;
  347. line-height: 22px;
  348. }
  349. ul.ztree {
  350. border: 1px solid #617775;
  351. background: #f0f6e4;
  352. overflow-y: scroll;
  353. overflow-x: auto;
  354. }
  355. .minBacha {
  356. position: absolute;
  357. top: 0;
  358. right: 80px;
  359. z-index: 10;
  360. overflow: hidden;
  361. }
  362. .minBacha>div {
  363. float: left;
  364. height: 35px;
  365. width: 35px;
  366. margin-left: 2px;
  367. }
  368. .minBacha>div a {
  369. display: block;
  370. height: 100%;
  371. width: 100%;
  372. text-align: center;
  373. background-position: center center;
  374. background-color: #2f4050;
  375. opacity: .5;
  376. }
  377. .minBacha>div a:hover {
  378. opacity: 1;
  379. }
  380. .minClosed>a {
  381. background: url("./img/min.png") no-repeat;
  382. }
  383. .Bacha>a {
  384. background: url("./img/gb.png") no-repeat;
  385. }
  386. .lblcount {
  387. position: absolute;
  388. right: 5px;
  389. top: 7px;
  390. }
  391. .first {
  392. z-index: 1000;
  393. }
  394. .khzl {
  395. font-size: 12px;
  396. border: 0;
  397. margin: 35px auto;
  398. color: #fff;
  399. }
  400. .khzl tr {
  401. border: 0;
  402. }
  403. .khzl th {
  404. padding: 5px 8px 5px 0;
  405. text-align: right;
  406. width: 40%;
  407. font-weight: normal;
  408. border: 0;
  409. }
  410. .khzl tbody>tr>td,
  411. .khzl tbody>tr>th {
  412. border: 0;
  413. }
  414. .khzl tbody>tr>td input {
  415. border: 0;
  416. outline: none;
  417. background: #243747;
  418. padding-left: 5px;
  419. width: 100%;
  420. }
  421. .khbtn {
  422. /*background: #97a0a8;*/
  423. color: #1ab394;
  424. font-size: 14px;
  425. vertical-align: middle;
  426. }
  427. .hei-list {
  428. width: 400px;
  429. margin: 0 auto;
  430. }
  431. .heiTop {
  432. height: 35px;
  433. background: #1ab394;
  434. color: #fff;
  435. line-height: 35px;
  436. padding: 0 15px;
  437. border-top-left-radius: 3px;
  438. border-top-right-radius: 3px;
  439. }
  440. .heiTop .htl {
  441. float: left;
  442. margin: 0;
  443. }
  444. .heiTop .bacha {
  445. float: right;
  446. font-size: 18px;
  447. cursor: pointer;
  448. margin: 0;
  449. }
  450. .heiCon {
  451. width: 100%;
  452. background: #fff;
  453. text-align: center;
  454. padding: 25px 15px;
  455. height: auto;
  456. overflow-y: auto;
  457. border: 1px solid #eee;
  458. }
  459. #time-word {
  460. border: 1px solid #1ab394;
  461. padding: 5px 0 5px 10px;
  462. width: 120px;
  463. outline: none;
  464. color: #000;
  465. }
  466. .chooses {
  467. margin-top: 10px;
  468. }
  469. .btns {
  470. background: #1ab394;
  471. color: #fff;
  472. padding: 3px 10px;
  473. outline: none;
  474. font-size: 12px;
  475. margin-left: 15px;
  476. border: 0;
  477. border-radius: 3px;
  478. box-sizing: border-box;
  479. }
  480. .bianji {
  481. display: inline-block;
  482. height: 16px;
  483. width: 16px;
  484. vertical-align: middle;
  485. margin-right: 5px;
  486. }
  487. .bianji.edi {
  488. background: url(img/xgai.png) no-repeat;
  489. }
  490. .bianji.sav {
  491. background: url(img/bbc.png) no-repeat;
  492. }
  493. .bianji.canc {
  494. background: url(img/quxi.png) no-repeat;
  495. }
  496. .t-shade {
  497. position: fixed;
  498. top: 0;
  499. left: 0;
  500. width: 100%;
  501. height: 100%;
  502. background: rgba(0, 0, 0, 0.48);
  503. z-index: 10004;
  504. display: none;
  505. }
  506. .shade_k {
  507. z-index: 10005;
  508. width: 40%;
  509. margin: 10% auto;
  510. background-color: #fff;
  511. box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
  512. border-radius: 5px;
  513. }
  514. .shade_title {
  515. padding: 0 80px 0 20px;
  516. height: 42px;
  517. line-height: 42px;
  518. border-bottom: 1px solid #eee;
  519. font-size: 16px;
  520. color: #FFFFFF;
  521. overflow: hidden;
  522. background-color: rgb(26, 179, 148);
  523. border-radius: 2px 2px 0 0;
  524. position: relative;
  525. }
  526. .setwin {
  527. position: absolute;
  528. right: 15px;
  529. top: 5px;
  530. font-size: 20px;
  531. line-height: initial;
  532. }
  533. .setwin a {
  534. font-size: 20px;
  535. color: #fff;
  536. }
  537. .shade_content {
  538. overflow-y: auto;
  539. position: relative;
  540. padding-bottom: 50px;
  541. padding: 10px;
  542. }
  543. .wh_btn {
  544. width: 80%;
  545. text-align: center;
  546. padding-top: 20px;
  547. margin: 0 auto;
  548. margin-bottom: 20px;
  549. }
  550. .wh_btn input {
  551. padding: 7px 20px;
  552. color: #FFF;
  553. border-radius: 5px;
  554. margin-right: 30px;
  555. border: 1px solid #999;
  556. border-color: rgb(26, 179, 148);
  557. }
  558. .sc_btn {
  559. color: rgb(255, 255, 255);
  560. font-size: 12px;
  561. margin-left: 15px;
  562. box-sizing: border-box;
  563. background: rgb(26, 179, 148);
  564. padding: 6px 10px;
  565. outline: none;
  566. border-width: 0px;
  567. border-style: initial;
  568. border-color: initial;
  569. border-image: initial;
  570. border-radius: 3px;
  571. }
  572. .sc_btn:hover {
  573. color: #fff !important;
  574. }
  575. .cx {
  576. display: block;
  577. }
  578. .phoneBZ{
  579. display: inline-block;
  580. height: 15px;
  581. width: 15px;
  582. position: absolute;
  583. right: 0px;
  584. bottom: -15px;
  585. background: url(img/phoneBZ.png) no-repeat;
  586. display: none;
  587. }
  588. </style>
  589. </head>
  590. <body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
  591. <div id="wrapper">
  592. <!--左侧导航开始-->
  593. <nav class="navbar-default navbar-static-side" role="navigation">
  594. <div class="nav-close">
  595. <i class="fa fa-times-circle"></i>
  596. </div>
  597. <div class="sidebar-collapse">
  598. <ul class="nav" id="side-menu">
  599. <li class="nav-header">
  600. <div class="dropdown profile-element text-center">
  601. <span style="position: relative;">
  602. <img alt="image" class="img-circle yhtx" src="./img/zxPhone.png" onerror="this.src = './img/zxPhone.png'" />
  603. <input type="file" name="upFile" id="upFile" accept="image/jpeg,image/jpg,image/png" style="display: none;">
  604. <i class="phoneBZ"></i>
  605. </span>
  606. <a data-toggle="dropdown" class="dropdown-toggle" href="#">
  607. <span class="clear">
  608. <span class="block m-t-xs">
  609. <b class="xian"></b>
  610. <strong class="font-bold username">张三</strong>
  611. <span class="text-muted text-xs size-12 user_code" style="color: #fff;"></span>
  612. <b class="xian"></b>
  613. </span>
  614. <span class="text-muted text-xs block size-14 ">
  615. <span class="text-muted text-xs group" style="color: #fff;"></span> <span class="text-muted text-xs rolename" style="color: #fff;">超级管理员</span>
  616. </span>
  617. <span class="text-muted text-xs block Gnumbox" style="color: #fff;">
  618. <span class="text-muted text-xs" style="color: #fff;">分机号:</span> <span class="text-muted text-xs Gnum" style="color: #fff;"></span>
  619. </span>
  620. </span>
  621. </a>
  622. </div>
  623. <div class="logo-element">
  624. </div>
  625. </li>
  626. </ul>
  627. </div>
  628. </nav>
  629. <!--左侧导航结束-->
  630. <!--右侧部分开始-->
  631. <div id="page-wrapper" class="gray-bg dashbard-1">
  632. <div class="row border-bottom">
  633. <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
  634. <div class="navbar-header">
  635. <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
  636. <div class="nav navbar-top-links navbar-left">
  637. <ul class="title-box" id="top-search" style="padding-left: 0; display:none;">
  638. <input type="hidden" id="isml" value="0" />
  639. <li datafun="DropCall">
  640. <i class="iconfont fa-5x DropCall"></i>
  641. <p>挂断</p>
  642. </li>
  643. <li datafun="MakeCall">
  644. <i class="iconfont fa-5x MakeCall"></i>
  645. <p>外呼</p>
  646. </li>
  647. <li datafun="SayBusy">
  648. <i class="iconfont fa-5x SayBusy"></i>
  649. <p>置忙</p>
  650. </li>
  651. <li datafun="SayFree">
  652. <i class="iconfont fa-5x SayFree"></i>
  653. <p>置闲</p>
  654. </li>
  655. <li datafun="Meeting">
  656. <i class="iconfont fa-5x Meeting"></i>
  657. <p>多方通话</p>
  658. </li>
  659. <li datafun="Transfer">
  660. <i class="iconfont fa-5x Transfer"></i>
  661. <p>转移</p>
  662. </li>
  663. <li datafun="Hold">
  664. <i class="iconfont fa-5x Hold"></i>
  665. <p>保持</p>
  666. </li>
  667. <li datafun="Retrieve">
  668. <i class="iconfont fa-5x Retrieve"></i>
  669. <p>接回</p>
  670. </li>
  671. <li datafun="Login">
  672. <i class="iconfont fa-5x Login"></i>
  673. <p>签入</p>
  674. </li>
  675. <li datafun="Logout">
  676. <i class="iconfont fa-5x Logout"></i>
  677. <p>签出</p>
  678. </li>
  679. </ul>
  680. </div>
  681. <div class="nav closed">
  682. <!--左边-->
  683. <div class="text-center max-box">
  684. <ul class="fl maxOpen animated" style="display: none;">
  685. <li>
  686. <h3 class="size-12 ldname">未知</h3>
  687. <h3 class="size-12 ldtel" style="margin-bottom: 0;"></h3>
  688. </li>
  689. <li>
  690. <div class="photo">
  691. <img src="" alt="" />
  692. </div>
  693. </li>
  694. </ul>
  695. </div>
  696. <div class="ls">
  697. <span class="size-12 min-right" onclick="Jumps()">
  698. <i class="ga"></i>&nbsp;管理中心
  699. </span>
  700. <span class="size-12 shezhi">
  701. <i class="sz"></i>&nbsp;设置
  702. </span>
  703. <span class="size-12" onclick="logout()">
  704. <i class="tc"></i>退出
  705. </span>
  706. </div>
  707. </div>
  708. </div>
  709. </nav>
  710. </div>
  711. <div class="row content-tabs1">
  712. <ul>
  713. <li class="top1" style="width: 5%;"></li>
  714. <li class="top2" style="width: 8%;"></li>
  715. <li class="top3" style="width: 10%;"></li>
  716. <li class="top4" style="width: 13%;"></li>
  717. <li class="top5" style="width: 10%;"></li>
  718. <li class="top6" style="width: 5%;"></li>
  719. <li class="top7" style="width: 13%;"></li>
  720. <li class="top8" style="width: 10%;"></li>
  721. <li class="top9" style="width: 11.2%;"></li>
  722. <li class="top10" style="width: 6%;"></li>
  723. <li class="top11" style="width: 3%;"></li>
  724. <li class="top12" style="width: 5%;"></li>
  725. </ul>
  726. </div>
  727. <div class="row J_mainContent" id="content-main">
  728. <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="widgets.html" frameborder="0" data-id="index_v1.html" seamless></iframe>
  729. </div>
  730. <div class="row content-tabs1 LH">
  731. <ul>
  732. <li class="top13" style="width: 100%;"></li>
  733. </ul>
  734. <span class="fr">Copyright © 加一信息 All Rights Reserved</span>
  735. <ul class="zts" style="display:none;">
  736. <li>话机状态: </li>
  737. <li class="quan fwzt lx br"> </li>
  738. <li>坐席状态: </li>
  739. <li class="quan zxzt lx br"></li>
  740. <li><span class="hwzt" style="color:red;"></span></li>
  741. <li><span class="expire" style="color:red;"></span></li>
  742. </ul>
  743. </div>
  744. </div>
  745. </div>
  746. <!--==========================================================================================-->
  747. <!--来电弹屏开始-->
  748. <div class="ldtp-con clearfix animated fadeInDown ">
  749. <div class="minBacha clearfix">
  750. <div class="minClosed">
  751. <a href="javaScript:;" title="最小化"></a>
  752. </div>
  753. <div class="Bacha">
  754. <a href="javaScript:;" title="关闭"></a>
  755. </div>
  756. </div>
  757. <!--左侧内容-->
  758. <!--黑名单弹出内容-->
  759. <!--<div class="hei-list ">
  760. <i class="bacha">X</i>
  761. <form class="form-inline">
  762. <label class="radio-inline">
  763. <input type="radio" name="time" value="1" checked="checked"> 天
  764. </label>
  765. <label class="radio-inline">
  766. <input type="radio" name="time" value="2"> 时
  767. </label>
  768. <label class="radio-inline">
  769. <input type="radio" name="time" value="3">分
  770. </label>
  771. <label class="radio-inline">
  772. <input type="radio" name="time" value="4">永久
  773. </label>
  774. <label class="radio-inline">
  775. <input type="button" id="bc" value="保存">
  776. </label>
  777. </form>
  778. </div>-->
  779. <div class="hei-list">
  780. <div class="heiTop clearFix">
  781. <p class="htl">黑名单</p>
  782. <p class="bacha" title="关闭">x</p>
  783. </div>
  784. <div class="heiCon">
  785. <div class="heit">
  786. <span style="font-size: 14px;">输入拉黑时长:</span>
  787. <input type="text" id="time-word" />
  788. </div>
  789. <div class="chooses">
  790. <label class="radio-inline">
  791. <input type="radio" name="time" value="1" checked="checked" style="margin-top: 3px;"> 天
  792. </label>
  793. <label class="radio-inline">
  794. <input type="radio" name="time" value="2" style="margin-top: 3px;" />时
  795. </label>
  796. <label class="radio-inline">
  797. <input type="radio" name="time" value="3" style="margin-top: 3px;" />分
  798. </label>
  799. <label class="radio-inline">
  800. <input type="radio" name="time" value="4" style="margin-top: 3px;" />永久
  801. </label>
  802. </div>
  803. <p style="margin-top: 15px;"><button id="bc" class="btns">保存</button></p>
  804. </div>
  805. </div>
  806. <!--最小化按钮-->
  807. <!--<div class="minClosed">
  808. <a href="javaScript:;" title="最小化"></a>
  809. </div>-->
  810. <!--左侧内容-->
  811. <div class="ldtp-cl col-sm-3">
  812. <div class="head-pic">
  813. <div class="hp-box">
  814. <img src="./img/txpic.png" alt="头像好像去了外星球!" style="width: 100%;height: 100%;" />
  815. <input type="hidden" class="hidTel" value="" />
  816. <input type="hidden" class="hidCallID" />
  817. </div>
  818. <ul>
  819. <li><span style="font-size: 25px;" class="tel"></span></li>
  820. <li><span style="font-size: 15px;" class="khgsd"></span></li>
  821. <!--<li class="nikeName"><i></i><span class="ldname">未知</span><i></i></li>-->
  822. <li style="color: #4cd964;">当前通话时长:<span class="thsc">00:00</span></li>
  823. <li class="lahei">
  824. <div class="la-before"><i class="push"></i> 移至黑名单</div>
  825. <div class="la-after" style="display: none;">
  826. <p class="la-time">拉黑时间:<span>2017/05/13</span></p>
  827. <p class="la-shichang">拉黑截止时间:<span class="blackTime"></span></p>
  828. </div>
  829. <div class="retur" style="display: none;"><i class="qxlh"></i> 取消黑名单</div>
  830. </li>
  831. <li class="td-call clearfix" style="display:none;">
  832. <a class="take" style="float:none;" href="javascript:;"><i></i></a>
  833. <!--<a class="drop" href="javascript:;"><i></i></a>-->
  834. </li>
  835. </ul>
  836. </div>
  837. <!--<ul class="come-detail">
  838. <li>姓名:<span class="ldname">未知</span></li>
  839. <li>归属地:<span class="ldlocation">未知</span></li>
  840. <li>联系电话1:<span class="ldtel1"></span></li>
  841. <li>联系电话2:<span class="ldtel2"></span></li>
  842. <li>联系电话3:<span class="ldtel3"></span></li>
  843. <li>售后负责人:<span>孙嘉一</span></li>
  844. <li>来电时间:<span class="ldtime"></span></li>
  845. </ul>-->
  846. <table class="table khzl">
  847. <tr>
  848. <th>姓名:</th>
  849. <td><input type="text" value="未知" class="ldname khmc" /><input type="hidden" value="" id="khid" /></td>
  850. </tr>
  851. <tr>
  852. <th>客户编号:</th>
  853. <td><input type="text" value="" class="khbh" /></td>
  854. </tr>
  855. <tr>
  856. <th>归属地:</th>
  857. <td><span class="ldlocation" style="padding-left: 5px;">未知</span></td>
  858. </tr>
  859. <tr>
  860. <th>联系电话1:</th>
  861. <td><input type="text" value="" class="ldtel1" /></td>
  862. </tr>
  863. <tr>
  864. <th>联系电话2:</th>
  865. <td><input type="text" value="" class="ldtel2" /></td>
  866. </tr>
  867. <tr>
  868. <th>联系电话2:</th>
  869. <td><input type="text" value="" class="ldtel3" /></td>
  870. </tr>
  871. <tr>
  872. <th>来电时间:</th>
  873. <td><span class="ldtime" style="padding-left: 5px;"></span></td>
  874. </tr>
  875. <tr>
  876. <td></td>
  877. <td><span class="edit"><i class="bianji edi"></i><a class="khbtn">编辑</a></span><span class="save"> <i class="bianji sav"></i><a class="khbtn">保存</a></span><span class="cancel"><i class="bianji canc"></i><a class="khbtn">取消</a></span></td>
  878. </tr>
  879. </table>
  880. </div>
  881. <!--右侧内容-->
  882. <div class="ldtp-cr col-sm-9">
  883. <ul class="ld-service clearfix">
  884. <li style="border-bottom:1px solid #243747;" itemtype="0" class="cr-click">历史记录</li>
  885. <li style="border-bottom:1px solid #69cbd0;" itemtype="1">咨询</li>
  886. <!--<--<li style="border-bottom:1px solid #f95a83;" itemtype="2">保修服务</li>-->
  887. <li style="border-bottom:1px solid #243747;" itemtype="3">投诉建议</li>
  888. </ul>
  889. <div class="ld-sercon">
  890. <div class="complain" style="display:block;">
  891. <div class="ld-sercon-con clearfix">
  892. <div class="Ps-chaxun">
  893. <span>查询: <input type="text" id="old_startTime" class="laydate-icon" />&nbsp;——&nbsp;<input type="text" id="old_endTime" class="laydate-icon" /></span>
  894. <span class="searchbtn"></span>
  895. </div>
  896. <div class="table-responsive col-sm-12 tbold" style="padding-left: 0;">
  897. <table id="oldlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  898. <thead>
  899. <tr>
  900. <th data-field="CallNumber">电话号码</th>
  901. <th data-field="CallState" data-formatter="GetCallState">呼叫状态</th>
  902. <!--<th data-field="IsDeal" data-formatter="GetDealState">是否处理</th>-->
  903. <th data-field="UserCode">坐席工号</th>
  904. <th data-field="UserName">坐席姓名</th>
  905. <th data-field="BeginTime">开始时间</th>
  906. <th data-field="TalkStartTime">通话开始时间</th>
  907. <th data-field="TalkEndTime">通话结束时间</th>
  908. <th data-field="TalkLongTime">通话时长(s)</th>
  909. <th data-field="FilePath" data-formatter="setCode">录音</th>
  910. </tr>
  911. </thead>
  912. <tbody class="list"></tbody>
  913. </table>
  914. </div>
  915. </div>
  916. </div>
  917. <div class="complain" style="display:none;">
  918. <div class="ld-sercon-con clearfix">
  919. <div class="Ps-chaxun">
  920. <span>查询: <input type="text" id="con_startTime" class="laydate-icon" />&nbsp;——&nbsp;<input type="text" id="con_endTime" class="laydate-icon" /></span>
  921. <span class="searchbtn"></span>
  922. <span class="addjl g" style="margin-left:5em;">新增工单</span>
  923. </div>
  924. <div id="zxlbs" class="table-responsive col-sm-12 tbold" style="padding-left: 0;">
  925. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  926. <thead>
  927. <tr>
  928. <th data-field="WorkOrderID">工单编号</th>
  929. <th data-field="State" data-formatter="GetStateName">工单状态</th>
  930. <th data-field="Customer">客户姓名</th>
  931. <th data-field="CustomerTel">客户电话</th>
  932. <th data-field="Detail" data-formatter="GetCont">工单内容</th>
  933. <th data-field="CreateUser">坐席工号</th>
  934. <th data-field="CreateTime">创建时间</th>
  935. </tr>
  936. </thead>
  937. <tbody class="list"></tbody>
  938. </table>
  939. </div>
  940. </div>
  941. <div class="Pre-second second-con addgd" style="display:none;">
  942. <form>
  943. <div class="form-group clearfix">
  944. <span class="col-sm-1">
  945. 投诉类型:
  946. </span>
  947. <span class="col-sm-3">
  948. <select id="tslx">
  949. <option selected="selected" value=""></option>
  950. </select>
  951. </span>
  952. <span class="col-sm-1">
  953. 投诉客户:
  954. </span>
  955. <span class="col-sm-3">
  956. <input type="text" id="tskh" />
  957. </span>
  958. <span class="col-sm-1">
  959. 联系电话:
  960. </span>
  961. <span class="col-sm-3">
  962. <input type="text" id="tsdh" />
  963. </span>
  964. </div>
  965. <div class="form-group clearfix">
  966. <span class="col-sm-1">
  967. 投诉部门:
  968. </span>
  969. <span class="col-sm-3">
  970. <!--<select name="" id="zrbm"></select>-->
  971. <input type="text" id="zrbmname" readonly="readonly" />
  972. <input type="hidden" id="zrbm" />
  973. <div class="zrbmmenu" style="display: none; position: absolute; z-index: 100;">
  974. <ul id="zrbmtree" class="ztree"></ul>
  975. </div>
  976. </span>
  977. <span class="col-sm-1">
  978. 被投诉人:
  979. </span>
  980. <span class="col-sm-3">
  981. <select name="" id="zrid">
  982. <option selected="selected" value=""></option>
  983. </select>
  984. </span>
  985. </div>
  986. <div class="form-group clearfix">
  987. <span class="col-sm-1">
  988. 接收部门:
  989. </span>
  990. <span class="col-sm-3">
  991. <!--<select name="" id="clbm"></select>-->
  992. <input type="text" id="clbmname" readonly="readonly" />
  993. <input type="hidden" id="clbm" />
  994. <div class="clbmmenu" style="display: none; position: absolute; z-index: 100;">
  995. <ul id="clbmtree" class="ztree"></ul>
  996. </div>
  997. </span>
  998. <span class="col-sm-1">
  999. 接收人:
  1000. </span>
  1001. <span class="col-sm-3">
  1002. <select name="" id="clid">
  1003. <option selected="selected" value=""></option>
  1004. </select>
  1005. </span>
  1006. </div>
  1007. <div class="form-group clearfix">
  1008. <span class="col-sm-1">咨询内容:</span>
  1009. <span class="col-sm-11">
  1010. <textarea rows="5" id="cont"></textarea>
  1011. </span>
  1012. </div>
  1013. <!--<div class="form-group" style="padding-left: 15px;">
  1014. <span>解答内容:</span>
  1015. <textarea rows="5"></textarea>
  1016. </div>-->
  1017. <div class="bton addts">创建</div>
  1018. </form>
  1019. </div>
  1020. <div class="Pre-second second-con zxbg " style="display: none;">
  1021. <form>
  1022. <div class="form-group clearfix">
  1023. <span class="col-sm-1">
  1024. 咨询人:
  1025. </span>
  1026. <span class="col-sm-3">
  1027. <input type="text" id="zxr_" />
  1028. </span>
  1029. <span class="col-sm-1">
  1030. 咨询电话:
  1031. </span>
  1032. <span class="col-sm-3">
  1033. <input type="text" id="zxdh_" />
  1034. </span>
  1035. </div>
  1036. <div class="form-group clearfix">
  1037. <span class="col-sm-1">咨询内容:</span>
  1038. <span class="col-sm-11">
  1039. <textarea rows="5" id="zxnr_" style="resize: none;"></textarea>
  1040. </span>
  1041. </div>
  1042. <div class="form-group clearfix">
  1043. <span class="col-sm-1">处理内容:</span>
  1044. <span class="col-sm-11">
  1045. <textarea rows="5" style="resize: none;" id="clnr_"></textarea>
  1046. </span>
  1047. </div>
  1048. <div class="bton add_">创建</div>
  1049. </form>
  1050. </div>
  1051. </div>
  1052. </div>
  1053. <!--右侧下方内容区-->
  1054. <div class="ldcr-bottom" style="margin-top:10px;">
  1055. <div class="ldcrb-top clearfix">
  1056. <ul class="clearfix">
  1057. <li style="border-bottom:1px solid #69cbd0; background: #000;color: #fff;">知识库</li>
  1058. <!--<li style="border-bottom:1px solid #f95a83;border-top:1px solid #000;border-right:1px solid #000;">更多内容</li>-->
  1059. </ul>
  1060. <div class="ld-search">
  1061. <div class="sear-inp">
  1062. <input type="text" class="search" placeholder="搜索问题、内容或者标题" />
  1063. </div>
  1064. <div class="searIcon">
  1065. </div>
  1066. </div>
  1067. </div>
  1068. <div class="detail-con">
  1069. <ul></ul>
  1070. </div>
  1071. </div>
  1072. </div>
  1073. </div>
  1074. <!--来电弹屏结束-->
  1075. <!--外呼键盘-->
  1076. <div class="WH animated fadeInDown hidens ">
  1077. <!--top-->
  1078. <div class="clearflow Color">
  1079. <div class="WH-top">
  1080. <span>外呼信息</span>
  1081. <span class="closes"><a>X</a></span>
  1082. </div>
  1083. <div class="Cotent_box clearflow">
  1084. <!--左边键盘-->
  1085. <div class="KeyWord col-sm-4">
  1086. <div class="WH_input clearflow">
  1087. <div class="clearflow WH_Itop">
  1088. <input id="Result" type="text" class="fl" value="" maxlength="18" autofocus="autofocus" />
  1089. <input id="hidwhtype" type="hidden" value="" />
  1090. <i class="img fl hidens"></i>
  1091. </div>
  1092. </div>
  1093. <div class="Num_box clearflow">
  1094. <ul class="Num_ul clearflow">
  1095. <li>
  1096. <div>
  1097. <a>1</a>
  1098. </div>
  1099. </li>
  1100. <li>
  1101. <div>
  1102. <a>2</a>
  1103. </div>
  1104. </li>
  1105. <li>
  1106. <div>
  1107. <a>3</a>
  1108. </div>
  1109. </li>
  1110. <li>
  1111. <div>
  1112. <a>4</a>
  1113. </div>
  1114. </li>
  1115. <li>
  1116. <div>
  1117. <a>5</a>
  1118. </div>
  1119. </li>
  1120. <li>
  1121. <div>
  1122. <a>6</a>
  1123. </div>
  1124. </li>
  1125. <li>
  1126. <div>
  1127. <a>7</a>
  1128. </div>
  1129. </li>
  1130. <li>
  1131. <div>
  1132. <a>8</a>
  1133. </div>
  1134. </li>
  1135. <li>
  1136. <div>
  1137. <a>9</a>
  1138. </div>
  1139. </li>
  1140. <li>
  1141. <div>
  1142. <a>*</a>
  1143. </div>
  1144. </li>
  1145. <li>
  1146. <div>
  1147. <a>0</a>
  1148. </div>
  1149. </li>
  1150. <li>
  1151. <div>
  1152. <a>#</a>
  1153. </div>
  1154. </li>
  1155. <li class="Last_phone">
  1156. <div>
  1157. <a class="CallOut"></a>
  1158. </div>
  1159. </li>
  1160. </ul>
  1161. </div>
  1162. </div>
  1163. <!--右边图表-->
  1164. <div class="col-sm-8 Rbg">
  1165. <div class="bg bg_cotent">
  1166. <ul class="bg_title clearflow">
  1167. <li class="lactive" itemid="0">最近电话</li>
  1168. <li itemid="1">公司电话</li>
  1169. <li itemid="2">客户电话</li>
  1170. </ul>
  1171. <div class="bg_box phonediv">
  1172. <div class="cx">
  1173. <span class="blanks">
  1174. 电话号码:
  1175. <input type="text" id="lastphone" />
  1176. </span>
  1177. <span class="ty">搜索</span>
  1178. <!--<span class="ty">重置</span>-->
  1179. </div>
  1180. <div class="phone_bg" style="width: 100%;padding: 10px;">
  1181. <!--<table class="table table-bordered text-center">
  1182. <thead>
  1183. <tr>
  1184. <td class="tbth">电话号码</td>
  1185. <td class="tbth">呼叫状态</td>
  1186. <td class="tbth">是否处理</td>
  1187. <td class="tbth">坐席工号</td>
  1188. <td class="tbth">坐席姓名</td>
  1189. <td class="tbth">通话开始时间</td>
  1190. <td class="tbth">通话结束时间</td>
  1191. <td class="tbth">通话时长(s)</td>
  1192. <td class="tbth">录音</td>
  1193. </tr>
  1194. </thead>
  1195. <tbody class="phonelist"></tbody>
  1196. </table>-->
  1197. <table class="phonelist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  1198. <thead>
  1199. <tr>
  1200. <th data-field="CallNumber" data-formatter="view">电话号码</th>
  1201. <th data-field="CallState" data-formatter="GetCallState">呼叫状态</th>
  1202. <!--<th data-field="IsDeal" data-formatter="GetDealState">是否处理</th>-->
  1203. <th data-field="UserCode">坐席工号</th>
  1204. <th data-field="UserName">坐席姓名</th>
  1205. <th data-field="BeginTime">开始时间</th>
  1206. <th data-field="TalkStartTime">通话开始时间</th>
  1207. <th data-field="TalkEndTime">通话结束时间</th>
  1208. <th data-field="TalkLongTime">通话时长(s)</th>
  1209. <!--<th data-field="FilePath">录音</th>-->
  1210. </tr>
  1211. </thead>
  1212. </table>
  1213. </div>
  1214. </div>
  1215. <div class="bg_box phonediv " style="display:none;">
  1216. <div class="cx">
  1217. <span class="blanks">
  1218. 电话号码:
  1219. <input type="text" id="gsphone" />
  1220. </span>
  1221. <span class="blanks">
  1222. 名称:
  1223. <input type="text" id="gsname" />
  1224. </span>
  1225. <span class="ty">搜索</span>
  1226. <!--<span class="ty">重置</span>-->
  1227. </div>
  1228. <div class="phone_bg" style="width: 100%;padding: 10px;">
  1229. <!--<table class="table table-bordered text-center">
  1230. <thead>
  1231. <tr>
  1232. <td class="tbth">坐席工号</td>
  1233. <td class="tbth">坐席姓名</td>
  1234. <td class="tbth">分机号</td>
  1235. <td class="tbth">电话号码1</td>
  1236. <td class="tbth">电话号码2</td>
  1237. <td class="tbth">电话号码3</td>
  1238. </tr>
  1239. </thead>
  1240. <tbody class="phonelist"></tbody>
  1241. </table>-->
  1242. <table class="phonelist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  1243. <thead>
  1244. <tr>
  1245. <th data-field="F_UserCode">坐席工号</th>
  1246. <th data-field="F_UserName">坐席姓名</th>
  1247. <th data-field="F_WorkNumber" data-formatter="view">分机号</th>
  1248. <th data-field="F_Telephone" data-formatter="view">电话号码1</th>
  1249. <th data-field="F_Mobile" data-formatter="view">电话号码2</th>
  1250. <th data-field="F_HomePhone" data-formatter="view">电话号码3</th>
  1251. </tr>
  1252. </thead>
  1253. </table>
  1254. </div>
  1255. </div>
  1256. <div class="bg_box phonediv" style="display:none;">
  1257. <div class="cx">
  1258. <span class="blanks">
  1259. 电话号码:
  1260. <input type="text" id="khphone" />
  1261. </span>
  1262. <span class="blanks">
  1263. 名称:
  1264. <input type="text" id="khname" />
  1265. </span>
  1266. <span class="ty">搜索</span>
  1267. <!--<span class="ty">重置</span>-->
  1268. </div>
  1269. <div class="phone_bg" style="width: 100%;padding: 10px;">
  1270. <!--<table class="table table-bordered text-center">
  1271. <thead>
  1272. <tr>
  1273. <td class="tbth">名称</td>
  1274. <td class="tbth">电话号码1</td>
  1275. <td class="tbth">电话号码2</td>
  1276. <td class="tbth">电话号码3</td>
  1277. </tr>
  1278. </thead>
  1279. <tbody class="phonelist"></tbody>
  1280. </table>-->
  1281. <table class="phonelist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  1282. <thead>
  1283. <tr>
  1284. <th data-field="F_CustomerName">名称</th>
  1285. <th data-field="F_Telephone" data-formatter="view">电话号码1</th>
  1286. <th data-field="F_Mobile" data-formatter="view">电话号码2</th>
  1287. <th data-field="F_ChargeTelephone" data-formatter="view">电话号码3</th>
  1288. </tr>
  1289. </thead>
  1290. </table>
  1291. </div>
  1292. </div>
  1293. </div>
  1294. </div>
  1295. </div>
  1296. </div>
  1297. </div>
  1298. <!--下载框-->
  1299. <div class="t-shade">
  1300. <div class="shade_k">
  1301. <div class="shade_title">
  1302. <span>录音播放与下载<srong class="cknum"></srong></span>
  1303. <span class="setwin"><a>x</a></span>
  1304. </div>
  1305. <div class="shade_content">
  1306. <div class="Ly_box audiojs">
  1307. </div>
  1308. </div>
  1309. </div>
  1310. </div>
  1311. <!--修改密码开始-->
  1312. <div class="personal" id="box">
  1313. <div class="ptop clearFix">
  1314. <p class="ptl">个人中心</p>
  1315. <p class="ptr" title="关闭">x</p>
  1316. </div>
  1317. <div class="perBox " style="height:500px;">
  1318. <ul class="perTab clearFix">
  1319. <li class="sel">个人资料</li>
  1320. <li>修改头像</li>
  1321. </ul>
  1322. <div class="perTab_con">
  1323. <div class="geRen" style="display: block;">
  1324. <div class="grt clearFix">
  1325. <p class="grtl">基本资料</p>
  1326. <p class="grtr">
  1327. <i class="grqx" title="取消编辑"></i>
  1328. <i class="grbj" title="编辑资料"></i>
  1329. </p>
  1330. </div>
  1331. <table class="table grzl">
  1332. <tr>
  1333. <th>我的工号:</th>
  1334. <td><input type="text" class="mgh" readonly="readonly" /></td>
  1335. </tr>
  1336. <tr>
  1337. <th>我的姓名:</th>
  1338. <td><input type="text" class="mn" readonly="readonly" /></td>
  1339. </tr>
  1340. <tr>
  1341. <th>分机号:</th>
  1342. <td><input type="text" class="fenji" readonly="readonly" /></td>
  1343. </tr>
  1344. <!--<tr>
  1345. <th>外线号码:</th>
  1346. <td><input type="text" class="wxno" readonly="readonly" /></td>
  1347. </tr>-->
  1348. <tr>
  1349. <th>原密码:</th>
  1350. <td><input type="password" class="spwd zhidu" /></td>
  1351. </tr>
  1352. <tr>
  1353. <th>新密码:</th>
  1354. <td><input type="password" class="npwd zhidu" /></td>
  1355. </tr>
  1356. <tr>
  1357. <th>确认密码:</th>
  1358. <td><input type="password" class="epwd zhidu" /><span class="wrong">*密码不一致</span></td>
  1359. </tr>
  1360. <tr>
  1361. <th>手机号:</th>
  1362. <td><input type="text" class="mobile zhidu" /></td>
  1363. </tr>
  1364. <tr>
  1365. <th></th>
  1366. <td><button class="btnn grbtn">保存修改</button></td>
  1367. </tr>
  1368. </table>
  1369. </div>
  1370. <div class="crop ">
  1371. <div class="clearFix" style="margin-top: 45px;">
  1372. <div class="crop_left">
  1373. <div class="image-crop">
  1374. <img src="./img/gaga.jpg">
  1375. </div>
  1376. </div>
  1377. <div class="crop_right">
  1378. <h4>图片预览:</h4>
  1379. <div class="img-preview img-preview-sm"></div>
  1380. </div>
  1381. </div>
  1382. <!--<div class="btn-group">
  1383. <label title="上传图片" for="inputImage" class="btn btn-primary">
  1384. <input type="file" accept="image/*" name="file" id="inputImage" class="hide"> 本地上传
  1385. </label>-->
  1386. <!--<label title="下载图片" id="download" class="btn btn-primary">下载</label>-->
  1387. <!--</div>
  1388. <div class="btn-group">-->
  1389. <!--<button class="btn btn-white" id="zoomIn" type="button">放大</button>-->
  1390. <!--<button class="btn btn-white" id="zoomOut" type="button">缩小</button>-->
  1391. <!--<button class="btn btn-white" id="rotateLeft" type="button">左旋转</button>-->
  1392. <!--<button class="btn btn-white" id="rotateRight" type="button">右旋转</button>-->
  1393. <!--<button class="btn btn-warning " id="setDrag" type="button">裁剪</button>
  1394. </div>-->
  1395. <div class="anniu" style="margin-top: 75px;text-align: center;">
  1396. <label title="上传图片" for="inputImage" class="btnn" style="margin-right: 100px;">
  1397. <input type="file" accept="image/jpeg,image/jpg,image/png" name="file" id="inputImage" class="hide"> 本地上传
  1398. </label>
  1399. <!--<button class="btn btn-warning " id="setDrag" type="button">裁剪</button>-->
  1400. <button class="btnn" id="zoomIn" type="button">放大</button>
  1401. <button class="btnn" id="zoomOut" type="button">缩小</button>
  1402. <button class="btnn" id="rotateLeft" type="button">左旋转</button>
  1403. <button class="btnn" id="rotateRight" type="button">右旋转</button>
  1404. <button class="btnn" id="setDrag" type="button">确定保存</button>
  1405. </div>
  1406. </div>
  1407. </div>
  1408. </div>
  1409. </div>
  1410. <!--修改密码结束-->
  1411. <script src="./js/plugins/pace/pace.min.js"></script>
  1412. <script src="./js/plugins/iCheck/icheck.min.js"></script>
  1413. <script src="./css/laydate/laydate.js"></script>
  1414. <script src="./js/main.js?v=1.5"></script>
  1415. <script src="./js/zTree/jquery.ztree.core.js"></script>
  1416. <script src="./js/plugins/datapicker/bootstrap-datepicker.js"></script>
  1417. <script src="./js/plugins/cropper/cropper.min.js"></script>
  1418. <script src="./js/guid.js"></script>
  1419. <script>
  1420. $(document).ready(function () {
  1421. if (/mobile/i.test(navigator.userAgent) || /android/i.test(navigator.userAgent)) {
  1422. $(".title-box").hide();
  1423. }
  1424. if ($.cookie("token") == null) {
  1425. window.location.href = "login.html";
  1426. }
  1427. obj.AgentExten = $.cookie("extno");
  1428. if (obj.AgentExten == undefined) {
  1429. $(".Gnumbox").hide();
  1430. }
  1431. $(".Gnum").text(obj.AgentExten);
  1432. $.getJSON(huayi.config.callcenter_url + 'UserAccount/GetNowUser', {
  1433. "token": $.cookie("token")
  1434. }, function (result) {
  1435. if (result.state.toLowerCase() == "success") {
  1436. console.log(result);
  1437. $(".username").text(result.data.user.F_UserName);
  1438. $('.user_code').text(result.data.user.F_UserCode);
  1439. $('.group').text(result.data.user.F_SeartGroup);
  1440. if (result.data.role) {
  1441. console.log(result.data);
  1442. $(".rolename").text(result.data.role.F_RoleName);
  1443. }
  1444. $(".yhtx").attr("src", huayi.config.callcenter_url.substr(0, huayi.config.callcenter_url.length - 1) + result.data.user.F_See);
  1445. obj.AgentGroup = result.data.user.F_SeartGroupID;
  1446. obj.AgentID = result.data.user.F_UserCode;
  1447. //obj.AgentExten = result.data.user.F_WorkNumber;
  1448. if (result.data.user.F_SeatFlag) {
  1449. Connect();
  1450. $("#top-search").show();
  1451. $(".phoneBZ").show();
  1452. $(".zts").show();
  1453. }
  1454. var expireDay = result.data.days;
  1455. var expireDate = result.data.date.split(' ')[0];
  1456. if (expireDay * 1 > 0) {
  1457. var expire = '软件到期时间:' + expireDate + ',剩余' + expireDay + '天,请及时联系软件厂家!'
  1458. $(".expire").html(expire);
  1459. }
  1460. }
  1461. })
  1462. //分机号
  1463. //话务相关
  1464. $("#top-search li").click(function () {
  1465. if ($(this).find("i").hasClass("active")) {
  1466. if (obj.AgentID) {
  1467. var fun = $(this).attr("datafun");
  1468. obj.Type = fun;
  1469. switch (fun) {
  1470. case "Login":
  1471. // obj.AgentGroup = "364";
  1472. obj.AgentType = "0";
  1473. Send();
  1474. break; //签入
  1475. case "MakeCall":
  1476. obj.Type = "SayFree";
  1477. Send();//备注:用户要求外呼立刻置闲
  1478. $(".hidCallID").val("");
  1479. $("#hidwhtype").val(fun);
  1480. whtp();
  1481. //obj.DestinationNumber = "1012";
  1482. break; //外呼
  1483. case "Meeting":
  1484. $("#hidwhtype").val(fun);
  1485. whtp();
  1486. //obj.DestinationNumber = "1012";
  1487. break; //多方通话
  1488. case "Transfer":
  1489. $("#hidwhtype").val(fun);
  1490. whtp();
  1491. //obj.DestinationNumber = "1012";
  1492. break; //转移
  1493. default:
  1494. Send();
  1495. break;
  1496. }
  1497. }
  1498. }
  1499. });
  1500. //知识库查询
  1501. $(".searIcon").click(function () {
  1502. loadZSK();
  1503. })
  1504. //历史记录查询
  1505. $(".searchbtn").click(function () {
  1506. loadOld();
  1507. })
  1508. //新增记录
  1509. $(".addjl").click(function () {
  1510. var type = $(".ldtp-cr ul.ld-service .cr-click").attr("itemtype");
  1511. if (type == '3') {
  1512. $(".addgd").show();
  1513. $(".tbold").hide();
  1514. } else if (type == '1') {
  1515. $(".zxbg").show();
  1516. $(".tbold").hide();
  1517. }
  1518. })
  1519. //关闭外呼弹屏
  1520. $(".closes").click(function () {
  1521. $(".WH").removeClass("fadeInDown").addClass("fadeOutUp");
  1522. $(".WH").addClass("hidens");
  1523. })
  1524. //键盘事件外呼
  1525. document.onkeydown = function (e) {
  1526. var theEvent = window.event || e;
  1527. var code = theEvent.keyCode || theEvent.which;
  1528. if (code == 13) {
  1529. $(".CallOut").click();
  1530. }
  1531. }
  1532. //外呼呼出
  1533. $(".CallOut").click(function (event) {
  1534. event.stopPropagation();
  1535. if ($("#Result").val()) {
  1536. $.ajax({
  1537. type: "get",
  1538. url: huayi.config.callcenter_url + "CallOutOpt/GetCallOutprefix",
  1539. async: true,
  1540. dataType: 'json',
  1541. data: {
  1542. token: $.cookie("token"),
  1543. phone: $("#Result").val()
  1544. },
  1545. success: function (result) {
  1546. // result = $.parseJSON(result);
  1547. if (result.state.toLowerCase() == "success") {
  1548. var guid = uuid();
  1549. obj.Type = $("#hidwhtype").val();
  1550. obj.DestinationNumber = result.data.phone;
  1551. obj.Header = result.data.fix;
  1552. top.obj.TaskType = "0"; //0:拨号外呼;1:95005回访外呼;2:电销回访外呼
  1553. top.obj.TaskPhoneID = ""; //回访的电话ID
  1554. top.obj.TaskID = guid; //回访记录编号
  1555. Send();
  1556. $('#Result').val('');
  1557. $(".WH").addClass("hidens");
  1558. }
  1559. }
  1560. });
  1561. // obj.Type = $("#hidwhtype").val();
  1562. // obj.DestinationNumber = $("#Result").val();
  1563. // Send();
  1564. }
  1565. })
  1566. //外呼弹屏数字键盘样式
  1567. $(".Num_ul div").mousedown(function () {
  1568. $(this).addClass("actives");
  1569. $(".img").removeClass("hidens");
  1570. }).mouseup(function () {
  1571. $(this).removeClass("actives");
  1572. })
  1573. //外呼弹屏数字键盘号码输入
  1574. $(".Num_ul li div").click(function () {
  1575. var rt = $("#Result").val() + "";
  1576. if (rt.length < 18) {
  1577. rt = rt + $(this).find("a").text();
  1578. $("#Result").val(rt);
  1579. }
  1580. });
  1581. //外呼弹屏数字键盘号码截取
  1582. $(".img").click(function () {
  1583. var Result = $("#Result").val() + "";
  1584. Result = Result.substr(0, Result.length - 1);
  1585. $("#Result").val(Result);
  1586. if (Result.length == 0) {
  1587. $(".img").addClass("hidens");
  1588. }
  1589. })
  1590. ////上传头像
  1591. //$(".yhtx").click(function () {
  1592. // $("#upFile").trigger("click");
  1593. //})
  1594. //$("#upFile").change(function () {
  1595. // uploadtx();
  1596. //})
  1597. //外呼电话列表
  1598. $(".bg_title li").click(function () {
  1599. $(this).addClass("lactive").siblings().removeClass("lactive");
  1600. loadWH();
  1601. })
  1602. $(".ty").click(function () {
  1603. loadWH();
  1604. })
  1605. //加载部门人员
  1606. $("#zrbmname").click(function () {
  1607. if ($(".zrbmmenu").is(":hidden")) {
  1608. $(".zrbmmenu").show();
  1609. } else {
  1610. $(".zrbmmenu").hide();
  1611. }
  1612. })
  1613. $("#clbmname").click(function () {
  1614. if ($(".clbmmenu").is(":hidden")) {
  1615. $(".clbmmenu").show();
  1616. } else {
  1617. $(".clbmmenu").hide();
  1618. }
  1619. })
  1620. $(".col-sm-3").mouseleave(function () {
  1621. $(".ztree").parent().hide();
  1622. })
  1623. //$("#zrbm").change(function () {
  1624. // getRY($("#zrid"), $("#zrbm").val());
  1625. //})
  1626. //$("#clbm").change(function () {
  1627. // getRY($("#clid"), $("#clbm").val());
  1628. //})
  1629. //创建投诉工单
  1630. $(".addts").click(function () {
  1631. var tslx = $("#tslx").val();
  1632. var tskh = $("#tskh").val();
  1633. var tsdh = $("#tsdh").val();
  1634. var zrbm = $("#zrbm").val();
  1635. var zrid = $("#zrid").val();
  1636. var clbm = $("#clbm").val();
  1637. var clid = $("#clid").val();
  1638. var khid = $("#khid").val();
  1639. var type = "3";
  1640. var cont = $("#cont").val();
  1641. var callid = $(".hidCallID").val();
  1642. if (!tslx) {
  1643. layer.confirm('请选择投诉类型!', {
  1644. btn: ['确定']
  1645. });
  1646. return;
  1647. }
  1648. if (!tskh) {
  1649. layer.confirm('请输入客户名称!', {
  1650. btn: ['确定']
  1651. });
  1652. return;
  1653. }
  1654. if (!tsdh) {
  1655. layer.confirm('请输入客户电话!', {
  1656. btn: ['确定']
  1657. });
  1658. return;
  1659. }
  1660. if (!cont) {
  1661. layer.confirm('请输入工单内容!', {
  1662. btn: ['确定']
  1663. });
  1664. return;
  1665. }
  1666. $.post(huayi.config.callcenter_url + 'CallInScreen/AddWorkOrder', {
  1667. tslx: tslx,
  1668. tskh: tskh,
  1669. tsdh: tsdh,
  1670. zrbm: zrbm,
  1671. zrid: zrid,
  1672. khid: khid,
  1673. clbm: clbm,
  1674. clid: clid,
  1675. type: type,
  1676. cont: cont,
  1677. callid: callid,
  1678. "token": $.cookie("token")
  1679. }, function (result) {
  1680. result = $.parseJSON(result);
  1681. if (result.state.toLowerCase() == "success") {
  1682. loadOld();
  1683. $("#zrbmname").val("");
  1684. $("#zrbm").val("");
  1685. $("#zrid").empty()
  1686. $("#clbmname").val("");
  1687. $("#clbm").val("");
  1688. $("#clid").empty()
  1689. $("#cont").val("");
  1690. layer.msg("创建工单成功");
  1691. }
  1692. })
  1693. })
  1694. //加载知识库
  1695. loadZSK();
  1696. //加载左侧导航菜单
  1697. loadMenu();
  1698. workcount();
  1699. setInterval(function () {
  1700. workcount();
  1701. }, huayi.config.menuworktime);
  1702. //客户资料
  1703. $('.khzl tbody>tr>td input').attr('readonly', true);
  1704. $('.save').hide();
  1705. $('.cancel').hide();
  1706. $('.edit').click(function () {
  1707. $('.save').show();
  1708. $('.cancel').show();
  1709. $('.edit').hide();
  1710. $('.khzl tbody>tr>td input').attr('readonly', false);
  1711. $('.khzl tbody>tr>td input').css('border-bottom', "1px solid #b3b3b3");
  1712. })
  1713. $('.cancel').click(function () {
  1714. $('.khzl tbody>tr>td input').attr('readonly', true);
  1715. $('.khzl tbody>tr>td input').css('border', "0");
  1716. $('.save').hide();
  1717. $('.cancel').hide();
  1718. $('.edit').show();
  1719. })
  1720. //保存客户
  1721. $(".save").click(function () {
  1722. var khid = $("#khid").val();
  1723. var khmc = $(".khmc").val();
  1724. var khbh = $(".khbh").val();
  1725. var tel1 = $(".ldtel1").val();
  1726. var tel2 = $(".ldtel2").val();
  1727. var tel3 = $(".ldtel3").val();
  1728. if (!khmc) {
  1729. layer.confirm('请输入客户名称!', {
  1730. btn: ['确定']
  1731. });
  1732. return;
  1733. }
  1734. $.post(huayi.config.callcenter_url + 'Customer/AddCustomer', {
  1735. cid: khid,
  1736. name: khmc,
  1737. code: khbh,
  1738. mobile: tel1,
  1739. telphone: tel2,
  1740. chargetelephone: tel3,
  1741. "token": $.cookie("token")
  1742. }, function (result) {
  1743. result = $.parseJSON(result);
  1744. if (result.state.toLowerCase() == "success") {
  1745. $("#khid").val(result.data);
  1746. $("#tskh").val(khmc);
  1747. layer.msg("保存成功");
  1748. $('.save').hide();
  1749. $('.cancel').hide();
  1750. $('.edit').show();
  1751. }
  1752. })
  1753. })
  1754. //关闭录音弹出
  1755. $(".setwin").click(function () {
  1756. $(".t-shade").removeClass("cx");
  1757. $('audio')[0].pause();
  1758. });
  1759. //修改密码开始
  1760. $('.shezhi').click(function () {
  1761. $('.personal').show();
  1762. $.ajax({
  1763. type: "get",
  1764. url: huayi.config.callcenter_url + "UserAccount/GetNowUser",
  1765. async: true,
  1766. dataType: 'json',
  1767. data: {
  1768. token: $.cookie("token")
  1769. },
  1770. success: function (result) {
  1771. if (result.state.toLowerCase() == "success") {
  1772. var con = result.data.user;
  1773. console.log(con)
  1774. $('.mgh').val(con.F_UserId);
  1775. $('.mn').val(con.F_UserName);
  1776. $('.mobile').val(con.F_Mobile);
  1777. $('.fenji').val($.cookie("extno"));
  1778. //$('.wxno').val(con.F_WXNo);
  1779. // $('.spwd').val(con.F_Password);
  1780. }
  1781. }
  1782. });
  1783. })
  1784. //tab切换
  1785. $('.perTab li').click(function () {
  1786. $(this).addClass('sel').siblings().removeClass('sel');
  1787. var index = $(this).index();
  1788. $('.perTab_con').children('div').eq(index).show().siblings().hide();
  1789. })
  1790. //编辑个人资料
  1791. $('.grzl tbody>tr>td input.zhidu').attr('readonly', true);
  1792. $('.grbj').click(function () {
  1793. $('.grzl tbody>tr>td input.zhidu').attr('readonly', false);
  1794. $('.grzl tbody>tr>td input.zhidu').css('border-bottom', "1px solid #b3b3b3");
  1795. })
  1796. //取消编辑
  1797. $('.grqx').click(function () {
  1798. $('.grzl tbody>tr>td input.zhidu').attr('readonly', true);
  1799. $('.grzl tbody>tr>td input.zhidu').css('border-bottom', "none");
  1800. })
  1801. //关闭按钮
  1802. $('.ptr').click(function () {
  1803. $('.personal').hide();
  1804. })
  1805. $('.grbtn').click(function () {
  1806. var gh = $('.mgh').val();
  1807. var xm = $('.mn').val();
  1808. var ymm = $('.spwd').val();
  1809. var xmm = $('.npwd').val();
  1810. var qmm = $('.epwd').val();
  1811. if (xmm !== qmm) {
  1812. $('.wrong').show();
  1813. $('.npwd').val('')
  1814. $('.epwd').val('')
  1815. } else if (xmm == '') {
  1816. layer.msg("密码不允许为空!");
  1817. } else {
  1818. $('.wrong').hide();
  1819. $('.grzl tbody>tr>td input').attr('readonly', true);
  1820. $('.grzl tbody>tr>td input').css('border-bottom', "none");
  1821. $.ajax({
  1822. type: "post",
  1823. url: huayi.config.callcenter_url + "UserAccount/UpdatePwd",
  1824. async: true,
  1825. dataType: 'json',
  1826. data: {
  1827. token: $.cookie("token"),
  1828. usercode: gh,
  1829. pwd: xmm,
  1830. oldpwd: ymm,
  1831. mobile: $('.mobile').val()
  1832. },
  1833. success: function (result) {
  1834. // result = $.parseJSON(result);
  1835. if (result.state.toLowerCase() == "success") {
  1836. layer.msg("修改成功!");
  1837. }
  1838. }
  1839. });
  1840. }
  1841. })
  1842. //图片裁剪
  1843. var o = $(".image-crop > img");
  1844. $(o).cropper({
  1845. aspectRatio: 1 / 1,
  1846. resizable: false,
  1847. dragCrop: false,
  1848. preview: ".img-preview",
  1849. done: function () { }
  1850. });
  1851. var r = $("#inputImage");
  1852. if (window.FileReader) {
  1853. r.change(function () {
  1854. var e, i = new FileReader,
  1855. t = this.files;
  1856. if (t.length && (e = t[0], /^image\/\w+$/.test(e.type))) {
  1857. i.readAsDataURL(e);
  1858. i.onload = function () {
  1859. r.val("");
  1860. o.cropper("reset", !0).cropper("replace", this.result);
  1861. }
  1862. } else {
  1863. alert("请选择图片文件");
  1864. }
  1865. });
  1866. $("#setDrag").click(function () {
  1867. o.cropper("setDragMode", "crop");
  1868. var img = o.cropper("getDataURL");
  1869. $.post(huayi.config.callcenter_url + "Index/UploadTX64", {
  1870. dataurl: encodeURIComponent(img),
  1871. "token": $.cookie("token")
  1872. }, function (result) {
  1873. result = $.parseJSON(result);
  1874. if (result.state.toLowerCase() == "success") {
  1875. $(".yhtx").attr("src", huayi.config.callcenter_url.substr(0, huayi.config.callcenter_url.length - 1) + result.data);
  1876. layer.msg("上传成功");
  1877. $('.personal').hide();
  1878. }
  1879. })
  1880. });
  1881. $("#zoomIn").click(function () {
  1882. o.cropper("zoom", .1)
  1883. });
  1884. $("#zoomOut").click(function () {
  1885. o.cropper("zoom", -.1)
  1886. });
  1887. $("#rotateLeft").click(function () {
  1888. o.cropper("rotate", 45)
  1889. });
  1890. $("#rotateRight").click(function () {
  1891. o.cropper("rotate", -45)
  1892. });
  1893. } else {
  1894. r.addClass("hide");
  1895. }
  1896. $(".add_").click(function () {
  1897. var tskh = $("#zxr_").val(); //咨询人:
  1898. var tsdh = $("#zxdh_").val(); //咨询电话
  1899. var cont = $("#zxnr_").val(); //咨询内容
  1900. var clcont = $("#clnr_").val(); //内容
  1901. var type = "1";
  1902. if (!clcont) {
  1903. layer.confirm('请输入处理内容!', {
  1904. btn: ['确定']
  1905. });
  1906. return;
  1907. }
  1908. $.post(huayi.config.callcenter_url + 'CallInScreen/AddWorkOrder', {
  1909. tskh: tskh,
  1910. tsdh: tsdh,
  1911. cont: cont,
  1912. clcont: clcont,
  1913. type: type,
  1914. "token": $.cookie("token")
  1915. }, function (result) {
  1916. result = $.parseJSON(result);
  1917. if (result.state.toLowerCase() == "success") {
  1918. loadOld();
  1919. $("#zxr_").val(''); //咨询人:
  1920. $("#zxdh_").val(''); //咨询电话
  1921. $("#zxnr_").val(''); //咨询内容
  1922. $("#clnr_").val(''); //内容
  1923. layer.msg("创建工单成功");
  1924. }
  1925. })
  1926. })
  1927. ///拖拽效果
  1928. var box = document.getElementById("box");
  1929. //鼠标按下的函数
  1930. box.onmousedown = function (ev) {
  1931. var oEvent = ev || event;
  1932. //求出鼠标和box的位置差值
  1933. var x = oEvent.clientX - box.offsetLeft;
  1934. var y = oEvent.clientY - box.offsetTop;
  1935. console.log(x);
  1936. //鼠标移动的函数
  1937. //把事件加在document上,解决因为鼠标移动太快时,
  1938. //鼠标超过box后就没有了拖拽的效果的问题
  1939. document.onmousemove = function (ev) {
  1940. var oEvent = ev || event;
  1941. //保证拖拽框一直保持在浏览器窗口内部,不能被拖出的浏览器窗口的范围
  1942. var l = oEvent.clientX - x;
  1943. var t = oEvent.clientY - y;
  1944. if (l < 0) {
  1945. l = 0;
  1946. } else if (l > document.documentElement.clientWidth - box.offsetWidth) {
  1947. l = document.documentElement.clientWidth - box.offsetWidth;
  1948. }
  1949. if (t < 0) {
  1950. t = 0;
  1951. } else if (t > document.documentElement.clientHeight - box.offsetHeight) {
  1952. t = document.documentElement.clientHeight - box.offsetHeight;
  1953. }
  1954. box.style.left = l + "px";
  1955. box.style.top = t + "px";
  1956. }
  1957. //鼠标抬起的函数
  1958. document.onmouseup = function () {
  1959. document.onmousemove = null;
  1960. document.onmouseup = null;
  1961. }
  1962. //火狐浏览器在拖拽空div时会出现bug
  1963. //return false阻止默认事件,解决火狐的bug
  1964. // return false;
  1965. }
  1966. //来电弹屏
  1967. laydate.skin('molv');
  1968. //laydate({
  1969. // elem: '#startTime',
  1970. // event: 'focus'
  1971. //});
  1972. //laydate({
  1973. // elem: '#endTime',
  1974. // event: 'focus'
  1975. //});
  1976. //laydate({
  1977. // elem: '#bx_startTime',
  1978. // event: 'focus'
  1979. //});
  1980. //laydate({
  1981. // elem: '#bx_endTime',
  1982. // event: 'focus'
  1983. //});
  1984. laydate({
  1985. elem: '#old_startTime',
  1986. event: 'focus'
  1987. });
  1988. laydate({
  1989. elem: '#old_endTime',
  1990. event: 'focus'
  1991. });
  1992. laydate({
  1993. elem: '#con_startTime',
  1994. event: 'focus'
  1995. });
  1996. laydate({
  1997. elem: '#con_endTime',
  1998. event: 'focus'
  1999. });
  2000. //弹屏右侧切换效果
  2001. $(".ldtp-cr ul.ld-service li").click(function () {
  2002. $(this).addClass("cr-click").siblings().removeClass("cr-click");
  2003. //var inedx = $(this).index();
  2004. //console.log(inedx);
  2005. //var indexCon = $('.ld-sercon>div').eq(inedx);
  2006. //indexCon.show();
  2007. //indexCon.siblings().hide();
  2008. //indexCon.find('.ld-sercon-con').show();
  2009. //indexCon.find('.second-con').hide();
  2010. //indexCon.find('.addjl').click(function() {
  2011. // var par = $(this).parent().parent();
  2012. // par.hide().siblings().show();
  2013. //})
  2014. loadOld();
  2015. });
  2016. $('.pre-add').click(function () {
  2017. var par = $(this).parent().parent();
  2018. par.hide().siblings().show();
  2019. })
  2020. //最大化 最小化效果
  2021. //最小化
  2022. $('.minClosed').click(function () {
  2023. $('.ldtp-con').removeClass('fadeInDown');
  2024. $('.ldtp-con').addClass('fadeOutUp');
  2025. $('.ldtp-con').css("display", "none");
  2026. $('.maxOpen').show();
  2027. $('.maxOpen').addClass('fadeInDown');
  2028. });
  2029. //最大化
  2030. $('.maxOpen').click(function () {
  2031. $('.ldtp-con').removeClass('fadeOutUp');
  2032. $('.ldtp-con').addClass('fadeInDown');
  2033. $('.ldtp-con').css("display", "block");
  2034. $('.maxOpen').hide();
  2035. $('.maxOpen').removeClass('fadeInDown');
  2036. $('.maxOpen').addClass('fadeInDown');
  2037. $('.first').removeClass('first');
  2038. $('.ldtp-con').addClass('first');
  2039. })
  2040. //关闭弹框
  2041. $(".Bacha").click(function () {
  2042. $('.ldtp-con').removeClass('fadeInDown');
  2043. $('.ldtp-con').addClass('fadeOutUp');
  2044. $('.ldtp-con').css("display", "none");
  2045. obj.Type = "SayFree";
  2046. Send();
  2047. })
  2048. //顶部小头像
  2049. var little_pic = $('.head-pic .hp-box img').attr("src");
  2050. //console.log(little_pic);
  2051. $('.maxOpen li .photo img').attr("src", little_pic);
  2052. //$('.ldtp-cr').scroll(function() {
  2053. // var scheit = $('.ldtp-cr').scrollTop();
  2054. // //console.log(scheit);
  2055. // if (scheit > 10) {
  2056. // $('.minClosed').css({
  2057. // 'background': '#000',
  2058. // 'top': '13px',
  2059. // 'right': '15px'
  2060. // });
  2061. // $('.minClosed a').css('background', '#fff');
  2062. // } else {
  2063. // $('.minClosed').css({
  2064. // 'background': '',
  2065. // 'top': '0',
  2066. // 'right': '80px'
  2067. // }) ;
  2068. // $('.minClosed a').css('background', '#000');
  2069. // }
  2070. //})
  2071. //点击左侧菜单来电弹屏显示
  2072. $('.tantan').click(function () {
  2073. $('.maxOpen').trigger("click");
  2074. $('.head-pic .lahei .la-before').show();
  2075. $('.head-pic .lahei .la-after').hide();
  2076. loadOld();
  2077. })
  2078. //点击挂断
  2079. $('.head-pic .td-call .take').click(function () {
  2080. //$('.ldtp-con').css("display", 'none');
  2081. obj.Type = "DropCall";
  2082. Send();
  2083. });
  2084. //点击拉黑事件
  2085. $('.head-pic .lahei .la-before').click(function () {
  2086. if (!$(".hidTel").val()) {
  2087. layer.confirm('来电号码为空!', {
  2088. btn: ['确定']
  2089. });
  2090. return;
  2091. }
  2092. $("#time-word").val('');
  2093. $('.ldtp-con .hei-list').show();
  2094. //$('.ldtp-con .hei-list').removeClass('bounceOutUp');
  2095. //$('.ldtp-con .hei-list').addClass('bounceIn');
  2096. })
  2097. //拉黑输入框事件
  2098. $('.hei-list .bacha').click(function () {
  2099. //$('.ldtp-con .hei-list').removeClass('bounceIn');
  2100. //$('.ldtp-con .hei-list').addClass('bounceOutUp');
  2101. $('.ldtp-con .hei-list').hide();
  2102. $("#time-word").val('');
  2103. })
  2104. var reg = /^\+?[1-9][0-9]*$/;
  2105. $('#bc').click(function () {
  2106. var n = $("#time-word").val();
  2107. var val = $("input[name='time']:checked").val();
  2108. if (n) {
  2109. if (!(reg.test(n))) {
  2110. layer.confirm('请输入整数时间!', {
  2111. btn: ['确定']
  2112. });
  2113. return;
  2114. }
  2115. }
  2116. else {
  2117. if (val == '4') {
  2118. n = 0;
  2119. }
  2120. else {
  2121. layer.confirm('请输入整数时间!', {
  2122. btn: ['确定']
  2123. });
  2124. return;
  2125. }
  2126. }
  2127. $.post(huayi.config.callcenter_url + 'CallInScreen/AddBlack', { tel: $(".hidTel").val(), num: n, type: val, "token": $.cookie("token") }, function (result) {
  2128. result = $.parseJSON(result);
  2129. if (result.state.toLowerCase() == "success") {
  2130. layer.msg("拉入黑名单成功");
  2131. $('.la-shichang .blackTime').html(result.data);
  2132. //$('.ldtp-con .hei-list').removeClass('bounceIn');
  2133. //$('.ldtp-con .hei-list').addClass('bounceOutUp');
  2134. $('.ldtp-con .hei-list').hide();
  2135. $('.head-pic .lahei .la-before').hide();
  2136. $('.head-pic .lahei .la-after').show();
  2137. $('.head-pic .lahei .retur').show();
  2138. }
  2139. })
  2140. })
  2141. $('.la-after').click(function () {
  2142. if (!$(".hidTel").val()) {
  2143. layer.confirm('来电号码为空!', {
  2144. btn: ['确定']
  2145. });
  2146. return;
  2147. }
  2148. $("#time-word").val('');
  2149. $('.ldtp-con .hei-list').show();
  2150. $('.ldtp-con .hei-list').removeClass('bounceOutUp');
  2151. $('.ldtp-con .hei-list').addClass('bounceIn');
  2152. })
  2153. $('.head-pic .lahei .retur').click(function () {
  2154. $.getJSON(huayi.config.callcenter_url + 'CallInScreen/DelBlack', { tel: $(".hidTel").val(), "token": $.cookie("token") }, function (result) {
  2155. if (result.state.toLowerCase() == "success") {
  2156. layer.msg("取消黑名单成功");
  2157. $('.head-pic .lahei .retur').hide();
  2158. $('.head-pic .lahei .la-after').hide();
  2159. $('.head-pic .lahei .la-before').show();
  2160. }
  2161. })
  2162. })
  2163. })
  2164. //菜单数字
  2165. function workcount() {
  2166. $.getJSON(huayi.config.callcenter_url + 'Index/GetWorkOrderCount', {
  2167. "token": $.cookie("token")
  2168. }, function (result) {
  2169. if (result.state.toLowerCase() == "success") {
  2170. $(".dpd").text(result.data.dpd);
  2171. $(".djd").text(result.data.djd);
  2172. $(".dcl").text(result.data.dcl);
  2173. }
  2174. })
  2175. }
  2176. //上传头像
  2177. function uploadtx() {
  2178. if (document.getElementById("upFile").files.length > 0) {
  2179. var formData = new FormData();
  2180. formData.append("upFile", document.getElementById("upFile").files[0]);
  2181. formData.append("token", $.cookie("token"));
  2182. $.ajax({
  2183. url: huayi.config.callcenter_url + "Index/UploadTX",
  2184. type: "POST",
  2185. data: formData,
  2186. /**
  2187. *必须false才会自动加上正确的Content-Type
  2188. */
  2189. contentType: false,
  2190. /**
  2191. * 必须false才会避开jQuery对 formdata 的默认处理
  2192. * XMLHttpRequest会对 formdata 进行正确的处理
  2193. */
  2194. processData: false,
  2195. success: function (result) {
  2196. document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
  2197. $("#upFile").change(function () {
  2198. uploadtx();
  2199. });
  2200. var r = $.parseJSON(result);
  2201. if (r.state.toLowerCase() == "success") {
  2202. $(".yhtx").attr("src", huayi.config.callcenter_url.substr(0, huayi.config.callcenter_url.length - 1) + r.data);
  2203. layer.msg("上传成功");
  2204. }
  2205. }
  2206. });
  2207. } else {
  2208. layer.confirm('请上传文件!', {
  2209. btn: ['确定']
  2210. });
  2211. }
  2212. }
  2213. //获取历史记录
  2214. function loadOld() {
  2215. $(".addgd").hide();
  2216. $(".tbold").show();
  2217. $(".zxbg").hide();
  2218. var type = $(".ldtp-cr ul.ld-service .cr-click").attr("itemtype");
  2219. if (type != '0') {
  2220. $(".complain").hide();
  2221. $(".complain").eq(1).show();
  2222. //先销毁表格
  2223. $('#orderlist').bootstrapTable('destroy');
  2224. //初始化表格,动态从服务器加载数据
  2225. $("#orderlist").bootstrapTable({
  2226. method: "get", //使用get请求到服务器获取数据
  2227. url: huayi.config.callcenter_url + "WorkOrder/GetListAll", //获取数据的Servlet地址
  2228. striped: true, //表格显示条纹
  2229. pagination: true, //启动分页
  2230. pageSize: 5, //每页显示的记录数
  2231. pageNumber: 1, //当前第几页
  2232. pageList: [5, 10, 50, 100], //记录数可选列表
  2233. search: false, //是否启用查询
  2234. showColumns: false, //显示下拉框勾选要显示的列
  2235. showRefresh: false, //显示刷新按钮
  2236. sidePagination: "server", //表示服务端请求
  2237. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  2238. //设置为limit可以获取limit, offset, search, sort, order
  2239. queryParamsType: "undefined",
  2240. queryParams: function queryParams(params) { //设置查询参数
  2241. var param = {
  2242. page: params.pageNumber,
  2243. pagesize: params.pageSize,
  2244. tel: $(".hidTel").val(),
  2245. type: type,
  2246. starttime: $("#con_startTime").val(),
  2247. endtime: $("#con_endTime").val(),
  2248. token: $.cookie("token")
  2249. };
  2250. return param;
  2251. },
  2252. onLoadSuccess: function () { //加载成功时执行
  2253. //layer.msg("加载成功");
  2254. },
  2255. onLoadError: function () { //加载失败时执行
  2256. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  2257. }
  2258. });
  2259. } else {
  2260. $(".complain").hide();
  2261. $(".complain").eq(0).show();
  2262. //先销毁表格
  2263. $('#oldlist').bootstrapTable('destroy');
  2264. //初始化表格,动态从服务器加载数据
  2265. $("#oldlist").bootstrapTable({
  2266. method: "get", //使用get请求到服务器获取数据
  2267. url: huayi.config.callcenter_url + "CallInScreen/GetOldList", //获取数据的Servlet地址
  2268. striped: true, //表格显示条纹
  2269. pagination: true, //启动分页
  2270. pageSize: 5, //每页显示的记录数
  2271. pageNumber: 1, //当前第几页
  2272. pageList: [5, 10, 50, 100], //记录数可选列表
  2273. search: false, //是否启用查询
  2274. showColumns: false, //显示下拉框勾选要显示的列
  2275. showRefresh: false, //显示刷新按钮
  2276. sidePagination: "server", //表示服务端请求
  2277. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  2278. //设置为limit可以获取limit, offset, search, sort, order
  2279. queryParamsType: "undefined",
  2280. queryParams: function queryParams(params) { //设置查询参数
  2281. var param = {
  2282. page: params.pageNumber,
  2283. pagesize: params.pageSize,
  2284. tel: $(".hidTel").val(),
  2285. starttime: $("#old_startTime").val(),
  2286. endtime: $("#old_endTime").val(),
  2287. token: $.cookie("token")
  2288. };
  2289. return param;
  2290. },
  2291. onLoadSuccess: function () { //加载成功时执行
  2292. //layer.msg("加载成功");
  2293. },
  2294. onLoadError: function () { //加载失败时执行
  2295. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  2296. }
  2297. });
  2298. }
  2299. if (type == '3') {
  2300. getLX($("#tslx"), "TSLX");
  2301. getBM($("#zrbmtree"));
  2302. getBM($("#clbmtree"));
  2303. }
  2304. }
  2305. function GetCallState(val) {
  2306. if (val == '1') {
  2307. return '已接通';
  2308. } else {
  2309. return '未接通';
  2310. }
  2311. }
  2312. //音频
  2313. function setCode(val) {
  2314. if (val) {
  2315. return '<div class="imgs" style="cursor: pointer;">' +
  2316. '<img src="./img/vice.png" alt="" onclick= ck(this) item="' + val + '" />' +
  2317. '</div>';
  2318. } else {
  2319. return '';
  2320. }
  2321. }
  2322. //录音
  2323. function ck(val) {
  2324. var path = $(val).attr("item");
  2325. $(".t-shade").addClass("cx");
  2326. $(".Ly_box").empty();
  2327. $(".down").attr("href", path);
  2328. $('<audio style="width: 100%;"class=" " src="' + path + '" loop="loop" controls="controls" ></audio>').appendTo(".Ly_box");
  2329. }
  2330. function GetDealState(val) {
  2331. if (val == '1') {
  2332. return '已处理';
  2333. } else {
  2334. return '未处理';
  2335. }
  2336. }
  2337. function GetStateName(val) {
  2338. var str = '';
  2339. switch (val + '') {
  2340. case '0':
  2341. str = "待指派";
  2342. break;
  2343. case '1':
  2344. str = "处理中";
  2345. break;
  2346. case '2':
  2347. str = "已完结";
  2348. break;
  2349. }
  2350. return str;
  2351. }
  2352. function GetCont(val) {
  2353. var str = '<div '
  2354. if (val.length > 20) {
  2355. str = str + ' title="' + val + '" ';
  2356. val = val.substr(0, 20) + "...";
  2357. }
  2358. return str + '>' + val + '</div>';
  2359. }
  2360. //获取知识库
  2361. function loadZSK() {
  2362. $.getJSON(huayi.config.callcenter_url + 'CallInScreen/GetZSKList', {
  2363. "keywords": $(".search").val(),
  2364. "token": $.cookie("token")
  2365. }, function (result) {
  2366. if (result.state.toLowerCase() == "success") {
  2367. $(".ldcr-bottom .detail-con ul").empty();
  2368. $(result.data).each(function (i, n) {
  2369. var html = '<li>' +
  2370. ' <div class="zhishi-title clearfix">' +
  2371. ' <a href="javascript:void(0);" >' + n.F_Title + '</a>' +
  2372. ' <em >' + n.F_CreateOn + '</em>' +
  2373. ' </div>' +
  2374. ' <div class="explancon">' +
  2375. n.F_Content +
  2376. ' </div>' +
  2377. '</li>';
  2378. $(html).appendTo($(".ldcr-bottom .detail-con ul")).find(".zhishi-title").click(function (event) {
  2379. event.stopPropagation();
  2380. if ($(this).hasClass("active")) {
  2381. $(this).removeClass("active")
  2382. } else {
  2383. $(".zhishi-title").removeClass("active");
  2384. $(this).addClass("active");
  2385. }
  2386. })
  2387. })
  2388. }
  2389. })
  2390. }
  2391. //获取类型
  2392. function getLX(obj, type) {
  2393. obj.empty();
  2394. $.getJSON(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
  2395. "flag": type,
  2396. "token": $.cookie("token")
  2397. }, function (result) {
  2398. if (result.state.toLowerCase() == "success") {
  2399. $(result.data).each(function (i, n) {
  2400. obj.append('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>');
  2401. })
  2402. }
  2403. })
  2404. }
  2405. //获取部门
  2406. var setting = {
  2407. data: {
  2408. key: {
  2409. name: "F_DeptName"
  2410. },
  2411. simpleData: {
  2412. enable: true,
  2413. idKey: "F_DeptId",
  2414. pIdKey: "F_ParentId",
  2415. rootPId: 0
  2416. }
  2417. },
  2418. callback: {
  2419. onClick: zTreeOnClick
  2420. }
  2421. };
  2422. function getBM(obj) {
  2423. $.getJSON(huayi.config.callcenter_url + 'Department/GetAllList', {
  2424. "token": $.cookie("token")
  2425. }, function (result) {
  2426. if (result.state.toLowerCase() == "success") {
  2427. $.fn.zTree.init(obj, setting, result.data);
  2428. }
  2429. })
  2430. }
  2431. function zTreeOnClick(event, treeId, treeNode) {
  2432. var obj = $("#" + event.data.treeId).parent();
  2433. obj.parent().find("input").eq(0).val(treeNode.F_DeptName);
  2434. obj.parent().find("input").eq(1).val(treeNode.F_DeptId);
  2435. obj.hide();
  2436. if (event.data.treeId == "zrbmtree") {
  2437. getRY($("#zrid"), $("#zrbm").val());
  2438. }
  2439. if (event.data.treeId == "clbmtree") {
  2440. getRY($("#clid"), $("#clbm").val());
  2441. }
  2442. };
  2443. //获取人员
  2444. function getRY(obj, deptid) {
  2445. obj.empty();
  2446. obj.append('<option value="">--请选择--</option>');
  2447. $.getJSON(huayi.config.callcenter_url + 'UserAccount/GetDeptUserList', {
  2448. "deptid": deptid,
  2449. "token": $.cookie("token")
  2450. }, function (result) {
  2451. if (result.state.toLowerCase() == "success") {
  2452. $(result.data).each(function (i, n) {
  2453. obj.append('<option value="' + n.F_UserId + '">' + n.F_UserName + '</option>');
  2454. })
  2455. }
  2456. })
  2457. }
  2458. //外呼弹屏
  2459. function whtp() {
  2460. $("#Result").val("");
  2461. if ($(".WH").hasClass("fadeOutUp")) {
  2462. $(".WH").removeClass("fadeOutUp").addClass("fadeInDown");
  2463. }
  2464. $(".WH").removeClass("hidens");
  2465. $('.first').removeClass('first');
  2466. $('.WH').addClass('first');
  2467. loadWH();
  2468. }
  2469. //加载外呼电话列表
  2470. function loadWH() {
  2471. $(".phonediv").hide();
  2472. var n = $(".bg_title .lactive").attr("itemid");
  2473. switch (n) {
  2474. case '0':
  2475. var obj = $(".phonediv").eq(0);
  2476. obj.show();
  2477. //先销毁表格
  2478. var table = obj.find(".phonelist");
  2479. table.bootstrapTable('destroy');
  2480. //初始化表格,动态从服务器加载数据
  2481. table.bootstrapTable({
  2482. method: "get", //使用get请求到服务器获取数据
  2483. url: huayi.config.callcenter_url + "CallOutScreen/GetPhoneList", //获取数据的Servlet地址
  2484. striped: true, //表格显示条纹
  2485. pagination: true, //启动分页
  2486. pageSize: 10, //每页显示的记录数
  2487. pageNumber: 1, //当前第几页
  2488. pageList: [10, 20, 50, 100], //记录数可选列表
  2489. search: false, //是否启用查询
  2490. showColumns: false, //显示下拉框勾选要显示的列
  2491. showRefresh: false, //显示刷新按钮
  2492. sidePagination: "server", //表示服务端请求
  2493. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  2494. //设置为limit可以获取limit, offset, search, sort, order
  2495. queryParamsType: "undefined",
  2496. queryParams: function queryParams(params) { //设置查询参数
  2497. var param = {
  2498. page: params.pageNumber,
  2499. pagesize: params.pageSize,
  2500. tel: $("#lastphone").val(),
  2501. token: $.cookie("token")
  2502. };
  2503. return param;
  2504. },
  2505. onLoadSuccess: function () { //加载成功时执行
  2506. //layer.msg("加载成功");
  2507. },
  2508. onLoadError: function () { //加载失败时执行
  2509. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  2510. }
  2511. });
  2512. break;
  2513. case '1':
  2514. var obj = $(".phonediv").eq(1);
  2515. obj.show();
  2516. var table = obj.find(".phonelist");
  2517. table.bootstrapTable('destroy');
  2518. //初始化表格,动态从服务器加载数据
  2519. table.bootstrapTable({
  2520. method: "get", //使用get请求到服务器获取数据
  2521. url: huayi.config.callcenter_url + "CallOutScreen/GetUserList", //获取数据的Servlet地址
  2522. striped: true, //表格显示条纹
  2523. pagination: true, //启动分页
  2524. pageSize: 10, //每页显示的记录数
  2525. pageNumber: 1, //当前第几页
  2526. pageList: [10, 20, 50, 100], //记录数可选列表
  2527. search: false, //是否启用查询
  2528. showColumns: false, //显示下拉框勾选要显示的列
  2529. showRefresh: false, //显示刷新按钮
  2530. sidePagination: "server", //表示服务端请求
  2531. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  2532. //设置为limit可以获取limit, offset, search, sort, order
  2533. queryParamsType: "undefined",
  2534. queryParams: function queryParams(params) { //设置查询参数
  2535. var param = {
  2536. page: params.pageNumber,
  2537. pagesize: params.pageSize,
  2538. tel: $("#gsphone").val(),
  2539. name: $("#gsname").val(),
  2540. token: $.cookie("token")
  2541. };
  2542. return param;
  2543. },
  2544. onLoadSuccess: function () { //加载成功时执行
  2545. //layer.msg("加载成功");
  2546. },
  2547. onLoadError: function () { //加载失败时执行
  2548. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  2549. }
  2550. });
  2551. break;
  2552. case '2':
  2553. var obj = $(".phonediv").eq(2);
  2554. obj.show();
  2555. var table = obj.find(".phonelist");
  2556. table.bootstrapTable('destroy');
  2557. //初始化表格,动态从服务器加载数据
  2558. table.bootstrapTable({
  2559. method: "get", //使用get请求到服务器获取数据
  2560. url: huayi.config.callcenter_url + "CallOutScreen/GetCustomerList", //获取数据的Servlet地址
  2561. striped: true, //表格显示条纹
  2562. pagination: true, //启动分页
  2563. pageSize: 10, //每页显示的记录数
  2564. pageNumber: 1, //当前第几页
  2565. pageList: [10, 20, 50, 100], //记录数可选列表
  2566. search: false, //是否启用查询
  2567. showColumns: false, //显示下拉框勾选要显示的列
  2568. showRefresh: false, //显示刷新按钮
  2569. sidePagination: "server", //表示服务端请求
  2570. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  2571. //设置为limit可以获取limit, offset, search, sort, order
  2572. queryParamsType: "undefined",
  2573. queryParams: function queryParams(params) { //设置查询参数
  2574. var param = {
  2575. page: params.pageNumber,
  2576. pagesize: params.pageSize,
  2577. tel: $("#khphone").val(),
  2578. name: $("#khname").val(),
  2579. token: $.cookie("token")
  2580. };
  2581. return param;
  2582. },
  2583. onLoadSuccess: function () { //加载成功时执行
  2584. //layer.msg("加载成功");
  2585. },
  2586. onLoadError: function () { //加载失败时执行
  2587. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  2588. }
  2589. });
  2590. break;
  2591. }
  2592. }
  2593. function view(val) {
  2594. var str = '';
  2595. if (val) {
  2596. str = '<a onclick="call(\'' + val + '\')">' + val + '</a>';
  2597. }
  2598. return str;
  2599. }
  2600. function call(val) {
  2601. $("#Result").val(val);
  2602. $(".img").removeClass("hidens");
  2603. }
  2604. function logout() {
  2605. $.ajax({
  2606. url: huayi.config.callcenter_url + "Login/Logout",
  2607. data: {
  2608. token: $.cookie("token")
  2609. },
  2610. dataType: "json",
  2611. success: function (res) {
  2612. if (res.state) {
  2613. location.href = "./login.html";
  2614. }
  2615. }
  2616. });
  2617. }
  2618. //加载左侧导航菜单
  2619. function loadMenu() {
  2620. $.ajaxSettings.async = false;
  2621. $.getJSON(huayi.config.callcenter_url + 'Index/GetMenu', { "token": $.cookie("token") }, function (result) {
  2622. $.ajaxSettings.async = true;
  2623. if (result.state.toLowerCase() == "success") {
  2624. var data = result.data;
  2625. var _html = "";
  2626. $.each(data, function (i) {
  2627. var row = data[i];
  2628. if (row.F_ParentID == "0") {
  2629. _html += '<li>';
  2630. _html += '<a class="Click"data-id="Menu_' + row.F_ModuleId + '" href="' + row.F_OptUrl + '"><i class="fa iconfont">' + row.F_ImgUrl + '</i><span class="nav-label">' + row.F_ModuleName + '</span><span class="fa arrow"></span></a>';
  2631. var childNodes = row.ChildNodes;//二级
  2632. if (childNodes.length > 0) {
  2633. _html += '<ul class="nav nav-second-level">';
  2634. $.each(childNodes, function (i) {
  2635. var subrow = childNodes[i];
  2636. var childNodsThird = subrow.ChildNodes;//三级
  2637. if (childNodsThird.length > 0) {
  2638. _html += '<li>';
  2639. _html += '<a href="' + subrow.F_OptUrl + '">';
  2640. _html += '<span class="nav-label">' + subrow.F_ModuleName + '</span>';
  2641. _html += '<span class="fa arrow"></span>';
  2642. _html += '</a>';
  2643. _html += '<ul class="nav nav-third-level">';
  2644. $.each(childNodsThird, function (i) {
  2645. var subrowThird = childNodsThird[i];
  2646. _html += '<li>';
  2647. _html += '<a class="J_menuItem" data-id="Menu_' + subrowThird.F_ModuleId + '" href="' + subrowThird.F_OptUrl + '" >' + subrowThird.F_ModuleName + '</a>';
  2648. _html += '</li>';
  2649. });
  2650. _html += '</ul>';
  2651. }
  2652. else {
  2653. _html += '<li>';
  2654. _html += '<a class="J_menuItem" data-id="Menu_' + subrow.F_ModuleId + '" href="' + subrow.F_OptUrl + '" >' + subrow.F_ModuleName + '</a>';
  2655. if (subrow.F_Button != '') {
  2656. _html += '<span class="' + subrow.F_Button + '"></span>';
  2657. }
  2658. _html += '</li>';
  2659. }
  2660. });
  2661. _html += '</ul>';
  2662. }
  2663. _html += '</li>';
  2664. }
  2665. });
  2666. // $("#sidebar-nav ul").prepend(_html);
  2667. $(_html).appendTo("#side-menu");
  2668. }
  2669. else {
  2670. window.location.href = "/login.html";
  2671. }
  2672. })
  2673. }
  2674. ////跳转
  2675. function Jumps() {
  2676. //window.parent.frames[ "iframe0"].location.reload();
  2677. $("iframe:visible")[0].src = "widgets.html"
  2678. }
  2679. </script>
  2680. <script src="./js/plugins/metisMenu/jquery.metisMenu.js"></script>
  2681. <script src="./js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
  2682. <script src="./js/plugins/layer/layer.min.js"></script>
  2683. <script src="./js/hplus.min.js?v=4.1.0"></script>
  2684. <script src="./js/contabs.min.js"></script>
  2685. </body>
  2686. </html>