Sin descripción

newIndex.js 50KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888
  1. /*
  2. 一级大屏
  3. */
  4. var img = './image/frame.png';
  5. var numscroll = [];
  6. var numscroll1 = [];
  7. var trafficState = 0
  8. var trafficData = [];
  9. //时段话务
  10. $('.act').html('当日数据')
  11. //关闭按钮
  12. $('.close_icon').click(function () {
  13. $('.bulletFrame').hide();
  14. $('.bulletFrameT').hide();
  15. if ($('.bulletFrame').css('display') == 'none') {
  16. $('.body').css('opacity', '1')
  17. }
  18. if ($('.bulletFrameT').css('display') == 'none') {
  19. $('.body').css('opacity', '1')
  20. }
  21. })
  22. //关闭按钮退回工单列表
  23. $('.backProcedure').click(function () {
  24. $('.workDetails').show();
  25. $('.workDetails').siblings().hide()
  26. })
  27. $('.back_icon').click(function () {
  28. $('.bulletFrameT').hide();
  29. if ($('.bulletFrameT').css('display') == 'none') {
  30. $('.body').css('opacity', '1')
  31. }
  32. })
  33. $('.closeMap_icon').click(function(){
  34. $('.bulletFrame').hide();
  35. $('.bulletFrameT').hide();
  36. if ($('.bulletFrame').css('display') == 'none') {
  37. $('.body').css('opacity', '1')
  38. }
  39. if ($('.bulletFrameT').css('display') == 'none') {
  40. $('.body').css('opacity', '1')
  41. }
  42. $('.type').css({
  43. 'background': 'url(./image/second/btn1.png)'
  44. })
  45. $('.classify').css({
  46. 'background': 'url(./image/second/btn2.png)'
  47. })
  48. $('.secondLevel_map .regionMap').html('');
  49. })
  50. //热搜词点击
  51. document.addEventListener('mousemove', (e) => {
  52. let t = document.getElementById('keyword'); // 最外层元素
  53. if (!e.path.includes(t)) {
  54. $('.keyWrap').css('display', 'none')
  55. }
  56. })
  57. function getHotlineAccept() {
  58. new doAjax({
  59. url: huayi.config.callcenter_url + "/InfoNew/GetSourceCountBy",
  60. data: {
  61. token: $.cookie("token"),
  62. },
  63. callBack: function (res) {
  64. let str = ''
  65. Object.keys(res[0]).forEach((key, n) => {
  66. if (n == 0) {
  67. if ($('#slw_num').text() != parseInt(res[0][key] % 100000 / 10000)) {
  68. $('#slw_num').text(parseInt(res[0][key] % 100000 / 10000))
  69. $('#slw_num').counterUp({
  70. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  71. time: 500//计数动画总的持续时间。
  72. });
  73. }
  74. if ($('#slq_num').text() != parseInt(res[0][key] % 10000 / 1000)) {
  75. $('#slq_num').text(parseInt(res[0][key] % 10000 / 1000))
  76. $('#slq_num').counterUp({
  77. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  78. time: 500//计数动画总的持续时间。
  79. });
  80. }
  81. if ($('#slb_num').text() != parseInt(res[0][key] % 1000 / 100)) {
  82. $('#slb_num').text(parseInt(res[0][key] % 1000 / 100))
  83. $('#slb_num').counterUp({
  84. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  85. time: 500//计数动画总的持续时间。
  86. });
  87. }
  88. if ($('#sls_num').text() != parseInt((res[0][key] % 100) / 10)) {
  89. $('#sls_num').text(parseInt((res[0][key] % 100) / 10))
  90. $('#sls_num').counterUp({
  91. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  92. time: 500//计数动画总的持续时间。
  93. });
  94. }
  95. if ($('#slg_num').text() != parseInt(res[0][key] % 10)) {
  96. $('#slg_num').text(parseInt(res[0][key] % 10))
  97. $('#slg_num').counterUp({
  98. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  99. time: 500//计数动画总的持续时间。
  100. });
  101. }
  102. }
  103. else if (n == 3) {
  104. if ($('#dxw_num').text() != parseInt(res[0][key] % 100000 / 10000)) {
  105. $('#dxw_num').text(parseInt(res[0][key] % 100000 / 10000))
  106. $('#dxw_num').counterUp({
  107. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  108. time: 500//计数动画总的持续时间。
  109. });
  110. }
  111. if ($('#dxq_num').text() != parseInt(res[0][key] % 10000 / 1000)) {
  112. $('#dxq_num').text(parseInt(res[0][key] % 10000 / 1000))
  113. $('#dxq_num').counterUp({
  114. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  115. time: 500//计数动画总的持续时间。
  116. });
  117. }
  118. if ($('#dxb_num').text() != parseInt(res[0][key] % 1000 / 100)) {
  119. $('#dxb_num').text(parseInt(res[0][key] % 1000 / 100))
  120. $('#dxb_num').counterUp({
  121. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  122. time: 500//计数动画总的持续时间。
  123. });
  124. }
  125. if ($('#dxs_num').text() != parseInt((res[0][key] % 100) / 10)) {
  126. $('#dxs_num').text(parseInt((res[0][key] % 100) / 10))
  127. $('#dxs_num').counterUp({
  128. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  129. time: 500//计数动画总的持续时间。
  130. });
  131. }
  132. if ($('#dxg_num').text() != parseInt(res[0][key] % 10)) {
  133. $('#dxg_num').text(parseInt(res[0][key] % 10))
  134. $('#dxg_num').counterUp({
  135. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  136. time: 500//计数动画总的持续时间。
  137. });
  138. }
  139. } else if (n == 1) {
  140. if ($('#szw_num').text() != parseInt(res[0][key] % 100000 / 10000)) {
  141. $('#szw_num').text(parseInt(res[0][key] % 100000 / 10000))
  142. $('#szw_num').counterUp({
  143. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  144. time: 500//计数动画总的持续时间。
  145. });
  146. }
  147. if ($('#szq_num').text() != parseInt(res[0][key] % 10000 / 1000)) {
  148. $('#szq_num').text(parseInt(res[0][key] % 10000 / 1000))
  149. $('#szq_num').counterUp({
  150. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  151. time: 500//计数动画总的持续时间。
  152. });
  153. }
  154. if ($('#szb_num').text() != parseInt(res[0][key] % 1000 / 100)) {
  155. $('#szb_num').text(parseInt(res[0][key] % 1000 / 100))
  156. $('#szb_num').counterUp({
  157. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  158. time: 500//计数动画总的持续时间。
  159. });
  160. }
  161. if ($('#szs_num').text() != parseInt((res[0][key] % 100) / 10)) {
  162. $('#szs_num').text(parseInt((res[0][key] % 100) / 10))
  163. $('#szs_num').counterUp({
  164. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  165. time: 500//计数动画总的持续时间。
  166. });
  167. }
  168. if ($('#szg_num').text() != parseInt(res[0][key] % 10)) {
  169. $('#szg_num').text(parseInt(res[0][key] % 10))
  170. $('#szg_num').counterUp({
  171. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  172. time: 500//计数动画总的持续时间。
  173. });
  174. }
  175. } else if (n == 5) {
  176. if ($('#wxw_num').text() != parseInt(res[0][key] % 100000 / 10000)) {
  177. $('#wxw_num').text(parseInt(res[0][key] % 100000 / 10000))
  178. $('#wxw_num').counterUp({
  179. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  180. time: 500//计数动画总的持续时间。
  181. });
  182. }
  183. if ($('#wxq_num').text() != parseInt(res[0][key] % 10000 / 1000)) {
  184. $('#wxq_num').text(parseInt(res[0][key] % 10000 / 1000))
  185. $('#wxq_num').counterUp({
  186. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  187. time: 500//计数动画总的持续时间。
  188. });
  189. }
  190. if ($('#wxb_num').text() != parseInt(res[0][key] % 1000 / 100)) {
  191. $('#wxb_num').text(parseInt(res[0][key] % 1000 / 100))
  192. $('#wxb_num').counterUp({
  193. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  194. time: 500//计数动画总的持续时间。
  195. });
  196. }
  197. if ($('#wxs_num').text() != parseInt((res[0][key] % 100) / 10)) {
  198. $('#wxs_num').text(parseInt((res[0][key] % 100) / 10))
  199. $('#wxs_num').counterUp({
  200. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  201. time: 500//计数动画总的持续时间。
  202. });
  203. }
  204. if ($('#wxg_num').text() != parseInt(res[0][key] % 10)) {
  205. $('#wxg_num').text(parseInt(res[0][key] % 10))
  206. $('#wxg_num').counterUp({
  207. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  208. time: 500//计数动画总的持续时间。
  209. });
  210. }
  211. } else if (n == 2) {
  212. if ($('#xxw_num').text() != parseInt(res[0][key] % 100000 / 10000)) {
  213. $('#xxw_num').text(parseInt(res[0][key] % 100000 / 10000))
  214. $('#xxw_num').counterUp({
  215. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  216. time: 500//计数动画总的持续时间。
  217. });
  218. }
  219. if ($('#xxq_num').text() != parseInt(res[0][key] % 10000 / 1000)) {
  220. $('#xxq_num').text(parseInt(res[0][key] % 10000 / 1000))
  221. $('#xxq_num').counterUp({
  222. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  223. time: 500//计数动画总的持续时间。
  224. });
  225. }
  226. if ($('#xxb_num').text() != parseInt(res[0][key] % 1000 / 100)) {
  227. $('#xxb_num').text(parseInt(res[0][key] % 1000 / 100))
  228. $('#xxb_num').counterUp({
  229. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  230. time: 500//计数动画总的持续时间。
  231. });
  232. }
  233. if ($('#xxs_num').text() != parseInt((res[0][key] % 100) / 10)) {
  234. $('#xxs_num').text(parseInt((res[0][key] % 100) / 10))
  235. $('#xxs_num').counterUp({
  236. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  237. time: 500//计数动画总的持续时间。
  238. });
  239. }
  240. if ($('#xxg_num').text() != parseInt(res[0][key] % 10)) {
  241. $('#xxg_num').text(parseInt(res[0][key] % 10))
  242. $('#xxg_num').counterUp({
  243. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  244. time: 500//计数动画总的持续时间。
  245. });
  246. }
  247. } else if (n == 4) {
  248. if ($('#zww_num').text() != parseInt(res[0][key] % 100000 / 10000)) {
  249. $('#zww_num').text(parseInt(res[0][key] % 100000 / 10000))
  250. $('#zww_num').counterUp({
  251. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  252. time: 500//计数动画总的持续时间。
  253. });
  254. }
  255. if ($('#zwq_num').text() != parseInt(res[0][key] % 10000 / 1000)) {
  256. $('#zwq_num').text(parseInt(res[0][key] % 10000 / 1000))
  257. $('#zwq_num').counterUp({
  258. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  259. time: 500//计数动画总的持续时间。
  260. });
  261. }
  262. if ($('#zwb_num').text() != parseInt(res[0][key] % 1000 / 100)) {
  263. $('#zwb_num').text(parseInt(res[0][key] % 1000 / 100))
  264. $('#zwb_num').counterUp({
  265. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  266. time: 500//计数动画总的持续时间。
  267. });
  268. }
  269. if ($('#zws_num').text() != parseInt((res[0][key] % 100) / 10)) {
  270. $('#zws_num').text(parseInt((res[0][key] % 100) / 10))
  271. $('#zws_num').counterUp({
  272. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  273. time: 500//计数动画总的持续时间。
  274. });
  275. }
  276. if ($('#zwg_num').text() != parseInt(res[0][key] % 10)) {
  277. $('#zwg_num').text(parseInt(res[0][key] % 10))
  278. $('#zwg_num').counterUp({
  279. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  280. time: 500//计数动画总的持续时间。
  281. });
  282. }
  283. }
  284. })
  285. },
  286. })
  287. new doAjax({
  288. url: huayi.config.callcenter_url + "/InfoNew/GetVisitCount",
  289. data: {
  290. token: $.cookie("token"),
  291. },
  292. callBack: function (res) {
  293. let visitCount = [];
  294. let str = ''
  295. Object.keys(res[0]).forEach((key, n) => {
  296. if (key == 'DHCOUNT') {
  297. visitCount.push({
  298. name: '电话回访',
  299. value: res[0][key]
  300. })
  301. } else if (key == 'DXCOUNT') {
  302. visitCount.push({
  303. name: '短信回访',
  304. value: res[0][key]
  305. })
  306. } else {
  307. visitCount.unshift({
  308. name: '回访总数',
  309. value: res[0][key]
  310. })
  311. }
  312. })
  313. visitCount.forEach(function (v, n) {
  314. if (n == 0) {
  315. if (parseInt(v.value % 100000 / 10000) != $('#zsw_num').text()) {
  316. $('#zsw_num').text(parseInt(v.value % 100000 / 10000))
  317. $('#zsw_num').counterUp({
  318. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  319. time: 500//计数动画总的持续时间。
  320. });
  321. }
  322. if (parseInt(v.value % 10000 / 1000) != $('#zsq_num').text()) {
  323. $('#zsq_num').text(parseInt(v.value % 10000 / 1000))
  324. $('#zsq_num').counterUp({
  325. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  326. time: 500//计数动画总的持续时间。
  327. });
  328. }
  329. if (parseInt(v.value % 1000 / 100) != $('#zsb_num').text()) {
  330. $('#zsb_num').text(parseInt(v.value % 1000 / 100))
  331. $('#zsb_num').counterUp({
  332. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  333. time: 500//计数动画总的持续时间。
  334. });
  335. }
  336. if (parseInt((v.value % 100) / 10) != $('#zss_num').text()) {
  337. $('#zss_num').text(parseInt((v.value % 100) / 10))
  338. $('#zss_num').counterUp({
  339. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  340. time: 500//计数动画总的持续时间。
  341. });
  342. }
  343. if (parseInt(v.value % 10) != $('#zsg_num').text()) {
  344. $('#zsg_num').text(parseInt(v.value % 10))
  345. $('#zsg_num').counterUp({
  346. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  347. time: 500//计数动画总的持续时间。
  348. });
  349. }
  350. } else if (n == 1) {
  351. if (parseInt(v.value % 100000 / 10000) != $('#hfw_num').text()) {
  352. $('#hfw_num').text(parseInt(v.value % 100000 / 10000))
  353. $('#hfw_num').counterUp({
  354. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  355. time: 500//计数动画总的持续时间。
  356. });
  357. }
  358. if (parseInt(v.value % 10000 / 1000) != $('#hfq_num').text()) {
  359. $('#hfq_num').text(parseInt(v.value % 10000 / 1000))
  360. $('#hfq_num').counterUp({
  361. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  362. time: 500//计数动画总的持续时间。
  363. });
  364. }
  365. if (parseInt(v.value % 1000 / 100) != $('#hfb_num').text()) {
  366. $('#hfb_num').text(parseInt(v.value % 1000 / 100))
  367. $('#hfb_num').counterUp({
  368. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  369. time: 500//计数动画总的持续时间。
  370. });
  371. }
  372. if (parseInt((v.value % 100) / 10) != $('#hfs_num').text()) {
  373. $('#hfs_num').text(parseInt((v.value % 100) / 10))
  374. $('#hfs_num').counterUp({
  375. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  376. time: 500//计数动画总的持续时间。
  377. });
  378. }
  379. if (parseInt(v.value % 10) != $('#hfg_num').text()) {
  380. $('#hfg_num').text(parseInt(v.value % 10))
  381. $('#hfg_num').counterUp({
  382. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  383. time: 500//计数动画总的持续时间。
  384. });
  385. }
  386. } else if (n == 2) {
  387. if (parseInt(v.value % 100000 / 10000) != $('#dhw_num').text()) {
  388. $('#dhw_num').text(parseInt(v.value % 100000 / 10000))
  389. $('#dhw_num').counterUp({
  390. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  391. time: 500//计数动画总的持续时间。
  392. });
  393. }
  394. if (parseInt(v.value % 10000 / 1000) != $('#dhq_num').text()) {
  395. $('#dhq_num').text(parseInt(v.value % 10000 / 1000))
  396. $('#dhq_num').counterUp({
  397. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  398. time: 500//计数动画总的持续时间。
  399. });
  400. }
  401. if (parseInt(v.value % 1000 / 100) != $('#dhb_num').text()) {
  402. $('#dhb_num').text(parseInt(v.value % 1000 / 100))
  403. $('#dhb_num').counterUp({
  404. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  405. time: 500//计数动画总的持续时间。
  406. });
  407. }
  408. if (parseInt((v.value % 100) / 10) != $('#dhs_num').text()) {
  409. $('#dhs_num').text(parseInt((v.value % 100) / 10))
  410. $('#dhs_num').counterUp({
  411. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  412. time: 500//计数动画总的持续时间。
  413. });
  414. }
  415. if (parseInt(v.value % 10) != $('#dhg_num').text()) {
  416. $('#dhg_num').text(parseInt(v.value % 10))
  417. $('#dhg_num').counterUp({
  418. delay: 50,//每个数字动画的延迟时间,单位毫秒。
  419. time: 500//计数动画总的持续时间。
  420. });
  421. }
  422. }
  423. })
  424. }
  425. });
  426. }
  427. function getHotThings() {
  428. var nameData = [];
  429. var conNum = [];
  430. var maxNum = []
  431. var secData = [];
  432. new doAjax({
  433. url: huayi.config.callcenter_url + "/InfoNew/Majorevents",
  434. Type: 'get',
  435. data: {
  436. token: $.cookie("token"),
  437. stime: '',
  438. etime: ''
  439. },
  440. callBack: function (res) {
  441. res.forEach(function (v, n) {
  442. nameData.push(v.name.replace(/[0-9]+/g,""));
  443. conNum.push(v.count)
  444. secData.push({
  445. level: v.name,
  446. landArea: v.count
  447. })
  448. // }
  449. })
  450. console.log(nameData)
  451. for (var i = 0; i < secData.length; i++) {
  452. maxNum.push(Math.max.apply(null, conNum) + 200);
  453. }
  454. hotThingsChart('hotThings', nameData, conNum, maxNum)
  455. }
  456. });
  457. }
  458. function gettraffic() {
  459. // let nameD = ['登陆坐席数量', '呼叫排队数量', '话务量', '呼入接通量'];
  460. // hotThingsChart('timeTraffic', nameD, JSON.parse(localStorage.callDate), 100)
  461. $('.btn_time').click(function (e) {
  462. if (!e.isPropagationStopped()) {//确定stopPropagation是否被调用过
  463. if (e.target.tagName == 'SPAN') {
  464. if ($(e.target).attr('data-state') == '0') {
  465. $(".hwsjtj").show()
  466. $('.timeTraffic').css('display', 'none')
  467. $('.daySeat').css('display', 'inline-block')
  468. $('#traffic').css('display', 'block')
  469. $('#timeTraffic').css('display', 'none')
  470. $('.call_situation h2').text('话务数据统计')
  471. $('.act').html(`<label data-pos="1">
  472. 今日<span class="month active"></span>
  473. </label><br>
  474. <label data-pos="2">
  475. 本月<span class="day"></span>
  476. </label> `)
  477. new doAjax({
  478. url: huayi.config.callcenter_url + "InfoNew/GetHWCount24ByNow",
  479. data: {
  480. token: $.cookie("token"),
  481. },
  482. callBack: function (res) {
  483. trafficChart(res.data.hours, res.data.hwcount[0], res.data.jtcount[0])
  484. }
  485. });
  486. //话务点击
  487. $('.dataT').click(function (e) {
  488. if (!e.isPropagationStopped()) {//确定stopPropagation是否被调用过
  489. if (e.target.tagName == 'LABEL') {
  490. if ($(e.target).attr('data-pos') == '1') {
  491. $('.month').addClass('active');
  492. $('.day').removeClass('active')
  493. new doAjax({
  494. url: huayi.config.callcenter_url + "InfoNew/GetHWCount24ByNow",
  495. data: {
  496. token: $.cookie("token"),
  497. },
  498. callBack: function (res) {
  499. trafficChart(res.data.hours, res.data.hwcount[0], res.data.jtcount[0])
  500. }
  501. });
  502. trafficState = 0;
  503. } else if ($(e.target).attr('data-pos') == '2') {
  504. $('.day').addClass('active');
  505. $('.month').removeClass('active')
  506. new doAjax({
  507. url: huayi.config.callcenter_url + "InfoNew/GetHWCountMonthByNow",
  508. data: {
  509. token: $.cookie("token"),
  510. },
  511. callBack: function (res) {
  512. trafficChart(res.data.days, res.data.hwcount[0], res.data.jtcount[0])
  513. }
  514. });
  515. trafficState = 1;
  516. }
  517. }
  518. }
  519. e.stopPropagation();
  520. })
  521. }
  522. }
  523. }
  524. e.stopPropagation();
  525. })
  526. }
  527. function getHotline() {
  528. let datas = [];
  529. new doAjax({
  530. url: huayi.config.callcenter_url + "/InfoNew/GetHotline",
  531. data: {
  532. token: $.cookie("token"),
  533. },
  534. callBack: function (res) {
  535. res.data.forEach(function (v, n) {
  536. datas.push({
  537. value: v.count,
  538. name: v.name,
  539. percent: v.bili
  540. })
  541. })
  542. hotlineChart(datas)
  543. }
  544. });
  545. }
  546. function getKeyWord() {
  547. new doAjax({
  548. url: huayi.config.callcenter_url + "/InfoNew/GetKeyCountByNow",
  549. // url: "http://192.168.8.9:1042/InfoNew/GetKeyCountByNow",
  550. data: {
  551. token: $.cookie("token"),
  552. },
  553. callBack: function (res) {
  554. let str = '';
  555. let keyName;
  556. res.data.Date.forEach(function (v, n) {
  557. keyName = v.KeyName.substr(0, v.KeyName.length - 2)
  558. str += '<span onclick="getKeyClass(\'' + v.KeyId + '\',\'' + v.ClassCount + '\',\'' + v.KeyName + '\')" onmouseover="getKeyInfo(\'' + v.KeyId + '\',\'' + n + '\')">' +
  559. keyName + ':<label>' + v.Count + '</label></span>'
  560. })
  561. $('#keyword').html(str);
  562. }
  563. });
  564. }
  565. function getworkOrderType() {
  566. let workOrderData = [];
  567. let workOrderName = []
  568. new doAjax({
  569. url: huayi.config.callcenter_url + "/InfoNew/GetTypeCount",
  570. data: {
  571. token: $.cookie("token"),
  572. },
  573. callBack: function (res) {
  574. res.data.forEach(function (v, n) {
  575. workOrderData.push({
  576. name: v.type,
  577. value: v.count
  578. })
  579. workOrderName.push(v.type);
  580. })
  581. workOrderName.reverse();
  582. workOrderChart(workOrderData, workOrderName)
  583. }
  584. });
  585. }
  586. function hotThingsChart(dom, data, count, count1) {
  587. let hotThings = echarts.init(document.getElementById(dom));
  588. option = {
  589. "textStyle": {
  590. "color": "#c0c3cd",
  591. "fontSize": 11
  592. },
  593. grid: {
  594. top: '25%',
  595. bottom: '15%'
  596. },
  597. "xAxis": {
  598. "nameTextStyle": {
  599. "color": "#c0c3cd",
  600. "padding": [0, 0, -10, 0],
  601. "fontSize": 11
  602. },
  603. "axisLabel": {
  604. "color": "#c0c3cd",
  605. "fontSize": 11,
  606. "rotate": -45,
  607. "interval": 0,
  608. },
  609. "axisTick": {
  610. "lineStyle": {
  611. "color": "#8398c4",
  612. "width": 1
  613. },
  614. "show": false
  615. },
  616. "minorTick": {
  617. "length": 8
  618. },
  619. "splitLine": {
  620. "show": false
  621. },
  622. "axisLine": {
  623. "lineStyle": {
  624. "color": "#8398c4",
  625. "width": 1,
  626. "type": "solid"
  627. },
  628. "show": true
  629. },
  630. "data": data,
  631. "type": "category"
  632. },
  633. "yAxis": {
  634. "nameTextStyle": {
  635. "color": "#c0c3cd",
  636. "padding": [0, 0, 10, -5],
  637. "fontSize": 11
  638. },
  639. "axisLabel": {
  640. "color": "#c0c3cd",
  641. "fontSize": 11
  642. },
  643. "axisTick": {
  644. "lineStyle": {
  645. "color": "#8398c4",
  646. "width": 1
  647. },
  648. "show": true
  649. },
  650. "splitLine": {
  651. "show": true,
  652. "lineStyle": {
  653. "color": "#8398c4",
  654. "type": "dashed"
  655. }
  656. },
  657. "axisLine": {
  658. "lineStyle": {
  659. "color": "#8398c4",
  660. "width": 1,
  661. "type": "solid"
  662. },
  663. "show": true,
  664. // "symbol":['none', 'arrow'],
  665. "symbol": ['none', 'path://M5, 20 L5, 5 L8, 8 L5, 2 L2, 8 L5, 5 L5.3, 6 L5.3, 20'],
  666. 'symbolOffset': 5,
  667. 'symbolSize': [35, 38],
  668. },
  669. "name": "条"
  670. },
  671. "series": [{
  672. "data": count,
  673. "type": "bar",
  674. "barMaxWidth": "auto",
  675. "barWidth": 15,
  676. "itemStyle": {
  677. "color": {
  678. "x": 0,
  679. "y": 0,
  680. "x2": 0,
  681. "y2": 1,
  682. "type": "linear",
  683. "global": false,
  684. "colorStops": [{
  685. "offset": 0,
  686. "color": "#ff4519"
  687. }, {
  688. "offset": 1,
  689. "color": "#fff500"
  690. }]
  691. },
  692. barBorderRadius: [30, 30, 0, 0]
  693. },
  694. "label": {
  695. "show": true,
  696. "position": "top",
  697. "distance": 10,
  698. "color": "#fff"
  699. },
  700. emphasis: {
  701. itemStyle: {
  702. color: new echarts.graphic.LinearGradient(
  703. 0, 0, 0, 1,
  704. [{
  705. offset: 0,
  706. color: '#fde301'
  707. },
  708. {
  709. offset: 1,
  710. color: '#0a2f3e'
  711. }
  712. ]
  713. )
  714. }
  715. },
  716. }, {
  717. "data": [1, 1, 1, 1, 1, 1],
  718. "type": "pictorialBar",
  719. "barMaxWidth": "20",
  720. "symbol": "none",
  721. },
  722. {
  723. // "data": [1500, 1148, 756, 1395, 1750, 1148],
  724. "type": "pictorialBar",
  725. "barMaxWidth": "20",
  726. "symbolPosition": "end",
  727. "symbol": "none",
  728. "symbolOffset": [0, "-50%"],
  729. "symbolSize": [30, 12],
  730. "zlevel": 1
  731. },
  732. {
  733. "data": count1,
  734. "type": "bar",
  735. "barMaxWidth": "auto",
  736. "barWidth": 15,
  737. "barGap": "-100%",
  738. "itemStyle": {
  739. "color": '#234caf'
  740. },
  741. "zlevel": -1
  742. }, {
  743. "data": [1, 1, 1, 1, 1, 1],
  744. "type": "pictorialBar",
  745. "barMaxWidth": "20",
  746. "symbol": "none",
  747. "symbolOffset": [0, "50%"],
  748. "symbolSize": [30, 15],
  749. "zlevel": -2
  750. }, {
  751. "data": count1,
  752. "type": "pictorialBar",
  753. "barMaxWidth": "20",
  754. "symbolPosition": "end",
  755. "symbol": "circle",
  756. "symbolOffset": [0, "-60%"],
  757. "symbolSize": [15, 12],
  758. "itemStyle": {
  759. "color": '#234caf'
  760. },
  761. "zlevel": -1
  762. },
  763. ]
  764. }
  765. hotThings.setOption(option);
  766. }
  767. function getKeyInfo(keyid, n) {
  768. $('.keyInfo').html('');
  769. new doAjax({
  770. url: huayi.config.callcenter_url + "/InfoNew/GetKeyArea",
  771. data: {
  772. token: $.cookie("token"),
  773. pid: keyid
  774. },
  775. callBack: function (res) {
  776. let str = ''
  777. res.forEach(function (v, n) {
  778. if (n > 0) {
  779. str += '<li><label>' + v.area + '</label><span>' + v.count + '</span></li>'
  780. }
  781. })
  782. $('.keyInfo').html(str);
  783. }
  784. });
  785. if (n == 0) {
  786. $('.keyWrap').css({
  787. 'display': 'block',
  788. 'top': '95px',
  789. 'left': '-80px'
  790. })
  791. $('.bar').css('margin', '0 auto')
  792. } else if (n == 1) {
  793. $('.keyWrap').css({
  794. 'display': 'block',
  795. 'top': '95px',
  796. 'left': '100px'
  797. })
  798. $('.bar').css('margin', '0 auto')
  799. } else if (n == 2) {
  800. $('.keyWrap').css({
  801. 'display': 'block',
  802. 'top': '95px',
  803. 'left': '185px'
  804. })
  805. $('.bar').css('margin', '0 0 0 250px')
  806. } else if (n == 5) {
  807. $('.keyWrap').css({
  808. 'display': 'block',
  809. 'top': '130px',
  810. 'left': '185px'
  811. })
  812. $('.bar').css('margin', '0 0 0 250px')
  813. } else if (n == 4) {
  814. $('.keyWrap').css({
  815. 'display': 'block',
  816. 'top': '130px',
  817. 'left': '100px'
  818. })
  819. $('.bar').css('margin', '0 auto')
  820. } else if (n == 3) {
  821. $('.keyWrap').css({
  822. 'display': 'block',
  823. 'top': '130px',
  824. 'left': '-80px'
  825. })
  826. $('.bar').css('margin', '0 auto')
  827. } else if (n == 6) {
  828. $('.keyWrap').css({
  829. 'display': 'block',
  830. 'top': '170px',
  831. 'left': '-80px'
  832. })
  833. $('.bar').css('margin', '0 auto')
  834. } else if (n == 7) {
  835. $('.keyWrap').css({
  836. 'display': 'block',
  837. 'top': '170px',
  838. 'left': '100px'
  839. })
  840. $('.bar').css('margin', '0,auto')
  841. } else if (n == 10) {
  842. $('.keyWrap').css({
  843. 'display': 'block',
  844. 'top': '206px',
  845. 'left': '100px'
  846. })
  847. $('.bar').css('margin', '0 auto')
  848. } else if (n == 12) {
  849. $('.keyWrap').css({
  850. 'display': 'block',
  851. 'top': '243px',
  852. 'left': '-80px'
  853. })
  854. $('.bar').css('margin', '0 auto')
  855. } else if (n == 15) {
  856. $('.keyWrap').css({
  857. 'display': 'block',
  858. 'top': '278px',
  859. 'left': '-110px'
  860. })
  861. $('.bar').css('margin', '0 auto')
  862. } else if (n == 8) {
  863. $('.keyWrap').css({
  864. 'display': 'block',
  865. 'top': '170px',
  866. 'left': '185px'
  867. })
  868. $('.bar').css('margin', '0 0 0 250px')
  869. } else if (n == 9) {
  870. $('.keyWrap').css({
  871. 'display': 'block',
  872. 'top': '206px',
  873. 'left': '-80px'
  874. })
  875. $('.bar').css('margin', '0 auto')
  876. } else if (n == 14) {
  877. $('.keyWrap').css({
  878. 'display': 'block',
  879. 'top': '243px',
  880. 'left': '185px'
  881. })
  882. $('.bar').css('margin', '0 0 0 250px')
  883. } else if (n == 13) {
  884. $('.keyWrap').css({
  885. 'display': 'block',
  886. 'top': '243px',
  887. 'left': '100px'
  888. })
  889. $('.bar').css('margin', '0 auto')
  890. } else if (n == 11) {
  891. $('.keyWrap').css({
  892. 'display': 'block',
  893. 'top': '206px',
  894. 'left': '185px'
  895. })
  896. $('.bar').css('margin', '0 0 0 250px')
  897. } else if (n == 16) {
  898. $('.keyWrap').css({
  899. 'display': 'block',
  900. 'top': '279px',
  901. 'left': '100px'
  902. })
  903. $('.bar').css('margin', '0 auto')
  904. }
  905. }
  906. function hotlineChart(datas) {
  907. console.log(datas)
  908. let hotline = echarts.init(document.getElementById('hotline'));
  909. let colors = ['#ffe000', '#ff8a00', '#3cff9c', '#03d844', '#ff69c8', '#d668ff', '#43b2ff', '#05c9d1'];
  910. let legendData = []
  911. for (var j = 0; j < datas.length; j++) {
  912. var data = {
  913. name: datas[j].name,
  914. icon: 'circle',
  915. textStyle: {
  916. fontSize: 18,
  917. color: colors[j]
  918. }
  919. }
  920. legendData.push(data)
  921. }
  922. let objData = array2obj(datas, 'name')
  923. option = {
  924. color: colors,
  925. tooltip: {
  926. trigger: 'item',
  927. textStyle: {
  928. color: '#fff',
  929. fontSize: '18',
  930. fontWeight: '500'
  931. },
  932. // itemStyle: {
  933. // color: '#ffe400'
  934. // },
  935. position: 'top',
  936. backgroundColor: 'rgba(250,250,250,0)',
  937. transitionDuration: 0.4,
  938. formatter: function (params) {
  939. if (params.data.name.length > 9) {
  940. return '<div class="frame" style="background: url(image/hotline_pie.png) no-repeat;width:230px;height:100px;background-size: 100% 100%;text-align:center;top:20px;"><div class="frameC">' +
  941. params.data.name.substr(0, 10) + '<br>' + params.data.name.substr(10, params.data.name
  942. .length) + ':' + params.data.percent + '</div></div>';
  943. } else {
  944. return '<div class="frame" style="background: url(image/hotline_pie.png) no-repeat;width:220px;height:100px;background-size: 100% 100%;text-align:center;top:20px;"><div class="frameC">' +
  945. params.data.name + '<br>' + params.data.percent + '</div></div>';
  946. }
  947. }
  948. },
  949. series: [{
  950. name: '访问来源',
  951. type: 'pie',
  952. radius: '75%',
  953. center: ['50%', '50%'],
  954. label: {
  955. show: true,
  956. position: 'outside',
  957. color: '#ddd',
  958. fontSize: 13,
  959. formatter: function (params) {
  960. let str;
  961. if (params.name == ' 国家移民管理局咨询服务热线') {
  962. str = 12367;
  963. return str + ':' + params.value
  964. } else if (params.name == ' 为老服务热线') {
  965. str = 12349;
  966. return str + ':' + params.value
  967. } else if (params.name == ' 残疾人维权服务电话') {
  968. str = 12385;
  969. return str + ':' + params.value
  970. } else if (params.name == ' 火灾隐患举报投诉电话') {
  971. str = 96119;
  972. return str + ':' + params.value
  973. } else if (params.name == ' 人口和计生咨询举报电话') {
  974. str = 12356;
  975. return str + ':' + params.value
  976. } else if (params.name == ' 全国统一自然资源违法举报电话') {
  977. str = 12336;
  978. return str + ':' + params.value
  979. } else if (params.name == ' 商务领域咨询举报电话') {
  980. str = 12312;
  981. return str + ':' + params.value
  982. } else if (params.name == ' 文化市场举报电话') {
  983. str = 12318;
  984. return str + ':' + params.value
  985. }
  986. },
  987. padding: [0, -70, -20, -67]
  988. },
  989. labelLine: {
  990. length: 13,
  991. length2: 65,
  992. show: true
  993. },
  994. data: datas,
  995. // roseType: 'area'
  996. // animationType: 'expansion',
  997. // animationEasing: 'elasticOut',
  998. // animationDelay: function(idx) {
  999. // return 200
  1000. // }
  1001. }]
  1002. }
  1003. function array2obj(array, key) {
  1004. var resObj = {}
  1005. for (var i = 0; i < array.length; i++) {
  1006. resObj[array[i][key]] = array[i]
  1007. }
  1008. return resObj
  1009. }
  1010. hotline.setOption(option)
  1011. }
  1012. function trafficChart(hours, monthCount, dayCount) {
  1013. let traffic = echarts.init(document.getElementById('traffic'));
  1014. option = {
  1015. tooltip: {
  1016. trigger: 'axis',
  1017. axisPointer: {
  1018. show: true,
  1019. type: 'line',
  1020. lineStyle: {
  1021. type: 'dashed',
  1022. width:2,
  1023. color:'#fff'
  1024. }
  1025. },
  1026. textStyle: {
  1027. color: '#fff',
  1028. fontSize: 15,
  1029. fontWeight: '600',
  1030. },
  1031. // position: ['75%', '55%'],
  1032. backgroundColor: 'rgba(250,250,250,0)',
  1033. formatter: function (params) {
  1034. let str = '<div style="background-image: url(image/key_frame.png);width:128px;height:90px;line-height:25px;background-size: 100% 100%;padding:7px 8px;">'
  1035. let jtcount=params[1].value / params[0].value;
  1036. if(isNaN(jtcount)){
  1037. jtcount=0;
  1038. str +=
  1039. '<div><span style="color:#fff;width:75px;text-align: center;display: inline-block;">接通率:</span><span style:"width:55px;text-align: center;display: inline-block;">' +
  1040. ((jtcount) * 100).toFixed(0) + '%</span></div>'
  1041. }else{
  1042. str +=
  1043. '<div><span style="color:#fff;width:75px;text-align: center;display: inline-block;">接通率:</span><span style:"width:55px;text-align: center;display: inline-block;">' +
  1044. ((jtcount) * 100).toFixed(0) + '%</span></div>'
  1045. }
  1046. params.forEach(function (v,n) {
  1047. // if(v.seriesName!='上部1'){
  1048. str +=
  1049. '<div><span style="color:#fff;width:75px;text-align: center;display: inline-block;">' +
  1050. v.seriesName +
  1051. ':</span><span style:"width:55px;text-align: center;display: inline-block;">' +
  1052. v.value + '</span></div>'
  1053. // }
  1054. })
  1055. return str;
  1056. }
  1057. },
  1058. grid: {
  1059. top: '18%',
  1060. bottom: '12%'
  1061. },
  1062. xAxis: [{
  1063. type: "category",
  1064. boundaryGap: false,
  1065. scale: true,
  1066. axisLabel: {
  1067. formatter: '{value}',
  1068. fontSize: 13,
  1069. margin: 10,
  1070. textStyle: {
  1071. color: "#f4f4f8"
  1072. }
  1073. },
  1074. axisLine: {
  1075. show: true,
  1076. lineStyle: {
  1077. color: "#525fa6"
  1078. }
  1079. },
  1080. splitLine: {
  1081. show: false,
  1082. lineStyle: {
  1083. color: "#243753"
  1084. }
  1085. },
  1086. axisTick: {
  1087. show: false
  1088. },
  1089. data: hours
  1090. }],
  1091. yAxis: [{
  1092. boundaryGap: false,
  1093. type: "value",
  1094. // scale:true,
  1095. axisLabel: {
  1096. textStyle: {
  1097. color: "#f4f4f8"
  1098. }
  1099. },
  1100. nameTextStyle: {
  1101. color: "#fff",
  1102. fontSize: 12,
  1103. lineHeight: 40
  1104. },
  1105. splitLine: {
  1106. show: true,
  1107. lineStyle: {
  1108. color: "#516cb8",
  1109. type: "dashed"
  1110. }
  1111. },
  1112. axisLine: {
  1113. lineStyle: {
  1114. color: "#8393c8",
  1115. width: 1,
  1116. type: "solid"
  1117. },
  1118. show: true,
  1119. // "symbol":['none', 'arrow'],
  1120. symbol: ['none',
  1121. 'path://M5, 20 L5, 5 L8, 8 L5, 2 L2, 8 L5, 5 L5.3, 6 L5.3, 20'
  1122. ],
  1123. symbolOffset: 5,
  1124. symbolSize: [35, 38],
  1125. },
  1126. name: "条"
  1127. }],
  1128. series: [{
  1129. name: "话务量",
  1130. type: "line",
  1131. smooth: true,
  1132. showSymbol: false,
  1133. symbol: 'circle',
  1134. symbolSize: 4,
  1135. zlevel: 3,
  1136. itemStyle: {
  1137. color: '#06eff8'
  1138. },
  1139. lineStyle: {
  1140. normal: {
  1141. width: 2,
  1142. color: "#06eff8",
  1143. }
  1144. },
  1145. // label: {
  1146. // show: true,
  1147. // position: 'top',
  1148. // color: '#fff',
  1149. // fontSize: 14,
  1150. // fontWeight: '600',
  1151. // formatter: function (params) {
  1152. // return params.seriesName + ':' + params.value
  1153. // }
  1154. // },
  1155. areaStyle: {
  1156. normal: {
  1157. color: new echarts.graphic.LinearGradient(
  1158. 0,
  1159. 0,
  1160. 0,
  1161. 1,
  1162. [{
  1163. offset: 0,
  1164. color: "#35b1bb"
  1165. },
  1166. {
  1167. offset: 0.8,
  1168. color: "#073492"
  1169. }
  1170. ],
  1171. false
  1172. ),
  1173. }
  1174. },
  1175. emphasis: {
  1176. itemStyle: {
  1177. color: '#fff',
  1178. shadowBlur: 10,
  1179. shadowOffsetX: 1,
  1180. shadowOffsetY: 1,
  1181. shadowColor: 'rgb(250,250, 250)'
  1182. }
  1183. },
  1184. data: monthCount
  1185. }, {
  1186. name: "接通量",
  1187. type: "line",
  1188. smooth: true,
  1189. showSymbol: false,
  1190. symbol: 'circle',
  1191. symbolSize: 4,
  1192. zlevel: 3,
  1193. itemStyle: {
  1194. color: '#38a4fa'
  1195. },
  1196. // label: {
  1197. // show: true,
  1198. // position: 'top',
  1199. // color: '#fff',
  1200. // fontSize: 14,
  1201. // fontWeight: '600',
  1202. // formatter: function (params) {
  1203. // return params.seriesName + ':' + params.value
  1204. // }
  1205. // },
  1206. lineStyle: {
  1207. normal: {
  1208. width: 2,
  1209. color: "#38a4fa",
  1210. }
  1211. },
  1212. areaStyle: {
  1213. normal: {
  1214. color: new echarts.graphic.LinearGradient(
  1215. 0,
  1216. 0,
  1217. 0,
  1218. 1,
  1219. [{
  1220. offset: 0,
  1221. color: "#1682c4"
  1222. },
  1223. {
  1224. offset: 0.8,
  1225. color: "#1276aa"
  1226. }
  1227. ],
  1228. false
  1229. ),
  1230. }
  1231. },
  1232. emphasis: {
  1233. itemStyle: {
  1234. color: '#fff',
  1235. shadowBlur: 10,
  1236. shadowOffsetX: 1,
  1237. shadowOffsetY: 1,
  1238. shadowColor: 'rgb(250,250, 250)'
  1239. }
  1240. },
  1241. data: dayCount
  1242. }]
  1243. };
  1244. traffic.setOption(option);
  1245. }
  1246. function workOrderChart(workOrderData, workOrderName) {
  1247. let workOrder = echarts.init(document.getElementById('workOrder'));
  1248. option = {
  1249. color: ['#00f0ff', '#ff5a00', '#ffe000', '#fff59e', '#00ff78', '#ff00ff', '#ff97ff'],
  1250. // grid: {
  1251. // left: -100,
  1252. // top: 50,
  1253. // bottom: 10,
  1254. // right: 10,
  1255. // containLabel: true
  1256. // },
  1257. tooltip: {
  1258. show: false
  1259. },
  1260. legend: {
  1261. icon: "rect",
  1262. orient: 'horizontal',
  1263. width: 150,
  1264. height: 15,
  1265. itemWidth: 15,
  1266. itemGap: 20,
  1267. data: workOrderName,
  1268. right: 70,
  1269. top: 50,
  1270. align: 'left',
  1271. textStyle: {
  1272. color: "#fff"
  1273. },
  1274. // itemGap: 10
  1275. },
  1276. toolbox: {
  1277. show: false
  1278. },
  1279. polar: {
  1280. radius: '65%'
  1281. },
  1282. angleAxis: {
  1283. interval: 5,
  1284. type: 'category',
  1285. data: [],
  1286. z: 20,
  1287. axisLine: {
  1288. show: true,
  1289. lineStyle: {
  1290. color: "#0556b8",
  1291. width: 5,
  1292. type: "solid"
  1293. },
  1294. },
  1295. axisLabel: {
  1296. interval: 0,
  1297. show: true,
  1298. color: "#0556b8",
  1299. margin: 8,
  1300. fontSize: 16
  1301. },
  1302. },
  1303. radiusAxis: {
  1304. min: 20,
  1305. max: 100,
  1306. interval: 20,
  1307. axisLine: {
  1308. show: false,
  1309. lineStyle: {
  1310. color: "#0B3E5E",
  1311. width: 1,
  1312. type: "solid"
  1313. },
  1314. },
  1315. axisLabel: {
  1316. formatter: '{value} %',
  1317. show: false,
  1318. padding: [0, 0, 20, 0],
  1319. color: "#0B3E5E",
  1320. fontSize: 16
  1321. },
  1322. splitLine: {
  1323. lineStyle: {
  1324. color: "#0556b8",
  1325. width: 2,
  1326. type: "solid"
  1327. }
  1328. }
  1329. },
  1330. calculable: true,
  1331. series: [{
  1332. type: 'pie',
  1333. radius: ["0", "5%"],
  1334. hoverAnimation: false,
  1335. labelLine: {
  1336. normal: {
  1337. show: false,
  1338. length: 30,
  1339. length2: 55
  1340. },
  1341. emphasis: {
  1342. show: false
  1343. }
  1344. },
  1345. data: [{
  1346. name: '',
  1347. value: 0,
  1348. itemStyle: {
  1349. normal: {
  1350. color: "#0B4A6B"
  1351. }
  1352. }
  1353. }]
  1354. }, {
  1355. stack: 'a',
  1356. type: 'pie',
  1357. radius: '55%',
  1358. roseType: 'area',
  1359. zlevel: 10,
  1360. itemStyle: {
  1361. normal: {
  1362. label: {
  1363. show: true,
  1364. position: 'outside',
  1365. color: '#ddd',
  1366. formatter: function (params) {
  1367. var percent = 0;
  1368. var total = 0;
  1369. for (var i = 0; i < workOrderData.length; i++) {
  1370. total += workOrderData[i].value;
  1371. }
  1372. percent = ((params.value / total) * 100).toFixed(2);
  1373. if (params.name !== '') {
  1374. return params.name + ':' + percent + '%';
  1375. } else {
  1376. return '';
  1377. }
  1378. },
  1379. },
  1380. labelLine: {
  1381. // smooth:true,
  1382. length: 15,
  1383. length2: 25,
  1384. show: true,
  1385. color: '#00ffff'
  1386. }
  1387. }
  1388. },
  1389. data: workOrderData
  1390. }]
  1391. }
  1392. workOrder.setOption(option)
  1393. }
  1394. function timeTable() {
  1395. //表格滚动
  1396. $('.test_rank .maquee ul').each(function (index, dom) {
  1397. //将每个 的所有子级都复制一遍
  1398. var rows = $(dom).children().clone();
  1399. //再将新的到的加入原来的
  1400. $(dom).append(rows);
  1401. });
  1402. //数据获取
  1403. new doAjax({
  1404. url: huayi.config.callcenter_url + "/InfoNew/GetDeptDayTime",
  1405. data: {
  1406. token: $.cookie("token"),
  1407. },
  1408. callBack: function (res) {
  1409. // res.reverse();
  1410. let str = ''
  1411. let num;
  1412. res.forEach(function (v, n) {
  1413. num = 1 + n
  1414. if (n == 0) {
  1415. str += '<li><div><img src="./image/No1.png" alt=""></div><div>' + v.deptname +
  1416. '</div><div>' + v.timeday + 'h</div></li>'
  1417. } else if (n == 1) {
  1418. str += '<li><div><img src="./image/No2.png" alt=""></div><div>' + v.deptname +
  1419. '</div><div>' + v.timeday + 'h</div></li>'
  1420. } else if (n == 2) {
  1421. str += '<li><div><img src="./image/No3.png" alt=""></div><div>' + v.deptname +
  1422. '</div><div>' + v.timeday + 'h</div></li>'
  1423. } else {
  1424. str += '<li><div>' + num + '</div><div>' + v.deptname + '</div><div>' + v
  1425. .timeday + 'h</div></li>'
  1426. }
  1427. })
  1428. $('.test_rank ul').html(str);
  1429. }
  1430. });
  1431. }
  1432. function getNowFormatDate() {
  1433. var date = new Date();
  1434. var year = date.getFullYear();
  1435. var month = date.getMonth() + 1;
  1436. var strDate = date.getDate();
  1437. var Hour = date.getHours(); // 获取当前小时数(0-23)
  1438. var Minute = date.getMinutes(); // 获取当前分钟数(0-59)
  1439. var Second = date.getSeconds(); // 获取当前秒数(0-59)
  1440. var show_day = new Array('星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六');
  1441. var day = date.getDay();
  1442. if (Hour < 10) {
  1443. Hour = "0" + Hour;
  1444. }
  1445. if (Minute < 10) {
  1446. Minute = "0" + Minute;
  1447. }
  1448. if (Second < 10) {
  1449. Second = "0" + Second;
  1450. }
  1451. if (month >= 1 && month <= 9) {
  1452. month = "0" + month;
  1453. }
  1454. if (strDate >= 0 && strDate <= 9) {
  1455. strDate = "0" + strDate;
  1456. }
  1457. var HMS = Hour + ':' + Minute + ':' + Second;
  1458. var temp_time = year + '-' + month + '-' + strDate + ' ' + HMS;
  1459. $('.dataTime').text(temp_time);
  1460. // $('.statisticsTime').text(temp_time);
  1461. // $('.nowTime li:nth-child(2)').text(temp_time);
  1462. $('.secondLevel_map .time').text(year + '-' + month + '-' + strDate)
  1463. setInterval(getNowFormatDate, 1000);
  1464. }
  1465. function getTimes(dom){
  1466. function p(s) {
  1467. return s < 10 ? '0' + s : s;
  1468. }
  1469. var currentYear = new Date().getFullYear();
  1470. var currentMonth = new Date().getMonth() + 1;
  1471. var currentDate = new Date().getDate();
  1472. var prevCurrentYear = 0;
  1473. var prevCurrentMonth = 0;
  1474. if(currentMonth == 1) {
  1475. prevCurrentYear = currentYear - 1;
  1476. prevCurrentMonth = 12;
  1477. } else {
  1478. prevCurrentYear = currentYear;
  1479. prevCurrentMonth = currentMonth - 1;
  1480. }
  1481. let hh = new Date().getHours()
  1482. let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes():new Date().getMinutes()
  1483. let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds():new Date().getSeconds()
  1484. var data=currentYear + "-" + p(currentMonth) + "-" + 01;
  1485. var current = currentYear + "-" + p(currentMonth) + "-" + p(currentDate);
  1486. // var a = getPreDatetime(3600 * 1000 * 24 * 30);
  1487. $(dom).text(data + " ~ " + current)
  1488. }
  1489. function getNowTime(dom){
  1490. function p(s) {
  1491. return s < 10 ? '0' + s : s;
  1492. }
  1493. var currentYear = new Date().getFullYear();
  1494. var currentMonth = new Date().getMonth() + 1;
  1495. var currentDate = new Date().getDate();
  1496. var prevCurrentYear = 0;
  1497. var prevCurrentMonth = 0;
  1498. if(currentMonth == 1) {
  1499. prevCurrentYear = currentYear - 1;
  1500. prevCurrentMonth = 12;
  1501. } else {
  1502. prevCurrentYear = currentYear;
  1503. prevCurrentMonth = currentMonth - 1;
  1504. }
  1505. let hh = new Date().getHours()
  1506. let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes():new Date().getMinutes()
  1507. let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds():new Date().getSeconds()
  1508. var data=currentYear + "-" + p(currentMonth) + "-" + 01+' ' + 00 + ':' + 00 + ':' + 00;
  1509. var current = currentYear + "-" + p(currentMonth) + "-" + p(currentDate)+' ' + hh + ':' + mf + ':' + ss;
  1510. // var a = getPreDatetime(3600 * 1000 * 24 * 30);
  1511. $(dom).val(data + " ~ " + current)
  1512. // //昨天的时间
  1513. // var date1 = new Date(new Date(new Date().toLocaleDateString()).getTime());
  1514. // var startTime = date1.getFullYear() +
  1515. // "-" + ((date1.getMonth() + 1) < 10 ? "0" + (date1.getMonth() + 1):(date1.getMonth() + 1))+
  1516. //"-" + (date1.getDate() < 10 ? "0" + date1.getDate():date1.getDate()) +
  1517. //" " + (date1.getHours()<10?"0"+date1.getHours():date1.getHours()) +
  1518. //":" + (date1.getMinutes()<10?"0"+date1.getMinutes():date1.getMinutes()) +
  1519. // ":" + (date1.getSeconds()<10?"0"+date1.getSeconds():date1.getSeconds())
  1520. // //今天的时间
  1521. // var day2 = new Date();
  1522. // day2.setTime(day2.getTime());
  1523. // let hh = new Date().getHours()
  1524. // let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes():new Date().getMinutes()
  1525. // let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds():new Date().getSeconds()
  1526. // var s2 = day2.getFullYear() + "-" + (day2.getMonth() + 1) + "-" + day2.getDate()+' ' + hh + ':' + mf + ':' + ss;
  1527. // $(dom).val(startTime + " ~ " + s2);
  1528. }
  1529. // function getPreDatetime(pdate) {
  1530. // var start = new Date()
  1531. // start.setTime(start.getTime() - pdate)
  1532. // start.getYear(); // 获取当前年份(2位)
  1533. // var YY = start.getFullYear() // 获取完整的年份(4位,1970-????)
  1534. // var MM = start.getMonth() + 1 // 获取当前月份(0-11,0代表1月)
  1535. // MM = MM > 9 ? MM : ('0' + MM);
  1536. // var DD = start.getDate() // 获取当前日(1-31)
  1537. // DD = DD > 9 ? DD : ('0' + DD)
  1538. // var lastmonth = YY + '-' + MM + '-' + DD+' ' + 00 + ':' + 00 + ':' + 00;
  1539. // return lastmonth;
  1540. // }
  1541. //二级页面点击
  1542. //二级办理时长统计
  1543. $('.test_rank').click(function () {
  1544. $('.bulletFrame').show();
  1545. $('.timeSta_wrap').show();
  1546. $('.timeSta_wrap').siblings().hide()
  1547. if ($('.bulletFrame').css('display') == 'block') {
  1548. $('.body').css('opacity', '0.4')
  1549. }
  1550. timeSecTable();
  1551. })
  1552. //热线整合
  1553. $('.accept_statistics').click(function (e) {
  1554. $('.bulletFrame').show();
  1555. $('.hotline_wrap').show();
  1556. $('.hotline_wrap').siblings().hide()
  1557. if ($('.bulletFrame').css('display') == 'block') {
  1558. $('.body').css('opacity', '0.4')
  1559. }
  1560. getNowTime('#date')
  1561. initHoneline($('#date').val())
  1562. laydate.render({
  1563. elem: '#date',
  1564. range: '~',
  1565. type: 'datetime',
  1566. done: function(value) {
  1567. initHoneline(value)
  1568. }
  1569. });
  1570. function initHoneline(value) {
  1571. var secData = [];
  1572. new doAjax({
  1573. url:huayi.config.callcenter_url+'/InfoNew/GetHotline',
  1574. // url: "http://192.168.8.9:1042/InfoNew/GetHotline",
  1575. Type: 'get',
  1576. data: {
  1577. token: $.cookie("token"),
  1578. stime: value && value.split(' ~ ')[0],
  1579. etime: value && value.split(' ~ ')[1]
  1580. },
  1581. callBack: function (res) {
  1582. res.data.forEach(function (v, n) {
  1583. secData.push({
  1584. level: v.value,
  1585. landArea: v.count
  1586. })
  1587. })
  1588. getHonelineChart2(secData, 'hotline2')
  1589. }
  1590. });
  1591. }
  1592. e.stopPropagation()
  1593. })
  1594. //重大事件
  1595. $('.accept_channel').click(function (e) {
  1596. $('.bulletFrame').show();
  1597. $('.events_wrap').show();
  1598. $('.events_wrap').siblings().hide()
  1599. if ($('.bulletFrame').css('display') == 'block') {
  1600. $('.body').css('opacity', '0.4')
  1601. }
  1602. getNowTime('#date2')
  1603. laydate.render({
  1604. elem: '#date2',
  1605. range: '~',
  1606. type: 'datetime',
  1607. done: function(value) {
  1608. new doAjax({
  1609. url: huayi.config.callcenter_url + "/InfoNew/Majorevents",
  1610. Type: 'get',
  1611. data: {
  1612. token: $.cookie("token"),
  1613. stime: value && value.split(' ~ ')[0],
  1614. etime: value && value.split(' ~ ')[1]
  1615. },
  1616. callBack: function (res) {
  1617. channelData=[];
  1618. res.data.forEach(function (v, n) {
  1619. channelData.push({
  1620. level: v.TypeName,
  1621. landArea: v.Count
  1622. })
  1623. // }
  1624. })
  1625. getHonelineChart2(channelData, 'channel')
  1626. }
  1627. });
  1628. }
  1629. });
  1630. new doAjax({
  1631. url: huayi.config.callcenter_url + "/InfoNew/Majorevents",
  1632. Type: 'get',
  1633. data: {
  1634. token: $.cookie("token"),
  1635. stime: $('#date2').val() && $('#date2').val().split(' ~ ')[0],
  1636. etime: $('#date2').val() && $('#date2').val().split(' ~ ')[1]
  1637. },
  1638. callBack: function (res) {
  1639. let eventsData = []
  1640. res.forEach(function (v, n) {
  1641. eventsData.push({
  1642. level: v.name.replace(/[0-9]+/g,""),
  1643. landArea: v.count
  1644. })
  1645. // }
  1646. })
  1647. getHonelineChart2(eventsData, 'events')
  1648. }
  1649. });
  1650. e.stopPropagation()
  1651. })
  1652. //受理工单类型
  1653. $('.time_statistics').click(function (e) {
  1654. $('.bulletFrame').show();
  1655. $('.acceptanceType_wrap').show();
  1656. $('.acceptanceType_wrap').siblings().hide()
  1657. if ($('.bulletFrame').css('display') == 'block') {
  1658. $('.body').css('opacity', '0.4')
  1659. }
  1660. getAcceptanceType()
  1661. e.stopPropagation()
  1662. })
  1663. //受理渠道
  1664. $('.hotlineAccept').click(function (e) {
  1665. let channelData = []
  1666. $('.bulletFrame').show();
  1667. $('.channel_wrap').show();
  1668. $('.channel_wrap').siblings().hide()
  1669. if ($('.bulletFrame').css('display') == 'block') {
  1670. $('.body').css('opacity', '0.4')
  1671. }
  1672. getNowTime('#date3')
  1673. laydate.render({
  1674. elem: '#date3',
  1675. range: '~',
  1676. type: 'datetime',
  1677. done: function(value) {
  1678. new doAjax({
  1679. url: huayi.config.callcenter_url + "/InfoNew/GetSourceCountByNow",
  1680. // url: "http://192.168.8.9:1042/InfoNew/GetSourceCountByNow",
  1681. data: {
  1682. token: $.cookie("token"),
  1683. stime: value && value.split(' ~ ')[0],
  1684. etime: value && value.split(' ~ ')[1]
  1685. },
  1686. callBack: function (res) {
  1687. channelData = [];
  1688. res.data.forEach(function (v, n) {
  1689. channelData.push({
  1690. level: v.TypeName,
  1691. landArea: v.Count
  1692. })
  1693. // }
  1694. })
  1695. getHonelineChart2(channelData, 'channel')
  1696. }
  1697. });
  1698. }
  1699. });
  1700. new doAjax({
  1701. url: huayi.config.callcenter_url + "/InfoNew/GetSourceCountByNow",
  1702. // url: "http://192.168.8.9:1042/InfoNew/GetSourceCountByNow",
  1703. data: {
  1704. token: $.cookie("token"),
  1705. stime: $('#date3').val() && $('#date3').val().split(' ~ ')[0],
  1706. etime: $('#date3').val() && $('#date3').val().split(' ~ ')[1]
  1707. },
  1708. callBack: function (res) {
  1709. res.data.forEach(function (v, n) {
  1710. channelData.push({
  1711. level: v.TypeName,
  1712. landArea: v.Count
  1713. })
  1714. // }
  1715. })
  1716. getHonelineChart2(channelData, 'channel')
  1717. }
  1718. });
  1719. e.stopPropagation()
  1720. })
  1721. //时段话务
  1722. $('#traffic').click(function () {
  1723. $('.bulletFrame').show();
  1724. if ($('.bulletFrame').css('display') == 'block') {
  1725. $('.body').css('opacity', '0.4')
  1726. }
  1727. if (trafficState == 0) {
  1728. let qtphoneName = [];
  1729. let qtldcount = [];
  1730. let qtjtcount = [];
  1731. let qtwjcount = [];
  1732. let qtfqcount = [];
  1733. let sphoneName = [];
  1734. let sldcount = [];
  1735. let sjtcount = [];
  1736. let swjcount = [];
  1737. let sfqcount = [];
  1738. $('.traffic2_wrap').show();
  1739. $('.traffic2_wrap').siblings().hide()
  1740. new doAjax({
  1741. url: huayi.config.callcenter_url + "/InfoNew/GetDayparting",
  1742. // url: "http://192.168.8.9:1042/InfoNew/GetDayparting",
  1743. data: {
  1744. token: $.cookie("token"),
  1745. },
  1746. callBack: function (res) {
  1747. console.log(res)
  1748. res.forEach(function (v, n) {
  1749. if(v.name!='12345'&&v.name!="归并热线小计"){
  1750. qtphoneName.push(v.name)
  1751. qtldcount.push(v.ldcount)
  1752. qtjtcount.push(v.jtcount)
  1753. qtwjcount.push(v.wjtcount)
  1754. qtfqcount.push(v.zdfqcount);
  1755. }else{
  1756. sphoneName.push(v.name)
  1757. sldcount.push(v.ldcount)
  1758. sjtcount.push(v.jtcount)
  1759. swjcount.push(v.wjtcount)
  1760. sfqcount.push(v.zdfqcount);
  1761. }
  1762. })
  1763. trafficDayChart(qtphoneName, qtldcount, qtjtcount, qtwjcount, qtfqcount);
  1764. getS(sphoneName, sldcount,sjtcount, swjcount, sfqcount)
  1765. }
  1766. });
  1767. } else if (trafficState == 1) {
  1768. $('.traffic_wrap').show();
  1769. $('.traffic_wrap').siblings().hide()
  1770. new doAjax({
  1771. url: huayi.config.callcenter_url + "InfoNew/GetHWCountMonthByNow",
  1772. data: {},
  1773. callBack: function (res) {
  1774. trafficMonthChart(res.data.days, res.data.hwcount[0], res.data.jtcount[0])
  1775. }
  1776. });
  1777. }
  1778. })
  1779. //坐席
  1780. $('#timeTraffic').click(function (e) {
  1781. let zxNum=Math.floor(Math.random()*10000 + 10000)
  1782. let user;
  1783. $('.bulletFrame').show();
  1784. if ($('.bulletFrame').css('display') == 'block') {
  1785. $('.body').css('opacity', '0.4')
  1786. }
  1787. $('.seatMonitor').show();
  1788. $('.seatMonitor').siblings().hide()
  1789. $.getJSON(huayi.config.callcenter_url + 'SeatMonitoring/getlist', {
  1790. token: $.cookie("token"),
  1791. }, function (res) {
  1792. user = res.data
  1793. if (res.state.toLowerCase() == "success") {
  1794. let str = ''
  1795. res.data.forEach(function (v, n) {
  1796. str += '<li class="people_list ' + v.F_WorkNumber + ' "><div><div style="margin-right: 3px;"><span class="g-num">' + v.F_WorkNumber +
  1797. '</span></div><div><div class="bg_person"></div><p><span class="g-name">' + v.F_UserName + '</span> </p><i class="lx" zx_item="0" xl_item="0"></i></div></div></li>'
  1798. })
  1799. $('.zx_people').html(str)
  1800. }
  1801. })
  1802. new doAjax({
  1803. url: huayi.config.callcenter_url + "/InfoNew/GetHWTypeCount24ByNow",
  1804. // url: "http://192.168.8.9:1042/InfoNew/GetHWTypeCount24ByNow",
  1805. data: {
  1806. token: $.cookie("token"),
  1807. },
  1808. callBack: function (res) {
  1809. getRealTimeTraffi(res.data.hours, res.data.hrcount[0], res.data.hccount[0])
  1810. }
  1811. });
  1812. $('.star_btn').click(function (e) {
  1813. obj.AgentID = zxNum;
  1814. $(user).each(function (i, n) {
  1815. obj.Type = "SubScribe";
  1816. obj.SubParmer = n.F_WorkNumber * 1;
  1817. obj.AgentExten = 1
  1818. obj.SubType = "0";//根据工号订阅坐席状态
  1819. Send();
  1820. obj.SubType = "1";//根据工号订阅线路状态
  1821. Send();
  1822. })
  1823. e.stopPropagation()
  1824. })
  1825. $('.stop_btn').click(function (e) {
  1826. $(user).each(function (i, n) {
  1827. top.obj.Type = "SubScribeCancel";
  1828. top.obj.SubParmer = "-1";
  1829. top.obj.SubType = "0";//根据工号取消订阅坐席状态
  1830. top.Send();
  1831. top.obj.SubType = "1";//根据工号取消订阅线路状态
  1832. top.Send();
  1833. })
  1834. e.stopPropagation()
  1835. })
  1836. $('.close_zxicon').click(function (e) {
  1837. $('.bulletFrame').hide();
  1838. $('.bulletFrameT').hide();
  1839. if ($('.bulletFrame').css('display') == 'none') {
  1840. $('.body').css('opacity', '1')
  1841. }
  1842. if ($('.bulletFrameT').css('display') == 'none') {
  1843. $('.body').css('opacity', '1')
  1844. }
  1845. $(user).each(function (i, n) {
  1846. top.obj.Type = "SubScribeCancel";
  1847. top.obj.SubParmer = "-1";
  1848. top.obj.SubType = "0";//根据工号取消订阅坐席状态
  1849. top.Send();
  1850. top.obj.SubType = "1";//根据工号取消订阅线路状态
  1851. top.Send();
  1852. })
  1853. e.stopPropagation()
  1854. })
  1855. e.stopPropagation()
  1856. })