Nav apraksta

newIndex.js 50KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874
  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. $(".hwsjtj").show()
  479. $('.timeTraffic').css('display', 'none')
  480. $('.daySeat').css('display', 'inline-block')
  481. $('#traffic').css('display', 'block')
  482. $('#timeTraffic').css('display', 'none')
  483. $('.call_situation h2').text('话务数据统计')
  484. $('.act').html(`<label data-pos="1">
  485. 今日<span class="month active"></span>
  486. </label><br>
  487. <label data-pos="2">
  488. 本月<span class="day"></span>
  489. </label> `)
  490. new doAjax({
  491. url: huayi.config.callcenter_url + "InfoNew/GetHWCount24ByNow",
  492. data: {},
  493. callBack: function (res) {
  494. trafficChart(res.data.hours, res.data.hwcount[0], res.data.jtcount[0])
  495. }
  496. });
  497. //话务点击
  498. $('.dataT').click(function (e) {
  499. if (!e.isPropagationStopped()) {//确定stopPropagation是否被调用过
  500. if (e.target.tagName == 'LABEL') {
  501. if ($(e.target).attr('data-pos') == '1') {
  502. $('.month').addClass('active');
  503. $('.day').removeClass('active')
  504. new doAjax({
  505. url: huayi.config.callcenter_url + "InfoNew/GetHWCount24ByNow",
  506. data: {},
  507. callBack: function (res) {
  508. trafficChart(res.data.hours, res.data.hwcount[0], res.data.jtcount[0])
  509. }
  510. });
  511. trafficState = 0;
  512. } else if ($(e.target).attr('data-pos') == '2') {
  513. $('.day').addClass('active');
  514. $('.month').removeClass('active')
  515. new doAjax({
  516. url: huayi.config.callcenter_url + "InfoNew/GetHWCountMonthByNow",
  517. data: {},
  518. callBack: function (res) {
  519. trafficChart(res.data.days, res.data.hwcount[0], res.data.jtcount[0])
  520. }
  521. });
  522. trafficState = 1;
  523. }
  524. }
  525. }
  526. e.stopPropagation();
  527. })
  528. }
  529. }
  530. }
  531. e.stopPropagation();
  532. })
  533. }
  534. function getHotline() {
  535. let datas = [];
  536. new doAjax({
  537. url: huayi.config.callcenter_url + "/InfoNew/GetHotline",
  538. data: {},
  539. callBack: function (res) {
  540. res.data.forEach(function (v, n) {
  541. datas.push({
  542. value: v.count,
  543. name: v.name,
  544. percent: v.bili
  545. })
  546. })
  547. hotlineChart(datas)
  548. }
  549. });
  550. }
  551. function getKeyWord() {
  552. new doAjax({
  553. url: huayi.config.callcenter_url + "/InfoNew/GetKeyCountByNow",
  554. // url: "http://192.168.8.9:1042/InfoNew/GetKeyCountByNow",
  555. data: {},
  556. callBack: function (res) {
  557. let str = '';
  558. let keyName;
  559. res.data.Date.forEach(function (v, n) {
  560. keyName = v.KeyName.substr(0, v.KeyName.length - 2)
  561. str += '<span onclick="getKeyClass(\'' + v.KeyId + '\',\'' + v.ClassCount + '\',\'' + v.KeyName + '\')" onmouseover="getKeyInfo(\'' + v.KeyId + '\',\'' + n + '\')">' +
  562. keyName + ':<label>' + v.Count + '</label></span>'
  563. })
  564. $('#keyword').html(str);
  565. }
  566. });
  567. }
  568. function getworkOrder() {
  569. let workOrderData = [];
  570. let workOrderName = []
  571. new doAjax({
  572. url: huayi.config.callcenter_url + "/InfoNew/GetTypeCount",
  573. data: {},
  574. callBack: function (res) {
  575. res.data.forEach(function (v, n) {
  576. workOrderData.push({
  577. name: v.type,
  578. value: v.count
  579. })
  580. workOrderName.push(v.type);
  581. })
  582. workOrderName.reverse();
  583. workOrderChart(workOrderData, workOrderName)
  584. }
  585. });
  586. }
  587. function hotThingsChart(dom, data, count, count1) {
  588. let hotThings = echarts.init(document.getElementById(dom));
  589. option = {
  590. "textStyle": {
  591. "color": "#c0c3cd",
  592. "fontSize": 11
  593. },
  594. grid: {
  595. top: '25%',
  596. bottom: '15%'
  597. },
  598. "xAxis": {
  599. "nameTextStyle": {
  600. "color": "#c0c3cd",
  601. "padding": [0, 0, -10, 0],
  602. "fontSize": 11
  603. },
  604. "axisLabel": {
  605. "color": "#c0c3cd",
  606. "fontSize": 11,
  607. "rotate": -45,
  608. "interval": 0,
  609. },
  610. "axisTick": {
  611. "lineStyle": {
  612. "color": "#8398c4",
  613. "width": 1
  614. },
  615. "show": false
  616. },
  617. "minorTick": {
  618. "length": 8
  619. },
  620. "splitLine": {
  621. "show": false
  622. },
  623. "axisLine": {
  624. "lineStyle": {
  625. "color": "#8398c4",
  626. "width": 1,
  627. "type": "solid"
  628. },
  629. "show": true
  630. },
  631. "data": data,
  632. "type": "category"
  633. },
  634. "yAxis": {
  635. "nameTextStyle": {
  636. "color": "#c0c3cd",
  637. "padding": [0, 0, 10, -5],
  638. "fontSize": 11
  639. },
  640. "axisLabel": {
  641. "color": "#c0c3cd",
  642. "fontSize": 11
  643. },
  644. "axisTick": {
  645. "lineStyle": {
  646. "color": "#8398c4",
  647. "width": 1
  648. },
  649. "show": true
  650. },
  651. "splitLine": {
  652. "show": true,
  653. "lineStyle": {
  654. "color": "#8398c4",
  655. "type": "dashed"
  656. }
  657. },
  658. "axisLine": {
  659. "lineStyle": {
  660. "color": "#8398c4",
  661. "width": 1,
  662. "type": "solid"
  663. },
  664. "show": true,
  665. // "symbol":['none', 'arrow'],
  666. "symbol": ['none', 'path://M5, 20 L5, 5 L8, 8 L5, 2 L2, 8 L5, 5 L5.3, 6 L5.3, 20'],
  667. 'symbolOffset': 5,
  668. 'symbolSize': [35, 38],
  669. },
  670. "name": "条"
  671. },
  672. "series": [{
  673. "data": count,
  674. "type": "bar",
  675. "barMaxWidth": "auto",
  676. "barWidth": 15,
  677. "itemStyle": {
  678. "color": {
  679. "x": 0,
  680. "y": 0,
  681. "x2": 0,
  682. "y2": 1,
  683. "type": "linear",
  684. "global": false,
  685. "colorStops": [{
  686. "offset": 0,
  687. "color": "#ff4519"
  688. }, {
  689. "offset": 1,
  690. "color": "#fff500"
  691. }]
  692. },
  693. barBorderRadius: [30, 30, 0, 0]
  694. },
  695. "label": {
  696. "show": true,
  697. "position": "top",
  698. "distance": 10,
  699. "color": "#fff"
  700. },
  701. emphasis: {
  702. itemStyle: {
  703. color: new echarts.graphic.LinearGradient(
  704. 0, 0, 0, 1,
  705. [{
  706. offset: 0,
  707. color: '#fde301'
  708. },
  709. {
  710. offset: 1,
  711. color: '#0a2f3e'
  712. }
  713. ]
  714. )
  715. }
  716. },
  717. }, {
  718. "data": [1, 1, 1, 1, 1, 1],
  719. "type": "pictorialBar",
  720. "barMaxWidth": "20",
  721. "symbol": "none",
  722. },
  723. {
  724. // "data": [1500, 1148, 756, 1395, 1750, 1148],
  725. "type": "pictorialBar",
  726. "barMaxWidth": "20",
  727. "symbolPosition": "end",
  728. "symbol": "none",
  729. "symbolOffset": [0, "-50%"],
  730. "symbolSize": [30, 12],
  731. "zlevel": 1
  732. },
  733. {
  734. "data": count1,
  735. "type": "bar",
  736. "barMaxWidth": "auto",
  737. "barWidth": 15,
  738. "barGap": "-100%",
  739. "itemStyle": {
  740. "color": '#234caf'
  741. },
  742. "zlevel": -1
  743. }, {
  744. "data": [1, 1, 1, 1, 1, 1],
  745. "type": "pictorialBar",
  746. "barMaxWidth": "20",
  747. "symbol": "none",
  748. "symbolOffset": [0, "50%"],
  749. "symbolSize": [30, 15],
  750. "zlevel": -2
  751. }, {
  752. "data": count1,
  753. "type": "pictorialBar",
  754. "barMaxWidth": "20",
  755. "symbolPosition": "end",
  756. "symbol": "circle",
  757. "symbolOffset": [0, "-60%"],
  758. "symbolSize": [15, 12],
  759. "itemStyle": {
  760. "color": '#234caf'
  761. },
  762. "zlevel": -1
  763. },
  764. ]
  765. }
  766. hotThings.setOption(option);
  767. }
  768. function getKeyInfo(keyid, n) {
  769. $('.keyInfo').html('');
  770. new doAjax({
  771. url: huayi.config.callcenter_url + "/InfoNew/GetKeyArea",
  772. data: {
  773. pid: keyid
  774. },
  775. callBack: function (res) {
  776. let str = ''
  777. res.forEach(function (v, n) {
  778. if (n > 0) {
  779. str += '<li><label>' + v.area + '</label><span>' + v.count + '</span></li>'
  780. }
  781. })
  782. $('.keyInfo').html(str);
  783. }
  784. });
  785. if (n == 0) {
  786. $('.keyWrap').css({
  787. 'display': 'block',
  788. 'top': '95px',
  789. 'left': '-80px'
  790. })
  791. $('.bar').css('margin', '0 auto')
  792. } else if (n == 1) {
  793. $('.keyWrap').css({
  794. 'display': 'block',
  795. 'top': '95px',
  796. 'left': '100px'
  797. })
  798. $('.bar').css('margin', '0 auto')
  799. } else if (n == 2) {
  800. $('.keyWrap').css({
  801. 'display': 'block',
  802. 'top': '95px',
  803. 'left': '185px'
  804. })
  805. $('.bar').css('margin', '0 0 0 250px')
  806. } else if (n == 5) {
  807. $('.keyWrap').css({
  808. 'display': 'block',
  809. 'top': '130px',
  810. 'left': '185px'
  811. })
  812. $('.bar').css('margin', '0 0 0 250px')
  813. } else if (n == 4) {
  814. $('.keyWrap').css({
  815. 'display': 'block',
  816. 'top': '130px',
  817. 'left': '100px'
  818. })
  819. $('.bar').css('margin', '0 auto')
  820. } else if (n == 3) {
  821. $('.keyWrap').css({
  822. 'display': 'block',
  823. 'top': '130px',
  824. 'left': '-80px'
  825. })
  826. $('.bar').css('margin', '0 auto')
  827. } else if (n == 6) {
  828. $('.keyWrap').css({
  829. 'display': 'block',
  830. 'top': '170px',
  831. 'left': '-80px'
  832. })
  833. $('.bar').css('margin', '0 auto')
  834. } else if (n == 7) {
  835. $('.keyWrap').css({
  836. 'display': 'block',
  837. 'top': '170px',
  838. 'left': '100px'
  839. })
  840. $('.bar').css('margin', '0,auto')
  841. } else if (n == 10) {
  842. $('.keyWrap').css({
  843. 'display': 'block',
  844. 'top': '206px',
  845. 'left': '100px'
  846. })
  847. $('.bar').css('margin', '0 auto')
  848. } else if (n == 12) {
  849. $('.keyWrap').css({
  850. 'display': 'block',
  851. 'top': '243px',
  852. 'left': '-80px'
  853. })
  854. $('.bar').css('margin', '0 auto')
  855. } else if (n == 15) {
  856. $('.keyWrap').css({
  857. 'display': 'block',
  858. 'top': '278px',
  859. 'left': '-110px'
  860. })
  861. $('.bar').css('margin', '0 auto')
  862. } else if (n == 8) {
  863. $('.keyWrap').css({
  864. 'display': 'block',
  865. 'top': '170px',
  866. 'left': '185px'
  867. })
  868. $('.bar').css('margin', '0 0 0 250px')
  869. } else if (n == 9) {
  870. $('.keyWrap').css({
  871. 'display': 'block',
  872. 'top': '206px',
  873. 'left': '-80px'
  874. })
  875. $('.bar').css('margin', '0 auto')
  876. } else if (n == 14) {
  877. $('.keyWrap').css({
  878. 'display': 'block',
  879. 'top': '243px',
  880. 'left': '185px'
  881. })
  882. $('.bar').css('margin', '0 0 0 250px')
  883. } else if (n == 13) {
  884. $('.keyWrap').css({
  885. 'display': 'block',
  886. 'top': '243px',
  887. 'left': '100px'
  888. })
  889. $('.bar').css('margin', '0 auto')
  890. } else if (n == 11) {
  891. $('.keyWrap').css({
  892. 'display': 'block',
  893. 'top': '206px',
  894. 'left': '185px'
  895. })
  896. $('.bar').css('margin', '0 0 0 250px')
  897. } else if (n == 16) {
  898. $('.keyWrap').css({
  899. 'display': 'block',
  900. 'top': '279px',
  901. 'left': '100px'
  902. })
  903. $('.bar').css('margin', '0 auto')
  904. }
  905. }
  906. function hotlineChart(datas) {
  907. console.log(datas)
  908. let hotline = echarts.init(document.getElementById('hotline'));
  909. let colors = ['#ffe000', '#ff8a00', '#3cff9c', '#03d844', '#ff69c8', '#d668ff', '#43b2ff', '#05c9d1'];
  910. let legendData = []
  911. for (var j = 0; j < datas.length; j++) {
  912. var data = {
  913. name: datas[j].name,
  914. icon: 'circle',
  915. textStyle: {
  916. fontSize: 18,
  917. color: colors[j]
  918. }
  919. }
  920. legendData.push(data)
  921. }
  922. let objData = array2obj(datas, 'name')
  923. option = {
  924. color: colors,
  925. tooltip: {
  926. trigger: 'item',
  927. textStyle: {
  928. color: '#fff',
  929. fontSize: '18',
  930. fontWeight: '500'
  931. },
  932. // itemStyle: {
  933. // color: '#ffe400'
  934. // },
  935. position: 'top',
  936. backgroundColor: 'rgba(250,250,250,0)',
  937. transitionDuration: 0.4,
  938. formatter: function (params) {
  939. if (params.data.name.length > 9) {
  940. return '<div class="frame" style="background: url(image/hotline_pie.png) no-repeat;width:230px;height:100px;background-size: 100% 100%;text-align:center;top:20px;"><div class="frameC">' +
  941. params.data.name.substr(0, 10) + '<br>' + params.data.name.substr(10, params.data.name
  942. .length) + ':' + params.data.percent + '</div></div>';
  943. } else {
  944. return '<div class="frame" style="background: url(image/hotline_pie.png) no-repeat;width:220px;height:100px;background-size: 100% 100%;text-align:center;top:20px;"><div class="frameC">' +
  945. params.data.name + '<br>' + params.data.percent + '</div></div>';
  946. }
  947. }
  948. },
  949. series: [{
  950. name: '访问来源',
  951. type: 'pie',
  952. radius: '75%',
  953. center: ['50%', '50%'],
  954. label: {
  955. show: true,
  956. position: 'outside',
  957. color: '#ddd',
  958. fontSize: 13,
  959. formatter: function (params) {
  960. let str;
  961. if (params.name == ' 国家移民管理局咨询服务热线') {
  962. str = 12367;
  963. return str + ':' + params.value
  964. } else if (params.name == ' 为老服务热线') {
  965. str = 12349;
  966. return str + ':' + params.value
  967. } else if (params.name == ' 残疾人维权服务电话') {
  968. str = 12385;
  969. return str + ':' + params.value
  970. } else if (params.name == ' 火灾隐患举报投诉电话') {
  971. str = 96119;
  972. return str + ':' + params.value
  973. } else if (params.name == ' 人口和计生咨询举报电话') {
  974. str = 12356;
  975. return str + ':' + params.value
  976. } else if (params.name == ' 全国统一自然资源违法举报电话') {
  977. str = 12336;
  978. return str + ':' + params.value
  979. } else if (params.name == ' 商务领域咨询举报电话') {
  980. str = 12312;
  981. return str + ':' + params.value
  982. } else if (params.name == ' 文化市场举报电话') {
  983. str = 12318;
  984. return str + ':' + params.value
  985. }
  986. },
  987. padding: [0, -70, -20, -67]
  988. },
  989. labelLine: {
  990. length: 13,
  991. length2: 65,
  992. show: true
  993. },
  994. data: datas,
  995. // roseType: 'area'
  996. // animationType: 'expansion',
  997. // animationEasing: 'elasticOut',
  998. // animationDelay: function(idx) {
  999. // return 200
  1000. // }
  1001. }]
  1002. }
  1003. function array2obj(array, key) {
  1004. var resObj = {}
  1005. for (var i = 0; i < array.length; i++) {
  1006. resObj[array[i][key]] = array[i]
  1007. }
  1008. return resObj
  1009. }
  1010. hotline.setOption(option)
  1011. }
  1012. function trafficChart(hours, monthCount, dayCount) {
  1013. let traffic = echarts.init(document.getElementById('traffic'));
  1014. option = {
  1015. tooltip: {
  1016. trigger: 'axis',
  1017. axisPointer: {
  1018. show: true,
  1019. type: 'line',
  1020. lineStyle: {
  1021. type: 'dashed',
  1022. width:2,
  1023. color:'#fff'
  1024. }
  1025. },
  1026. textStyle: {
  1027. color: '#fff',
  1028. fontSize: 15,
  1029. fontWeight: '600',
  1030. },
  1031. // position: ['75%', '55%'],
  1032. backgroundColor: 'rgba(250,250,250,0)',
  1033. formatter: function (params) {
  1034. let str = '<div style="background-image: url(image/key_frame.png);width:128px;height:90px;line-height:25px;background-size: 100% 100%;padding:7px 8px;">'
  1035. let jtcount=params[1].value / params[0].value;
  1036. if(isNaN(jtcount)){
  1037. jtcount=0;
  1038. str +=
  1039. '<div><span style="color:#fff;width:75px;text-align: center;display: inline-block;">接通率:</span><span style:"width:55px;text-align: center;display: inline-block;">' +
  1040. ((jtcount) * 100).toFixed(0) + '%</span></div>'
  1041. }else{
  1042. str +=
  1043. '<div><span style="color:#fff;width:75px;text-align: center;display: inline-block;">接通率:</span><span style:"width:55px;text-align: center;display: inline-block;">' +
  1044. ((jtcount) * 100).toFixed(0) + '%</span></div>'
  1045. }
  1046. params.forEach(function (v,n) {
  1047. // if(v.seriesName!='上部1'){
  1048. str +=
  1049. '<div><span style="color:#fff;width:75px;text-align: center;display: inline-block;">' +
  1050. v.seriesName +
  1051. ':</span><span style:"width:55px;text-align: center;display: inline-block;">' +
  1052. v.value + '</span></div>'
  1053. // }
  1054. })
  1055. return str;
  1056. }
  1057. },
  1058. grid: {
  1059. top: '18%',
  1060. bottom: '12%'
  1061. },
  1062. xAxis: [{
  1063. type: "category",
  1064. boundaryGap: false,
  1065. scale: true,
  1066. axisLabel: {
  1067. formatter: '{value}',
  1068. fontSize: 13,
  1069. margin: 10,
  1070. textStyle: {
  1071. color: "#f4f4f8"
  1072. }
  1073. },
  1074. axisLine: {
  1075. show: true,
  1076. lineStyle: {
  1077. color: "#525fa6"
  1078. }
  1079. },
  1080. splitLine: {
  1081. show: false,
  1082. lineStyle: {
  1083. color: "#243753"
  1084. }
  1085. },
  1086. axisTick: {
  1087. show: false
  1088. },
  1089. data: hours
  1090. }],
  1091. yAxis: [{
  1092. boundaryGap: false,
  1093. type: "value",
  1094. // scale:true,
  1095. axisLabel: {
  1096. textStyle: {
  1097. color: "#f4f4f8"
  1098. }
  1099. },
  1100. nameTextStyle: {
  1101. color: "#fff",
  1102. fontSize: 12,
  1103. lineHeight: 40
  1104. },
  1105. splitLine: {
  1106. show: true,
  1107. lineStyle: {
  1108. color: "#516cb8",
  1109. type: "dashed"
  1110. }
  1111. },
  1112. axisLine: {
  1113. lineStyle: {
  1114. color: "#8393c8",
  1115. width: 1,
  1116. type: "solid"
  1117. },
  1118. show: true,
  1119. // "symbol":['none', 'arrow'],
  1120. symbol: ['none',
  1121. 'path://M5, 20 L5, 5 L8, 8 L5, 2 L2, 8 L5, 5 L5.3, 6 L5.3, 20'
  1122. ],
  1123. symbolOffset: 5,
  1124. symbolSize: [35, 38],
  1125. },
  1126. name: "条"
  1127. }],
  1128. series: [{
  1129. name: "话务量",
  1130. type: "line",
  1131. smooth: true,
  1132. showSymbol: false,
  1133. symbol: 'circle',
  1134. symbolSize: 4,
  1135. zlevel: 3,
  1136. itemStyle: {
  1137. color: '#06eff8'
  1138. },
  1139. lineStyle: {
  1140. normal: {
  1141. width: 2,
  1142. color: "#06eff8",
  1143. }
  1144. },
  1145. // label: {
  1146. // show: true,
  1147. // position: 'top',
  1148. // color: '#fff',
  1149. // fontSize: 14,
  1150. // fontWeight: '600',
  1151. // formatter: function (params) {
  1152. // return params.seriesName + ':' + params.value
  1153. // }
  1154. // },
  1155. areaStyle: {
  1156. normal: {
  1157. color: new echarts.graphic.LinearGradient(
  1158. 0,
  1159. 0,
  1160. 0,
  1161. 1,
  1162. [{
  1163. offset: 0,
  1164. color: "#35b1bb"
  1165. },
  1166. {
  1167. offset: 0.8,
  1168. color: "#073492"
  1169. }
  1170. ],
  1171. false
  1172. ),
  1173. }
  1174. },
  1175. emphasis: {
  1176. itemStyle: {
  1177. color: '#fff',
  1178. shadowBlur: 10,
  1179. shadowOffsetX: 1,
  1180. shadowOffsetY: 1,
  1181. shadowColor: 'rgb(250,250, 250)'
  1182. }
  1183. },
  1184. data: monthCount
  1185. }, {
  1186. name: "接通量",
  1187. type: "line",
  1188. smooth: true,
  1189. showSymbol: false,
  1190. symbol: 'circle',
  1191. symbolSize: 4,
  1192. zlevel: 3,
  1193. itemStyle: {
  1194. color: '#38a4fa'
  1195. },
  1196. // label: {
  1197. // show: true,
  1198. // position: 'top',
  1199. // color: '#fff',
  1200. // fontSize: 14,
  1201. // fontWeight: '600',
  1202. // formatter: function (params) {
  1203. // return params.seriesName + ':' + params.value
  1204. // }
  1205. // },
  1206. lineStyle: {
  1207. normal: {
  1208. width: 2,
  1209. color: "#38a4fa",
  1210. }
  1211. },
  1212. areaStyle: {
  1213. normal: {
  1214. color: new echarts.graphic.LinearGradient(
  1215. 0,
  1216. 0,
  1217. 0,
  1218. 1,
  1219. [{
  1220. offset: 0,
  1221. color: "#1682c4"
  1222. },
  1223. {
  1224. offset: 0.8,
  1225. color: "#1276aa"
  1226. }
  1227. ],
  1228. false
  1229. ),
  1230. }
  1231. },
  1232. emphasis: {
  1233. itemStyle: {
  1234. color: '#fff',
  1235. shadowBlur: 10,
  1236. shadowOffsetX: 1,
  1237. shadowOffsetY: 1,
  1238. shadowColor: 'rgb(250,250, 250)'
  1239. }
  1240. },
  1241. data: dayCount
  1242. }]
  1243. };
  1244. traffic.setOption(option);
  1245. }
  1246. function workOrderChart(workOrderData, workOrderName) {
  1247. let workOrder = echarts.init(document.getElementById('workOrder'));
  1248. option = {
  1249. color: ['#00f0ff', '#ff5a00', '#ffe000', '#fff59e', '#00ff78', '#ff00ff', '#ff97ff'],
  1250. // grid: {
  1251. // left: -100,
  1252. // top: 50,
  1253. // bottom: 10,
  1254. // right: 10,
  1255. // containLabel: true
  1256. // },
  1257. tooltip: {
  1258. show: false
  1259. },
  1260. legend: {
  1261. icon: "rect",
  1262. orient: 'horizontal',
  1263. width: 150,
  1264. height: 15,
  1265. itemWidth: 15,
  1266. itemGap: 20,
  1267. data: workOrderName,
  1268. right: 70,
  1269. top: 50,
  1270. align: 'left',
  1271. textStyle: {
  1272. color: "#fff"
  1273. },
  1274. // itemGap: 10
  1275. },
  1276. toolbox: {
  1277. show: false
  1278. },
  1279. polar: {
  1280. radius: '65%'
  1281. },
  1282. angleAxis: {
  1283. interval: 5,
  1284. type: 'category',
  1285. data: [],
  1286. z: 20,
  1287. axisLine: {
  1288. show: true,
  1289. lineStyle: {
  1290. color: "#0556b8",
  1291. width: 5,
  1292. type: "solid"
  1293. },
  1294. },
  1295. axisLabel: {
  1296. interval: 0,
  1297. show: true,
  1298. color: "#0556b8",
  1299. margin: 8,
  1300. fontSize: 16
  1301. },
  1302. },
  1303. radiusAxis: {
  1304. min: 20,
  1305. max: 100,
  1306. interval: 20,
  1307. axisLine: {
  1308. show: false,
  1309. lineStyle: {
  1310. color: "#0B3E5E",
  1311. width: 1,
  1312. type: "solid"
  1313. },
  1314. },
  1315. axisLabel: {
  1316. formatter: '{value} %',
  1317. show: false,
  1318. padding: [0, 0, 20, 0],
  1319. color: "#0B3E5E",
  1320. fontSize: 16
  1321. },
  1322. splitLine: {
  1323. lineStyle: {
  1324. color: "#0556b8",
  1325. width: 2,
  1326. type: "solid"
  1327. }
  1328. }
  1329. },
  1330. calculable: true,
  1331. series: [{
  1332. type: 'pie',
  1333. radius: ["0", "5%"],
  1334. hoverAnimation: false,
  1335. labelLine: {
  1336. normal: {
  1337. show: false,
  1338. length: 30,
  1339. length2: 55
  1340. },
  1341. emphasis: {
  1342. show: false
  1343. }
  1344. },
  1345. data: [{
  1346. name: '',
  1347. value: 0,
  1348. itemStyle: {
  1349. normal: {
  1350. color: "#0B4A6B"
  1351. }
  1352. }
  1353. }]
  1354. }, {
  1355. stack: 'a',
  1356. type: 'pie',
  1357. radius: '55%',
  1358. roseType: 'area',
  1359. zlevel: 10,
  1360. itemStyle: {
  1361. normal: {
  1362. label: {
  1363. show: true,
  1364. position: 'outside',
  1365. color: '#ddd',
  1366. formatter: function (params) {
  1367. var percent = 0;
  1368. var total = 0;
  1369. for (var i = 0; i < workOrderData.length; i++) {
  1370. total += workOrderData[i].value;
  1371. }
  1372. percent = ((params.value / total) * 100).toFixed(2);
  1373. if (params.name !== '') {
  1374. return params.name + ':' + percent + '%';
  1375. } else {
  1376. return '';
  1377. }
  1378. },
  1379. },
  1380. labelLine: {
  1381. // smooth:true,
  1382. length: 15,
  1383. length2: 25,
  1384. show: true,
  1385. color: '#00ffff'
  1386. }
  1387. }
  1388. },
  1389. data: workOrderData
  1390. }]
  1391. }
  1392. workOrder.setOption(option)
  1393. }
  1394. function timeTable() {
  1395. //表格滚动
  1396. $('.test_rank .maquee ul').each(function (index, dom) {
  1397. //将每个 的所有子级都复制一遍
  1398. var rows = $(dom).children().clone();
  1399. //再将新的到的加入原来的
  1400. $(dom).append(rows);
  1401. });
  1402. //数据获取
  1403. new doAjax({
  1404. url: huayi.config.callcenter_url + "/InfoNew/GetDeptDayTime",
  1405. data: {},
  1406. callBack: function (res) {
  1407. // res.reverse();
  1408. let str = ''
  1409. let num;
  1410. res.forEach(function (v, n) {
  1411. num = 1 + n
  1412. if (n == 0) {
  1413. str += '<li><div><img src="./image/No1.png" alt=""></div><div>' + v.deptname +
  1414. '</div><div>' + v.timeday + 'h</div></li>'
  1415. } else if (n == 1) {
  1416. str += '<li><div><img src="./image/No2.png" alt=""></div><div>' + v.deptname +
  1417. '</div><div>' + v.timeday + 'h</div></li>'
  1418. } else if (n == 2) {
  1419. str += '<li><div><img src="./image/No3.png" alt=""></div><div>' + v.deptname +
  1420. '</div><div>' + v.timeday + 'h</div></li>'
  1421. } else {
  1422. str += '<li><div>' + num + '</div><div>' + v.deptname + '</div><div>' + v
  1423. .timeday + 'h</div></li>'
  1424. }
  1425. })
  1426. $('.test_rank ul').html(str);
  1427. }
  1428. });
  1429. }
  1430. function getNowFormatDate() {
  1431. var date = new Date();
  1432. var year = date.getFullYear();
  1433. var month = date.getMonth() + 1;
  1434. var strDate = date.getDate();
  1435. var Hour = date.getHours(); // 获取当前小时数(0-23)
  1436. var Minute = date.getMinutes(); // 获取当前分钟数(0-59)
  1437. var Second = date.getSeconds(); // 获取当前秒数(0-59)
  1438. var show_day = new Array('星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六');
  1439. var day = date.getDay();
  1440. if (Hour < 10) {
  1441. Hour = "0" + Hour;
  1442. }
  1443. if (Minute < 10) {
  1444. Minute = "0" + Minute;
  1445. }
  1446. if (Second < 10) {
  1447. Second = "0" + Second;
  1448. }
  1449. if (month >= 1 && month <= 9) {
  1450. month = "0" + month;
  1451. }
  1452. if (strDate >= 0 && strDate <= 9) {
  1453. strDate = "0" + strDate;
  1454. }
  1455. var HMS = Hour + ':' + Minute + ':' + Second;
  1456. var temp_time = year + '-' + month + '-' + strDate + ' ' + HMS;
  1457. $('.dataTime').text(temp_time);
  1458. // $('.statisticsTime').text(temp_time);
  1459. // $('.nowTime li:nth-child(2)').text(temp_time);
  1460. $('.secondLevel_map .time').text(year + '-' + month + '-' + strDate)
  1461. setInterval(getNowFormatDate, 1000);
  1462. }
  1463. function getTimes(dom){
  1464. function p(s) {
  1465. return s < 10 ? '0' + s : s;
  1466. }
  1467. var currentYear = new Date().getFullYear();
  1468. var currentMonth = new Date().getMonth() + 1;
  1469. var currentDate = new Date().getDate();
  1470. var prevCurrentYear = 0;
  1471. var prevCurrentMonth = 0;
  1472. if(currentMonth == 1) {
  1473. prevCurrentYear = currentYear - 1;
  1474. prevCurrentMonth = 12;
  1475. } else {
  1476. prevCurrentYear = currentYear;
  1477. prevCurrentMonth = currentMonth - 1;
  1478. }
  1479. let hh = new Date().getHours()
  1480. let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes():new Date().getMinutes()
  1481. let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds():new Date().getSeconds()
  1482. var data=currentYear + "-" + p(currentMonth) + "-" + 01;
  1483. var current = currentYear + "-" + p(currentMonth) + "-" + p(currentDate);
  1484. // var a = getPreDatetime(3600 * 1000 * 24 * 30);
  1485. $(dom).text(data + " ~ " + current)
  1486. }
  1487. function getNowTime(dom){
  1488. function p(s) {
  1489. return s < 10 ? '0' + s : s;
  1490. }
  1491. var currentYear = new Date().getFullYear();
  1492. var currentMonth = new Date().getMonth() + 1;
  1493. var currentDate = new Date().getDate();
  1494. var prevCurrentYear = 0;
  1495. var prevCurrentMonth = 0;
  1496. if(currentMonth == 1) {
  1497. prevCurrentYear = currentYear - 1;
  1498. prevCurrentMonth = 12;
  1499. } else {
  1500. prevCurrentYear = currentYear;
  1501. prevCurrentMonth = currentMonth - 1;
  1502. }
  1503. let hh = new Date().getHours()
  1504. let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes():new Date().getMinutes()
  1505. let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds():new Date().getSeconds()
  1506. var data=currentYear + "-" + p(currentMonth) + "-" + 01+' ' + 00 + ':' + 00 + ':' + 00;
  1507. var current = currentYear + "-" + p(currentMonth) + "-" + p(currentDate)+' ' + hh + ':' + mf + ':' + ss;
  1508. // var a = getPreDatetime(3600 * 1000 * 24 * 30);
  1509. $(dom).val(data + " ~ " + current)
  1510. // //昨天的时间
  1511. // var date1 = new Date(new Date(new Date().toLocaleDateString()).getTime());
  1512. // var startTime = date1.getFullYear() +
  1513. // "-" + ((date1.getMonth() + 1) < 10 ? "0" + (date1.getMonth() + 1):(date1.getMonth() + 1))+
  1514. //"-" + (date1.getDate() < 10 ? "0" + date1.getDate():date1.getDate()) +
  1515. //" " + (date1.getHours()<10?"0"+date1.getHours():date1.getHours()) +
  1516. //":" + (date1.getMinutes()<10?"0"+date1.getMinutes():date1.getMinutes()) +
  1517. // ":" + (date1.getSeconds()<10?"0"+date1.getSeconds():date1.getSeconds())
  1518. // //今天的时间
  1519. // var day2 = new Date();
  1520. // day2.setTime(day2.getTime());
  1521. // let hh = new Date().getHours()
  1522. // let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes():new Date().getMinutes()
  1523. // let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds():new Date().getSeconds()
  1524. // var s2 = day2.getFullYear() + "-" + (day2.getMonth() + 1) + "-" + day2.getDate()+' ' + hh + ':' + mf + ':' + ss;
  1525. // $(dom).val(startTime + " ~ " + s2);
  1526. }
  1527. // function getPreDatetime(pdate) {
  1528. // var start = new Date()
  1529. // start.setTime(start.getTime() - pdate)
  1530. // start.getYear(); // 获取当前年份(2位)
  1531. // var YY = start.getFullYear() // 获取完整的年份(4位,1970-????)
  1532. // var MM = start.getMonth() + 1 // 获取当前月份(0-11,0代表1月)
  1533. // MM = MM > 9 ? MM : ('0' + MM);
  1534. // var DD = start.getDate() // 获取当前日(1-31)
  1535. // DD = DD > 9 ? DD : ('0' + DD)
  1536. // var lastmonth = YY + '-' + MM + '-' + DD+' ' + 00 + ':' + 00 + ':' + 00;
  1537. // return lastmonth;
  1538. // }
  1539. //二级页面点击
  1540. //二级办理时长统计
  1541. $('.test_rank').click(function () {
  1542. $('.bulletFrame').show();
  1543. $('.timeSta_wrap').show();
  1544. $('.timeSta_wrap').siblings().hide()
  1545. if ($('.bulletFrame').css('display') == 'block') {
  1546. $('.body').css('opacity', '0.4')
  1547. }
  1548. timeSecTable();
  1549. })
  1550. //热线整合
  1551. $('.accept_statistics').click(function (e) {
  1552. $('.bulletFrame').show();
  1553. $('.hotline_wrap').show();
  1554. $('.hotline_wrap').siblings().hide()
  1555. if ($('.bulletFrame').css('display') == 'block') {
  1556. $('.body').css('opacity', '0.4')
  1557. }
  1558. getNowTime('#date')
  1559. initHoneline($('#date').val())
  1560. laydate.render({
  1561. elem: '#date',
  1562. range: '~',
  1563. type: 'datetime',
  1564. done: function(value) {
  1565. initHoneline(value)
  1566. }
  1567. });
  1568. function initHoneline(value) {
  1569. var secData = [];
  1570. new doAjax({
  1571. url:huayi.config.callcenter_url+'/InfoNew/GetHotline',
  1572. // url: "http://192.168.8.9:1042/InfoNew/GetHotline",
  1573. Type: 'get',
  1574. data: {
  1575. stime: value && value.split(' ~ ')[0],
  1576. etime: value && value.split(' ~ ')[1]
  1577. },
  1578. callBack: function (res) {
  1579. res.data.forEach(function (v, n) {
  1580. secData.push({
  1581. level: v.value,
  1582. landArea: v.count
  1583. })
  1584. })
  1585. getHonelineChart2(secData, 'hotline2')
  1586. }
  1587. });
  1588. }
  1589. e.stopPropagation()
  1590. })
  1591. //重大事件
  1592. $('.accept_channel').click(function (e) {
  1593. $('.bulletFrame').show();
  1594. $('.events_wrap').show();
  1595. $('.events_wrap').siblings().hide()
  1596. if ($('.bulletFrame').css('display') == 'block') {
  1597. $('.body').css('opacity', '0.4')
  1598. }
  1599. getNowTime('#date2')
  1600. laydate.render({
  1601. elem: '#date2',
  1602. range: '~',
  1603. type: 'datetime',
  1604. done: function(value) {
  1605. new doAjax({
  1606. url: huayi.config.callcenter_url + "/InfoNew/Majorevents",
  1607. Type: 'get',
  1608. data: {
  1609. stime: value && value.split(' ~ ')[0],
  1610. etime: value && value.split(' ~ ')[1]
  1611. },
  1612. callBack: function (res) {
  1613. channelData=[];
  1614. res.data.forEach(function (v, n) {
  1615. channelData.push({
  1616. level: v.TypeName,
  1617. landArea: v.Count
  1618. })
  1619. // }
  1620. })
  1621. getHonelineChart2(channelData, 'channel')
  1622. }
  1623. });
  1624. }
  1625. });
  1626. new doAjax({
  1627. url: huayi.config.callcenter_url + "/InfoNew/Majorevents",
  1628. Type: 'get',
  1629. data: {
  1630. stime: $('#date2').val() && $('#date2').val().split(' ~ ')[0],
  1631. etime: $('#date2').val() && $('#date2').val().split(' ~ ')[1]
  1632. },
  1633. callBack: function (res) {
  1634. let eventsData = []
  1635. res.forEach(function (v, n) {
  1636. eventsData.push({
  1637. level: v.name.replace(/[0-9]+/g,""),
  1638. landArea: v.count
  1639. })
  1640. // }
  1641. })
  1642. getHonelineChart2(eventsData, 'events')
  1643. }
  1644. });
  1645. e.stopPropagation()
  1646. })
  1647. //受理工单类型
  1648. $('.time_statistics').click(function (e) {
  1649. $('.bulletFrame').show();
  1650. $('.acceptanceType_wrap').show();
  1651. $('.acceptanceType_wrap').siblings().hide()
  1652. if ($('.bulletFrame').css('display') == 'block') {
  1653. $('.body').css('opacity', '0.4')
  1654. }
  1655. getAcceptanceType()
  1656. e.stopPropagation()
  1657. })
  1658. //受理渠道
  1659. $('.hotlineAccept').click(function (e) {
  1660. let channelData = []
  1661. $('.bulletFrame').show();
  1662. $('.channel_wrap').show();
  1663. $('.channel_wrap').siblings().hide()
  1664. if ($('.bulletFrame').css('display') == 'block') {
  1665. $('.body').css('opacity', '0.4')
  1666. }
  1667. getNowTime('#date3')
  1668. laydate.render({
  1669. elem: '#date3',
  1670. range: '~',
  1671. type: 'datetime',
  1672. done: function(value) {
  1673. new doAjax({
  1674. url: huayi.config.callcenter_url + "/InfoNew/GetSourceCountByNow",
  1675. // url: "http://192.168.8.9:1042/InfoNew/GetSourceCountByNow",
  1676. data: {
  1677. stime: value && value.split(' ~ ')[0],
  1678. etime: value && value.split(' ~ ')[1]
  1679. },
  1680. callBack: function (res) {
  1681. channelData = [];
  1682. res.data.forEach(function (v, n) {
  1683. channelData.push({
  1684. level: v.TypeName,
  1685. landArea: v.Count
  1686. })
  1687. // }
  1688. })
  1689. getHonelineChart2(channelData, 'channel')
  1690. }
  1691. });
  1692. }
  1693. });
  1694. new doAjax({
  1695. url: huayi.config.callcenter_url + "/InfoNew/GetSourceCountByNow",
  1696. // url: "http://192.168.8.9:1042/InfoNew/GetSourceCountByNow",
  1697. data: {
  1698. stime: $('#date3').val() && $('#date3').val().split(' ~ ')[0],
  1699. etime: $('#date3').val() && $('#date3').val().split(' ~ ')[1]
  1700. },
  1701. callBack: function (res) {
  1702. res.data.forEach(function (v, n) {
  1703. channelData.push({
  1704. level: v.TypeName,
  1705. landArea: v.Count
  1706. })
  1707. // }
  1708. })
  1709. getHonelineChart2(channelData, 'channel')
  1710. }
  1711. });
  1712. e.stopPropagation()
  1713. })
  1714. //时段话务
  1715. $('#traffic').click(function () {
  1716. $('.bulletFrame').show();
  1717. if ($('.bulletFrame').css('display') == 'block') {
  1718. $('.body').css('opacity', '0.4')
  1719. }
  1720. if (trafficState == 0) {
  1721. let qtphoneName = [];
  1722. let qtldcount = [];
  1723. let qtjtcount = [];
  1724. let qtwjcount = [];
  1725. let qtfqcount = [];
  1726. let sphoneName = [];
  1727. let sldcount = [];
  1728. let sjtcount = [];
  1729. let swjcount = [];
  1730. let sfqcount = [];
  1731. $('.traffic2_wrap').show();
  1732. $('.traffic2_wrap').siblings().hide()
  1733. new doAjax({
  1734. url: huayi.config.callcenter_url + "/InfoNew/GetDayparting",
  1735. // url: "http://192.168.8.9:1042/InfoNew/GetDayparting",
  1736. data: {},
  1737. callBack: function (res) {
  1738. console.log(res)
  1739. res.forEach(function (v, n) {
  1740. if(v.name!='12345'&&v.name!="归并热线小计"){
  1741. qtphoneName.push(v.name)
  1742. qtldcount.push(v.ldcount)
  1743. qtjtcount.push(v.jtcount)
  1744. qtwjcount.push(v.wjtcount)
  1745. qtfqcount.push(v.zdfqcount);
  1746. }else{
  1747. sphoneName.push(v.name)
  1748. sldcount.push(v.ldcount)
  1749. sjtcount.push(v.jtcount)
  1750. swjcount.push(v.wjtcount)
  1751. sfqcount.push(v.zdfqcount);
  1752. }
  1753. })
  1754. trafficDayChart(qtphoneName, qtldcount, qtjtcount, qtwjcount, qtfqcount);
  1755. getS(sphoneName, sldcount,sjtcount, swjcount, sfqcount)
  1756. }
  1757. });
  1758. } else if (trafficState == 1) {
  1759. $('.traffic_wrap').show();
  1760. $('.traffic_wrap').siblings().hide()
  1761. new doAjax({
  1762. url: huayi.config.callcenter_url + "InfoNew/GetHWCountMonthByNow",
  1763. data: {},
  1764. callBack: function (res) {
  1765. trafficMonthChart(res.data.days, res.data.hwcount[0], res.data.jtcount[0])
  1766. }
  1767. });
  1768. }
  1769. })
  1770. //坐席
  1771. $('#timeTraffic').click(function (e) {
  1772. let zxNum=Math.floor(Math.random()*10000 + 10000)
  1773. let user;
  1774. $('.bulletFrame').show();
  1775. if ($('.bulletFrame').css('display') == 'block') {
  1776. $('.body').css('opacity', '0.4')
  1777. }
  1778. $('.seatMonitor').show();
  1779. $('.seatMonitor').siblings().hide()
  1780. $.getJSON(huayi.config.callcenter_url + 'SeatMonitoring/getlist', {}, function (res) {
  1781. user = res.data
  1782. if (res.state.toLowerCase() == "success") {
  1783. let str = ''
  1784. res.data.forEach(function (v, n) {
  1785. str += '<li class="people_list ' + v.F_WorkNumber + ' "><div><div style="margin-right: 3px;"><span class="g-num">' + v.F_WorkNumber +
  1786. '</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>'
  1787. })
  1788. $('.zx_people').html(str)
  1789. }
  1790. })
  1791. new doAjax({
  1792. url: huayi.config.callcenter_url + "/InfoNew/GetHWTypeCount24ByNow",
  1793. // url: "http://192.168.8.9:1042/InfoNew/GetHWTypeCount24ByNow",
  1794. data: {},
  1795. callBack: function (res) {
  1796. getRealTimeTraffi(res.data.hours, res.data.hrcount[0], res.data.hccount[0])
  1797. }
  1798. });
  1799. $('.star_btn').click(function (e) {
  1800. obj.AgentID = zxNum;
  1801. $(user).each(function (i, n) {
  1802. obj.Type = "SubScribe";
  1803. obj.SubParmer = n.F_WorkNumber * 1;
  1804. obj.AgentExten = 1
  1805. obj.SubType = "0";//根据工号订阅坐席状态
  1806. Send();
  1807. obj.SubType = "1";//根据工号订阅线路状态
  1808. Send();
  1809. })
  1810. e.stopPropagation()
  1811. })
  1812. $('.stop_btn').click(function (e) {
  1813. $(user).each(function (i, n) {
  1814. top.obj.Type = "SubScribeCancel";
  1815. top.obj.SubParmer = "-1";
  1816. top.obj.SubType = "0";//根据工号取消订阅坐席状态
  1817. top.Send();
  1818. top.obj.SubType = "1";//根据工号取消订阅线路状态
  1819. top.Send();
  1820. })
  1821. e.stopPropagation()
  1822. })
  1823. $('.close_zxicon').click(function (e) {
  1824. $('.bulletFrame').hide();
  1825. $('.bulletFrameT').hide();
  1826. if ($('.bulletFrame').css('display') == 'none') {
  1827. $('.body').css('opacity', '1')
  1828. }
  1829. if ($('.bulletFrameT').css('display') == 'none') {
  1830. $('.body').css('opacity', '1')
  1831. }
  1832. $(user).each(function (i, n) {
  1833. top.obj.Type = "SubScribeCancel";
  1834. top.obj.SubParmer = "-1";
  1835. top.obj.SubType = "0";//根据工号取消订阅坐席状态
  1836. top.Send();
  1837. top.obj.SubType = "1";//根据工号取消订阅线路状态
  1838. top.Send();
  1839. })
  1840. e.stopPropagation()
  1841. })
  1842. e.stopPropagation()
  1843. })