Нет описания

index.html 118KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869
  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>商丘市数字化城市管理监督指挥中心_呼叫中心管理系统</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. <li datafun="DropCall">
  639. <i class="iconfont fa-5x DropCall"></i>
  640. <p>挂断</p>
  641. </li>
  642. <li datafun="MakeCall">
  643. <i class="iconfont fa-5x MakeCall"></i>
  644. <p>外呼</p>
  645. </li>
  646. <li datafun="SayBusy">
  647. <i class="iconfont fa-5x SayBusy"></i>
  648. <p>置忙</p>
  649. </li>
  650. <li datafun="SayFree">
  651. <i class="iconfont fa-5x SayFree"></i>
  652. <p>置闲</p>
  653. </li>
  654. <li datafun="Meeting">
  655. <i class="iconfont fa-5x Meeting"></i>
  656. <p>多方通话</p>
  657. </li>
  658. <li datafun="Transfer">
  659. <i class="iconfont fa-5x Transfer"></i>
  660. <p>转移</p>
  661. </li>
  662. <li datafun="Hold">
  663. <i class="iconfont fa-5x Hold"></i>
  664. <p>保持</p>
  665. </li>
  666. <li datafun="Retrieve">
  667. <i class="iconfont fa-5x Retrieve"></i>
  668. <p>接回</p>
  669. </li>
  670. <li datafun="Login">
  671. <i class="iconfont fa-5x Login"></i>
  672. <p>签入</p>
  673. </li>
  674. <li datafun="Logout">
  675. <i class="iconfont fa-5x Logout"></i>
  676. <p>签出</p>
  677. </li>
  678. </ul>
  679. </div>
  680. <div class="nav closed">
  681. <!--左边-->
  682. <div class="text-center max-box">
  683. <ul class="fl maxOpen animated" style="display: none;">
  684. <li>
  685. <h3 class="size-12 ldname">未知</h3>
  686. <h3 class="size-12 ldtel" style="margin-bottom: 0;"></h3>
  687. </li>
  688. <li>
  689. <div class="photo">
  690. <img src="" alt="" />
  691. </div>
  692. </li>
  693. </ul>
  694. </div>
  695. <div class="ls">
  696. <span class="size-12 min-right" onclick="Jumps()">
  697. <i class="ga"></i>&nbsp;管理中心
  698. </span>
  699. <span class="size-12 shezhi">
  700. <i class="sz"></i>&nbsp;设置
  701. </span>
  702. <span class="size-12" onclick="logout()">
  703. <i class="tc"></i>退出
  704. </span>
  705. </div>
  706. </div>
  707. </div>
  708. </nav>
  709. </div>
  710. <div class="row content-tabs1">
  711. <ul>
  712. <li class="top1" style="width: 5%;"></li>
  713. <li class="top2" style="width: 8%;"></li>
  714. <li class="top3" style="width: 10%;"></li>
  715. <li class="top4" style="width: 13%;"></li>
  716. <li class="top5" style="width: 10%;"></li>
  717. <li class="top6" style="width: 5%;"></li>
  718. <li class="top7" style="width: 13%;"></li>
  719. <li class="top8" style="width: 10%;"></li>
  720. <li class="top9" style="width: 11.2%;"></li>
  721. <li class="top10" style="width: 6%;"></li>
  722. <li class="top11" style="width: 3%;"></li>
  723. <li class="top12" style="width: 5%;"></li>
  724. </ul>
  725. </div>
  726. <div class="row J_mainContent" id="content-main">
  727. <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="widgets.html" frameborder="0" data-id="index_v1.html" seamless></iframe>
  728. </div>
  729. <div class="row content-tabs1 LH">
  730. <ul>
  731. <li class="top13" style="width: 100%;"></li>
  732. </ul>
  733. <span class="fr">Copyright © 华谊科技 All Rights Reserved</span>
  734. <ul class="zts" style="display:none;">
  735. <li>话机状态: </li>
  736. <li class="quan fwzt lx br"> </li>
  737. <li>坐席状态: </li>
  738. <li class="quan zxzt lx br"></li>
  739. <li><span class="hwzt" style="color:red;"></span></li>
  740. <li><span class="expire" style="color:red;"></span></li>
  741. </ul>
  742. </div>
  743. </div>
  744. </div>
  745. <!--==========================================================================================-->
  746. <!--来电弹屏开始-->
  747. <div class="ldtp-con clearfix animated fadeInDown ">
  748. <div class="minBacha clearfix">
  749. <div class="minClosed">
  750. <a href="javaScript:;" title="最小化"></a>
  751. </div>
  752. <div class="Bacha">
  753. <a href="javaScript:;" title="关闭"></a>
  754. </div>
  755. </div>
  756. <!--左侧内容-->
  757. <!--黑名单弹出内容-->
  758. <!--<div class="hei-list ">
  759. <i class="bacha">X</i>
  760. <form class="form-inline">
  761. <label class="radio-inline">
  762. <input type="radio" name="time" value="1" checked="checked"> 天
  763. </label>
  764. <label class="radio-inline">
  765. <input type="radio" name="time" value="2"> 时
  766. </label>
  767. <label class="radio-inline">
  768. <input type="radio" name="time" value="3">分
  769. </label>
  770. <label class="radio-inline">
  771. <input type="radio" name="time" value="4">永久
  772. </label>
  773. <label class="radio-inline">
  774. <input type="button" id="bc" value="保存">
  775. </label>
  776. </form>
  777. </div>-->
  778. <div class="hei-list">
  779. <div class="heiTop clearFix">
  780. <p class="htl">黑名单</p>
  781. <p class="bacha" title="关闭">x</p>
  782. </div>
  783. <div class="heiCon">
  784. <div class="heit">
  785. <span style="font-size: 14px;">输入拉黑时长:</span>
  786. <input type="text" id="time-word" />
  787. </div>
  788. <div class="chooses">
  789. <label class="radio-inline">
  790. <input type="radio" name="time" value="1" checked="checked" style="margin-top: 3px;"> 天
  791. </label>
  792. <label class="radio-inline">
  793. <input type="radio" name="time" value="2" style="margin-top: 3px;" />时
  794. </label>
  795. <label class="radio-inline">
  796. <input type="radio" name="time" value="3" style="margin-top: 3px;" />分
  797. </label>
  798. <label class="radio-inline">
  799. <input type="radio" name="time" value="4" style="margin-top: 3px;" />永久
  800. </label>
  801. </div>
  802. <p style="margin-top: 15px;"><button id="bc" class="btns">保存</button></p>
  803. </div>
  804. </div>
  805. <!--最小化按钮-->
  806. <!--<div class="minClosed">
  807. <a href="javaScript:;" title="最小化"></a>
  808. </div>-->
  809. <!--左侧内容-->
  810. <div class="ldtp-cl col-sm-3">
  811. <div class="head-pic">
  812. <div class="hp-box">
  813. <img src="./img/txpic.png" alt="头像好像去了外星球!" style="width: 100%;height: 100%;" />
  814. <input type="hidden" class="hidTel" value="" />
  815. <input type="hidden" class="hidCallID" />
  816. </div>
  817. <ul>
  818. <li><span style="font-size: 25px;" class="tel"></span></li>
  819. <li><span style="font-size: 15px;" class="khgsd"></span></li>
  820. <!--<li class="nikeName"><i></i><span class="ldname">未知</span><i></i></li>-->
  821. <li style="color: #4cd964;">当前通话时长:<span class="thsc">00:00</span></li>
  822. <li class="lahei">
  823. <div class="la-before"><i class="push"></i> 移至黑名单</div>
  824. <div class="la-after" style="display: none;">
  825. <p class="la-time">拉黑时间:<span>2017/05/13</span></p>
  826. <p class="la-shichang">拉黑截止时间:<span class="blackTime"></span></p>
  827. </div>
  828. <div class="retur" style="display: none;"><i class="qxlh"></i> 取消黑名单</div>
  829. </li>
  830. <li class="td-call clearfix" style="display:none;">
  831. <a class="take" style="float:none;" href="javascript:;"><i></i></a>
  832. <!--<a class="drop" href="javascript:;"><i></i></a>-->
  833. </li>
  834. </ul>
  835. </div>
  836. <!--<ul class="come-detail">
  837. <li>姓名:<span class="ldname">未知</span></li>
  838. <li>归属地:<span class="ldlocation">未知</span></li>
  839. <li>联系电话1:<span class="ldtel1"></span></li>
  840. <li>联系电话2:<span class="ldtel2"></span></li>
  841. <li>联系电话3:<span class="ldtel3"></span></li>
  842. <li>售后负责人:<span>孙嘉一</span></li>
  843. <li>来电时间:<span class="ldtime"></span></li>
  844. </ul>-->
  845. <table class="table khzl">
  846. <tr>
  847. <th>姓名:</th>
  848. <td><input type="text" value="未知" class="ldname khmc" /><input type="hidden" value="" id="khid" /></td>
  849. </tr>
  850. <tr>
  851. <th>客户编号:</th>
  852. <td><input type="text" value="" class="khbh" /></td>
  853. </tr>
  854. <tr>
  855. <th>归属地:</th>
  856. <td><span class="ldlocation" style="padding-left: 5px;">未知</span></td>
  857. </tr>
  858. <tr>
  859. <th>联系电话1:</th>
  860. <td><input type="text" value="" class="ldtel1" /></td>
  861. </tr>
  862. <tr>
  863. <th>联系电话2:</th>
  864. <td><input type="text" value="" class="ldtel2" /></td>
  865. </tr>
  866. <tr>
  867. <th>联系电话2:</th>
  868. <td><input type="text" value="" class="ldtel3" /></td>
  869. </tr>
  870. <tr>
  871. <th>来电时间:</th>
  872. <td><span class="ldtime" style="padding-left: 5px;"></span></td>
  873. </tr>
  874. <tr>
  875. <td></td>
  876. <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>
  877. </tr>
  878. </table>
  879. </div>
  880. <!--右侧内容-->
  881. <div class="ldtp-cr col-sm-9">
  882. <ul class="ld-service clearfix">
  883. <li style="border-bottom:1px solid #243747;" itemtype="0" class="cr-click">历史记录</li>
  884. <li style="border-bottom:1px solid #69cbd0;" itemtype="1">咨询</li>
  885. <!--<--<li style="border-bottom:1px solid #f95a83;" itemtype="2">保修服务</li>-->
  886. <li style="border-bottom:1px solid #243747;" itemtype="3">投诉建议</li>
  887. </ul>
  888. <div class="ld-sercon">
  889. <div class="complain" style="display:block;">
  890. <div class="ld-sercon-con clearfix">
  891. <div class="Ps-chaxun">
  892. <span>查询: <input type="text" id="old_startTime" class="laydate-icon" />&nbsp;——&nbsp;<input type="text" id="old_endTime" class="laydate-icon" /></span>
  893. <span class="searchbtn"></span>
  894. </div>
  895. <div class="table-responsive col-sm-12 tbold" style="padding-left: 0;">
  896. <table id="oldlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  897. <thead>
  898. <tr>
  899. <th data-field="CallNumber">电话号码</th>
  900. <th data-field="CallState" data-formatter="GetCallState">呼叫状态</th>
  901. <!--<th data-field="IsDeal" data-formatter="GetDealState">是否处理</th>-->
  902. <th data-field="UserCode">坐席工号</th>
  903. <th data-field="UserName">坐席姓名</th>
  904. <th data-field="BeginTime">开始时间</th>
  905. <th data-field="TalkStartTime">通话开始时间</th>
  906. <th data-field="TalkEndTime">通话结束时间</th>
  907. <th data-field="TalkLongTime">通话时长(s)</th>
  908. <th data-field="FilePath" data-formatter="setCode">录音</th>
  909. </tr>
  910. </thead>
  911. <tbody class="list"></tbody>
  912. </table>
  913. </div>
  914. </div>
  915. </div>
  916. <div class="complain" style="display:none;">
  917. <div class="ld-sercon-con clearfix">
  918. <div class="Ps-chaxun">
  919. <span>查询: <input type="text" id="con_startTime" class="laydate-icon" />&nbsp;——&nbsp;<input type="text" id="con_endTime" class="laydate-icon" /></span>
  920. <span class="searchbtn"></span>
  921. <span class="addjl g" style="margin-left:5em;">新增工单</span>
  922. </div>
  923. <div id="zxlbs" class="table-responsive col-sm-12 tbold" style="padding-left: 0;">
  924. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  925. <thead>
  926. <tr>
  927. <th data-field="WorkOrderID">工单编号</th>
  928. <th data-field="State" data-formatter="GetStateName">工单状态</th>
  929. <th data-field="Customer">客户姓名</th>
  930. <th data-field="CustomerTel">客户电话</th>
  931. <th data-field="Detail" data-formatter="GetCont">工单内容</th>
  932. <th data-field="CreateUser">坐席工号</th>
  933. <th data-field="CreateTime">创建时间</th>
  934. </tr>
  935. </thead>
  936. <tbody class="list"></tbody>
  937. </table>
  938. </div>
  939. </div>
  940. <div class="Pre-second second-con addgd" style="display:none;">
  941. <form>
  942. <div class="form-group clearfix">
  943. <span class="col-sm-1">
  944. 投诉类型:
  945. </span>
  946. <span class="col-sm-3">
  947. <select id="tslx">
  948. <option selected="selected" value=""></option>
  949. </select>
  950. </span>
  951. <span class="col-sm-1">
  952. 投诉客户:
  953. </span>
  954. <span class="col-sm-3">
  955. <input type="text" id="tskh" />
  956. </span>
  957. <span class="col-sm-1">
  958. 联系电话:
  959. </span>
  960. <span class="col-sm-3">
  961. <input type="text" id="tsdh" />
  962. </span>
  963. </div>
  964. <div class="form-group clearfix">
  965. <span class="col-sm-1">
  966. 投诉部门:
  967. </span>
  968. <span class="col-sm-3">
  969. <!--<select name="" id="zrbm"></select>-->
  970. <input type="text" id="zrbmname" readonly="readonly" />
  971. <input type="hidden" id="zrbm" />
  972. <div class="zrbmmenu" style="display: none; position: absolute; z-index: 100;">
  973. <ul id="zrbmtree" class="ztree"></ul>
  974. </div>
  975. </span>
  976. <span class="col-sm-1">
  977. 被投诉人:
  978. </span>
  979. <span class="col-sm-3">
  980. <select name="" id="zrid">
  981. <option selected="selected" value=""></option>
  982. </select>
  983. </span>
  984. </div>
  985. <div class="form-group clearfix">
  986. <span class="col-sm-1">
  987. 接收部门:
  988. </span>
  989. <span class="col-sm-3">
  990. <!--<select name="" id="clbm"></select>-->
  991. <input type="text" id="clbmname" readonly="readonly" />
  992. <input type="hidden" id="clbm" />
  993. <div class="clbmmenu" style="display: none; position: absolute; z-index: 100;">
  994. <ul id="clbmtree" class="ztree"></ul>
  995. </div>
  996. </span>
  997. <span class="col-sm-1">
  998. 接收人:
  999. </span>
  1000. <span class="col-sm-3">
  1001. <select name="" id="clid">
  1002. <option selected="selected" value=""></option>
  1003. </select>
  1004. </span>
  1005. </div>
  1006. <div class="form-group clearfix">
  1007. <span class="col-sm-1">咨询内容:</span>
  1008. <span class="col-sm-11">
  1009. <textarea rows="5" id="cont"></textarea>
  1010. </span>
  1011. </div>
  1012. <!--<div class="form-group" style="padding-left: 15px;">
  1013. <span>解答内容:</span>
  1014. <textarea rows="5"></textarea>
  1015. </div>-->
  1016. <div class="bton addts">创建</div>
  1017. </form>
  1018. </div>
  1019. <div class="Pre-second second-con zxbg " style="display: none;">
  1020. <form>
  1021. <div class="form-group clearfix">
  1022. <span class="col-sm-1">
  1023. 咨询人:
  1024. </span>
  1025. <span class="col-sm-3">
  1026. <input type="text" id="zxr_" />
  1027. </span>
  1028. <span class="col-sm-1">
  1029. 咨询电话:
  1030. </span>
  1031. <span class="col-sm-3">
  1032. <input type="text" id="zxdh_" />
  1033. </span>
  1034. </div>
  1035. <div class="form-group clearfix">
  1036. <span class="col-sm-1">咨询内容:</span>
  1037. <span class="col-sm-11">
  1038. <textarea rows="5" id="zxnr_" style="resize: none;"></textarea>
  1039. </span>
  1040. </div>
  1041. <div class="form-group clearfix">
  1042. <span class="col-sm-1">处理内容:</span>
  1043. <span class="col-sm-11">
  1044. <textarea rows="5" style="resize: none;" id="clnr_"></textarea>
  1045. </span>
  1046. </div>
  1047. <div class="bton add_">创建</div>
  1048. </form>
  1049. </div>
  1050. </div>
  1051. </div>
  1052. <!--右侧下方内容区-->
  1053. <div class="ldcr-bottom" style="margin-top:10px;">
  1054. <div class="ldcrb-top clearfix">
  1055. <ul class="clearfix">
  1056. <li style="border-bottom:1px solid #69cbd0; background: #000;color: #fff;">知识库</li>
  1057. <!--<li style="border-bottom:1px solid #f95a83;border-top:1px solid #000;border-right:1px solid #000;">更多内容</li>-->
  1058. </ul>
  1059. <div class="ld-search">
  1060. <div class="sear-inp">
  1061. <input type="text" class="search" placeholder="搜索问题、内容或者标题" />
  1062. </div>
  1063. <div class="searIcon">
  1064. </div>
  1065. </div>
  1066. </div>
  1067. <div class="detail-con">
  1068. <ul></ul>
  1069. </div>
  1070. </div>
  1071. </div>
  1072. </div>
  1073. <!--来电弹屏结束-->
  1074. <!--外呼键盘-->
  1075. <div class="WH animated fadeInDown hidens ">
  1076. <!--top-->
  1077. <div class="clearflow Color">
  1078. <div class="WH-top">
  1079. <span>外呼信息</span>
  1080. <span class="closes"><a>X</a></span>
  1081. </div>
  1082. <div class="Cotent_box clearflow">
  1083. <!--左边键盘-->
  1084. <div class="KeyWord col-sm-4">
  1085. <div class="WH_input clearflow">
  1086. <div class="clearflow WH_Itop">
  1087. <input id="Result" type="text" class="fl" value="" maxlength="18" autofocus="autofocus" />
  1088. <input id="hidwhtype" type="hidden" value="" />
  1089. <i class="img fl hidens"></i>
  1090. </div>
  1091. </div>
  1092. <div class="Num_box clearflow">
  1093. <ul class="Num_ul clearflow">
  1094. <li>
  1095. <div>
  1096. <a>1</a>
  1097. </div>
  1098. </li>
  1099. <li>
  1100. <div>
  1101. <a>2</a>
  1102. </div>
  1103. </li>
  1104. <li>
  1105. <div>
  1106. <a>3</a>
  1107. </div>
  1108. </li>
  1109. <li>
  1110. <div>
  1111. <a>4</a>
  1112. </div>
  1113. </li>
  1114. <li>
  1115. <div>
  1116. <a>5</a>
  1117. </div>
  1118. </li>
  1119. <li>
  1120. <div>
  1121. <a>6</a>
  1122. </div>
  1123. </li>
  1124. <li>
  1125. <div>
  1126. <a>7</a>
  1127. </div>
  1128. </li>
  1129. <li>
  1130. <div>
  1131. <a>8</a>
  1132. </div>
  1133. </li>
  1134. <li>
  1135. <div>
  1136. <a>9</a>
  1137. </div>
  1138. </li>
  1139. <li>
  1140. <div>
  1141. <a>*</a>
  1142. </div>
  1143. </li>
  1144. <li>
  1145. <div>
  1146. <a>0</a>
  1147. </div>
  1148. </li>
  1149. <li>
  1150. <div>
  1151. <a>#</a>
  1152. </div>
  1153. </li>
  1154. <li class="Last_phone">
  1155. <div>
  1156. <a class="CallOut"></a>
  1157. </div>
  1158. </li>
  1159. </ul>
  1160. </div>
  1161. </div>
  1162. <!--右边图表-->
  1163. <div class="col-sm-8 Rbg">
  1164. <div class="bg bg_cotent">
  1165. <ul class="bg_title clearflow">
  1166. <li class="lactive" itemid="0">最近电话</li>
  1167. <li itemid="1">公司电话</li>
  1168. <li itemid="2">客户电话</li>
  1169. </ul>
  1170. <div class="bg_box phonediv">
  1171. <div class="cx">
  1172. <span class="blanks">
  1173. 电话号码:
  1174. <input type="text" id="lastphone" />
  1175. </span>
  1176. <span class="ty">搜索</span>
  1177. <!--<span class="ty">重置</span>-->
  1178. </div>
  1179. <div class="phone_bg" style="width: 100%;padding: 10px;">
  1180. <!--<table class="table table-bordered text-center">
  1181. <thead>
  1182. <tr>
  1183. <td class="tbth">电话号码</td>
  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">通话时长(s)</td>
  1191. <td class="tbth">录音</td>
  1192. </tr>
  1193. </thead>
  1194. <tbody class="phonelist"></tbody>
  1195. </table>-->
  1196. <table class="phonelist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  1197. <thead>
  1198. <tr>
  1199. <th data-field="CallNumber" data-formatter="view">电话号码</th>
  1200. <th data-field="CallState" data-formatter="GetCallState">呼叫状态</th>
  1201. <!--<th data-field="IsDeal" data-formatter="GetDealState">是否处理</th>-->
  1202. <th data-field="UserCode">坐席工号</th>
  1203. <th data-field="UserName">坐席姓名</th>
  1204. <th data-field="BeginTime">开始时间</th>
  1205. <th data-field="TalkStartTime">通话开始时间</th>
  1206. <th data-field="TalkEndTime">通话结束时间</th>
  1207. <th data-field="TalkLongTime">通话时长(s)</th>
  1208. <!--<th data-field="FilePath">录音</th>-->
  1209. </tr>
  1210. </thead>
  1211. </table>
  1212. </div>
  1213. </div>
  1214. <div class="bg_box phonediv " style="display:none;">
  1215. <div class="cx">
  1216. <span class="blanks">
  1217. 电话号码:
  1218. <input type="text" id="gsphone" />
  1219. </span>
  1220. <span class="blanks">
  1221. 名称:
  1222. <input type="text" id="gsname" />
  1223. </span>
  1224. <span class="ty">搜索</span>
  1225. <!--<span class="ty">重置</span>-->
  1226. </div>
  1227. <div class="phone_bg" style="width: 100%;padding: 10px;">
  1228. <!--<table class="table table-bordered text-center">
  1229. <thead>
  1230. <tr>
  1231. <td class="tbth">坐席工号</td>
  1232. <td class="tbth">坐席姓名</td>
  1233. <td class="tbth">分机号</td>
  1234. <td class="tbth">电话号码1</td>
  1235. <td class="tbth">电话号码2</td>
  1236. <td class="tbth">电话号码3</td>
  1237. </tr>
  1238. </thead>
  1239. <tbody class="phonelist"></tbody>
  1240. </table>-->
  1241. <table class="phonelist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  1242. <thead>
  1243. <tr>
  1244. <th data-field="F_UserCode">坐席工号</th>
  1245. <th data-field="F_UserName">坐席姓名</th>
  1246. <th data-field="F_WorkNumber" data-formatter="view">分机号</th>
  1247. <th data-field="F_Telephone" data-formatter="view">电话号码1</th>
  1248. <th data-field="F_Mobile" data-formatter="view">电话号码2</th>
  1249. <th data-field="F_HomePhone" data-formatter="view">电话号码3</th>
  1250. </tr>
  1251. </thead>
  1252. </table>
  1253. </div>
  1254. </div>
  1255. <div class="bg_box phonediv" style="display:none;">
  1256. <div class="cx">
  1257. <span class="blanks">
  1258. 电话号码:
  1259. <input type="text" id="khphone" />
  1260. </span>
  1261. <span class="blanks">
  1262. 名称:
  1263. <input type="text" id="khname" />
  1264. </span>
  1265. <span class="ty">搜索</span>
  1266. <!--<span class="ty">重置</span>-->
  1267. </div>
  1268. <div class="phone_bg" style="width: 100%;padding: 10px;">
  1269. <!--<table class="table table-bordered text-center">
  1270. <thead>
  1271. <tr>
  1272. <td class="tbth">名称</td>
  1273. <td class="tbth">电话号码1</td>
  1274. <td class="tbth">电话号码2</td>
  1275. <td class="tbth">电话号码3</td>
  1276. </tr>
  1277. </thead>
  1278. <tbody class="phonelist"></tbody>
  1279. </table>-->
  1280. <table class="phonelist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  1281. <thead>
  1282. <tr>
  1283. <th data-field="F_CustomerName">名称</th>
  1284. <th data-field="F_Telephone" data-formatter="view">电话号码1</th>
  1285. <th data-field="F_Mobile" data-formatter="view">电话号码2</th>
  1286. <th data-field="F_ChargeTelephone" data-formatter="view">电话号码3</th>
  1287. </tr>
  1288. </thead>
  1289. </table>
  1290. </div>
  1291. </div>
  1292. </div>
  1293. </div>
  1294. </div>
  1295. </div>
  1296. </div>
  1297. <!--下载框-->
  1298. <div class="t-shade">
  1299. <div class="shade_k">
  1300. <div class="shade_title">
  1301. <span>录音播放与下载<srong class="cknum"></srong></span>
  1302. <span class="setwin"><a>x</a></span>
  1303. </div>
  1304. <div class="shade_content">
  1305. <div class="Ly_box audiojs">
  1306. </div>
  1307. </div>
  1308. </div>
  1309. </div>
  1310. <!--修改密码开始-->
  1311. <div class="personal" id="box">
  1312. <div class="ptop clearFix">
  1313. <p class="ptl">个人中心</p>
  1314. <p class="ptr" title="关闭">x</p>
  1315. </div>
  1316. <div class="perBox " style="height:500px;">
  1317. <ul class="perTab clearFix">
  1318. <li class="sel">个人资料</li>
  1319. <li>修改头像</li>
  1320. </ul>
  1321. <div class="perTab_con">
  1322. <div class="geRen" style="display: block;">
  1323. <div class="grt clearFix">
  1324. <p class="grtl">基本资料</p>
  1325. <p class="grtr">
  1326. <i class="grqx" title="取消编辑"></i>
  1327. <i class="grbj" title="编辑资料"></i>
  1328. </p>
  1329. </div>
  1330. <table class="table grzl">
  1331. <tr>
  1332. <th>我的工号:</th>
  1333. <td><input type="text" class="mgh" readonly="readonly" /></td>
  1334. </tr>
  1335. <tr>
  1336. <th>我的姓名:</th>
  1337. <td><input type="text" class="mn" readonly="readonly" /></td>
  1338. </tr>
  1339. <tr>
  1340. <th>分机号:</th>
  1341. <td><input type="text" class="fenji" readonly="readonly" /></td>
  1342. </tr>
  1343. <!--<tr>
  1344. <th>外线号码:</th>
  1345. <td><input type="text" class="wxno" readonly="readonly" /></td>
  1346. </tr>-->
  1347. <tr>
  1348. <th>原密码:</th>
  1349. <td><input type="password" class="spwd zhidu" /></td>
  1350. </tr>
  1351. <tr>
  1352. <th>新密码:</th>
  1353. <td><input type="password" class="npwd zhidu" /></td>
  1354. </tr>
  1355. <tr>
  1356. <th>确认密码:</th>
  1357. <td><input type="password" class="epwd zhidu" /><span class="wrong">*密码不一致</span></td>
  1358. </tr>
  1359. <tr>
  1360. <th>手机号:</th>
  1361. <td><input type="text" class="mobile zhidu" /></td>
  1362. </tr>
  1363. <tr>
  1364. <th></th>
  1365. <td><button class="btnn grbtn">保存修改</button></td>
  1366. </tr>
  1367. </table>
  1368. </div>
  1369. <div class="crop ">
  1370. <div class="clearFix" style="margin-top: 45px;">
  1371. <div class="crop_left">
  1372. <div class="image-crop">
  1373. <img src="./img/gaga.jpg">
  1374. </div>
  1375. </div>
  1376. <div class="crop_right">
  1377. <h4>图片预览:</h4>
  1378. <div class="img-preview img-preview-sm"></div>
  1379. </div>
  1380. </div>
  1381. <!--<div class="btn-group">
  1382. <label title="上传图片" for="inputImage" class="btn btn-primary">
  1383. <input type="file" accept="image/*" name="file" id="inputImage" class="hide"> 本地上传
  1384. </label>-->
  1385. <!--<label title="下载图片" id="download" class="btn btn-primary">下载</label>-->
  1386. <!--</div>
  1387. <div class="btn-group">-->
  1388. <!--<button class="btn btn-white" id="zoomIn" type="button">放大</button>-->
  1389. <!--<button class="btn btn-white" id="zoomOut" type="button">缩小</button>-->
  1390. <!--<button class="btn btn-white" id="rotateLeft" type="button">左旋转</button>-->
  1391. <!--<button class="btn btn-white" id="rotateRight" type="button">右旋转</button>-->
  1392. <!--<button class="btn btn-warning " id="setDrag" type="button">裁剪</button>
  1393. </div>-->
  1394. <div class="anniu" style="margin-top: 75px;text-align: center;">
  1395. <label title="上传图片" for="inputImage" class="btnn" style="margin-right: 100px;">
  1396. <input type="file" accept="image/jpeg,image/jpg,image/png" name="file" id="inputImage" class="hide"> 本地上传
  1397. </label>
  1398. <!--<button class="btn btn-warning " id="setDrag" type="button">裁剪</button>-->
  1399. <button class="btnn" id="zoomIn" type="button">放大</button>
  1400. <button class="btnn" id="zoomOut" type="button">缩小</button>
  1401. <button class="btnn" id="rotateLeft" type="button">左旋转</button>
  1402. <button class="btnn" id="rotateRight" type="button">右旋转</button>
  1403. <button class="btnn" id="setDrag" type="button">确定保存</button>
  1404. </div>
  1405. </div>
  1406. </div>
  1407. </div>
  1408. </div>
  1409. <!--修改密码结束-->
  1410. <script src="./js/plugins/pace/pace.min.js"></script>
  1411. <script src="./js/plugins/iCheck/icheck.min.js"></script>
  1412. <script src="./css/laydate/laydate.js"></script>
  1413. <script src="./js/main.js?v=1.5"></script>
  1414. <script src="./js/zTree/jquery.ztree.core.js"></script>
  1415. <script src="./js/plugins/datapicker/bootstrap-datepicker.js"></script>
  1416. <script src="./js/plugins/cropper/cropper.min.js"></script>
  1417. <script src="./js/guid.js"></script>
  1418. <script>
  1419. $(document).ready(function () {
  1420. if (/mobile/i.test(navigator.userAgent) || /android/i.test(navigator.userAgent)) {
  1421. $(".title-box").hide();
  1422. }
  1423. if ($.cookie("token") == null) {
  1424. window.location.href = "login.html";
  1425. }
  1426. obj.AgentExten = $.cookie("extno");
  1427. if (obj.AgentExten == undefined) {
  1428. $(".Gnumbox").hide();
  1429. }
  1430. $(".Gnum").text(obj.AgentExten);
  1431. $.getJSON(huayi.config.callcenter_url + 'UserAccount/GetNowUser', {
  1432. "token": $.cookie("token")
  1433. }, function (result) {
  1434. if (result.state.toLowerCase() == "success") {
  1435. console.log(result);
  1436. $(".username").text(result.data.user.F_UserName);
  1437. $('.user_code').text(result.data.user.F_UserCode);
  1438. $('.group').text(result.data.user.F_SeartGroup);
  1439. if (result.data.role) {
  1440. console.log(result.data);
  1441. $(".rolename").text(result.data.role.F_RoleName);
  1442. }
  1443. $(".yhtx").attr("src", huayi.config.callcenter_url.substr(0, huayi.config.callcenter_url.length - 1) + result.data.user.F_See);
  1444. obj.AgentGroup = result.data.user.F_SeartGroupID;
  1445. obj.AgentID = result.data.user.F_UserCode;
  1446. //obj.AgentExten = result.data.user.F_WorkNumber;
  1447. if (result.data.user.F_SeatFlag) {
  1448. Connect();
  1449. $("#top-search").show();
  1450. $(".phoneBZ").show();
  1451. $(".zts").show();
  1452. }
  1453. }
  1454. })
  1455. //分机号
  1456. //话务相关
  1457. $("#top-search li").click(function () {
  1458. if ($(this).find("i").hasClass("active")) {
  1459. if (obj.AgentID) {
  1460. var fun = $(this).attr("datafun");
  1461. obj.Type = fun;
  1462. switch (fun) {
  1463. case "Login":
  1464. // obj.AgentGroup = "364";
  1465. obj.AgentType = "0";
  1466. Send();
  1467. break; //签入
  1468. case "MakeCall":
  1469. obj.Type = "SayFree";
  1470. Send();//备注:用户要求外呼立刻置闲
  1471. $(".hidCallID").val("");
  1472. $("#hidwhtype").val(fun);
  1473. whtp();
  1474. //obj.DestinationNumber = "1012";
  1475. break; //外呼
  1476. case "Meeting":
  1477. $("#hidwhtype").val(fun);
  1478. whtp();
  1479. //obj.DestinationNumber = "1012";
  1480. break; //多方通话
  1481. case "Transfer":
  1482. $("#hidwhtype").val(fun);
  1483. whtp();
  1484. //obj.DestinationNumber = "1012";
  1485. break; //转移
  1486. default:
  1487. Send();
  1488. break;
  1489. }
  1490. }
  1491. }
  1492. });
  1493. //知识库查询
  1494. $(".searIcon").click(function () {
  1495. loadZSK();
  1496. })
  1497. //历史记录查询
  1498. $(".searchbtn").click(function () {
  1499. loadOld();
  1500. })
  1501. //新增记录
  1502. $(".addjl").click(function () {
  1503. var type = $(".ldtp-cr ul.ld-service .cr-click").attr("itemtype");
  1504. if (type == '3') {
  1505. $(".addgd").show();
  1506. $(".tbold").hide();
  1507. } else if (type == '1') {
  1508. $(".zxbg").show();
  1509. $(".tbold").hide();
  1510. }
  1511. })
  1512. //关闭外呼弹屏
  1513. $(".closes").click(function () {
  1514. $(".WH").removeClass("fadeInDown").addClass("fadeOutUp");
  1515. $(".WH").addClass("hidens");
  1516. })
  1517. //键盘事件外呼
  1518. document.onkeydown = function (e) {
  1519. var theEvent = window.event || e;
  1520. var code = theEvent.keyCode || theEvent.which;
  1521. if (code == 13) {
  1522. $(".CallOut").click();
  1523. }
  1524. }
  1525. //外呼呼出
  1526. $(".CallOut").click(function (event) {
  1527. event.stopPropagation();
  1528. if ($("#Result").val()) {
  1529. $.ajax({
  1530. type: "get",
  1531. url: huayi.config.callcenter_url + "CallOutOpt/GetCallOutprefix",
  1532. async: true,
  1533. dataType: 'json',
  1534. data: {
  1535. token: $.cookie("token"),
  1536. phone: $("#Result").val()
  1537. },
  1538. success: function (result) {
  1539. // result = $.parseJSON(result);
  1540. if (result.state.toLowerCase() == "success") {
  1541. var guid = uuid();
  1542. obj.Type = $("#hidwhtype").val();
  1543. obj.DestinationNumber = result.data.phone;
  1544. obj.Header = result.data.fix;
  1545. top.obj.TaskType = "0"; //0:拨号外呼;1:95005回访外呼;2:电销回访外呼
  1546. top.obj.TaskPhoneID = ""; //回访的电话ID
  1547. top.obj.TaskID = guid; //回访记录编号
  1548. Send();
  1549. $('#Result').val('');
  1550. $(".WH").addClass("hidens");
  1551. }
  1552. }
  1553. });
  1554. // obj.Type = $("#hidwhtype").val();
  1555. // obj.DestinationNumber = $("#Result").val();
  1556. // Send();
  1557. }
  1558. })
  1559. //外呼弹屏数字键盘样式
  1560. $(".Num_ul div").mousedown(function () {
  1561. $(this).addClass("actives");
  1562. $(".img").removeClass("hidens");
  1563. }).mouseup(function () {
  1564. $(this).removeClass("actives");
  1565. })
  1566. //外呼弹屏数字键盘号码输入
  1567. $(".Num_ul li div").click(function () {
  1568. var rt = $("#Result").val() + "";
  1569. if (rt.length < 18) {
  1570. rt = rt + $(this).find("a").text();
  1571. $("#Result").val(rt);
  1572. }
  1573. });
  1574. //外呼弹屏数字键盘号码截取
  1575. $(".img").click(function () {
  1576. var Result = $("#Result").val() + "";
  1577. Result = Result.substr(0, Result.length - 1);
  1578. $("#Result").val(Result);
  1579. if (Result.length == 0) {
  1580. $(".img").addClass("hidens");
  1581. }
  1582. })
  1583. ////上传头像
  1584. //$(".yhtx").click(function () {
  1585. // $("#upFile").trigger("click");
  1586. //})
  1587. //$("#upFile").change(function () {
  1588. // uploadtx();
  1589. //})
  1590. //外呼电话列表
  1591. $(".bg_title li").click(function () {
  1592. $(this).addClass("lactive").siblings().removeClass("lactive");
  1593. loadWH();
  1594. })
  1595. $(".ty").click(function () {
  1596. loadWH();
  1597. })
  1598. //加载部门人员
  1599. $("#zrbmname").click(function () {
  1600. if ($(".zrbmmenu").is(":hidden")) {
  1601. $(".zrbmmenu").show();
  1602. } else {
  1603. $(".zrbmmenu").hide();
  1604. }
  1605. })
  1606. $("#clbmname").click(function () {
  1607. if ($(".clbmmenu").is(":hidden")) {
  1608. $(".clbmmenu").show();
  1609. } else {
  1610. $(".clbmmenu").hide();
  1611. }
  1612. })
  1613. $(".col-sm-3").mouseleave(function () {
  1614. $(".ztree").parent().hide();
  1615. })
  1616. //$("#zrbm").change(function () {
  1617. // getRY($("#zrid"), $("#zrbm").val());
  1618. //})
  1619. //$("#clbm").change(function () {
  1620. // getRY($("#clid"), $("#clbm").val());
  1621. //})
  1622. //创建投诉工单
  1623. $(".addts").click(function () {
  1624. var tslx = $("#tslx").val();
  1625. var tskh = $("#tskh").val();
  1626. var tsdh = $("#tsdh").val();
  1627. var zrbm = $("#zrbm").val();
  1628. var zrid = $("#zrid").val();
  1629. var clbm = $("#clbm").val();
  1630. var clid = $("#clid").val();
  1631. var khid = $("#khid").val();
  1632. var type = "3";
  1633. var cont = $("#cont").val();
  1634. var callid = $(".hidCallID").val();
  1635. if (!tslx) {
  1636. layer.confirm('请选择投诉类型!', {
  1637. btn: ['确定']
  1638. });
  1639. return;
  1640. }
  1641. if (!tskh) {
  1642. layer.confirm('请输入客户名称!', {
  1643. btn: ['确定']
  1644. });
  1645. return;
  1646. }
  1647. if (!tsdh) {
  1648. layer.confirm('请输入客户电话!', {
  1649. btn: ['确定']
  1650. });
  1651. return;
  1652. }
  1653. if (!cont) {
  1654. layer.confirm('请输入工单内容!', {
  1655. btn: ['确定']
  1656. });
  1657. return;
  1658. }
  1659. $.post(huayi.config.callcenter_url + 'CallInScreen/AddWorkOrder', {
  1660. tslx: tslx,
  1661. tskh: tskh,
  1662. tsdh: tsdh,
  1663. zrbm: zrbm,
  1664. zrid: zrid,
  1665. khid: khid,
  1666. clbm: clbm,
  1667. clid: clid,
  1668. type: type,
  1669. cont: cont,
  1670. callid: callid,
  1671. "token": $.cookie("token")
  1672. }, function (result) {
  1673. result = $.parseJSON(result);
  1674. if (result.state.toLowerCase() == "success") {
  1675. loadOld();
  1676. $("#zrbmname").val("");
  1677. $("#zrbm").val("");
  1678. $("#zrid").empty()
  1679. $("#clbmname").val("");
  1680. $("#clbm").val("");
  1681. $("#clid").empty()
  1682. $("#cont").val("");
  1683. layer.msg("创建工单成功");
  1684. }
  1685. })
  1686. })
  1687. //加载知识库
  1688. loadZSK();
  1689. //加载左侧导航菜单
  1690. loadMenu();
  1691. workcount();
  1692. setInterval(function () {
  1693. workcount();
  1694. }, huayi.config.menuworktime);
  1695. //客户资料
  1696. $('.khzl tbody>tr>td input').attr('readonly', true);
  1697. $('.save').hide();
  1698. $('.cancel').hide();
  1699. $('.edit').click(function () {
  1700. $('.save').show();
  1701. $('.cancel').show();
  1702. $('.edit').hide();
  1703. $('.khzl tbody>tr>td input').attr('readonly', false);
  1704. $('.khzl tbody>tr>td input').css('border-bottom', "1px solid #b3b3b3");
  1705. })
  1706. $('.cancel').click(function () {
  1707. $('.khzl tbody>tr>td input').attr('readonly', true);
  1708. $('.khzl tbody>tr>td input').css('border', "0");
  1709. $('.save').hide();
  1710. $('.cancel').hide();
  1711. $('.edit').show();
  1712. })
  1713. //保存客户
  1714. $(".save").click(function () {
  1715. var khid = $("#khid").val();
  1716. var khmc = $(".khmc").val();
  1717. var khbh = $(".khbh").val();
  1718. var tel1 = $(".ldtel1").val();
  1719. var tel2 = $(".ldtel2").val();
  1720. var tel3 = $(".ldtel3").val();
  1721. if (!khmc) {
  1722. layer.confirm('请输入客户名称!', {
  1723. btn: ['确定']
  1724. });
  1725. return;
  1726. }
  1727. $.post(huayi.config.callcenter_url + 'Customer/AddCustomer', {
  1728. cid: khid,
  1729. name: khmc,
  1730. code: khbh,
  1731. mobile: tel1,
  1732. telphone: tel2,
  1733. chargetelephone: tel3,
  1734. "token": $.cookie("token")
  1735. }, function (result) {
  1736. result = $.parseJSON(result);
  1737. if (result.state.toLowerCase() == "success") {
  1738. $("#khid").val(result.data);
  1739. $("#tskh").val(khmc);
  1740. layer.msg("保存成功");
  1741. $('.save').hide();
  1742. $('.cancel').hide();
  1743. $('.edit').show();
  1744. }
  1745. })
  1746. })
  1747. //关闭录音弹出
  1748. $(".setwin").click(function () {
  1749. $(".t-shade").removeClass("cx");
  1750. $('audio')[0].pause();
  1751. });
  1752. //修改密码开始
  1753. $('.shezhi').click(function () {
  1754. $('.personal').show();
  1755. $.ajax({
  1756. type: "get",
  1757. url: huayi.config.callcenter_url + "UserAccount/GetNowUser",
  1758. async: true,
  1759. dataType: 'json',
  1760. data: {
  1761. token: $.cookie("token")
  1762. },
  1763. success: function (result) {
  1764. if (result.state.toLowerCase() == "success") {
  1765. var con = result.data.user;
  1766. console.log(con)
  1767. $('.mgh').val(con.F_UserId);
  1768. $('.mn').val(con.F_UserName);
  1769. $('.mobile').val(con.F_Mobile);
  1770. $('.fenji').val($.cookie("extno"));
  1771. //$('.wxno').val(con.F_WXNo);
  1772. // $('.spwd').val(con.F_Password);
  1773. }
  1774. }
  1775. });
  1776. })
  1777. //tab切换
  1778. $('.perTab li').click(function () {
  1779. $(this).addClass('sel').siblings().removeClass('sel');
  1780. var index = $(this).index();
  1781. $('.perTab_con').children('div').eq(index).show().siblings().hide();
  1782. })
  1783. //编辑个人资料
  1784. $('.grzl tbody>tr>td input.zhidu').attr('readonly', true);
  1785. $('.grbj').click(function () {
  1786. $('.grzl tbody>tr>td input.zhidu').attr('readonly', false);
  1787. $('.grzl tbody>tr>td input.zhidu').css('border-bottom', "1px solid #b3b3b3");
  1788. })
  1789. //取消编辑
  1790. $('.grqx').click(function () {
  1791. $('.grzl tbody>tr>td input.zhidu').attr('readonly', true);
  1792. $('.grzl tbody>tr>td input.zhidu').css('border-bottom', "none");
  1793. })
  1794. //关闭按钮
  1795. $('.ptr').click(function () {
  1796. $('.personal').hide();
  1797. })
  1798. $('.grbtn').click(function () {
  1799. var gh = $('.mgh').val();
  1800. var xm = $('.mn').val();
  1801. var ymm = $('.spwd').val();
  1802. var xmm = $('.npwd').val();
  1803. var qmm = $('.epwd').val();
  1804. if (xmm !== qmm) {
  1805. $('.wrong').show();
  1806. $('.npwd').val('')
  1807. $('.epwd').val('')
  1808. } else if (xmm == '') {
  1809. layer.msg("密码不允许为空!");
  1810. } else {
  1811. $('.wrong').hide();
  1812. $('.grzl tbody>tr>td input').attr('readonly', true);
  1813. $('.grzl tbody>tr>td input').css('border-bottom', "none");
  1814. $.ajax({
  1815. type: "post",
  1816. url: huayi.config.callcenter_url + "UserAccount/UpdatePwd",
  1817. async: true,
  1818. dataType: 'json',
  1819. data: {
  1820. token: $.cookie("token"),
  1821. usercode: gh,
  1822. pwd: xmm,
  1823. oldpwd: ymm,
  1824. mobile: $('.mobile').val()
  1825. },
  1826. success: function (result) {
  1827. // result = $.parseJSON(result);
  1828. if (result.state.toLowerCase() == "success") {
  1829. layer.msg("修改成功!");
  1830. }
  1831. }
  1832. });
  1833. }
  1834. })
  1835. //图片裁剪
  1836. var o = $(".image-crop > img");
  1837. $(o).cropper({
  1838. aspectRatio: 1 / 1,
  1839. resizable: false,
  1840. dragCrop: false,
  1841. preview: ".img-preview",
  1842. done: function () { }
  1843. });
  1844. var r = $("#inputImage");
  1845. if (window.FileReader) {
  1846. r.change(function () {
  1847. var e, i = new FileReader,
  1848. t = this.files;
  1849. if (t.length && (e = t[0], /^image\/\w+$/.test(e.type))) {
  1850. i.readAsDataURL(e);
  1851. i.onload = function () {
  1852. r.val("");
  1853. o.cropper("reset", !0).cropper("replace", this.result);
  1854. }
  1855. } else {
  1856. alert("请选择图片文件");
  1857. }
  1858. });
  1859. $("#setDrag").click(function () {
  1860. o.cropper("setDragMode", "crop");
  1861. var img = o.cropper("getDataURL");
  1862. $.post(huayi.config.callcenter_url + "Index/UploadTX64", {
  1863. dataurl: encodeURIComponent(img),
  1864. "token": $.cookie("token")
  1865. }, function (result) {
  1866. result = $.parseJSON(result);
  1867. if (result.state.toLowerCase() == "success") {
  1868. $(".yhtx").attr("src", huayi.config.callcenter_url.substr(0, huayi.config.callcenter_url.length - 1) + result.data);
  1869. layer.msg("上传成功");
  1870. $('.personal').hide();
  1871. }
  1872. })
  1873. });
  1874. $("#zoomIn").click(function () {
  1875. o.cropper("zoom", .1)
  1876. });
  1877. $("#zoomOut").click(function () {
  1878. o.cropper("zoom", -.1)
  1879. });
  1880. $("#rotateLeft").click(function () {
  1881. o.cropper("rotate", 45)
  1882. });
  1883. $("#rotateRight").click(function () {
  1884. o.cropper("rotate", -45)
  1885. });
  1886. } else {
  1887. r.addClass("hide");
  1888. }
  1889. $(".add_").click(function () {
  1890. var tskh = $("#zxr_").val(); //咨询人:
  1891. var tsdh = $("#zxdh_").val(); //咨询电话
  1892. var cont = $("#zxnr_").val(); //咨询内容
  1893. var clcont = $("#clnr_").val(); //内容
  1894. var type = "1";
  1895. if (!clcont) {
  1896. layer.confirm('请输入处理内容!', {
  1897. btn: ['确定']
  1898. });
  1899. return;
  1900. }
  1901. $.post(huayi.config.callcenter_url + 'CallInScreen/AddWorkOrder', {
  1902. tskh: tskh,
  1903. tsdh: tsdh,
  1904. cont: cont,
  1905. clcont: clcont,
  1906. type: type,
  1907. "token": $.cookie("token")
  1908. }, function (result) {
  1909. result = $.parseJSON(result);
  1910. if (result.state.toLowerCase() == "success") {
  1911. loadOld();
  1912. $("#zxr_").val(''); //咨询人:
  1913. $("#zxdh_").val(''); //咨询电话
  1914. $("#zxnr_").val(''); //咨询内容
  1915. $("#clnr_").val(''); //内容
  1916. layer.msg("创建工单成功");
  1917. }
  1918. })
  1919. })
  1920. //拖拽事件
  1921. //拖动事件
  1922. var box = document.getElementById("box");
  1923. //鼠标按下的函数
  1924. box.onmousedown = function (ev) {
  1925. var oEvent = ev || event;
  1926. //求出鼠标和box的位置差值
  1927. var x = oEvent.clientX - box.offsetLeft;
  1928. var y = oEvent.clientY - box.offsetTop;
  1929. console.log(x);
  1930. //鼠标移动的函数
  1931. //把事件加在document上,解决因为鼠标移动太快时,
  1932. //鼠标超过box后就没有了拖拽的效果的问题
  1933. document.onmousemove = function (ev) {
  1934. var oEvent = ev || event;
  1935. //保证拖拽框一直保持在浏览器窗口内部,不能被拖出的浏览器窗口的范围
  1936. var l = oEvent.clientX - x;
  1937. var t = oEvent.clientY - y;
  1938. if (l < 0) {
  1939. l = 0;
  1940. } else if (l > document.documentElement.clientWidth - box.offsetWidth) {
  1941. l = document.documentElement.clientWidth - box.offsetWidth;
  1942. }
  1943. if (t < 0) {
  1944. t = 0;
  1945. } else if (t > document.documentElement.clientHeight - box.offsetHeight) {
  1946. t = document.documentElement.clientHeight - box.offsetHeight;
  1947. }
  1948. box.style.left = l + "px";
  1949. box.style.top = t + "px";
  1950. }
  1951. //鼠标抬起的函数
  1952. document.onmouseup = function () {
  1953. document.onmousemove = null;
  1954. document.onmouseup = null;
  1955. }
  1956. //火狐浏览器在拖拽空div时会出现bug
  1957. //return false阻止默认事件,解决火狐的bug
  1958. return false;
  1959. }
  1960. //来电弹屏
  1961. laydate.skin('molv');
  1962. //laydate({
  1963. // elem: '#startTime',
  1964. // event: 'focus'
  1965. //});
  1966. //laydate({
  1967. // elem: '#endTime',
  1968. // event: 'focus'
  1969. //});
  1970. //laydate({
  1971. // elem: '#bx_startTime',
  1972. // event: 'focus'
  1973. //});
  1974. //laydate({
  1975. // elem: '#bx_endTime',
  1976. // event: 'focus'
  1977. //});
  1978. laydate({
  1979. elem: '#old_startTime',
  1980. event: 'focus'
  1981. });
  1982. laydate({
  1983. elem: '#old_endTime',
  1984. event: 'focus'
  1985. });
  1986. laydate({
  1987. elem: '#con_startTime',
  1988. event: 'focus'
  1989. });
  1990. laydate({
  1991. elem: '#con_endTime',
  1992. event: 'focus'
  1993. });
  1994. //弹屏右侧切换效果
  1995. $(".ldtp-cr ul.ld-service li").click(function () {
  1996. $(this).addClass("cr-click").siblings().removeClass("cr-click");
  1997. //var inedx = $(this).index();
  1998. //console.log(inedx);
  1999. //var indexCon = $('.ld-sercon>div').eq(inedx);
  2000. //indexCon.show();
  2001. //indexCon.siblings().hide();
  2002. //indexCon.find('.ld-sercon-con').show();
  2003. //indexCon.find('.second-con').hide();
  2004. //indexCon.find('.addjl').click(function() {
  2005. // var par = $(this).parent().parent();
  2006. // par.hide().siblings().show();
  2007. //})
  2008. loadOld();
  2009. });
  2010. $('.pre-add').click(function () {
  2011. var par = $(this).parent().parent();
  2012. par.hide().siblings().show();
  2013. })
  2014. //最大化 最小化效果
  2015. //最小化
  2016. $('.minClosed').click(function () {
  2017. $('.ldtp-con').removeClass('fadeInDown');
  2018. $('.ldtp-con').addClass('fadeOutUp');
  2019. $('.ldtp-con').css("display", "none");
  2020. $('.maxOpen').show();
  2021. $('.maxOpen').addClass('fadeInDown');
  2022. });
  2023. //最大化
  2024. $('.maxOpen').click(function () {
  2025. $('.ldtp-con').removeClass('fadeOutUp');
  2026. $('.ldtp-con').addClass('fadeInDown');
  2027. $('.ldtp-con').css("display", "block");
  2028. $('.maxOpen').hide();
  2029. $('.maxOpen').removeClass('fadeInDown');
  2030. $('.maxOpen').addClass('fadeInDown');
  2031. $('.first').removeClass('first');
  2032. $('.ldtp-con').addClass('first');
  2033. })
  2034. //关闭弹框
  2035. $(".Bacha").click(function () {
  2036. $('.ldtp-con').removeClass('fadeInDown');
  2037. $('.ldtp-con').addClass('fadeOutUp');
  2038. $('.ldtp-con').css("display", "none");
  2039. obj.Type = "SayFree";
  2040. Send();
  2041. })
  2042. //顶部小头像
  2043. var little_pic = $('.head-pic .hp-box img').attr("src");
  2044. //console.log(little_pic);
  2045. $('.maxOpen li .photo img').attr("src", little_pic);
  2046. //$('.ldtp-cr').scroll(function() {
  2047. // var scheit = $('.ldtp-cr').scrollTop();
  2048. // //console.log(scheit);
  2049. // if (scheit > 10) {
  2050. // $('.minClosed').css({
  2051. // 'background': '#000',
  2052. // 'top': '13px',
  2053. // 'right': '15px'
  2054. // });
  2055. // $('.minClosed a').css('background', '#fff');
  2056. // } else {
  2057. // $('.minClosed').css({
  2058. // 'background': '',
  2059. // 'top': '0',
  2060. // 'right': '80px'
  2061. // }) ;
  2062. // $('.minClosed a').css('background', '#000');
  2063. // }
  2064. //})
  2065. //点击左侧菜单来电弹屏显示
  2066. $('.tantan').click(function () {
  2067. $('.maxOpen').trigger("click");
  2068. $('.head-pic .lahei .la-before').show();
  2069. $('.head-pic .lahei .la-after').hide();
  2070. loadOld();
  2071. })
  2072. //点击挂断
  2073. $('.head-pic .td-call .take').click(function () {
  2074. //$('.ldtp-con').css("display", 'none');
  2075. obj.Type = "DropCall";
  2076. Send();
  2077. });
  2078. //点击拉黑事件
  2079. $('.head-pic .lahei .la-before').click(function () {
  2080. if (!$(".hidTel").val()) {
  2081. layer.confirm('来电号码为空!', {
  2082. btn: ['确定']
  2083. });
  2084. return;
  2085. }
  2086. $("#time-word").val('');
  2087. $('.ldtp-con .hei-list').show();
  2088. //$('.ldtp-con .hei-list').removeClass('bounceOutUp');
  2089. //$('.ldtp-con .hei-list').addClass('bounceIn');
  2090. })
  2091. //拉黑输入框事件
  2092. $('.hei-list .bacha').click(function () {
  2093. //$('.ldtp-con .hei-list').removeClass('bounceIn');
  2094. //$('.ldtp-con .hei-list').addClass('bounceOutUp');
  2095. $('.ldtp-con .hei-list').hide();
  2096. $("#time-word").val('');
  2097. })
  2098. var reg = /^\+?[1-9][0-9]*$/;
  2099. $('#bc').click(function () {
  2100. var n = $("#time-word").val();
  2101. var val = $("input[name='time']:checked").val();
  2102. if (n) {
  2103. if (!(reg.test(n))) {
  2104. layer.confirm('请输入整数时间!', {
  2105. btn: ['确定']
  2106. });
  2107. return;
  2108. }
  2109. }
  2110. else {
  2111. if (val == '4') {
  2112. n = 0;
  2113. }
  2114. else {
  2115. layer.confirm('请输入整数时间!', {
  2116. btn: ['确定']
  2117. });
  2118. return;
  2119. }
  2120. }
  2121. $.post(huayi.config.callcenter_url + 'CallInScreen/AddBlack', { tel: $(".hidTel").val(), num: n, type: val, "token": $.cookie("token") }, function (result) {
  2122. result = $.parseJSON(result);
  2123. if (result.state.toLowerCase() == "success") {
  2124. layer.msg("拉入黑名单成功");
  2125. $('.la-shichang .blackTime').html(result.data);
  2126. //$('.ldtp-con .hei-list').removeClass('bounceIn');
  2127. //$('.ldtp-con .hei-list').addClass('bounceOutUp');
  2128. $('.ldtp-con .hei-list').hide();
  2129. $('.head-pic .lahei .la-before').hide();
  2130. $('.head-pic .lahei .la-after').show();
  2131. $('.head-pic .lahei .retur').show();
  2132. }
  2133. })
  2134. })
  2135. $('.la-after').click(function () {
  2136. if (!$(".hidTel").val()) {
  2137. layer.confirm('来电号码为空!', {
  2138. btn: ['确定']
  2139. });
  2140. return;
  2141. }
  2142. $("#time-word").val('');
  2143. $('.ldtp-con .hei-list').show();
  2144. $('.ldtp-con .hei-list').removeClass('bounceOutUp');
  2145. $('.ldtp-con .hei-list').addClass('bounceIn');
  2146. })
  2147. $('.head-pic .lahei .retur').click(function () {
  2148. $.getJSON(huayi.config.callcenter_url + 'CallInScreen/DelBlack', { tel: $(".hidTel").val(), "token": $.cookie("token") }, function (result) {
  2149. if (result.state.toLowerCase() == "success") {
  2150. layer.msg("取消黑名单成功");
  2151. $('.head-pic .lahei .retur').hide();
  2152. $('.head-pic .lahei .la-after').hide();
  2153. $('.head-pic .lahei .la-before').show();
  2154. }
  2155. })
  2156. })
  2157. })
  2158. //菜单数字
  2159. function workcount() {
  2160. $.getJSON(huayi.config.callcenter_url + 'Index/GetWorkOrderCount', {
  2161. "token": $.cookie("token")
  2162. }, function (result) {
  2163. if (result.state.toLowerCase() == "success") {
  2164. $(".dpd").text(result.data.dpd);
  2165. $(".djd").text(result.data.djd);
  2166. $(".dcl").text(result.data.dcl);
  2167. }
  2168. })
  2169. }
  2170. //上传头像
  2171. function uploadtx() {
  2172. if (document.getElementById("upFile").files.length > 0) {
  2173. var formData = new FormData();
  2174. formData.append("upFile", document.getElementById("upFile").files[0]);
  2175. formData.append("token", $.cookie("token"));
  2176. $.ajax({
  2177. url: huayi.config.callcenter_url + "Index/UploadTX",
  2178. type: "POST",
  2179. data: formData,
  2180. /**
  2181. *必须false才会自动加上正确的Content-Type
  2182. */
  2183. contentType: false,
  2184. /**
  2185. * 必须false才会避开jQuery对 formdata 的默认处理
  2186. * XMLHttpRequest会对 formdata 进行正确的处理
  2187. */
  2188. processData: false,
  2189. success: function (result) {
  2190. document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
  2191. $("#upFile").change(function () {
  2192. uploadtx();
  2193. });
  2194. var r = $.parseJSON(result);
  2195. if (r.state.toLowerCase() == "success") {
  2196. $(".yhtx").attr("src", huayi.config.callcenter_url.substr(0, huayi.config.callcenter_url.length - 1) + r.data);
  2197. layer.msg("上传成功");
  2198. }
  2199. }
  2200. });
  2201. } else {
  2202. layer.confirm('请上传文件!', {
  2203. btn: ['确定']
  2204. });
  2205. }
  2206. }
  2207. //获取历史记录
  2208. function loadOld() {
  2209. $(".addgd").hide();
  2210. $(".tbold").show();
  2211. $(".zxbg").hide();
  2212. var type = $(".ldtp-cr ul.ld-service .cr-click").attr("itemtype");
  2213. if (type != '0') {
  2214. $(".complain").hide();
  2215. $(".complain").eq(1).show();
  2216. //先销毁表格
  2217. $('#orderlist').bootstrapTable('destroy');
  2218. //初始化表格,动态从服务器加载数据
  2219. $("#orderlist").bootstrapTable({
  2220. method: "get", //使用get请求到服务器获取数据
  2221. url: huayi.config.callcenter_url + "WorkOrder/GetListAll", //获取数据的Servlet地址
  2222. striped: true, //表格显示条纹
  2223. pagination: true, //启动分页
  2224. pageSize: 5, //每页显示的记录数
  2225. pageNumber: 1, //当前第几页
  2226. pageList: [5, 10, 50, 100], //记录数可选列表
  2227. search: false, //是否启用查询
  2228. showColumns: false, //显示下拉框勾选要显示的列
  2229. showRefresh: false, //显示刷新按钮
  2230. sidePagination: "server", //表示服务端请求
  2231. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  2232. //设置为limit可以获取limit, offset, search, sort, order
  2233. queryParamsType: "undefined",
  2234. queryParams: function queryParams(params) { //设置查询参数
  2235. var param = {
  2236. page: params.pageNumber,
  2237. pagesize: params.pageSize,
  2238. tel: $(".hidTel").val(),
  2239. type: type,
  2240. starttime: $("#con_startTime").val(),
  2241. endtime: $("#con_endTime").val(),
  2242. token: $.cookie("token")
  2243. };
  2244. return param;
  2245. },
  2246. onLoadSuccess: function () { //加载成功时执行
  2247. //layer.msg("加载成功");
  2248. },
  2249. onLoadError: function () { //加载失败时执行
  2250. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  2251. }
  2252. });
  2253. } else {
  2254. $(".complain").hide();
  2255. $(".complain").eq(0).show();
  2256. //先销毁表格
  2257. $('#oldlist').bootstrapTable('destroy');
  2258. //初始化表格,动态从服务器加载数据
  2259. $("#oldlist").bootstrapTable({
  2260. method: "get", //使用get请求到服务器获取数据
  2261. url: huayi.config.callcenter_url + "CallInScreen/GetOldList", //获取数据的Servlet地址
  2262. striped: true, //表格显示条纹
  2263. pagination: true, //启动分页
  2264. pageSize: 5, //每页显示的记录数
  2265. pageNumber: 1, //当前第几页
  2266. pageList: [5, 10, 50, 100], //记录数可选列表
  2267. search: false, //是否启用查询
  2268. showColumns: false, //显示下拉框勾选要显示的列
  2269. showRefresh: false, //显示刷新按钮
  2270. sidePagination: "server", //表示服务端请求
  2271. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  2272. //设置为limit可以获取limit, offset, search, sort, order
  2273. queryParamsType: "undefined",
  2274. queryParams: function queryParams(params) { //设置查询参数
  2275. var param = {
  2276. page: params.pageNumber,
  2277. pagesize: params.pageSize,
  2278. tel: $(".hidTel").val(),
  2279. starttime: $("#old_startTime").val(),
  2280. endtime: $("#old_endTime").val(),
  2281. token: $.cookie("token")
  2282. };
  2283. return param;
  2284. },
  2285. onLoadSuccess: function () { //加载成功时执行
  2286. //layer.msg("加载成功");
  2287. },
  2288. onLoadError: function () { //加载失败时执行
  2289. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  2290. }
  2291. });
  2292. }
  2293. if (type == '3') {
  2294. getLX($("#tslx"), "TSLX");
  2295. getBM($("#zrbmtree"));
  2296. getBM($("#clbmtree"));
  2297. }
  2298. }
  2299. function GetCallState(val) {
  2300. if (val == '1') {
  2301. return '已接通';
  2302. } else {
  2303. return '未接通';
  2304. }
  2305. }
  2306. //音频
  2307. function setCode(val) {
  2308. if (val) {
  2309. return '<div class="imgs" style="cursor: pointer;">' +
  2310. '<img src="./img/vice.png" alt="" onclick= ck(this) item="' + val + '" />' +
  2311. '</div>';
  2312. } else {
  2313. return '';
  2314. }
  2315. }
  2316. //录音
  2317. function ck(val) {
  2318. var path = $(val).attr("item");
  2319. $(".t-shade").addClass("cx");
  2320. $(".Ly_box").empty();
  2321. $(".down").attr("href", path);
  2322. $('<audio style="width: 100%;"class=" " src="' + path + '" loop="loop" controls="controls" ></audio>').appendTo(".Ly_box");
  2323. }
  2324. function GetDealState(val) {
  2325. if (val == '1') {
  2326. return '已处理';
  2327. } else {
  2328. return '未处理';
  2329. }
  2330. }
  2331. function GetStateName(val) {
  2332. var str = '';
  2333. switch (val + '') {
  2334. case '0':
  2335. str = "待指派";
  2336. break;
  2337. case '1':
  2338. str = "处理中";
  2339. break;
  2340. case '2':
  2341. str = "已完结";
  2342. break;
  2343. }
  2344. return str;
  2345. }
  2346. function GetCont(val) {
  2347. var str = '<div '
  2348. if (val.length > 20) {
  2349. str = str + ' title="' + val + '" ';
  2350. val = val.substr(0, 20) + "...";
  2351. }
  2352. return str + '>' + val + '</div>';
  2353. }
  2354. //获取知识库
  2355. function loadZSK() {
  2356. $.getJSON(huayi.config.callcenter_url + 'CallInScreen/GetZSKList', {
  2357. "keywords": $(".search").val(),
  2358. "token": $.cookie("token")
  2359. }, function (result) {
  2360. if (result.state.toLowerCase() == "success") {
  2361. $(".ldcr-bottom .detail-con ul").empty();
  2362. $(result.data).each(function (i, n) {
  2363. var html = '<li>' +
  2364. ' <div class="zhishi-title clearfix">' +
  2365. ' <a href="javascript:void(0);" >' + n.F_Title + '</a>' +
  2366. ' <em >' + n.F_CreateOn + '</em>' +
  2367. ' </div>' +
  2368. ' <div class="explancon">' +
  2369. n.F_Content +
  2370. ' </div>' +
  2371. '</li>';
  2372. $(html).appendTo($(".ldcr-bottom .detail-con ul")).find(".zhishi-title").click(function (event) {
  2373. event.stopPropagation();
  2374. if ($(this).hasClass("active")) {
  2375. $(this).removeClass("active")
  2376. } else {
  2377. $(".zhishi-title").removeClass("active");
  2378. $(this).addClass("active");
  2379. }
  2380. })
  2381. })
  2382. }
  2383. })
  2384. }
  2385. //获取类型
  2386. function getLX(obj, type) {
  2387. obj.empty();
  2388. $.getJSON(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
  2389. "flag": type,
  2390. "token": $.cookie("token")
  2391. }, function (result) {
  2392. if (result.state.toLowerCase() == "success") {
  2393. $(result.data).each(function (i, n) {
  2394. obj.append('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>');
  2395. })
  2396. }
  2397. })
  2398. }
  2399. //获取部门
  2400. var setting = {
  2401. data: {
  2402. key: {
  2403. name: "F_DeptName"
  2404. },
  2405. simpleData: {
  2406. enable: true,
  2407. idKey: "F_DeptId",
  2408. pIdKey: "F_ParentId",
  2409. rootPId: 0
  2410. }
  2411. },
  2412. callback: {
  2413. onClick: zTreeOnClick
  2414. }
  2415. };
  2416. function getBM(obj) {
  2417. $.getJSON(huayi.config.callcenter_url + 'Department/GetAllList', {
  2418. "token": $.cookie("token")
  2419. }, function (result) {
  2420. if (result.state.toLowerCase() == "success") {
  2421. $.fn.zTree.init(obj, setting, result.data);
  2422. }
  2423. })
  2424. }
  2425. function zTreeOnClick(event, treeId, treeNode) {
  2426. var obj = $("#" + event.data.treeId).parent();
  2427. obj.parent().find("input").eq(0).val(treeNode.F_DeptName);
  2428. obj.parent().find("input").eq(1).val(treeNode.F_DeptId);
  2429. obj.hide();
  2430. if (event.data.treeId == "zrbmtree") {
  2431. getRY($("#zrid"), $("#zrbm").val());
  2432. }
  2433. if (event.data.treeId == "clbmtree") {
  2434. getRY($("#clid"), $("#clbm").val());
  2435. }
  2436. };
  2437. //获取人员
  2438. function getRY(obj, deptid) {
  2439. obj.empty();
  2440. obj.append('<option value="">--请选择--</option>');
  2441. $.getJSON(huayi.config.callcenter_url + 'UserAccount/GetDeptUserList', {
  2442. "deptid": deptid,
  2443. "token": $.cookie("token")
  2444. }, function (result) {
  2445. if (result.state.toLowerCase() == "success") {
  2446. $(result.data).each(function (i, n) {
  2447. obj.append('<option value="' + n.F_UserId + '">' + n.F_UserName + '</option>');
  2448. })
  2449. }
  2450. })
  2451. }
  2452. //外呼弹屏
  2453. function whtp() {
  2454. $("#Result").val("");
  2455. if ($(".WH").hasClass("fadeOutUp")) {
  2456. $(".WH").removeClass("fadeOutUp").addClass("fadeInDown");
  2457. }
  2458. $(".WH").removeClass("hidens");
  2459. $('.first').removeClass('first');
  2460. $('.WH').addClass('first');
  2461. loadWH();
  2462. }
  2463. //加载外呼电话列表
  2464. function loadWH() {
  2465. $(".phonediv").hide();
  2466. var n = $(".bg_title .lactive").attr("itemid");
  2467. switch (n) {
  2468. case '0':
  2469. var obj = $(".phonediv").eq(0);
  2470. obj.show();
  2471. //先销毁表格
  2472. var table = obj.find(".phonelist");
  2473. table.bootstrapTable('destroy');
  2474. //初始化表格,动态从服务器加载数据
  2475. table.bootstrapTable({
  2476. method: "get", //使用get请求到服务器获取数据
  2477. url: huayi.config.callcenter_url + "CallOutScreen/GetPhoneList", //获取数据的Servlet地址
  2478. striped: true, //表格显示条纹
  2479. pagination: true, //启动分页
  2480. pageSize: 10, //每页显示的记录数
  2481. pageNumber: 1, //当前第几页
  2482. pageList: [10, 20, 50, 100], //记录数可选列表
  2483. search: false, //是否启用查询
  2484. showColumns: false, //显示下拉框勾选要显示的列
  2485. showRefresh: false, //显示刷新按钮
  2486. sidePagination: "server", //表示服务端请求
  2487. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  2488. //设置为limit可以获取limit, offset, search, sort, order
  2489. queryParamsType: "undefined",
  2490. queryParams: function queryParams(params) { //设置查询参数
  2491. var param = {
  2492. page: params.pageNumber,
  2493. pagesize: params.pageSize,
  2494. tel: $("#lastphone").val(),
  2495. token: $.cookie("token")
  2496. };
  2497. return param;
  2498. },
  2499. onLoadSuccess: function () { //加载成功时执行
  2500. //layer.msg("加载成功");
  2501. },
  2502. onLoadError: function () { //加载失败时执行
  2503. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  2504. }
  2505. });
  2506. break;
  2507. case '1':
  2508. var obj = $(".phonediv").eq(1);
  2509. obj.show();
  2510. var table = obj.find(".phonelist");
  2511. table.bootstrapTable('destroy');
  2512. //初始化表格,动态从服务器加载数据
  2513. table.bootstrapTable({
  2514. method: "get", //使用get请求到服务器获取数据
  2515. url: huayi.config.callcenter_url + "CallOutScreen/GetUserList", //获取数据的Servlet地址
  2516. striped: true, //表格显示条纹
  2517. pagination: true, //启动分页
  2518. pageSize: 10, //每页显示的记录数
  2519. pageNumber: 1, //当前第几页
  2520. pageList: [10, 20, 50, 100], //记录数可选列表
  2521. search: false, //是否启用查询
  2522. showColumns: false, //显示下拉框勾选要显示的列
  2523. showRefresh: false, //显示刷新按钮
  2524. sidePagination: "server", //表示服务端请求
  2525. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  2526. //设置为limit可以获取limit, offset, search, sort, order
  2527. queryParamsType: "undefined",
  2528. queryParams: function queryParams(params) { //设置查询参数
  2529. var param = {
  2530. page: params.pageNumber,
  2531. pagesize: params.pageSize,
  2532. tel: $("#gsphone").val(),
  2533. name: $("#gsname").val(),
  2534. token: $.cookie("token")
  2535. };
  2536. return param;
  2537. },
  2538. onLoadSuccess: function () { //加载成功时执行
  2539. //layer.msg("加载成功");
  2540. },
  2541. onLoadError: function () { //加载失败时执行
  2542. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  2543. }
  2544. });
  2545. break;
  2546. case '2':
  2547. var obj = $(".phonediv").eq(2);
  2548. obj.show();
  2549. var table = obj.find(".phonelist");
  2550. table.bootstrapTable('destroy');
  2551. //初始化表格,动态从服务器加载数据
  2552. table.bootstrapTable({
  2553. method: "get", //使用get请求到服务器获取数据
  2554. url: huayi.config.callcenter_url + "CallOutScreen/GetCustomerList", //获取数据的Servlet地址
  2555. striped: true, //表格显示条纹
  2556. pagination: true, //启动分页
  2557. pageSize: 10, //每页显示的记录数
  2558. pageNumber: 1, //当前第几页
  2559. pageList: [10, 20, 50, 100], //记录数可选列表
  2560. search: false, //是否启用查询
  2561. showColumns: false, //显示下拉框勾选要显示的列
  2562. showRefresh: false, //显示刷新按钮
  2563. sidePagination: "server", //表示服务端请求
  2564. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  2565. //设置为limit可以获取limit, offset, search, sort, order
  2566. queryParamsType: "undefined",
  2567. queryParams: function queryParams(params) { //设置查询参数
  2568. var param = {
  2569. page: params.pageNumber,
  2570. pagesize: params.pageSize,
  2571. tel: $("#khphone").val(),
  2572. name: $("#khname").val(),
  2573. token: $.cookie("token")
  2574. };
  2575. return param;
  2576. },
  2577. onLoadSuccess: function () { //加载成功时执行
  2578. //layer.msg("加载成功");
  2579. },
  2580. onLoadError: function () { //加载失败时执行
  2581. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  2582. }
  2583. });
  2584. break;
  2585. }
  2586. }
  2587. function view(val) {
  2588. var str = '';
  2589. if (val) {
  2590. str = '<a onclick="call(\'' + val + '\')">' + val + '</a>';
  2591. }
  2592. return str;
  2593. }
  2594. function call(val) {
  2595. $("#Result").val(val);
  2596. $(".img").removeClass("hidens");
  2597. }
  2598. function logout() {
  2599. $.ajax({
  2600. url: huayi.config.callcenter_url + "Login/Logout",
  2601. data: {
  2602. token: $.cookie("token")
  2603. },
  2604. dataType: "json",
  2605. success: function (res) {
  2606. if (res.state) {
  2607. location.href = "./login.html";
  2608. }
  2609. }
  2610. });
  2611. }
  2612. //加载左侧导航菜单
  2613. function loadMenu() {
  2614. $.ajaxSettings.async = false;
  2615. $.getJSON(huayi.config.callcenter_url + 'Index/GetMenu', { "token": $.cookie("token") }, function (result) {
  2616. $.ajaxSettings.async = true;
  2617. if (result.state.toLowerCase() == "success") {
  2618. var data = result.data;
  2619. var _html = "";
  2620. $.each(data, function (i) {
  2621. var row = data[i];
  2622. if (row.F_ParentID == "0") {
  2623. _html += '<li>';
  2624. _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>';
  2625. var childNodes = row.ChildNodes;//二级
  2626. if (childNodes.length > 0) {
  2627. _html += '<ul class="nav nav-second-level">';
  2628. $.each(childNodes, function (i) {
  2629. var subrow = childNodes[i];
  2630. var childNodsThird = subrow.ChildNodes;//三级
  2631. if (childNodsThird.length > 0) {
  2632. _html += '<li>';
  2633. _html += '<a href="' + subrow.F_OptUrl + '">';
  2634. _html += '<span class="nav-label">' + subrow.F_ModuleName + '</span>';
  2635. _html += '<span class="fa arrow"></span>';
  2636. _html += '</a>';
  2637. _html += '<ul class="nav nav-third-level">';
  2638. $.each(childNodsThird, function (i) {
  2639. var subrowThird = childNodsThird[i];
  2640. _html += '<li>';
  2641. _html += '<a class="J_menuItem" data-id="Menu_' + subrowThird.F_ModuleId + '" href="' + subrowThird.F_OptUrl + '" >' + subrowThird.F_ModuleName + '</a>';
  2642. _html += '</li>';
  2643. });
  2644. _html += '</ul>';
  2645. }
  2646. else {
  2647. _html += '<li>';
  2648. _html += '<a class="J_menuItem" data-id="Menu_' + subrow.F_ModuleId + '" href="' + subrow.F_OptUrl + '" >' + subrow.F_ModuleName + '</a>';
  2649. if (subrow.F_Button != '') {
  2650. _html += '<span class="' + subrow.F_Button + '"></span>';
  2651. }
  2652. _html += '</li>';
  2653. }
  2654. });
  2655. _html += '</ul>';
  2656. }
  2657. _html += '</li>';
  2658. }
  2659. });
  2660. // $("#sidebar-nav ul").prepend(_html);
  2661. $(_html).appendTo("#side-menu");
  2662. }
  2663. else {
  2664. window.location.href = "/login.html";
  2665. }
  2666. })
  2667. }
  2668. ////跳转
  2669. function Jumps() {
  2670. //window.parent.frames[ "iframe0"].location.reload();
  2671. $("iframe:visible")[0].src = "widgets.html"
  2672. }
  2673. </script>
  2674. <script src="./js/plugins/metisMenu/jquery.metisMenu.js"></script>
  2675. <script src="./js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
  2676. <script src="./js/plugins/layer/layer.min.js"></script>
  2677. <script src="./js/hplus.min.js?v=4.1.0"></script>
  2678. <script src="./js/contabs.min.js"></script>
  2679. </body>
  2680. </html>