暫無描述

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. nameData.push(v.name.replace(/[0-9]+/g,""));
  456. conNum.push(v.count)
  457. secData.push({
  458. level: v.name,
  459. landArea: v.count
  460. })
  461. // }
  462. })
  463. console.log(nameData)
  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. "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. pid: keyid
  773. },
  774. callBack: function (res) {
  775. let str = ''
  776. res.forEach(function (v, n) {
  777. if (n > 0) {
  778. str += '<li><label>' + v.area + '</label><span>' + v.count + '</span></li>'
  779. }
  780. })
  781. $('.keyInfo').html(str);
  782. }
  783. });
  784. if (n == 0) {
  785. $('.keyWrap').css({
  786. 'display': 'block',
  787. 'top': '95px',
  788. 'left': '-80px'
  789. })
  790. $('.bar').css('margin', '0 auto')
  791. } else if (n == 1) {
  792. $('.keyWrap').css({
  793. 'display': 'block',
  794. 'top': '95px',
  795. 'left': '100px'
  796. })
  797. $('.bar').css('margin', '0 auto')
  798. } else if (n == 2) {
  799. $('.keyWrap').css({
  800. 'display': 'block',
  801. 'top': '95px',
  802. 'left': '185px'
  803. })
  804. $('.bar').css('margin', '0 0 0 250px')
  805. } else if (n == 5) {
  806. $('.keyWrap').css({
  807. 'display': 'block',
  808. 'top': '130px',
  809. 'left': '185px'
  810. })
  811. $('.bar').css('margin', '0 0 0 250px')
  812. } else if (n == 4) {
  813. $('.keyWrap').css({
  814. 'display': 'block',
  815. 'top': '130px',
  816. 'left': '100px'
  817. })
  818. $('.bar').css('margin', '0 auto')
  819. } else if (n == 3) {
  820. $('.keyWrap').css({
  821. 'display': 'block',
  822. 'top': '130px',
  823. 'left': '-80px'
  824. })
  825. $('.bar').css('margin', '0 auto')
  826. } else if (n == 6) {
  827. $('.keyWrap').css({
  828. 'display': 'block',
  829. 'top': '170px',
  830. 'left': '-80px'
  831. })
  832. $('.bar').css('margin', '0 auto')
  833. } else if (n == 7) {
  834. $('.keyWrap').css({
  835. 'display': 'block',
  836. 'top': '170px',
  837. 'left': '100px'
  838. })
  839. $('.bar').css('margin', '0,auto')
  840. } else if (n == 10) {
  841. $('.keyWrap').css({
  842. 'display': 'block',
  843. 'top': '206px',
  844. 'left': '100px'
  845. })
  846. $('.bar').css('margin', '0 auto')
  847. } else if (n == 12) {
  848. $('.keyWrap').css({
  849. 'display': 'block',
  850. 'top': '243px',
  851. 'left': '-80px'
  852. })
  853. $('.bar').css('margin', '0 auto')
  854. } else if (n == 15) {
  855. $('.keyWrap').css({
  856. 'display': 'block',
  857. 'top': '278px',
  858. 'left': '-110px'
  859. })
  860. $('.bar').css('margin', '0 auto')
  861. } else if (n == 8) {
  862. $('.keyWrap').css({
  863. 'display': 'block',
  864. 'top': '170px',
  865. 'left': '185px'
  866. })
  867. $('.bar').css('margin', '0 0 0 250px')
  868. } else if (n == 9) {
  869. $('.keyWrap').css({
  870. 'display': 'block',
  871. 'top': '206px',
  872. 'left': '-80px'
  873. })
  874. $('.bar').css('margin', '0 auto')
  875. } else if (n == 14) {
  876. $('.keyWrap').css({
  877. 'display': 'block',
  878. 'top': '243px',
  879. 'left': '185px'
  880. })
  881. $('.bar').css('margin', '0 0 0 250px')
  882. } else if (n == 13) {
  883. $('.keyWrap').css({
  884. 'display': 'block',
  885. 'top': '243px',
  886. 'left': '100px'
  887. })
  888. $('.bar').css('margin', '0 auto')
  889. } else if (n == 11) {
  890. $('.keyWrap').css({
  891. 'display': 'block',
  892. 'top': '206px',
  893. 'left': '185px'
  894. })
  895. $('.bar').css('margin', '0 0 0 250px')
  896. } else if (n == 16) {
  897. $('.keyWrap').css({
  898. 'display': 'block',
  899. 'top': '279px',
  900. 'left': '100px'
  901. })
  902. $('.bar').css('margin', '0 auto')
  903. }
  904. }
  905. function hotlineChart(datas) {
  906. console.log(datas)
  907. let hotline = echarts.init(document.getElementById('hotline'));
  908. let colors = ['#ffe000', '#ff8a00', '#3cff9c', '#03d844', '#ff69c8', '#d668ff', '#43b2ff', '#05c9d1'];
  909. let legendData = []
  910. for (var j = 0; j < datas.length; j++) {
  911. var data = {
  912. name: datas[j].name,
  913. icon: 'circle',
  914. textStyle: {
  915. fontSize: 18,
  916. color: colors[j]
  917. }
  918. }
  919. legendData.push(data)
  920. }
  921. let objData = array2obj(datas, 'name')
  922. option = {
  923. color: colors,
  924. tooltip: {
  925. trigger: 'item',
  926. textStyle: {
  927. color: '#fff',
  928. fontSize: '18',
  929. fontWeight: '500'
  930. },
  931. // itemStyle: {
  932. // color: '#ffe400'
  933. // },
  934. position: 'top',
  935. backgroundColor: 'rgba(250,250,250,0)',
  936. transitionDuration: 0.4,
  937. formatter: function (params) {
  938. if (params.data.name.length > 9) {
  939. 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">' +
  940. params.data.name.substr(0, 10) + '<br>' + params.data.name.substr(10, params.data.name
  941. .length) + ':' + params.data.percent + '</div></div>';
  942. } else {
  943. 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">' +
  944. params.data.name + '<br>' + params.data.percent + '</div></div>';
  945. }
  946. }
  947. },
  948. series: [{
  949. name: '访问来源',
  950. type: 'pie',
  951. radius: '75%',
  952. center: ['50%', '50%'],
  953. label: {
  954. show: true,
  955. position: 'outside',
  956. color: '#ddd',
  957. fontSize: 13,
  958. formatter: function (params) {
  959. let str;
  960. if (params.name == ' 国家移民管理局咨询服务热线') {
  961. str = 12367;
  962. return str + ':' + params.value
  963. } else if (params.name == ' 为老服务热线') {
  964. str = 12349;
  965. return str + ':' + params.value
  966. } else if (params.name == ' 残疾人维权服务电话') {
  967. str = 12385;
  968. return str + ':' + params.value
  969. } else if (params.name == ' 火灾隐患举报投诉电话') {
  970. str = 96119;
  971. return str + ':' + params.value
  972. } else if (params.name == ' 人口和计生咨询举报电话') {
  973. str = 12356;
  974. return str + ':' + params.value
  975. } else if (params.name == ' 全国统一自然资源违法举报电话') {
  976. str = 12336;
  977. return str + ':' + params.value
  978. } else if (params.name == ' 商务领域咨询举报电话') {
  979. str = 12312;
  980. return str + ':' + params.value
  981. } else if (params.name == ' 文化市场举报电话') {
  982. str = 12318;
  983. return str + ':' + params.value
  984. }
  985. },
  986. padding: [0, -70, -20, -67]
  987. },
  988. labelLine: {
  989. length: 13,
  990. length2: 65,
  991. show: true
  992. },
  993. data: datas,
  994. // roseType: 'area'
  995. // animationType: 'expansion',
  996. // animationEasing: 'elasticOut',
  997. // animationDelay: function(idx) {
  998. // return 200
  999. // }
  1000. }]
  1001. }
  1002. function array2obj(array, key) {
  1003. var resObj = {}
  1004. for (var i = 0; i < array.length; i++) {
  1005. resObj[array[i][key]] = array[i]
  1006. }
  1007. return resObj
  1008. }
  1009. hotline.setOption(option)
  1010. }
  1011. function trafficChart(hours, monthCount, dayCount) {
  1012. let traffic = echarts.init(document.getElementById('traffic'));
  1013. option = {
  1014. tooltip: {
  1015. trigger: 'axis',
  1016. axisPointer: {
  1017. show: true,
  1018. type: 'line',
  1019. lineStyle: {
  1020. type: 'dashed',
  1021. width:2,
  1022. color:'#fff'
  1023. }
  1024. },
  1025. textStyle: {
  1026. color: '#fff',
  1027. fontSize: 15,
  1028. fontWeight: '600',
  1029. },
  1030. // position: ['75%', '55%'],
  1031. backgroundColor: 'rgba(250,250,250,0)',
  1032. formatter: function (params) {
  1033. 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;">'
  1034. let jtcount=params[1].value / params[0].value;
  1035. if(isNaN(jtcount)){
  1036. jtcount=0;
  1037. str +=
  1038. '<div><span style="color:#fff;width:75px;text-align: center;display: inline-block;">接通率:</span><span style:"width:55px;text-align: center;display: inline-block;">' +
  1039. ((jtcount) * 100).toFixed(0) + '%</span></div>'
  1040. }else{
  1041. str +=
  1042. '<div><span style="color:#fff;width:75px;text-align: center;display: inline-block;">接通率:</span><span style:"width:55px;text-align: center;display: inline-block;">' +
  1043. ((jtcount) * 100).toFixed(0) + '%</span></div>'
  1044. }
  1045. params.forEach(function (v,n) {
  1046. // if(v.seriesName!='上部1'){
  1047. str +=
  1048. '<div><span style="color:#fff;width:75px;text-align: center;display: inline-block;">' +
  1049. v.seriesName +
  1050. ':</span><span style:"width:55px;text-align: center;display: inline-block;">' +
  1051. v.value + '</span></div>'
  1052. // }
  1053. })
  1054. return str;
  1055. }
  1056. },
  1057. grid: {
  1058. top: '18%',
  1059. bottom: '12%'
  1060. },
  1061. xAxis: [{
  1062. type: "category",
  1063. boundaryGap: false,
  1064. scale: true,
  1065. axisLabel: {
  1066. formatter: '{value}',
  1067. fontSize: 13,
  1068. margin: 10,
  1069. textStyle: {
  1070. color: "#f4f4f8"
  1071. }
  1072. },
  1073. axisLine: {
  1074. show: true,
  1075. lineStyle: {
  1076. color: "#525fa6"
  1077. }
  1078. },
  1079. splitLine: {
  1080. show: false,
  1081. lineStyle: {
  1082. color: "#243753"
  1083. }
  1084. },
  1085. axisTick: {
  1086. show: false
  1087. },
  1088. data: hours
  1089. }],
  1090. yAxis: [{
  1091. boundaryGap: false,
  1092. type: "value",
  1093. // scale:true,
  1094. axisLabel: {
  1095. textStyle: {
  1096. color: "#f4f4f8"
  1097. }
  1098. },
  1099. nameTextStyle: {
  1100. color: "#fff",
  1101. fontSize: 12,
  1102. lineHeight: 40
  1103. },
  1104. splitLine: {
  1105. show: true,
  1106. lineStyle: {
  1107. color: "#516cb8",
  1108. type: "dashed"
  1109. }
  1110. },
  1111. axisLine: {
  1112. lineStyle: {
  1113. color: "#8393c8",
  1114. width: 1,
  1115. type: "solid"
  1116. },
  1117. show: true,
  1118. // "symbol":['none', 'arrow'],
  1119. symbol: ['none',
  1120. 'path://M5, 20 L5, 5 L8, 8 L5, 2 L2, 8 L5, 5 L5.3, 6 L5.3, 20'
  1121. ],
  1122. symbolOffset: 5,
  1123. symbolSize: [35, 38],
  1124. },
  1125. name: "条"
  1126. }],
  1127. series: [{
  1128. name: "话务量",
  1129. type: "line",
  1130. smooth: true,
  1131. showSymbol: false,
  1132. symbol: 'circle',
  1133. symbolSize: 4,
  1134. zlevel: 3,
  1135. itemStyle: {
  1136. color: '#06eff8'
  1137. },
  1138. lineStyle: {
  1139. normal: {
  1140. width: 2,
  1141. color: "#06eff8",
  1142. }
  1143. },
  1144. // label: {
  1145. // show: true,
  1146. // position: 'top',
  1147. // color: '#fff',
  1148. // fontSize: 14,
  1149. // fontWeight: '600',
  1150. // formatter: function (params) {
  1151. // return params.seriesName + ':' + params.value
  1152. // }
  1153. // },
  1154. areaStyle: {
  1155. normal: {
  1156. color: new echarts.graphic.LinearGradient(
  1157. 0,
  1158. 0,
  1159. 0,
  1160. 1,
  1161. [{
  1162. offset: 0,
  1163. color: "#35b1bb"
  1164. },
  1165. {
  1166. offset: 0.8,
  1167. color: "#073492"
  1168. }
  1169. ],
  1170. false
  1171. ),
  1172. }
  1173. },
  1174. emphasis: {
  1175. itemStyle: {
  1176. color: '#fff',
  1177. shadowBlur: 10,
  1178. shadowOffsetX: 1,
  1179. shadowOffsetY: 1,
  1180. shadowColor: 'rgb(250,250, 250)'
  1181. }
  1182. },
  1183. data: monthCount
  1184. }, {
  1185. name: "接通量",
  1186. type: "line",
  1187. smooth: true,
  1188. showSymbol: false,
  1189. symbol: 'circle',
  1190. symbolSize: 4,
  1191. zlevel: 3,
  1192. itemStyle: {
  1193. color: '#38a4fa'
  1194. },
  1195. // label: {
  1196. // show: true,
  1197. // position: 'top',
  1198. // color: '#fff',
  1199. // fontSize: 14,
  1200. // fontWeight: '600',
  1201. // formatter: function (params) {
  1202. // return params.seriesName + ':' + params.value
  1203. // }
  1204. // },
  1205. lineStyle: {
  1206. normal: {
  1207. width: 2,
  1208. color: "#38a4fa",
  1209. }
  1210. },
  1211. areaStyle: {
  1212. normal: {
  1213. color: new echarts.graphic.LinearGradient(
  1214. 0,
  1215. 0,
  1216. 0,
  1217. 1,
  1218. [{
  1219. offset: 0,
  1220. color: "#1682c4"
  1221. },
  1222. {
  1223. offset: 0.8,
  1224. color: "#1276aa"
  1225. }
  1226. ],
  1227. false
  1228. ),
  1229. }
  1230. },
  1231. emphasis: {
  1232. itemStyle: {
  1233. color: '#fff',
  1234. shadowBlur: 10,
  1235. shadowOffsetX: 1,
  1236. shadowOffsetY: 1,
  1237. shadowColor: 'rgb(250,250, 250)'
  1238. }
  1239. },
  1240. data: dayCount
  1241. }]
  1242. };
  1243. traffic.setOption(option);
  1244. }
  1245. function workOrderChart(workOrderData, workOrderName) {
  1246. let workOrder = echarts.init(document.getElementById('workOrder'));
  1247. option = {
  1248. color: ['#00f0ff', '#ff5a00', '#ffe000', '#fff59e', '#00ff78', '#ff00ff', '#ff97ff'],
  1249. // grid: {
  1250. // left: -100,
  1251. // top: 50,
  1252. // bottom: 10,
  1253. // right: 10,
  1254. // containLabel: true
  1255. // },
  1256. tooltip: {
  1257. show: false
  1258. },
  1259. legend: {
  1260. icon: "rect",
  1261. orient: 'horizontal',
  1262. width: 150,
  1263. height: 15,
  1264. itemWidth: 15,
  1265. itemGap: 20,
  1266. data: workOrderName,
  1267. right: 70,
  1268. top: 50,
  1269. align: 'left',
  1270. textStyle: {
  1271. color: "#fff"
  1272. },
  1273. // itemGap: 10
  1274. },
  1275. toolbox: {
  1276. show: false
  1277. },
  1278. polar: {
  1279. radius: '65%'
  1280. },
  1281. angleAxis: {
  1282. interval: 5,
  1283. type: 'category',
  1284. data: [],
  1285. z: 20,
  1286. axisLine: {
  1287. show: true,
  1288. lineStyle: {
  1289. color: "#0556b8",
  1290. width: 5,
  1291. type: "solid"
  1292. },
  1293. },
  1294. axisLabel: {
  1295. interval: 0,
  1296. show: true,
  1297. color: "#0556b8",
  1298. margin: 8,
  1299. fontSize: 16
  1300. },
  1301. },
  1302. radiusAxis: {
  1303. min: 20,
  1304. max: 100,
  1305. interval: 20,
  1306. axisLine: {
  1307. show: false,
  1308. lineStyle: {
  1309. color: "#0B3E5E",
  1310. width: 1,
  1311. type: "solid"
  1312. },
  1313. },
  1314. axisLabel: {
  1315. formatter: '{value} %',
  1316. show: false,
  1317. padding: [0, 0, 20, 0],
  1318. color: "#0B3E5E",
  1319. fontSize: 16
  1320. },
  1321. splitLine: {
  1322. lineStyle: {
  1323. color: "#0556b8",
  1324. width: 2,
  1325. type: "solid"
  1326. }
  1327. }
  1328. },
  1329. calculable: true,
  1330. series: [{
  1331. type: 'pie',
  1332. radius: ["0", "5%"],
  1333. hoverAnimation: false,
  1334. labelLine: {
  1335. normal: {
  1336. show: false,
  1337. length: 30,
  1338. length2: 55
  1339. },
  1340. emphasis: {
  1341. show: false
  1342. }
  1343. },
  1344. data: [{
  1345. name: '',
  1346. value: 0,
  1347. itemStyle: {
  1348. normal: {
  1349. color: "#0B4A6B"
  1350. }
  1351. }
  1352. }]
  1353. }, {
  1354. stack: 'a',
  1355. type: 'pie',
  1356. radius: '55%',
  1357. roseType: 'area',
  1358. zlevel: 10,
  1359. itemStyle: {
  1360. normal: {
  1361. label: {
  1362. show: true,
  1363. position: 'outside',
  1364. color: '#ddd',
  1365. formatter: function (params) {
  1366. var percent = 0;
  1367. var total = 0;
  1368. for (var i = 0; i < workOrderData.length; i++) {
  1369. total += workOrderData[i].value;
  1370. }
  1371. percent = ((params.value / total) * 100).toFixed(2);
  1372. if (params.name !== '') {
  1373. return params.name + ':' + percent + '%';
  1374. } else {
  1375. return '';
  1376. }
  1377. },
  1378. },
  1379. labelLine: {
  1380. // smooth:true,
  1381. length: 15,
  1382. length2: 25,
  1383. show: true,
  1384. color: '#00ffff'
  1385. }
  1386. }
  1387. },
  1388. data: workOrderData
  1389. }]
  1390. }
  1391. workOrder.setOption(option)
  1392. }
  1393. function timeTable() {
  1394. //表格滚动
  1395. $('.test_rank .maquee ul').each(function (index, dom) {
  1396. //将每个 的所有子级都复制一遍
  1397. var rows = $(dom).children().clone();
  1398. //再将新的到的加入原来的
  1399. $(dom).append(rows);
  1400. });
  1401. //数据获取
  1402. new doAjax({
  1403. url: huayi.config.callcenter_url + "/InfoNew/GetDeptDayTime",
  1404. data: {},
  1405. callBack: function (res) {
  1406. // res.reverse();
  1407. let str = ''
  1408. let num;
  1409. res.forEach(function (v, n) {
  1410. num = 1 + n
  1411. if (n == 0) {
  1412. str += '<li><div><img src="./image/No1.png" alt=""></div><div>' + v.deptname +
  1413. '</div><div>' + v.timeday + 'h</div></li>'
  1414. } else if (n == 1) {
  1415. str += '<li><div><img src="./image/No2.png" alt=""></div><div>' + v.deptname +
  1416. '</div><div>' + v.timeday + 'h</div></li>'
  1417. } else if (n == 2) {
  1418. str += '<li><div><img src="./image/No3.png" alt=""></div><div>' + v.deptname +
  1419. '</div><div>' + v.timeday + 'h</div></li>'
  1420. } else {
  1421. str += '<li><div>' + num + '</div><div>' + v.deptname + '</div><div>' + v
  1422. .timeday + 'h</div></li>'
  1423. }
  1424. })
  1425. $('.test_rank ul').html(str);
  1426. }
  1427. });
  1428. }
  1429. function getNowFormatDate() {
  1430. var date = new Date();
  1431. var year = date.getFullYear();
  1432. var month = date.getMonth() + 1;
  1433. var strDate = date.getDate();
  1434. var Hour = date.getHours(); // 获取当前小时数(0-23)
  1435. var Minute = date.getMinutes(); // 获取当前分钟数(0-59)
  1436. var Second = date.getSeconds(); // 获取当前秒数(0-59)
  1437. var show_day = new Array('星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六');
  1438. var day = date.getDay();
  1439. if (Hour < 10) {
  1440. Hour = "0" + Hour;
  1441. }
  1442. if (Minute < 10) {
  1443. Minute = "0" + Minute;
  1444. }
  1445. if (Second < 10) {
  1446. Second = "0" + Second;
  1447. }
  1448. if (month >= 1 && month <= 9) {
  1449. month = "0" + month;
  1450. }
  1451. if (strDate >= 0 && strDate <= 9) {
  1452. strDate = "0" + strDate;
  1453. }
  1454. var HMS = Hour + ':' + Minute + ':' + Second;
  1455. var temp_time = year + '-' + month + '-' + strDate + ' ' + HMS;
  1456. $('.dataTime').text(temp_time);
  1457. // $('.statisticsTime').text(temp_time);
  1458. // $('.nowTime li:nth-child(2)').text(temp_time);
  1459. $('.secondLevel_map .time').text(year + '-' + month + '-' + strDate)
  1460. setInterval(getNowFormatDate, 1000);
  1461. }
  1462. function getTimes(dom){
  1463. function p(s) {
  1464. return s < 10 ? '0' + s : s;
  1465. }
  1466. var currentYear = new Date().getFullYear();
  1467. var currentMonth = new Date().getMonth() + 1;
  1468. var currentDate = new Date().getDate();
  1469. var prevCurrentYear = 0;
  1470. var prevCurrentMonth = 0;
  1471. if(currentMonth == 1) {
  1472. prevCurrentYear = currentYear - 1;
  1473. prevCurrentMonth = 12;
  1474. } else {
  1475. prevCurrentYear = currentYear;
  1476. prevCurrentMonth = currentMonth - 1;
  1477. }
  1478. let hh = new Date().getHours()
  1479. let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes():new Date().getMinutes()
  1480. let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds():new Date().getSeconds()
  1481. var data=currentYear + "-" + p(currentMonth) + "-" + 01;
  1482. var current = currentYear + "-" + p(currentMonth) + "-" + p(currentDate);
  1483. // var a = getPreDatetime(3600 * 1000 * 24 * 30);
  1484. $(dom).text(data + " ~ " + current)
  1485. }
  1486. function getNowTime(dom){
  1487. function p(s) {
  1488. return s < 10 ? '0' + s : s;
  1489. }
  1490. var currentYear = new Date().getFullYear();
  1491. var currentMonth = new Date().getMonth() + 1;
  1492. var currentDate = new Date().getDate();
  1493. var prevCurrentYear = 0;
  1494. var prevCurrentMonth = 0;
  1495. if(currentMonth == 1) {
  1496. prevCurrentYear = currentYear - 1;
  1497. prevCurrentMonth = 12;
  1498. } else {
  1499. prevCurrentYear = currentYear;
  1500. prevCurrentMonth = currentMonth - 1;
  1501. }
  1502. let hh = new Date().getHours()
  1503. let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes():new Date().getMinutes()
  1504. let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds():new Date().getSeconds()
  1505. var data=currentYear + "-" + p(currentMonth) + "-" + 01+' ' + 00 + ':' + 00 + ':' + 00;
  1506. var current = currentYear + "-" + p(currentMonth) + "-" + p(currentDate)+' ' + hh + ':' + mf + ':' + ss;
  1507. // var a = getPreDatetime(3600 * 1000 * 24 * 30);
  1508. $(dom).val(data + " ~ " + current)
  1509. // //昨天的时间
  1510. // var date1 = new Date(new Date(new Date().toLocaleDateString()).getTime());
  1511. // var startTime = date1.getFullYear() +
  1512. // "-" + ((date1.getMonth() + 1) < 10 ? "0" + (date1.getMonth() + 1):(date1.getMonth() + 1))+
  1513. //"-" + (date1.getDate() < 10 ? "0" + date1.getDate():date1.getDate()) +
  1514. //" " + (date1.getHours()<10?"0"+date1.getHours():date1.getHours()) +
  1515. //":" + (date1.getMinutes()<10?"0"+date1.getMinutes():date1.getMinutes()) +
  1516. // ":" + (date1.getSeconds()<10?"0"+date1.getSeconds():date1.getSeconds())
  1517. // //今天的时间
  1518. // var day2 = new Date();
  1519. // day2.setTime(day2.getTime());
  1520. // let hh = new Date().getHours()
  1521. // let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes():new Date().getMinutes()
  1522. // let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds():new Date().getSeconds()
  1523. // var s2 = day2.getFullYear() + "-" + (day2.getMonth() + 1) + "-" + day2.getDate()+' ' + hh + ':' + mf + ':' + ss;
  1524. // $(dom).val(startTime + " ~ " + s2);
  1525. }
  1526. // function getPreDatetime(pdate) {
  1527. // var start = new Date()
  1528. // start.setTime(start.getTime() - pdate)
  1529. // start.getYear(); // 获取当前年份(2位)
  1530. // var YY = start.getFullYear() // 获取完整的年份(4位,1970-????)
  1531. // var MM = start.getMonth() + 1 // 获取当前月份(0-11,0代表1月)
  1532. // MM = MM > 9 ? MM : ('0' + MM);
  1533. // var DD = start.getDate() // 获取当前日(1-31)
  1534. // DD = DD > 9 ? DD : ('0' + DD)
  1535. // var lastmonth = YY + '-' + MM + '-' + DD+' ' + 00 + ':' + 00 + ':' + 00;
  1536. // return lastmonth;
  1537. // }
  1538. //二级页面点击
  1539. //二级办理时长统计
  1540. $('.test_rank').click(function () {
  1541. $('.bulletFrame').show();
  1542. $('.timeSta_wrap').show();
  1543. $('.timeSta_wrap').siblings().hide()
  1544. if ($('.bulletFrame').css('display') == 'block') {
  1545. $('.body').css('opacity', '0.4')
  1546. }
  1547. timeSecTable();
  1548. })
  1549. //热线整合
  1550. $('.accept_statistics').click(function (e) {
  1551. $('.bulletFrame').show();
  1552. $('.hotline_wrap').show();
  1553. $('.hotline_wrap').siblings().hide()
  1554. if ($('.bulletFrame').css('display') == 'block') {
  1555. $('.body').css('opacity', '0.4')
  1556. }
  1557. getNowTime('#date')
  1558. initHoneline($('#date').val())
  1559. laydate.render({
  1560. elem: '#date',
  1561. range: '~',
  1562. type: 'datetime',
  1563. done: function(value) {
  1564. initHoneline(value)
  1565. }
  1566. });
  1567. function initHoneline(value) {
  1568. var secData = [];
  1569. new doAjax({
  1570. url:huayi.config.callcenter_url+'/InfoNew/GetHotline',
  1571. // url: "http://192.168.8.9:1042/InfoNew/GetHotline",
  1572. Type: 'get',
  1573. data: {
  1574. stime: value && value.split(' ~ ')[0],
  1575. etime: value && value.split(' ~ ')[1]
  1576. },
  1577. callBack: function (res) {
  1578. res.data.forEach(function (v, n) {
  1579. secData.push({
  1580. level: v.value,
  1581. landArea: v.count
  1582. })
  1583. })
  1584. getHonelineChart2(secData, 'hotline2')
  1585. }
  1586. });
  1587. }
  1588. e.stopPropagation()
  1589. })
  1590. //重大事件
  1591. $('.accept_channel').click(function (e) {
  1592. $('.bulletFrame').show();
  1593. $('.events_wrap').show();
  1594. $('.events_wrap').siblings().hide()
  1595. if ($('.bulletFrame').css('display') == 'block') {
  1596. $('.body').css('opacity', '0.4')
  1597. }
  1598. getNowTime('#date2')
  1599. laydate.render({
  1600. elem: '#date2',
  1601. range: '~',
  1602. type: 'datetime',
  1603. done: function(value) {
  1604. new doAjax({
  1605. url: huayi.config.callcenter_url + "/InfoNew/Majorevents",
  1606. Type: 'get',
  1607. data: {
  1608. stime: value && value.split(' ~ ')[0],
  1609. etime: value && value.split(' ~ ')[1]
  1610. },
  1611. callBack: function (res) {
  1612. channelData=[];
  1613. res.data.forEach(function (v, n) {
  1614. channelData.push({
  1615. level: v.TypeName,
  1616. landArea: v.Count
  1617. })
  1618. // }
  1619. })
  1620. getHonelineChart2(channelData, 'channel')
  1621. }
  1622. });
  1623. }
  1624. });
  1625. new doAjax({
  1626. url: huayi.config.callcenter_url + "/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.replace(/[0-9]+/g,""),
  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. })