Bez popisu

newIndex.js 50KB

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