安图前端代码

index.html 117KB

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