暫無描述

newIndex.js 51KB

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