Açıklama Yok

second_index.js 69KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229
  1. // 关键词
  2. let keyidArr = [];
  3. let keyid = 0;
  4. let starKeyId = 0;
  5. let keyname = '';
  6. let keylegend = [];
  7. let nameK = ''
  8. let reg = /\w\d+$/;
  9. $('.backKey_icon').click(function () {
  10. for (let i = 0; i < keyidArr.length; i++) {
  11. if (keyidArr[i].id == keyid) {
  12. console.log(keyidArr[i - 1].id)
  13. $('.keyWordTitle').text(keyidArr[i - 1].name + '问题分类')
  14. $('.head_title').text(keyidArr[i - 1].name + '关键字数据分析')
  15. keyWordTable(keyidArr[i - 1].id);
  16. keyidArr.pop(keyidArr[i].id)
  17. keyid = keyidArr[i - 1].id
  18. }
  19. }
  20. })
  21. $('.closeKey_icon').click(function () {
  22. $('.bulletFrame').hide();
  23. $('.bulletFrameT').hide();
  24. if ($('.bulletFrame').css('display') == 'none') {
  25. $('.body').css('opacity', '1')
  26. }
  27. if ($('.bulletFrameT').css('display') == 'none') {
  28. $('.body').css('opacity', '1')
  29. }
  30. keyidArr = [];
  31. keyid = 0
  32. })
  33. // 获取当月的开始和结束时间并转换为时分秒形式
  34. function getMonthTime(time) {
  35. const now = new Date(time);
  36. const year = now.getFullYear();
  37. const month = now.getMonth(); // 从0开始的月份索引
  38. // 当月开始时间
  39. const startOfMonth = formatDate(new Date(year, month, 1));
  40. // 当月结束时间
  41. const endOfMonth = formatDate(new Date(year, month + 1, 0));
  42. return {
  43. start: startOfMonth,
  44. end: endOfMonth
  45. };
  46. }
  47. function formatDate(date) {
  48. var year = date.getFullYear();
  49. var month = date.getMonth() + 1;
  50. var strDate = date.getDate();
  51. if (strDate >= 0 && strDate <= 9) {
  52. strDate = "0" + strDate;
  53. }
  54. return year + '-' + month + '-' + strDate;
  55. }
  56. function getKeyClass(id, classId, con) {
  57. $('.bulletFrame').show();
  58. $('.secondLevel_keyWord').show();
  59. $('.secondLevel_keyWord').siblings().hide()
  60. if ($('.bulletFrame').css('display') == 'block') {
  61. $('.body').css('opacity', '0.4')
  62. }
  63. var lastTime = $('#keyDate').val();
  64. if (!lastTime || lastTime == '' || lastTime.length > 10) {
  65. lastTime = getNowTime('', 3);
  66. }
  67. laydate.render({
  68. elem: '#keyDate',
  69. type: 'date',
  70. calendar: true,
  71. value: lastTime,
  72. done: function (value) {
  73. $('.keyWordTitle').text(keyidArr[0].name + '问题分类')
  74. $('.head_title').text(keyidArr[0].name + '关键字数据分析')
  75. $('.statisticsTime').html(value)
  76. console.log(value, 'value')
  77. keyWordTable(keyidArr[0].id, keyidArr[0].name, value);
  78. }
  79. });
  80. console.log($('#gpsxDataAct').val(), 'dataact')
  81. if (classId == '1' || classId == '0') {
  82. // 当月
  83. if ($('#gpsxDataAct').val() == '2') {
  84. //
  85. // workTable(id,null,null,null,null ,null,null,null,null,null,null,null, $('#keyDate').val());
  86. var currentTime = getMonthTime($('#keyDate').val());
  87. workTable(id,null,null,null,null ,null,null,null,null,null,null,null, null, null, null, currentTime.start, currentTime.end, classId == '0' ? 1: null);
  88. } else {
  89. // 当日
  90. workTable(id,null,null,null,null ,null,null,null,null,null,null,null, $('#keyDate').val(), null, null, null, null , classId == '0' ? 1: null);
  91. }
  92. } else {
  93. // getTimes('.statisticsTime', 1)
  94. $('.statisticsTime').html($('#keyDate').val())
  95. keyidArr.push({
  96. name: con,
  97. id: id
  98. })
  99. keyid = id
  100. $('.keyWordTitle').text(con + '问题分类')
  101. $('.head_title').text(con + '关键字数据分析')
  102. keyWordTable(id, con, $('#keyDate').val());
  103. }
  104. }
  105. function keyWordTable(id, con, value) {
  106. console.log(value)
  107. var $tableLeft = $('#keyWordlist');
  108. $tableLeft.bootstrapTable('destroy');
  109. //初始化表格,动态从服务器加载数据
  110. $tableLeft.bootstrapTable({
  111. method: "get", //使用get请求到服务器获取数据
  112. url: huayi.config.callcenter_url + "/InfoNew/GetKeyCountByNow",
  113. striped: false, //表格显示条纹
  114. pagination: false, //启动分页
  115. pageSize: 12, //每页显示的记录数
  116. pageNumber: 1, //当前第几页
  117. fixedColumns: false,
  118. fixedNumber: 3,
  119. pageList: [5, 10, 20, 50, 100], //记录数可选列表
  120. search: false, //是否启用查询
  121. showColumns: false, //显示下拉框勾选要显示的列
  122. showRefresh: false, //显示刷新按钮
  123. sidePagination: "server", //表示服务端请求
  124. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  125. //设置为limit可以获取limit, offset, search, sort, order
  126. queryParamsType: "undefined",
  127. queryParams: function queryParams(params) { //设置查询参数
  128. var param = {
  129. pid: id,
  130. token: $.cookie("token"),
  131. timetype:keyCountDataType,
  132. date: value
  133. }
  134. return param
  135. },
  136. onLoadSuccess: function (data) { //加载成功时执行
  137. const newDataL = {};
  138. const piData = [];
  139. newDataL.state = data.state;
  140. newDataL.message = data.message;
  141. newDataL.rows = data.data.Date;
  142. data.data.Date.forEach(function (v, n) {
  143. piData.push({
  144. value: v.Count,
  145. name: v.KeyName.replace(reg, '')
  146. })
  147. })
  148. var nameArray = piData.map(item => {
  149. return item.name
  150. })
  151. keyword_chart('keywordPie', nameArray, piData, con);
  152. $('.total').text(data.data.Total)
  153. $('.classTotal').text(data.data.ClaseeCount)
  154. $('.prot').text(data.data.ClassTotal)
  155. $tableLeft.bootstrapTable('load', newDataL);
  156. },
  157. onLoadError: function () { //加载失败时执行
  158. layer.msg("加载数据失败", {
  159. time: 1500,
  160. icon: 2
  161. });
  162. }
  163. });
  164. }
  165. function keyword_chart(dom, nameArray, piData, con) {
  166. let keywordPieChart = echarts.init(document.getElementById(dom));
  167. let keywordNum = [];
  168. let keywordName = [];
  169. var rich = {
  170. percent: {
  171. color: "#FFF",
  172. align: 'right',
  173. fontSize: 15,
  174. fontWeight: '500',
  175. //padding: [0, 5]
  176. }
  177. }
  178. nameArray.forEach(function (v, n) {
  179. keywordNum.push({
  180. num: Number(v.substr(v.length - 2, 2)),
  181. value: v
  182. })
  183. })
  184. let max;
  185. for (let i = 0; i < keywordNum.length; i++) {
  186. for (let j = i; j < keywordNum.length; j++) {
  187. if (keywordNum[i].num < keywordNum[j].num) {
  188. max = keywordNum[j];
  189. keywordNum[j] = keywordNum[i];
  190. keywordNum[i] = max;
  191. }
  192. }
  193. }
  194. keywordNum.forEach(function (v, n) {
  195. keywordName.push(v.value.replace(reg, ''));
  196. })
  197. console.log(keywordName)
  198. keywordName.forEach(function (v, n) {
  199. if (v.length > 20) {
  200. keylegend = [{
  201. icon: `path://M881.387 297.813c38.08 65.387 57.28 136.747 57.28 214.187s-19.094 148.8-57.28 214.187c-38.187 65.28-89.92 117.12-155.2 155.2S589.44 938.667 512 938.667s-148.8-19.094-214.187-57.28c-65.28-38.08-117.013-89.814-155.306-155.307C104.427 660.8 85.333 589.44 85.333 512c0-77.333 19.094-148.693 57.28-214.187 38.08-65.28 89.814-117.013 155.307-155.306C363.2 104.533 434.56 85.333 512 85.333c77.333 0 148.693 19.094 214.187 57.28 65.28 38.187 117.013 89.92 155.2 155.2z m-217.707-47.36C617.387 223.467 566.827 209.92 512 209.92s-105.387 13.547-151.68 40.533-82.987 63.68-109.973 109.974c-26.987 46.293-40.534 96.853-40.534 151.68s13.547 105.386 40.534 151.68c26.986 46.293 63.68 82.986 109.973 109.973 46.293 26.987 96.853 40.533 151.68 40.533s105.387-13.546 151.68-40.533c46.293-26.987 82.987-63.68 109.973-109.973 26.987-46.294 40.534-96.854 40.534-151.68s-13.547-105.387-40.534-151.68c-27.093-46.294-63.786-82.987-109.973-109.974z`,
  202. orient: 'vertical',
  203. top: '610',
  204. // data: keywordName.slice(0, 6),
  205. data: keywordName.slice(0, 1),
  206. width: 28,
  207. height: 25,
  208. textStyle: {
  209. color: '#fff',
  210. padding: [0, 5],
  211. fontSize: 15
  212. },
  213. padding: [5, 10]
  214. }, {
  215. icon: `path://M881.387 297.813c38.08 65.387 57.28 136.747 57.28 214.187s-19.094 148.8-57.28 214.187c-38.187 65.28-89.92 117.12-155.2 155.2S589.44 938.667 512 938.667s-148.8-19.094-214.187-57.28c-65.28-38.08-117.013-89.814-155.306-155.307C104.427 660.8 85.333 589.44 85.333 512c0-77.333 19.094-148.693 57.28-214.187 38.08-65.28 89.814-117.013 155.307-155.306C363.2 104.533 434.56 85.333 512 85.333c77.333 0 148.693 19.094 214.187 57.28 65.28 38.187 117.013 89.92 155.2 155.2z m-217.707-47.36C617.387 223.467 566.827 209.92 512 209.92s-105.387 13.547-151.68 40.533-82.987 63.68-109.973 109.974c-26.987 46.293-40.534 96.853-40.534 151.68s13.547 105.386 40.534 151.68c26.986 46.293 63.68 82.986 109.973 109.973 46.293 26.987 96.853 40.533 151.68 40.533s105.387-13.546 151.68-40.533c46.293-26.987 82.987-63.68 109.973-109.973 26.987-46.294 40.534-96.854 40.534-151.68s-13.547-105.387-40.534-151.68c-27.093-46.294-63.786-82.987-109.973-109.974z`,
  216. orient: 'vertical',
  217. top: '620',
  218. // data: keywordName.slice(6, 12),
  219. data: keywordName.slice(1, 2),
  220. width: 28,
  221. height: 25,
  222. itemGap: 20,
  223. textStyle: {
  224. color: '#fff',
  225. padding: [0, 5],
  226. fontSize: 15
  227. },
  228. padding: [10, 10]
  229. }, {
  230. icon: `path://M881.387 297.813c38.08 65.387 57.28 136.747 57.28 214.187s-19.094 148.8-57.28 214.187c-38.187 65.28-89.92 117.12-155.2 155.2S589.44 938.667 512 938.667s-148.8-19.094-214.187-57.28c-65.28-38.08-117.013-89.814-155.306-155.307C104.427 660.8 85.333 589.44 85.333 512c0-77.333 19.094-148.693 57.28-214.187 38.08-65.28 89.814-117.013 155.307-155.306C363.2 104.533 434.56 85.333 512 85.333c77.333 0 148.693 19.094 214.187 57.28 65.28 38.187 117.013 89.92 155.2 155.2z m-217.707-47.36C617.387 223.467 566.827 209.92 512 209.92s-105.387 13.547-151.68 40.533-82.987 63.68-109.973 109.974c-26.987 46.293-40.534 96.853-40.534 151.68s13.547 105.386 40.534 151.68c26.986 46.293 63.68 82.986 109.973 109.973 46.293 26.987 96.853 40.533 151.68 40.533s105.387-13.546 151.68-40.533c46.293-26.987 82.987-63.68 109.973-109.973 26.987-46.294 40.534-96.854 40.534-151.68s-13.547-105.387-40.534-151.68c-27.093-46.294-63.786-82.987-109.973-109.974z`,
  231. orient: 'vertical',
  232. top: '630',
  233. // data: keywordName.slice(12, keywordName.length),
  234. data: keywordName.slice(2, 3),
  235. width: 28,
  236. height: 25,
  237. textStyle: {
  238. color: '#fff',
  239. padding: [0, 5],
  240. fontSize: 15
  241. },
  242. padding: [20, 10]
  243. },
  244. {
  245. icon: `path://M881.387 297.813c38.08 65.387 57.28 136.747 57.28 214.187s-19.094 148.8-57.28 214.187c-38.187 65.28-89.92 117.12-155.2 155.2S589.44 938.667 512 938.667s-148.8-19.094-214.187-57.28c-65.28-38.08-117.013-89.814-155.306-155.307C104.427 660.8 85.333 589.44 85.333 512c0-77.333 19.094-148.693 57.28-214.187 38.08-65.28 89.814-117.013 155.307-155.306C363.2 104.533 434.56 85.333 512 85.333c77.333 0 148.693 19.094 214.187 57.28 65.28 38.187 117.013 89.92 155.2 155.2z m-217.707-47.36C617.387 223.467 566.827 209.92 512 209.92s-105.387 13.547-151.68 40.533-82.987 63.68-109.973 109.974c-26.987 46.293-40.534 96.853-40.534 151.68s13.547 105.386 40.534 151.68c26.986 46.293 63.68 82.986 109.973 109.973 46.293 26.987 96.853 40.533 151.68 40.533s105.387-13.546 151.68-40.533c46.293-26.987 82.987-63.68 109.973-109.973 26.987-46.294 40.534-96.854 40.534-151.68s-13.547-105.387-40.534-151.68c-27.093-46.294-63.786-82.987-109.973-109.974z`,
  246. orient: 'vertical',
  247. top: '630',
  248. // data: keywordName.slice(12, keywordName.length),
  249. data: keywordName.slice(3, 4),
  250. width: 28,
  251. height: 25,
  252. textStyle: {
  253. color: '#fff',
  254. padding: [0, 5],
  255. fontSize: 15
  256. },
  257. padding: [40, 10]
  258. }, {
  259. icon: `path://M881.387 297.813c38.08 65.387 57.28 136.747 57.28 214.187s-19.094 148.8-57.28 214.187c-38.187 65.28-89.92 117.12-155.2 155.2S589.44 938.667 512 938.667s-148.8-19.094-214.187-57.28c-65.28-38.08-117.013-89.814-155.306-155.307C104.427 660.8 85.333 589.44 85.333 512c0-77.333 19.094-148.693 57.28-214.187 38.08-65.28 89.814-117.013 155.307-155.306C363.2 104.533 434.56 85.333 512 85.333c77.333 0 148.693 19.094 214.187 57.28 65.28 38.187 117.013 89.92 155.2 155.2z m-217.707-47.36C617.387 223.467 566.827 209.92 512 209.92s-105.387 13.547-151.68 40.533-82.987 63.68-109.973 109.974c-26.987 46.293-40.534 96.853-40.534 151.68s13.547 105.386 40.534 151.68c26.986 46.293 63.68 82.986 109.973 109.973 46.293 26.987 96.853 40.533 151.68 40.533s105.387-13.546 151.68-40.533c46.293-26.987 82.987-63.68 109.973-109.973 26.987-46.294 40.534-96.854 40.534-151.68s-13.547-105.387-40.534-151.68c-27.093-46.294-63.786-82.987-109.973-109.974z`,
  260. orient: 'vertical',
  261. top: '630',
  262. // data: keywordName.slice(12, keywordName.length),
  263. data: keywordName.slice(4, 5),
  264. width: 28,
  265. height: 25,
  266. textStyle: {
  267. color: '#fff',
  268. padding: [0, 5],
  269. fontSize: 15
  270. },
  271. padding: [60, 10]
  272. }, {
  273. icon: `path://M881.387 297.813c38.08 65.387 57.28 136.747 57.28 214.187s-19.094 148.8-57.28 214.187c-38.187 65.28-89.92 117.12-155.2 155.2S589.44 938.667 512 938.667s-148.8-19.094-214.187-57.28c-65.28-38.08-117.013-89.814-155.306-155.307C104.427 660.8 85.333 589.44 85.333 512c0-77.333 19.094-148.693 57.28-214.187 38.08-65.28 89.814-117.013 155.307-155.306C363.2 104.533 434.56 85.333 512 85.333c77.333 0 148.693 19.094 214.187 57.28 65.28 38.187 117.013 89.92 155.2 155.2z m-217.707-47.36C617.387 223.467 566.827 209.92 512 209.92s-105.387 13.547-151.68 40.533-82.987 63.68-109.973 109.974c-26.987 46.293-40.534 96.853-40.534 151.68s13.547 105.386 40.534 151.68c26.986 46.293 63.68 82.986 109.973 109.973 46.293 26.987 96.853 40.533 151.68 40.533s105.387-13.546 151.68-40.533c46.293-26.987 82.987-63.68 109.973-109.973 26.987-46.294 40.534-96.854 40.534-151.68s-13.547-105.387-40.534-151.68c-27.093-46.294-63.786-82.987-109.973-109.974z`,
  274. orient: 'vertical',
  275. top: '630',
  276. // data: keywordName.slice(12, keywordName.length),
  277. data: keywordName.slice(5, 6),
  278. width: 28,
  279. height: 25,
  280. textStyle: {
  281. color: '#fff',
  282. padding: [0, 5],
  283. fontSize: 15
  284. },
  285. padding: [80, 10]
  286. }, {
  287. icon: `path://M881.387 297.813c38.08 65.387 57.28 136.747 57.28 214.187s-19.094 148.8-57.28 214.187c-38.187 65.28-89.92 117.12-155.2 155.2S589.44 938.667 512 938.667s-148.8-19.094-214.187-57.28c-65.28-38.08-117.013-89.814-155.306-155.307C104.427 660.8 85.333 589.44 85.333 512c0-77.333 19.094-148.693 57.28-214.187 38.08-65.28 89.814-117.013 155.307-155.306C363.2 104.533 434.56 85.333 512 85.333c77.333 0 148.693 19.094 214.187 57.28 65.28 38.187 117.013 89.92 155.2 155.2z m-217.707-47.36C617.387 223.467 566.827 209.92 512 209.92s-105.387 13.547-151.68 40.533-82.987 63.68-109.973 109.974c-26.987 46.293-40.534 96.853-40.534 151.68s13.547 105.386 40.534 151.68c26.986 46.293 63.68 82.986 109.973 109.973 46.293 26.987 96.853 40.533 151.68 40.533s105.387-13.546 151.68-40.533c46.293-26.987 82.987-63.68 109.973-109.973 26.987-46.294 40.534-96.854 40.534-151.68s-13.547-105.387-40.534-151.68c-27.093-46.294-63.786-82.987-109.973-109.974z`,
  288. orient: 'vertical',
  289. top: '630',
  290. // data: keywordName.slice(12, keywordName.length),
  291. data: keywordName.slice(6, keywordName.length),
  292. width: 28,
  293. height: 25,
  294. textStyle: {
  295. color: '#fff',
  296. padding: [0, 5],
  297. fontSize: 15
  298. },
  299. padding: [100, 10]
  300. }]
  301. } else {
  302. if (con == '营商管理03') {
  303. keylegend = [{
  304. icon: `path://M881.387 297.813c38.08 65.387 57.28 136.747 57.28 214.187s-19.094 148.8-57.28 214.187c-38.187 65.28-89.92 117.12-155.2 155.2S589.44 938.667 512 938.667s-148.8-19.094-214.187-57.28c-65.28-38.08-117.013-89.814-155.306-155.307C104.427 660.8 85.333 589.44 85.333 512c0-77.333 19.094-148.693 57.28-214.187 38.08-65.28 89.814-117.013 155.307-155.306C363.2 104.533 434.56 85.333 512 85.333c77.333 0 148.693 19.094 214.187 57.28 65.28 38.187 117.013 89.92 155.2 155.2z m-217.707-47.36C617.387 223.467 566.827 209.92 512 209.92s-105.387 13.547-151.68 40.533-82.987 63.68-109.973 109.974c-26.987 46.293-40.534 96.853-40.534 151.68s13.547 105.386 40.534 151.68c26.986 46.293 63.68 82.986 109.973 109.973 46.293 26.987 96.853 40.533 151.68 40.533s105.387-13.546 151.68-40.533c46.293-26.987 82.987-63.68 109.973-109.973 26.987-46.294 40.534-96.854 40.534-151.68s-13.547-105.387-40.534-151.68c-27.093-46.294-63.786-82.987-109.973-109.974z`,
  305. orient: 'vertical',
  306. top: '610',
  307. // data: keywordName.slice(0, 6),
  308. data: keywordName.slice(0, 6),
  309. width: 28,
  310. height: 25,
  311. textStyle: {
  312. color: '#fff',
  313. padding: [0, 5],
  314. fontSize: 15
  315. },
  316. padding: [15, 10]
  317. }, {
  318. icon: `path://M881.387 297.813c38.08 65.387 57.28 136.747 57.28 214.187s-19.094 148.8-57.28 214.187c-38.187 65.28-89.92 117.12-155.2 155.2S589.44 938.667 512 938.667s-148.8-19.094-214.187-57.28c-65.28-38.08-117.013-89.814-155.306-155.307C104.427 660.8 85.333 589.44 85.333 512c0-77.333 19.094-148.693 57.28-214.187 38.08-65.28 89.814-117.013 155.307-155.306C363.2 104.533 434.56 85.333 512 85.333c77.333 0 148.693 19.094 214.187 57.28 65.28 38.187 117.013 89.92 155.2 155.2z m-217.707-47.36C617.387 223.467 566.827 209.92 512 209.92s-105.387 13.547-151.68 40.533-82.987 63.68-109.973 109.974c-26.987 46.293-40.534 96.853-40.534 151.68s13.547 105.386 40.534 151.68c26.986 46.293 63.68 82.986 109.973 109.973 46.293 26.987 96.853 40.533 151.68 40.533s105.387-13.546 151.68-40.533c46.293-26.987 82.987-63.68 109.973-109.973 26.987-46.294 40.534-96.854 40.534-151.68s-13.547-105.387-40.534-151.68c-27.093-46.294-63.786-82.987-109.973-109.974z`,
  319. orient: 'vertical',
  320. top: '620',
  321. // data: keywordName.slice(6, 12),
  322. data: keywordName.slice(6, 12),
  323. width: 28,
  324. height: 25,
  325. itemGap: 20,
  326. textStyle: {
  327. color: '#fff',
  328. padding: [0, 5],
  329. fontSize: 15
  330. },
  331. padding: [40, 10]
  332. }, {
  333. icon: `path://M881.387 297.813c38.08 65.387 57.28 136.747 57.28 214.187s-19.094 148.8-57.28 214.187c-38.187 65.28-89.92 117.12-155.2 155.2S589.44 938.667 512 938.667s-148.8-19.094-214.187-57.28c-65.28-38.08-117.013-89.814-155.306-155.307C104.427 660.8 85.333 589.44 85.333 512c0-77.333 19.094-148.693 57.28-214.187 38.08-65.28 89.814-117.013 155.307-155.306C363.2 104.533 434.56 85.333 512 85.333c77.333 0 148.693 19.094 214.187 57.28 65.28 38.187 117.013 89.92 155.2 155.2z m-217.707-47.36C617.387 223.467 566.827 209.92 512 209.92s-105.387 13.547-151.68 40.533-82.987 63.68-109.973 109.974c-26.987 46.293-40.534 96.853-40.534 151.68s13.547 105.386 40.534 151.68c26.986 46.293 63.68 82.986 109.973 109.973 46.293 26.987 96.853 40.533 151.68 40.533s105.387-13.546 151.68-40.533c46.293-26.987 82.987-63.68 109.973-109.973 26.987-46.294 40.534-96.854 40.534-151.68s-13.547-105.387-40.534-151.68c-27.093-46.294-63.786-82.987-109.973-109.974z`,
  334. orient: 'vertical',
  335. top: '630',
  336. // data: keywordName.slice(12, keywordName.length),
  337. data: keywordName.slice(12, 18),
  338. width: 28,
  339. height: 25,
  340. textStyle: {
  341. color: '#fff',
  342. padding: [0, 5],
  343. fontSize: 15
  344. },
  345. padding: [65, 10]
  346. },
  347. {
  348. icon: `path://M881.387 297.813c38.08 65.387 57.28 136.747 57.28 214.187s-19.094 148.8-57.28 214.187c-38.187 65.28-89.92 117.12-155.2 155.2S589.44 938.667 512 938.667s-148.8-19.094-214.187-57.28c-65.28-38.08-117.013-89.814-155.306-155.307C104.427 660.8 85.333 589.44 85.333 512c0-77.333 19.094-148.693 57.28-214.187 38.08-65.28 89.814-117.013 155.307-155.306C363.2 104.533 434.56 85.333 512 85.333c77.333 0 148.693 19.094 214.187 57.28 65.28 38.187 117.013 89.92 155.2 155.2z m-217.707-47.36C617.387 223.467 566.827 209.92 512 209.92s-105.387 13.547-151.68 40.533-82.987 63.68-109.973 109.974c-26.987 46.293-40.534 96.853-40.534 151.68s13.547 105.386 40.534 151.68c26.986 46.293 63.68 82.986 109.973 109.973 46.293 26.987 96.853 40.533 151.68 40.533s105.387-13.546 151.68-40.533c46.293-26.987 82.987-63.68 109.973-109.973 26.987-46.294 40.534-96.854 40.534-151.68s-13.547-105.387-40.534-151.68c-27.093-46.294-63.786-82.987-109.973-109.974z`,
  349. orient: 'vertical',
  350. top: '630',
  351. // data: keywordName.slice(12, keywordName.length),
  352. data: keywordName.slice(18, keywordName.length),
  353. width: 30,
  354. height: 25,
  355. textStyle: {
  356. color: '#fff',
  357. padding: [0, 5],
  358. fontSize: 15
  359. },
  360. padding: [90, 10]
  361. }
  362. ]
  363. } else {
  364. keylegend = [{
  365. icon: `path://M881.387 297.813c38.08 65.387 57.28 136.747 57.28 214.187s-19.094 148.8-57.28 214.187c-38.187 65.28-89.92 117.12-155.2 155.2S589.44 938.667 512 938.667s-148.8-19.094-214.187-57.28c-65.28-38.08-117.013-89.814-155.306-155.307C104.427 660.8 85.333 589.44 85.333 512c0-77.333 19.094-148.693 57.28-214.187 38.08-65.28 89.814-117.013 155.307-155.306C363.2 104.533 434.56 85.333 512 85.333c77.333 0 148.693 19.094 214.187 57.28 65.28 38.187 117.013 89.92 155.2 155.2z m-217.707-47.36C617.387 223.467 566.827 209.92 512 209.92s-105.387 13.547-151.68 40.533-82.987 63.68-109.973 109.974c-26.987 46.293-40.534 96.853-40.534 151.68s13.547 105.386 40.534 151.68c26.986 46.293 63.68 82.986 109.973 109.973 46.293 26.987 96.853 40.533 151.68 40.533s105.387-13.546 151.68-40.533c46.293-26.987 82.987-63.68 109.973-109.973 26.987-46.294 40.534-96.854 40.534-151.68s-13.547-105.387-40.534-151.68c-27.093-46.294-63.786-82.987-109.973-109.974z`,
  366. orient: 'vertical',
  367. top: '610',
  368. // data: keywordName.slice(0, 6),
  369. data: keywordName.slice(0, 5),
  370. width: 28,
  371. height: 25,
  372. textStyle: {
  373. color: '#fff',
  374. padding: [0, 5],
  375. fontSize: 15
  376. },
  377. padding: [15, 10]
  378. }, {
  379. icon: `path://M881.387 297.813c38.08 65.387 57.28 136.747 57.28 214.187s-19.094 148.8-57.28 214.187c-38.187 65.28-89.92 117.12-155.2 155.2S589.44 938.667 512 938.667s-148.8-19.094-214.187-57.28c-65.28-38.08-117.013-89.814-155.306-155.307C104.427 660.8 85.333 589.44 85.333 512c0-77.333 19.094-148.693 57.28-214.187 38.08-65.28 89.814-117.013 155.307-155.306C363.2 104.533 434.56 85.333 512 85.333c77.333 0 148.693 19.094 214.187 57.28 65.28 38.187 117.013 89.92 155.2 155.2z m-217.707-47.36C617.387 223.467 566.827 209.92 512 209.92s-105.387 13.547-151.68 40.533-82.987 63.68-109.973 109.974c-26.987 46.293-40.534 96.853-40.534 151.68s13.547 105.386 40.534 151.68c26.986 46.293 63.68 82.986 109.973 109.973 46.293 26.987 96.853 40.533 151.68 40.533s105.387-13.546 151.68-40.533c46.293-26.987 82.987-63.68 109.973-109.973 26.987-46.294 40.534-96.854 40.534-151.68s-13.547-105.387-40.534-151.68c-27.093-46.294-63.786-82.987-109.973-109.974z`,
  380. orient: 'vertical',
  381. top: '620',
  382. // data: keywordName.slice(6, 12),
  383. data: keywordName.slice(5, 10),
  384. width: 28,
  385. height: 25,
  386. itemGap: 20,
  387. textStyle: {
  388. color: '#fff',
  389. padding: [0, 5],
  390. fontSize: 15
  391. },
  392. padding: [40, 10]
  393. }, {
  394. icon: `path://M881.387 297.813c38.08 65.387 57.28 136.747 57.28 214.187s-19.094 148.8-57.28 214.187c-38.187 65.28-89.92 117.12-155.2 155.2S589.44 938.667 512 938.667s-148.8-19.094-214.187-57.28c-65.28-38.08-117.013-89.814-155.306-155.307C104.427 660.8 85.333 589.44 85.333 512c0-77.333 19.094-148.693 57.28-214.187 38.08-65.28 89.814-117.013 155.307-155.306C363.2 104.533 434.56 85.333 512 85.333c77.333 0 148.693 19.094 214.187 57.28 65.28 38.187 117.013 89.92 155.2 155.2z m-217.707-47.36C617.387 223.467 566.827 209.92 512 209.92s-105.387 13.547-151.68 40.533-82.987 63.68-109.973 109.974c-26.987 46.293-40.534 96.853-40.534 151.68s13.547 105.386 40.534 151.68c26.986 46.293 63.68 82.986 109.973 109.973 46.293 26.987 96.853 40.533 151.68 40.533s105.387-13.546 151.68-40.533c46.293-26.987 82.987-63.68 109.973-109.973 26.987-46.294 40.534-96.854 40.534-151.68s-13.547-105.387-40.534-151.68c-27.093-46.294-63.786-82.987-109.973-109.974z`,
  395. orient: 'vertical',
  396. top: '630',
  397. // data: keywordName.slice(12, keywordName.length),
  398. data: keywordName.slice(10, 15),
  399. width: 28,
  400. height: 25,
  401. textStyle: {
  402. color: '#fff',
  403. padding: [0, 5],
  404. fontSize: 15
  405. },
  406. padding: [65, 10]
  407. },
  408. {
  409. icon: `path://M881.387 297.813c38.08 65.387 57.28 136.747 57.28 214.187s-19.094 148.8-57.28 214.187c-38.187 65.28-89.92 117.12-155.2 155.2S589.44 938.667 512 938.667s-148.8-19.094-214.187-57.28c-65.28-38.08-117.013-89.814-155.306-155.307C104.427 660.8 85.333 589.44 85.333 512c0-77.333 19.094-148.693 57.28-214.187 38.08-65.28 89.814-117.013 155.307-155.306C363.2 104.533 434.56 85.333 512 85.333c77.333 0 148.693 19.094 214.187 57.28 65.28 38.187 117.013 89.92 155.2 155.2z m-217.707-47.36C617.387 223.467 566.827 209.92 512 209.92s-105.387 13.547-151.68 40.533-82.987 63.68-109.973 109.974c-26.987 46.293-40.534 96.853-40.534 151.68s13.547 105.386 40.534 151.68c26.986 46.293 63.68 82.986 109.973 109.973 46.293 26.987 96.853 40.533 151.68 40.533s105.387-13.546 151.68-40.533c46.293-26.987 82.987-63.68 109.973-109.973 26.987-46.294 40.534-96.854 40.534-151.68s-13.547-105.387-40.534-151.68c-27.093-46.294-63.786-82.987-109.973-109.974z`,
  410. orient: 'vertical',
  411. top: '630',
  412. // data: keywordName.slice(12, keywordName.length),
  413. data: keywordName.slice(15, keywordName.length),
  414. width: 30,
  415. height: 25,
  416. textStyle: {
  417. color: '#fff',
  418. padding: [0, 5],
  419. fontSize: 15
  420. },
  421. padding: [90, 10]
  422. }
  423. ]
  424. }
  425. }
  426. })
  427. keywordName.reverse();
  428. option = {
  429. legend: keylegend,
  430. color: ['#008aff', '#88ffb7', '#00bba7', '#fddb6a', '#fb6a76',
  431. '#ff0000', '#e5a0ff', '#9b56ff', '#8200f0', '#68f6ff',
  432. '#FF8352', '#E271DE', '#F8456B', '#3751E6', '#FFC722',
  433. '#00BFA5', "#EAEA26"
  434. ],
  435. series: [{
  436. name: '访问来源',
  437. type: 'pie',
  438. radius: '58%',
  439. data: piData,
  440. emphasis: {
  441. itemStyle: {
  442. shadowBlur: 10,
  443. shadowOffsetX: 0,
  444. shadowColor: 'rgba(0, 0, 0, 0.5)'
  445. }
  446. },
  447. label: {
  448. normal: {
  449. show: false,
  450. formatter: function (params) {
  451. if (params.name.length > 9 && params.name.length < 35) {
  452. return params.name.substring(0, 20) + '\n' + params.name.substring(20, params.name.length) + ':' + params.value;
  453. } else if (params.name.length > 35) {
  454. return params.name.substring(0, 18) + '\n' + params.name.substring(18, 36) + '\n' + params.name.substring(36, params.name.length) + ':' + params.value;
  455. } else {
  456. return params.name + ':' + params.value;
  457. }
  458. }
  459. },
  460. emphasis: {
  461. // position: 'left',
  462. show: true,
  463. textStyle: {
  464. color: '#fff',
  465. fontSize: '14',
  466. fontWeight: 'bold'
  467. },
  468. labelLine: {
  469. show: true
  470. },
  471. length: 1
  472. }
  473. }
  474. }]
  475. };
  476. keywordPieChart.setOption(option);
  477. }
  478. function Code(val, row, index) {
  479. let num = index + 1
  480. return "<span style='display: block;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;width:50px;text-align: center;'>" +
  481. num + "</span>"
  482. // return index + 1;
  483. }
  484. function getKeyName(v, r) {
  485. for (let i = 0; i < keyidArr.length; i++) {
  486. if (keyidArr[i].id == keyid) {
  487. if (keyidArr[0].id == keyid) {
  488. console.log('1111', keyname)
  489. $('.backKey_icon').css('display', 'none')
  490. } else {
  491. $('.backKey_icon').css('display', 'block')
  492. }
  493. }
  494. }
  495. return '<span class="workAct" onclick="getKeyClass(\'' + r.KeyId + '\',\'' + r.ClassCount + '\',\'' + r.KeyName +
  496. '\')">' + v + '</span>'
  497. }
  498. function getKeyBili(v) {
  499. return "<div style='display: block;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;width:70px;margin:0 auto;'>" +
  500. v + "</div>"
  501. }
  502. function getKeyNum(v) {
  503. return "<div style='display: block;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;margin:0 auto;'>" +
  504. v + "</div>"
  505. }
  506. //办理时长
  507. function timeSecTable(dom, type) {
  508. getTimes('.dataTT')
  509. var $tableLeft = $(dom);
  510. $tableLeft.bootstrapTable('destroy');
  511. //初始化表格,动态从服务器加载数据
  512. $tableLeft.bootstrapTable({
  513. method: "get", //使用get请求到服务器获取数据
  514. url: huayi.config.callcenter_url + "/InfoNew/GetDeptDayTime",
  515. striped: false, //表格显示条纹
  516. pagination: false, //启动分页
  517. pageSize: 12, //每页显示的记录数
  518. pageNumber: 1, //当前第几页
  519. fixedColumns: false,
  520. fixedNumber: 3,
  521. pageList: [5, 10, 20, 50, 100], //记录数可选列表
  522. search: false, //是否启用查询
  523. showColumns: false, //显示下拉框勾选要显示的列
  524. showRefresh: false, //显示刷新按钮
  525. sidePagination: "server", //表示服务端请求
  526. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  527. //设置为limit可以获取limit, offset, search, sort, order
  528. queryParamsType: "undefined",
  529. queryParams: function queryParams(params) { //设置查询参数
  530. var param = {
  531. token: $.cookie("token"),
  532. type: type
  533. };
  534. return param;
  535. },
  536. onLoadSuccess: function (data) { //加载成功时执行
  537. // data.reverse();
  538. const newDataL = {};
  539. newDataL.state = "success";
  540. newDataL.message = "加载成功";
  541. newDataL.rows = data;
  542. $tableLeft.bootstrapTable('load', newDataL);
  543. },
  544. onLoadError: function () { //加载失败时执行
  545. layer.msg("加载数据失败", {
  546. time: 1500,
  547. icon: 2
  548. });
  549. }
  550. });
  551. }
  552. //办理时长表格操作
  553. function getCompanyName(v, r) {
  554. return '<span class="workAct" onclick="workTable(\'' + '' + '\',\'' + r.deptid + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + ''
  555. + '\',\'' + '' + '\',\'' + 0 + '\')">' + v + '</span>'
  556. }
  557. function trend(val, row) {
  558. var str = '';
  559. if (row.trend.substring(0, 1) == '-' && row.trend.length > 1) {
  560. str = '<ul class="tool_downs">' +
  561. '<li><img src="./image/second/down_arrow.png" alt="" style="vertical-align: middle;padding-right: 3px;">' + row
  562. .trend.substring(1) + '<li>' +
  563. '</ul>';
  564. } else if (row.trend.substring(0, 1) != '-' && row.trend.length > 1) {
  565. str = '<ul class="tool_downs">' +
  566. '<li><img src="./image/second/up_arrow.png" alt="" style="vertical-align: middle;padding-right: 3px;">' + row
  567. .trend + '<li>' +
  568. '</ul>';
  569. } else {
  570. str = '<ul class="tool_downs">' +
  571. '<li>' + row.trend + '<li>' +
  572. '</ul>';
  573. }
  574. return str
  575. }
  576. var tableColumns = [
  577. // {
  578. // title: '序号',
  579. // align: 'center',
  580. // formatter: function(value, row, index) {
  581. // return index + 1
  582. // }
  583. // },
  584. {
  585. field: 'deptname',
  586. title: '联动单位',
  587. align: 'center'
  588. },
  589. {
  590. field: 'Undertakers',
  591. title: '承办件',
  592. align: 'center',
  593. formatter: function(value, row, index) {
  594. return handleOrderList(value, row, 0);
  595. }
  596. },
  597. {
  598. field: 'Undertakersrate',
  599. title: '承办率',
  600. align: 'center'
  601. },
  602. // {
  603. // field: 'Undertakersscore',
  604. // title: '得分(3分)',
  605. // align: 'center'
  606. // },
  607. {
  608. field: 'signfor',
  609. title: '及时签收件',
  610. align: 'center',
  611. formatter: function(value, row, index) {
  612. return handleOrderList(value, row, 1);
  613. }
  614. },
  615. // {
  616. // field: 'oversignfor',
  617. // title: '超时签收件 ',
  618. // align: 'center',
  619. // formatter: function(value, row, index) {
  620. // return handleOrderList(value, row, 2);
  621. // }
  622. // },
  623. {
  624. field: 'signforrate',
  625. title: '及时签收率',
  626. align: 'center'
  627. },
  628. // {
  629. // field: 'signforscore',
  630. // title: '得分(5分)',
  631. // align: 'center'
  632. // },
  633. {
  634. field: 'overdue',
  635. title: '按时反馈件',
  636. align: 'center',
  637. formatter: function(value, row, index) {
  638. return handleOrderList(value, row, 3);
  639. }
  640. },
  641. // {
  642. // field: 'overfeedback',
  643. // title: '超时反馈件',
  644. // align: 'center',
  645. // formatter: function(value, row, index) {
  646. // return handleOrderList(value, row, 4);
  647. // }
  648. // },
  649. // {
  650. // field: 'Processing',
  651. // title: '未到期工单',
  652. // align: 'center',
  653. // formatter: function(value, row, index) {
  654. // return handleOrderList(value, row, 13);
  655. // }
  656. // },
  657. {
  658. field: 'overduerate',
  659. title: '按时反馈率',
  660. align: 'center'
  661. },
  662. // {
  663. // field: 'overduescore',
  664. // title: '得分(15分)',
  665. // align: 'center'
  666. // },
  667. {
  668. field: 'conclude',
  669. title: '办结件',
  670. align: 'center',
  671. formatter: function(value, row, index) {
  672. return handleOrderList(value, row, 5);
  673. }
  674. },
  675. // {
  676. // field: 'noconclude',
  677. // title: '未办结件',
  678. // align: 'center',
  679. // formatter: function(value, row, index) {
  680. // return handleOrderList(value, row, 6);
  681. // }
  682. // },
  683. // {
  684. // field: 'completed',
  685. // title: '应办结数量',
  686. // align: 'center',
  687. // formatter: function(value, row, index) {
  688. // return handleOrderList(value, row, 14);
  689. // }
  690. // },
  691. {
  692. field: 'unsuccessfulrate',
  693. title: '办结率',
  694. align: 'center'
  695. },
  696. // {
  697. // field: 'unsuccessfulscore',
  698. // title: '办结得分(10分)',
  699. // align: 'center'
  700. // },
  701. {
  702. field: 'one',
  703. title: '一次办结件',
  704. align: 'center',
  705. formatter: function(value, row, index) {
  706. return handleOrderList(value, row, 7);
  707. }
  708. },
  709. // {
  710. // field: 'noone',
  711. // title: '非一次办结件',
  712. // align: 'center',
  713. // formatter: function(value, row, index) {
  714. // return handleOrderList(value, row, 8);
  715. // }
  716. // },
  717. // {
  718. // field: 'reply',
  719. // title: '回复工单量',
  720. // align: 'center',
  721. // formatter: function(value, row, index) {
  722. // return handleOrderList(value, row, 15);
  723. // }
  724. // },
  725. {
  726. field: 'onerate',
  727. title: '一次办结率',
  728. align: 'center'
  729. },
  730. // {
  731. // field: 'onescore',
  732. // title: '得分(12分)',
  733. // align: 'center'
  734. // },
  735. // {
  736. // field: 'noexamine',
  737. // title: '不计入考核件',
  738. // align: 'center',
  739. // formatter: function(value, row, index) {
  740. // return handleOrderList(value, row, 9);
  741. // }
  742. // },
  743. //
  744. {
  745. field: 'review',
  746. title: '评议件',
  747. align: 'center',
  748. formatter: function(value, row, index) {
  749. return handleOrderList(value, row, 10);
  750. }
  751. },
  752. {
  753. field: 'satisfied',
  754. title: '满意件',
  755. align: 'center',
  756. formatter: function(value, row, index) {
  757. return handleOrderList(value, row, 11);
  758. }
  759. },
  760. // {
  761. // field: 'nosatisfied',
  762. // title: '不满意件',
  763. // align: 'center',
  764. // formatter: function(value, row, index) {
  765. // return handleOrderList(value, row, 12);
  766. // }
  767. // },
  768. {
  769. field: 'satisfiedrates',
  770. title: '满意率',
  771. align: 'center'
  772. },
  773. // {
  774. // field: 'satisfiedscore',
  775. // title: '得分(55分)',
  776. // align: 'center'
  777. // },
  778. {
  779. field: 'total',
  780. title: '总分',
  781. align: 'center'
  782. },
  783. {
  784. title: '排名',
  785. align: 'center',
  786. formatter: function(value, row, index) {
  787. return index + 1
  788. }
  789. },
  790. ];
  791. function handleOrderList(val, row, tab) {
  792. if(row.deptname !== '合计' && row.deptname !== '总计') {
  793. if(!val) {
  794. val = 0
  795. }
  796. console.log($('#rankDate').val(), 'asfasdf')
  797. return '<div class="imgs" ><a class="" onclick="examineList(\'' + row.deptid + '\', \'' + tab + '\', \''+ $('#rankDate').val() +'\')" >' + val +
  798. '</a></div>'
  799. } else {
  800. return val
  801. }
  802. }
  803. function testSecTable(id, type, group, value) {
  804. $.ajax({
  805. url: huayi.config.callcenter_url + "/DataAssessment/GetEvaluation",
  806. type: 'get',
  807. data: {
  808. token: $.cookie("token"),
  809. // type: type,
  810. // starttime: value && value.split(' ~ ')[0],
  811. // endtime: value && value.split(' ~ ')[1]
  812. // category,
  813. date: value,
  814. },
  815. dataType: "json",
  816. async: true,
  817. success: function(returnValue) {
  818. //异步获取数据
  819. //debugger;
  820. var resultData = returnValue.rows;
  821. var resultData_1 = []
  822. var resultData_2 = []
  823. var resultData_3 = []
  824. var resultData_4 = []
  825. var resultData_5 = []
  826. var max;
  827. for (var i = 0; i < resultData.length; i++) {
  828. for (var j = i; j < resultData.length; j++) {
  829. if (resultData[i].total < resultData[j].total) {
  830. max = resultData[j];
  831. resultData[j] = resultData[i];
  832. resultData[i] = max;
  833. }
  834. }
  835. }
  836. resultData.forEach(function(v, i) {
  837. if(v.category === 1) {
  838. resultData_1.push(v)
  839. } else if(v.category === 2) {
  840. resultData_2.push(v)
  841. } else if(v.category === 3) {
  842. resultData_3.push(v)
  843. } else if(v.category === 4) {
  844. resultData_4.push(v)
  845. } else {
  846. resultData_5.push(v)
  847. }
  848. })
  849. $('#orderlist2').bootstrapTable('load', resultData_1);
  850. $('#orderlist4').bootstrapTable('load', resultData_2);
  851. $('#orderlist5').bootstrapTable('load', resultData_3);
  852. $('#orderlist6').bootstrapTable('load', resultData_4);
  853. //$('#workorderlist_5').bootstrapTable('load', resultData_5);
  854. }
  855. });
  856. $('#orderlist2').bootstrapTable('destroy').bootstrapTable({
  857. striped: true,
  858. pagination: false,
  859. columns: tableColumns
  860. });
  861. $('#orderlist4').bootstrapTable('destroy').bootstrapTable({
  862. striped: true,
  863. pagination: false,
  864. columns: tableColumns
  865. });
  866. $('#orderlist5').bootstrapTable('destroy').bootstrapTable({
  867. striped: true,
  868. pagination: false,
  869. columns: tableColumns
  870. });
  871. $('#orderlist6').bootstrapTable('destroy').bootstrapTable({
  872. striped: true,
  873. pagination: false,
  874. columns: tableColumns
  875. });
  876. }
  877. //绩效考核
  878. function testSecTableDel(id, type, group, value) {
  879. var $tableLeft = $(id);
  880. var category = 0;
  881. if (id === '#orderlist2') category = 1;
  882. if (id === '#orderlist4') category = 2;
  883. if (id === '#orderlist5') category = 3;
  884. if (id === '#orderlist6') category = 4;
  885. $tableLeft.bootstrapTable('destroy');
  886. //初始化表格,动态从服务器加载数据
  887. $tableLeft.bootstrapTable({
  888. method: "get", //使用get请求到服务器获取数据
  889. url: huayi.config.callcenter_url + "/DataAssessment/GetEvaluation",
  890. striped: false, //表格显示条纹
  891. pagination: false, //启动分页
  892. pageSize: 12, //每页显示的记录数
  893. pageNumber: 1, //当前第几页
  894. fixedColumns: false,
  895. fixedNumber: 3,
  896. pageList: [5, 10, 20, 50, 100], //记录数可选列表
  897. search: false, //是否启用查询
  898. showColumns: false, //显示下拉框勾选要显示的列
  899. showRefresh: false, //显示刷新按钮
  900. sidePagination: "server", //表示服务端请求
  901. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  902. //设置为limit可以获取limit, offset, search, sort, order
  903. queryParamsType: "undefined",
  904. queryParams: function queryParams(params) { //设置查询参数
  905. return {
  906. token: $.cookie("token"),
  907. type: type,
  908. // starttime: value && value.split(' ~ ')[0],
  909. // endtime: value && value.split(' ~ ')[1]
  910. category,
  911. date: $('#rankDate').val(), //'2021-05',
  912. }
  913. },
  914. onLoadSuccess: function (data) { //加载成功时执行
  915. const newDataL = {};
  916. // const typeData1 = [];
  917. // const typeData2 = [];
  918. // var max;
  919. // for (var i = 0; i < data.length; i++) {
  920. // for (var j = i; j < data.length; j++) {
  921. // if (data[i].total < data[j].total) {
  922. // max = data[j];
  923. // data[j] = data[i];
  924. // data[i] = max;
  925. // }
  926. // }
  927. // }
  928. // if (type == 1) {
  929. // data.forEach(function (v, n) {
  930. // if (v.workordrcount <= 10) {
  931. // typeData1.push(v)
  932. // } else {
  933. // typeData2.push(v)
  934. // }
  935. // })
  936. // if (group == 0) {
  937. // newDataL.rows = typeData2;
  938. // } else if (group == 1) {
  939. // newDataL.rows = typeData1;
  940. // }
  941. //
  942. // } else {
  943. // newDataL.rows = data;
  944. // }
  945. newDataL.rows = data;
  946. newDataL.state = "success";
  947. newDataL.message = "加载成功";
  948. console.log(newDataL)
  949. $tableLeft.bootstrapTable('load', newDataL);
  950. },
  951. onLoadError: function () { //加载失败时执行
  952. layer.msg("加载数据失败", {
  953. time: 1500,
  954. icon: 2
  955. });
  956. }
  957. });
  958. }
  959. //绩效考核表格操作
  960. function getRank(val, row, index) {
  961. return index + 1
  962. }
  963. //工单数量
  964. function getWorkOrders(val, row) {
  965. return '<span class="workAct" onclick="workTable(\'' + '' + '\',\'' + row.deptid + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + ''
  966. + '\',\'' + '' + '\',\'' + 0 + '\',\'' + '' + '\',\'' + '' + '\',\'' + 3 + '\')">' + val + '</span>'
  967. }
  968. //不满意数量
  969. function getDissatisfied(val, row) {
  970. return '<span class="workAct" onclick="workTable(\'' + '' + '\',\'' + row.deptid + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + ''
  971. + '\',\'' + '' + '\',\'' + 0 + '\',\'' + '' + '\',\'' + '' + '\',\'' + 4 + '\')">' + val + '</span>'
  972. }
  973. //超期数量
  974. function getOverdue(val, row) {
  975. return '<span class="workAct" onclick="workTable(\'' + '' + '\',\'' + row.deptid + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + ''
  976. + '\',\'' + '' + '\',\'' + 0 + '\',\'' + '' + '\',\'' + '' + '\',\'' + 5 + '\')">' + val + '</span>'
  977. }
  978. function getBackWorkOrders(val, row) {
  979. return '<span class="workAct" onclick="backWorkTable(\'' + row.deptid + '\',\'' + 0 + '\')">' + val + '</span>'
  980. }
  981. function getBacCkWorkOrders(val, row) {
  982. return '<span class="workAct" onclick="backWorkTable(\'' + row.deptid + '\',\'' + 1 + '\')">' + val + '</span>'
  983. }
  984. function awaySort(objArr, key) {
  985. let result = objArr.slice(0);
  986. return result.sort((a, b) => b[key] -a[key] );
  987. }
  988. //热线整合受理情况&重大事件
  989. function getHonelineChart2(data, dom) {
  990. data = awaySort(data,"landArea")
  991. data.length = 10
  992. let hotline2 = echarts.init(document.getElementById(dom));
  993. const CubeLeft = echarts.graphic.extendShape({
  994. shape: {
  995. x: 0,
  996. y: 0
  997. },
  998. buildPath: function (ctx, shape) {
  999. const xAxisPoint = shape.xAxisPoint
  1000. const c0 = [shape.x, shape.y]
  1001. const c1 = [shape.x - 20, shape.y - 4]
  1002. const c2 = [xAxisPoint[0] - 20, xAxisPoint[1] - 4]
  1003. const c3 = [xAxisPoint[0], xAxisPoint[1]]
  1004. ctx.moveTo(c0[0], c0[1]).lineTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1])
  1005. .closePath()
  1006. }
  1007. })
  1008. const CubeRight = echarts.graphic.extendShape({
  1009. shape: {
  1010. x: 0,
  1011. y: 0
  1012. },
  1013. buildPath: function (ctx, shape) {
  1014. const xAxisPoint = shape.xAxisPoint
  1015. const c1 = [shape.x, shape.y]
  1016. const c2 = [xAxisPoint[0], xAxisPoint[1]]
  1017. const c3 = [xAxisPoint[0] + 8, xAxisPoint[1] - 4]
  1018. const c4 = [shape.x + 8, shape.y - 4]
  1019. ctx.moveTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).lineTo(c4[0], c4[1])
  1020. .closePath()
  1021. }
  1022. })
  1023. const CubeTop = echarts.graphic.extendShape({
  1024. shape: {
  1025. x: 0,
  1026. y: 0
  1027. },
  1028. buildPath: function (ctx, shape) {
  1029. // 逆时针 角 y 负数向上 X 负数向左
  1030. const c1 = [shape.x, shape.y]
  1031. const c2 = [shape.x + 8, shape.y - 4]
  1032. const c3 = [shape.x - 11, shape.y - 8]
  1033. const c4 = [shape.x - 20, shape.y - 4]
  1034. ctx.moveTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).lineTo(c4[0], c4[1])
  1035. .closePath()
  1036. }
  1037. })
  1038. echarts.graphic.registerShape('CubeLeft', CubeLeft)
  1039. echarts.graphic.registerShape('CubeRight', CubeRight)
  1040. echarts.graphic.registerShape('CubeTop', CubeTop)
  1041. let MAX = []
  1042. let VALUE = []
  1043. let LEV = []
  1044. let chartData = [].concat(data)
  1045. chartData.forEach(item => {
  1046. VALUE.push(item.landArea)
  1047. LEV.push(item.level)
  1048. })
  1049. let maxItem = [].concat(VALUE).sort((a, b) => b - a)[0]
  1050. let SUM = 0
  1051. for (let item of VALUE) {
  1052. SUM += item
  1053. MAX.push(maxItem)
  1054. }
  1055. option = {
  1056. tooltip: {
  1057. trigger: 'item',
  1058. textStyle: {
  1059. color: '#ffe400',
  1060. fontSize: '16',
  1061. fontWeight: '500'
  1062. },
  1063. position: 'top',
  1064. backgroundColor: 'rgba(250,250,250,0)',
  1065. transitionDuration: 0.4,
  1066. formatter: function (params) {
  1067. return '<div style="background-image: url(image/second/reminder_box2.png);width:50px;height:33px;line-height:30px;background-size: 100% 100%;text-align:center;">' +
  1068. VALUE[params.dataIndex] + '</div>';
  1069. }
  1070. },
  1071. grid: {
  1072. right: "5%",
  1073. top: "20%",
  1074. left: "5%",
  1075. bottom: "5%",
  1076. containLabel: true
  1077. },
  1078. xAxis: {
  1079. type: 'category',
  1080. data: LEV,
  1081. axisLine: {
  1082. show: true,
  1083. lineStyle: {
  1084. color: '#687e89'
  1085. }
  1086. },
  1087. offset: 10,
  1088. axisTick: {
  1089. show: false
  1090. },
  1091. axisLabel: {
  1092. fontSize: 14,
  1093. rotate: -45,
  1094. color: '#fff'
  1095. }
  1096. },
  1097. yAxis: [{
  1098. nameTextStyle: {
  1099. color: "#f4f5f5",
  1100. padding: [0, 0, 10, -5],
  1101. fontSize: 16
  1102. },
  1103. axisLabel: {
  1104. color: "#f4f5f5",
  1105. fontSize: 16
  1106. },
  1107. axisTick: {
  1108. lineStyle: {
  1109. color: "#687f8a",
  1110. width: 1
  1111. },
  1112. show: true
  1113. },
  1114. splitLine: {
  1115. show: true,
  1116. lineStyle: {
  1117. color: "#687f8a",
  1118. type: "dashed"
  1119. }
  1120. },
  1121. axisLine: {
  1122. lineStyle: {
  1123. color: "#687f8a",
  1124. width: 1,
  1125. type: "solid"
  1126. },
  1127. show: true,
  1128. // "symbol":['none', 'arrow'],
  1129. symbol: ['none',
  1130. 'path://M5, 20 L5, 5 L8, 8 L5, 2 L2, 8 L5, 5 L5.3, 6 L5.3, 20'
  1131. ],
  1132. symbolOffset: 5,
  1133. symbolSize: [35, 38],
  1134. },
  1135. name: "条"
  1136. }],
  1137. series: [{
  1138. type: 'custom',
  1139. renderItem: (params, api) => {
  1140. const location = api.coord([api.value(0), api.value(1)])
  1141. return {
  1142. type: 'group',
  1143. children: [{
  1144. type: 'CubeLeft',
  1145. shape: {
  1146. api,
  1147. xValue: api.value(0),
  1148. yValue: api.value(1),
  1149. x: location[0],
  1150. y: location[1],
  1151. xAxisPoint: api.coord([api.value(0), 0])
  1152. },
  1153. style: {
  1154. fill: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1155. offset: 0,
  1156. color: '#3fffea'
  1157. }, {
  1158. offset: 1,
  1159. color: '#007eff'
  1160. }])
  1161. },
  1162. },
  1163. {
  1164. type: 'CubeRight',
  1165. shape: {
  1166. api,
  1167. xValue: api.value(0),
  1168. yValue: api.value(1),
  1169. x: location[0],
  1170. y: location[1],
  1171. xAxisPoint: api.coord([api.value(0), 0])
  1172. },
  1173. style: {
  1174. fill: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1175. offset: 0,
  1176. color: '#2fbeaf' // 顶部
  1177. }, {
  1178. offset: 1,
  1179. color: '#015fbf' // 底部
  1180. }])
  1181. }
  1182. }, {
  1183. type: 'CubeTop',
  1184. shape: {
  1185. api,
  1186. xValue: api.value(0),
  1187. yValue: api.value(1),
  1188. x: location[0],
  1189. y: location[1],
  1190. xAxisPoint: api.coord([api.value(0), 0])
  1191. },
  1192. style: {
  1193. fill: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1194. offset: 0,
  1195. color: '#9ffff5'
  1196. }, {
  1197. offset: 1,
  1198. color: '#9ffff5'
  1199. }])
  1200. },
  1201. }
  1202. ]
  1203. }
  1204. },
  1205. data: VALUE
  1206. }, {
  1207. type: 'bar',
  1208. itemStyle: {
  1209. color: 'rgba(255,255,255,0)'
  1210. },
  1211. emphasis: {
  1212. itemStyle: {
  1213. opacity: 0.2,
  1214. color: 'rgb(60,118,77)'
  1215. }
  1216. },
  1217. data: MAX
  1218. },]
  1219. }
  1220. hotline2.setOption(option);
  1221. if (dom == 'hotline2') {
  1222. hotline2.on('click', function (params) {
  1223. console.log(params, 'hotline2')
  1224. workTable('', '', '', params.name, '', '', '', '', 0)
  1225. })
  1226. } else if (dom == 'events') {
  1227. hotline2.on('click', function (params) {
  1228. console.log(params, 'events')
  1229. var keyValue = getKey(data,'level',params.name,'key')
  1230. // TODO:缺少时间范围timetype,handling,source,dptype, date, Township, strworkid, stime, etime
  1231. // workTable('', '', '', '', "", '', '', keyValue, 0)
  1232. workTable('','','','','' ,'','',keyValue,null,null,null,null, null, null, null, $('#date2').val() && $('#date2').val().split(' ~ ')[0], $('#date2').val() && $('#date2').val().split(' ~ ')[1])
  1233. })
  1234. } else if (dom == 'channel') {
  1235. hotline2.on('click', function (params) {
  1236. var time = $('#date3').val().split(' ~ ');
  1237. var sourceInfo = sourceCountId.find(function(o) {
  1238. return o.name == params.name;
  1239. })
  1240. console.log(sourceInfo, 'sourceInfo')
  1241. if (sourceInfo) {
  1242. if (sourceInfo.strworkid) {
  1243. //KeyId,deptid,sourceId,PhoneType,keyword ,type,sourceArea,key,timetype,handling,source,dptype, date, Township, strworkid
  1244. workTable('', '', '', '', '', '', '', '', 0,'','','', '', '', sourceInfo.strworkid, time[0], time[1])
  1245. } else {
  1246. workTable('', '', '', '', '', '', '', '', 0, '', sourceInfo.id,'', '', '', '', time[0], time[1])
  1247. }
  1248. }
  1249. })
  1250. }
  1251. }
  1252. function getKey(data,key1,value,key2){
  1253. var dataValue
  1254. data.forEach(function (ele) {
  1255. if (ele[key1]===value) {
  1256. dataValue =ele[key2]
  1257. }
  1258. })
  1259. return dataValue
  1260. }
  1261. //受理工单类型
  1262. function getAcceptanceType() {
  1263. var $tableLeft = $('#acceptancelist');
  1264. $tableLeft.bootstrapTable('destroy');
  1265. //初始化表格,动态从服务器加载数据
  1266. $tableLeft.bootstrapTable({
  1267. method: "get", //使用get请求到服务器获取数据
  1268. url: huayi.config.callcenter_url + "/InfoNew/GetTypeCount",
  1269. striped: false, //表格显示条纹
  1270. pagination: false, //启动分页
  1271. pageSize: 12, //每页显示的记录数
  1272. pageNumber: 1, //当前第几页
  1273. fixedColumns: false,
  1274. fixedNumber: 3,
  1275. pageList: [5, 10, 20, 50, 100], //记录数可选列表
  1276. search: false, //是否启用查询
  1277. showColumns: false, //显示下拉框勾选要显示的列
  1278. showRefresh: false, //显示刷新按钮
  1279. sidePagination: "server", //表示服务端请求
  1280. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  1281. //设置为limit可以获取limit, offset, search, sort, order
  1282. queryParamsType: "undefined",
  1283. queryParams: function queryParams(params) { //设置查询参数
  1284. var param = {
  1285. token: $.cookie("token"),
  1286. timetype:typeCountDataType
  1287. }
  1288. return param
  1289. },
  1290. onLoadSuccess: function (data) { //加载成功时执行
  1291. const newDataL = {};
  1292. let handTotal = 0;
  1293. newDataL.state = data.state;
  1294. newDataL.message = data.message;
  1295. newDataL.rows = data.data;
  1296. $tableLeft.bootstrapTable('load', newDataL);
  1297. new doAjax({
  1298. url: huayi.config.callcenter_url + "/InfoNew/GetHandling",
  1299. data: {
  1300. token: $.cookie("token"),
  1301. timetype:typeCountDataType
  1302. },
  1303. callBack: function (res) {
  1304. let handingData = [{
  1305. value: res[0].db,
  1306. name: '督办'
  1307. }, {
  1308. value: res[0].zhib,
  1309. name: '直办'
  1310. }, {
  1311. value: res[0].zub,
  1312. name: '转办'
  1313. },
  1314. {
  1315. value: res[0].cb,
  1316. name: '催办'
  1317. }
  1318. ]
  1319. handTotal = res[0].db + res[0].zhib + res[0].zub + res[0].cb;
  1320. $('.acceptanceType_wrap .total').text(handTotal);
  1321. getTimes('.statisticsTime')
  1322. getHandling(handingData);
  1323. }
  1324. });
  1325. },
  1326. onLoadError: function () { //加载失败时执行
  1327. layer.msg("加载数据失败", {
  1328. time: 1500,
  1329. icon: 2
  1330. });
  1331. }
  1332. });
  1333. }
  1334. function getHandling(data) {
  1335. let sortPie = echarts.init(document.getElementById('acceptancePie'));
  1336. option = {
  1337. legend: [{
  1338. icon: `path://M881.387 297.813c38.08 65.387 57.28 136.747 57.28 214.187s-19.094 148.8-57.28 214.187c-38.187 65.28-89.92 117.12-155.2 155.2S589.44 938.667 512 938.667s-148.8-19.094-214.187-57.28c-65.28-38.08-117.013-89.814-155.306-155.307C104.427 660.8 85.333 589.44 85.333 512c0-77.333 19.094-148.693 57.28-214.187 38.08-65.28 89.814-117.013 155.307-155.306C363.2 104.533 434.56 85.333 512 85.333c77.333 0 148.693 19.094 214.187 57.28 65.28 38.187 117.013 89.92 155.2 155.2z m-217.707-47.36C617.387 223.467 566.827 209.92 512 209.92s-105.387 13.547-151.68 40.533-82.987 63.68-109.973 109.974c-26.987 46.293-40.534 96.853-40.534 151.68s13.547 105.386 40.534 151.68c26.986 46.293 63.68 82.986 109.973 109.973 46.293 26.987 96.853 40.533 151.68 40.533s105.387-13.546 151.68-40.533c46.293-26.987 82.987-63.68 109.973-109.973 26.987-46.294 40.534-96.854 40.534-151.68s-13.547-105.387-40.534-151.68c-27.093-46.294-63.786-82.987-109.973-109.974z`,
  1339. orient: 'vertical',
  1340. data: ['督办', '直办', '转办', '催办'],
  1341. left: '80%',
  1342. top: 'center',
  1343. align: 'left',
  1344. textStyle: {
  1345. color: "#fff",
  1346. fontSize: 18
  1347. },
  1348. padding: [10, 60],
  1349. itemGap: 20
  1350. }],
  1351. color: ['#c046ff', '#00a8ff', '#00ffe4', '#f1b31e'],
  1352. series: [{
  1353. name: '访问来源',
  1354. type: 'pie',
  1355. radius: '76%',
  1356. data: data,
  1357. emphasis: {
  1358. itemStyle: {
  1359. shadowBlur: 10,
  1360. shadowOffsetX: 0,
  1361. shadowColor: 'rgba(0, 0, 0, 0.5)'
  1362. }
  1363. },
  1364. label: {
  1365. normal: {
  1366. show: false,
  1367. formatter: function (params) {
  1368. return params.name + ':' + params.value
  1369. // return
  1370. },
  1371. },
  1372. emphasis: {
  1373. position: 'left',
  1374. show: true,
  1375. textStyle: {
  1376. color: '#fff',
  1377. fontSize: '18',
  1378. fontWeight: 'bold'
  1379. },
  1380. length: 1
  1381. }
  1382. },
  1383. }]
  1384. };
  1385. sortPie.setOption(option);
  1386. sortPie.on('click', function (params) {
  1387. console.log(params.name)
  1388. if (params.name == '直办') {
  1389. workTable('', '', '', '', '', '', '', '', 0, 2)
  1390. } else if (params.name == '督办') {
  1391. workTable('', '', '', '', '', '', '', '', 0, 1)
  1392. } else if (params.name == '转办') {
  1393. workTable('', '', '', '', '', '', '', '', 0, 3)
  1394. } else {
  1395. workTable('', '', '', '', '', '', '', '', 0, 4)
  1396. }
  1397. })
  1398. }
  1399. function getAcceptanceName(val, row) {
  1400. if (row.type == '咨询') {
  1401. return '<span class="workAct" onclick="workTable(\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + 9 +
  1402. '\',\'' + '' + '\',\'' + '' + '\',\'' + 0 + '\')">' + val + '</span>'
  1403. } else if (row.type == '投诉') {
  1404. return '<span class="workAct" onclick="workTable(\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + 11 +
  1405. '\',\'' + '' + '\',\'' + '' + '\',\'' + 0 + '\')">' + val + '</span>'
  1406. } else if (row.type == '建议') {
  1407. return '<span class="workAct" onclick="workTable(\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + 12 +
  1408. '\',\'' + '' + '\',\'' + '' + '\',\'' + 0 + '\')">' + val + '</span>'
  1409. } else if (row.type == '其他') {
  1410. return '<span class="workAct" onclick="workTable(\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + 90 +
  1411. '\',\'' + '' + '\',\'' + '' + '\',\'' + 0 + '\')">' + val + '</span>'
  1412. } else if (row.type == '求助') {
  1413. return '<span class="workAct" onclick="workTable(\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + 10 +
  1414. '\',\'' + '' + '\',\'' + '' + '\',\'' + 0 + '\')">' + val + '</span>'
  1415. } else if (row.type == '表扬') {
  1416. return '<span class="workAct" onclick="workTable(\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + 13 +
  1417. '\',\'' + '' + '\',\'' + '' + '\',\'' + 0 + '\')">' + val + '</span>'
  1418. } else if (row.type == '举报') {
  1419. return '<span class="workAct" onclick="workTable(\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + '' + '\',\'' + 89 +
  1420. '\',\'' + '' + '\',\'' + '' + '\',\'' + 0 + '\')">' + val + '</span>'
  1421. }
  1422. }
  1423. //时段话务
  1424. function trafficMonthChart(hours, monthCount, dayCount) {
  1425. let traffic = echarts.init(document.getElementById('traffic2'));
  1426. option = {
  1427. tooltip: {
  1428. trigger: 'axis',
  1429. axisPointer: {
  1430. show: true,
  1431. type: 'line',
  1432. lineStyle: {
  1433. type: 'dashed'
  1434. }
  1435. },
  1436. textStyle: {
  1437. color: '#fff',
  1438. fontSize: 16,
  1439. fontWeight: '600',
  1440. },
  1441. position: ['75%', '55%'],
  1442. backgroundColor: 'rgba(250,250,250,0)',
  1443. formatter: function (params) {
  1444. console.log()
  1445. let str = '<div style="position: absolute;top:-315px;left:-423px">接通率:' + ((params[1].value / params[0].value) * 100).toFixed(0) + '%</div>'
  1446. return str;
  1447. }
  1448. },
  1449. grid: {
  1450. top: '18%',
  1451. bottom: '12%'
  1452. },
  1453. xAxis: [{
  1454. type: "category",
  1455. boundaryGap: false,
  1456. scale: true,
  1457. axisLabel: {
  1458. formatter: '{value}',
  1459. fontSize: 13,
  1460. margin: 10,
  1461. textStyle: {
  1462. color: "#f4f4f8"
  1463. }
  1464. },
  1465. axisLine: {
  1466. show: true,
  1467. lineStyle: {
  1468. color: "#525fa6"
  1469. }
  1470. },
  1471. splitLine: {
  1472. show: false,
  1473. lineStyle: {
  1474. color: "#243753"
  1475. }
  1476. },
  1477. axisTick: {
  1478. show: false
  1479. },
  1480. data: hours
  1481. }],
  1482. yAxis: [{
  1483. boundaryGap: false,
  1484. type: "value",
  1485. // scale:true,
  1486. axisLabel: {
  1487. textStyle: {
  1488. color: "#f4f4f8"
  1489. }
  1490. },
  1491. nameTextStyle: {
  1492. color: "#fff",
  1493. fontSize: 12,
  1494. lineHeight: 40
  1495. },
  1496. splitLine: {
  1497. show: true,
  1498. lineStyle: {
  1499. color: "#516cb8",
  1500. type: "dashed"
  1501. }
  1502. },
  1503. axisLine: {
  1504. lineStyle: {
  1505. color: "#8393c8",
  1506. width: 1,
  1507. type: "solid"
  1508. },
  1509. show: true,
  1510. // "symbol":['none', 'arrow'],
  1511. symbol: ['none',
  1512. 'path://M5, 20 L5, 5 L8, 8 L5, 2 L2, 8 L5, 5 L5.3, 6 L5.3, 20'
  1513. ],
  1514. symbolOffset: 5,
  1515. symbolSize: [35, 38],
  1516. },
  1517. name: "条"
  1518. }],
  1519. series: [{
  1520. name: "话务量",
  1521. type: "line",
  1522. smooth: true,
  1523. showSymbol: false,
  1524. symbol: 'circle',
  1525. symbolSize: 4,
  1526. zlevel: 3,
  1527. itemStyle: {
  1528. color: '#08fcff'
  1529. },
  1530. lineStyle: {
  1531. normal: {
  1532. width: 2,
  1533. color: "#08fcff",
  1534. }
  1535. },
  1536. label: {
  1537. show: true,
  1538. position: 'top',
  1539. color: '#fff',
  1540. fontSize: 14,
  1541. fontWeight: '600',
  1542. formatter: function (params) {
  1543. console.log(params)
  1544. return params.seriesName + ':' + params.value
  1545. }
  1546. },
  1547. areaStyle: {
  1548. normal: {
  1549. color: new echarts.graphic.LinearGradient(
  1550. 0,
  1551. 0,
  1552. 0,
  1553. 1,
  1554. [{
  1555. offset: 0,
  1556. color: "#087caa"
  1557. },
  1558. {
  1559. offset: 0.8,
  1560. color: "#091576"
  1561. }
  1562. ],
  1563. false
  1564. ),
  1565. }
  1566. },
  1567. emphasis: {
  1568. itemStyle: {
  1569. color: '#fff',
  1570. shadowBlur: 10,
  1571. shadowOffsetX: 1,
  1572. shadowOffsetY: 1,
  1573. shadowColor: 'rgb(250,250, 250)'
  1574. }
  1575. },
  1576. data: monthCount
  1577. }, {
  1578. name: "接通量",
  1579. type: "line",
  1580. smooth: true,
  1581. showSymbol: false,
  1582. symbol: 'circle',
  1583. symbolSize: 4,
  1584. zlevel: 3,
  1585. itemStyle: {
  1586. color: '#ffe000'
  1587. },
  1588. label: {
  1589. show: true,
  1590. position: 'top',
  1591. color: '#fff',
  1592. fontSize: 14,
  1593. fontWeight: '600',
  1594. formatter: function (params) {
  1595. return params.seriesName + ':' + params.value
  1596. }
  1597. },
  1598. lineStyle: {
  1599. normal: {
  1600. width: 2,
  1601. color: "#ffe000",
  1602. }
  1603. },
  1604. areaStyle: {
  1605. normal: {
  1606. color: new echarts.graphic.LinearGradient(
  1607. 0,
  1608. 0,
  1609. 0,
  1610. 1,
  1611. [{
  1612. offset: 0,
  1613. color: "#739952"
  1614. },
  1615. {
  1616. offset: 0.8,
  1617. color: "#091576"
  1618. }
  1619. ],
  1620. false
  1621. ),
  1622. }
  1623. },
  1624. emphasis: {
  1625. itemStyle: {
  1626. color: '#fff',
  1627. shadowBlur: 10,
  1628. shadowOffsetX: 1,
  1629. shadowOffsetY: 1,
  1630. shadowColor: 'rgb(250,250, 250)'
  1631. }
  1632. },
  1633. data: dayCount
  1634. }]
  1635. };
  1636. traffic.setOption(option);
  1637. }
  1638. function trafficDayChart(dataArr) {
  1639. let traffic3 = echarts.init(document.getElementById('rexian'));
  1640. // 头部菱形
  1641. const diamondData = dataArr.result.reduce((pre, cur, index) => {
  1642. pre[index] = cur.data.map((el, id) => el + (pre[index - 1] ? pre[index - 1][id] : 0))
  1643. return pre
  1644. }, [])
  1645. // color
  1646. const color = [
  1647. [{ offset: 0, color: "#efff37", }, { offset: 0.5, color: "#efff37", }, { offset: 0.5, color: "#d5e700", }, { offset: 1, color: "#d5e700", }],
  1648. [{ offset: 0, color: "#f67c20", }, { offset: 0.5, color: "#f67c20", }, { offset: 0.5, color: "#cc681e", }, { offset: 1, color: "#cc681e", }],
  1649. [{ offset: 0, color: "#32ffee", }, { offset: 0.5, color: "#32ffee", }, { offset: 0.5, color: "#00e8d5", }, { offset: 1, color: "#00e8d5", }],
  1650. [{ offset: 0, color: "#dc0707", }, { offset: 0.5, color: "#dc0707", }, { offset: 0.5, color: "#af0808", }, { offset: 1, color: "#af0808", }],
  1651. ]
  1652. // series
  1653. let series = dataArr.result.reduce((p, c, i, array) => {
  1654. p.push({
  1655. z: i + 1,
  1656. stack: '总量',
  1657. type: 'bar',
  1658. name: c.name,
  1659. barGap: '-100%',
  1660. barWidth: 30,
  1661. data: c.data,
  1662. itemStyle: { color: { type: 'linear', x: 0, x2: 1, y: 0, y2: 0, colorStops: color[i] } },
  1663. }, {
  1664. z: i + 10,
  1665. type: 'pictorialBar',
  1666. symbolPosition: 'end',
  1667. symbol: 'diamond',
  1668. symbolOffset: [0, '-50%'],
  1669. symbolSize: [30, 10],
  1670. data: diamondData[i],
  1671. itemStyle: { color: { type: 'linear', x: 0, x2: 1, y: 0, y2: 0, colorStops: color[i] } },
  1672. tooltip: { show: false },
  1673. })
  1674. // 是否最后一个了?
  1675. if (p.length === (array.length) * 2) {
  1676. p.push({
  1677. z: array.length * 2,
  1678. type: "pictorialBar",
  1679. symbolPosition: "start",
  1680. data: dataArr.result[0].data,
  1681. symbol: "diamond",
  1682. symbolOffset: ["0%", "50%"],
  1683. symbolSize: [30, 10],
  1684. itemStyle: { color: { type: 'linear', x: 0, x2: 1, y: 0, y2: 0, colorStops: color[0] } },
  1685. tooltip: { show: false },
  1686. })
  1687. return p
  1688. }
  1689. return p
  1690. }, [])
  1691. // tooltip
  1692. const tooltip = {
  1693. trigger: 'axis',
  1694. axisPointer: {
  1695. show: true,
  1696. type: 'line',
  1697. lineStyle: {
  1698. type: 'dashed'
  1699. }
  1700. },
  1701. textStyle: {
  1702. color: '#ffe400',
  1703. fontSize: '14'
  1704. },
  1705. backgroundColor: 'rgba(250,250,250,0)',
  1706. formatter: function (params) {
  1707. let str = '<div style="background-image: url(image/key_frame.png);width:134px;height:130px;line-height:25px;background-size: 100% 100%;padding:13px 10px;">'
  1708. params.forEach(function (v, n) {
  1709. if (v.seriesName != '上部1') {
  1710. str +=
  1711. '<div><span style="color:#fff;width:75px;text-align: center;display: inline-block;">' +
  1712. v.seriesName +
  1713. ':</span><span style:"width:55px;text-align: center;display: inline-block;">' +
  1714. v.value + '</span></div>'
  1715. }
  1716. })
  1717. return str;
  1718. }
  1719. }
  1720. const legend = {
  1721. data: dataArr.result.map(item => item.name),
  1722. textStyle: { fontSize: 14, color: '#fff' },
  1723. itemWidth: 25,
  1724. itemHeight: 15,
  1725. itemGap: 15,
  1726. // top: '5%',
  1727. // 禁止点击
  1728. selectedMode: false,
  1729. }
  1730. // grid
  1731. const grid = {
  1732. left: '3%',
  1733. right: '4%',
  1734. bottom: '3%',
  1735. containLabel: true,
  1736. tooltip: {
  1737. textStyle: {
  1738. color: '#fff'
  1739. }
  1740. }
  1741. }
  1742. // xAxis
  1743. const xAxis = {
  1744. axisTick: { show: true },
  1745. axisLine: {
  1746. show: true,
  1747. lineStyle: {
  1748. color: "#525fa6"
  1749. }
  1750. },
  1751. axisLabel: { textStyle: { fontSize: 16, color: '#fff' }, },
  1752. data: dataArr.xdata
  1753. }
  1754. // yAxis
  1755. const yAxis = [{
  1756. boundaryGap: false,
  1757. type: "value",
  1758. // scale:true,
  1759. axisLabel: {
  1760. textStyle: {
  1761. color: "#f4f4f8"
  1762. }
  1763. },
  1764. nameTextStyle: {
  1765. color: "#fff",
  1766. fontSize: 12,
  1767. lineHeight: 40
  1768. },
  1769. splitLine: {
  1770. show: true,
  1771. lineStyle: {
  1772. color: "#516cb8",
  1773. type: "dashed"
  1774. }
  1775. }
  1776. }]
  1777. // 渲染
  1778. option = {
  1779. tooltip, xAxis, yAxis, series, grid, legend
  1780. }
  1781. traffic3.setOption(option)
  1782. }
  1783. function getS(dataArr) {
  1784. let traffic3 = echarts.init(document.getElementById('heji'));
  1785. // 头部菱形
  1786. const diamondData = dataArr.result.reduce((pre, cur, index) => {
  1787. pre[index] = cur.data.map((el, id) => el + (pre[index - 1] ? pre[index - 1][id] : 0))
  1788. return pre
  1789. }, [])
  1790. // color
  1791. const color = [
  1792. [{ offset: 0, color: "#efff37", }, { offset: 0.5, color: "#efff37", }, { offset: 0.5, color: "#d5e700", }, { offset: 1, color: "#d5e700", }],
  1793. [{ offset: 0, color: "#f67c20", }, { offset: 0.5, color: "#f67c20", }, { offset: 0.5, color: "#cc681e", }, { offset: 1, color: "#cc681e", }],
  1794. [{ offset: 0, color: "#32ffee", }, { offset: 0.5, color: "#32ffee", }, { offset: 0.5, color: "#00e8d5", }, { offset: 1, color: "#00e8d5", }],
  1795. [{ offset: 0, color: "#dc0707", }, { offset: 0.5, color: "#dc0707", }, { offset: 0.5, color: "#af0808", }, { offset: 1, color: "#af0808", }],
  1796. ]
  1797. // series
  1798. let series = dataArr.result.reduce((p, c, i, array) => {
  1799. p.push({
  1800. z: i + 1,
  1801. stack: '总量',
  1802. type: 'bar',
  1803. name: c.name,
  1804. barGap: '-100%',
  1805. barWidth: 30,
  1806. data: c.data,
  1807. itemStyle: { color: { type: 'linear', x: 0, x2: 1, y: 0, y2: 0, colorStops: color[i] } },
  1808. }, {
  1809. z: i + 10,
  1810. type: 'pictorialBar',
  1811. symbolPosition: 'end',
  1812. symbol: 'diamond',
  1813. symbolOffset: [0, '-50%'],
  1814. symbolSize: [30, 10],
  1815. data: diamondData[i],
  1816. itemStyle: { color: { type: 'linear', x: 0, x2: 1, y: 0, y2: 0, colorStops: color[i] } },
  1817. tooltip: { show: false },
  1818. })
  1819. // 是否最后一个了?
  1820. if (p.length === (array.length) * 2) {
  1821. p.push({
  1822. z: array.length * 2,
  1823. type: "pictorialBar",
  1824. symbolPosition: "start",
  1825. data: dataArr.result[0].data,
  1826. symbol: "diamond",
  1827. symbolOffset: ["0%", "50%"],
  1828. symbolSize: [30, 10],
  1829. itemStyle: { color: { type: 'linear', x: 0, x2: 1, y: 0, y2: 0, colorStops: color[0] } },
  1830. tooltip: { show: false },
  1831. })
  1832. return p
  1833. }
  1834. return p
  1835. }, [])
  1836. // tooltip
  1837. const tooltip = {
  1838. trigger: 'axis',
  1839. axisPointer: {
  1840. show: true,
  1841. type: 'line',
  1842. lineStyle: {
  1843. type: 'dashed'
  1844. }
  1845. },
  1846. textStyle: {
  1847. color: '#ffe400',
  1848. fontSize: '14'
  1849. },
  1850. backgroundColor: 'rgba(250,250,250,0)',
  1851. formatter: function (params) {
  1852. let str = '<div style="background-image: url(image/key_frame.png);width:134px;height:130px;line-height:25px;background-size: 100% 100%;padding:13px 10px;">'
  1853. params.forEach(function (v, n) {
  1854. if (v.seriesName != '上部1') {
  1855. str +=
  1856. '<div><span style="color:#fff;width:75px;text-align: center;display: inline-block;">' +
  1857. v.seriesName +
  1858. ':</span><span style:"width:55px;text-align: center;display: inline-block;">' +
  1859. v.value + '</span></div>'
  1860. }
  1861. })
  1862. return str;
  1863. }
  1864. }
  1865. // grid
  1866. const grid = {
  1867. left: '3%',
  1868. right: '4%',
  1869. bottom: '3%',
  1870. containLabel: true,
  1871. tooltip: {
  1872. textStyle: {
  1873. color: '#fff'
  1874. }
  1875. }
  1876. }
  1877. // xAxis
  1878. const xAxis = {
  1879. axisTick: { show: true },
  1880. axisLine: {
  1881. show: true,
  1882. lineStyle: {
  1883. color: "#525fa6"
  1884. }
  1885. },
  1886. axisLabel: { textStyle: { fontSize: 16, color: '#fff' }, },
  1887. data: dataArr.xdata
  1888. }
  1889. // yAxis
  1890. const yAxis = [{
  1891. boundaryGap: false,
  1892. type: "value",
  1893. // scale:true,
  1894. axisLabel: {
  1895. textStyle: {
  1896. color: "#f4f4f8"
  1897. }
  1898. },
  1899. nameTextStyle: {
  1900. color: "#fff",
  1901. fontSize: 12,
  1902. lineHeight: 40
  1903. },
  1904. splitLine: {
  1905. show: true,
  1906. lineStyle: {
  1907. color: "#516cb8",
  1908. type: "dashed"
  1909. }
  1910. }
  1911. }]
  1912. // 渲染
  1913. option = {
  1914. tooltip, xAxis, yAxis, series, grid
  1915. }
  1916. traffic3.setOption(option)
  1917. }
  1918. //坐席监控
  1919. //实时话务统计
  1920. function getRealTimeTraffi(hours, hrCount, hcCount) {
  1921. let realTimeTraffi = echarts.init(document.getElementById('realTimeTraffi'));
  1922. option = {
  1923. grid: {
  1924. top: '20%',
  1925. bottom: '20%'
  1926. },
  1927. legend: {
  1928. data: ['呼入', '呼出'],
  1929. textStyle: {
  1930. color: '#fff',
  1931. fontSize: 14,
  1932. padding: [0, 5]
  1933. },
  1934. right: 25,
  1935. top: -5
  1936. },
  1937. tooltip: {
  1938. trigger: 'axis',
  1939. axisPointer: {
  1940. show: true,
  1941. type: 'line',
  1942. lineStyle: {
  1943. type: 'dashed'
  1944. }
  1945. },
  1946. textStyle: {
  1947. color: '#fff',
  1948. fontSize: 16,
  1949. fontWeight: '600',
  1950. },
  1951. backgroundColor: 'rgba(250,250,250,0)',
  1952. formatter: function (params) {
  1953. let str = '<div style="background-image: url(image/key_frame.png);width:128px;height:70px;line-height:25px;background-size: 100% 100%;padding:7px 8px;">'
  1954. params.forEach(function (v, n) {
  1955. // if(v.seriesName!='上部1'){
  1956. str +=
  1957. '<div><span style="color:#fff;width:75px;text-align: center;display: inline-block;">' +
  1958. v.seriesName +
  1959. ':</span><span style:"width:55px;text-align: center;display: inline-block;">' +
  1960. v.value + '</span></div>'
  1961. // }
  1962. })
  1963. return str;
  1964. }
  1965. },
  1966. xAxis: [{
  1967. type: "category",
  1968. boundaryGap: false,
  1969. scale: true,
  1970. axisLabel: {
  1971. formatter: '{value}',
  1972. fontSize: 13,
  1973. margin: 10,
  1974. textStyle: {
  1975. color: "#f4f4f8"
  1976. }
  1977. },
  1978. axisLine: {
  1979. show: true,
  1980. lineStyle: {
  1981. color: "#849cc9"
  1982. }
  1983. },
  1984. splitLine: {
  1985. show: false,
  1986. lineStyle: {
  1987. color: "#849cc9"
  1988. }
  1989. },
  1990. axisTick: {
  1991. show: false
  1992. },
  1993. data: hours
  1994. }],
  1995. yAxis: [{
  1996. boundaryGap: false,
  1997. type: "value",
  1998. // scale:true,
  1999. axisLabel: {
  2000. textStyle: {
  2001. color: "#f4f4f8"
  2002. }
  2003. },
  2004. nameTextStyle: {
  2005. color: "#fff",
  2006. fontSize: 12,
  2007. lineHeight: 40
  2008. },
  2009. splitLine: {
  2010. show: true,
  2011. lineStyle: {
  2012. color: "#849cc9",
  2013. type: "dashed"
  2014. }
  2015. },
  2016. axisLine: {
  2017. lineStyle: {
  2018. color: "#849cc9",
  2019. width: 1,
  2020. type: "solid"
  2021. },
  2022. show: true,
  2023. // "symbol":['none', 'arrow'],
  2024. symbol: ['none',
  2025. 'path://M5, 20 L5, 5 L8, 8 L5, 2 L2, 8 L5, 5 L5.3, 6 L5.3, 20'
  2026. ],
  2027. symbolOffset: 5,
  2028. symbolSize: [35, 38],
  2029. },
  2030. }],
  2031. series: [{
  2032. name: "呼入",
  2033. type: "line",
  2034. smooth: true,
  2035. showSymbol: false,
  2036. symbol: 'circle',
  2037. symbolSize: 4,
  2038. zlevel: 3,
  2039. itemStyle: {
  2040. color: '#08fcff'
  2041. },
  2042. lineStyle: {
  2043. normal: {
  2044. width: 2,
  2045. color: "#01cde6",
  2046. }
  2047. },
  2048. // label: {
  2049. // show: true,
  2050. // position: 'top',
  2051. // color: '#fff',
  2052. // fontSize: 14,
  2053. // fontWeight: '600',
  2054. // formatter: function (params) {
  2055. // console.log(params)
  2056. // return params.seriesName + ':' + params.value
  2057. // }
  2058. // },
  2059. areaStyle: {
  2060. normal: {
  2061. color: new echarts.graphic.LinearGradient(
  2062. 0,
  2063. 0,
  2064. 0,
  2065. 1,
  2066. [{
  2067. offset: 0,
  2068. color: "#0571ae"
  2069. },
  2070. {
  2071. offset: 0.8,
  2072. color: "#093085"
  2073. }
  2074. ],
  2075. false
  2076. ),
  2077. }
  2078. },
  2079. emphasis: {
  2080. itemStyle: {
  2081. color: '#fff',
  2082. shadowBlur: 10,
  2083. shadowOffsetX: 1,
  2084. shadowOffsetY: 1,
  2085. shadowColor: 'rgb(250,250, 250)'
  2086. }
  2087. },
  2088. data: hrCount
  2089. }, {
  2090. name: "呼出",
  2091. type: "line",
  2092. smooth: true,
  2093. showSymbol: false,
  2094. symbol: 'circle',
  2095. symbolSize: 4,
  2096. zlevel: 3,
  2097. itemStyle: {
  2098. color: '#ffe000'
  2099. },
  2100. // label: {
  2101. // show: true,
  2102. // position: 'top',
  2103. // color: '#fff',
  2104. // fontSize: 14,
  2105. // fontWeight: '600',
  2106. // formatter: function (params) {
  2107. // return params.seriesName + ':' + params.value
  2108. // }
  2109. // },
  2110. lineStyle: {
  2111. normal: {
  2112. width: 2,
  2113. color: "#ffd200",
  2114. }
  2115. },
  2116. areaStyle: {
  2117. normal: {
  2118. color: new echarts.graphic.LinearGradient(
  2119. 0,
  2120. 0,
  2121. 0,
  2122. 1,
  2123. [{
  2124. offset: 0,
  2125. color: "#626a55"
  2126. },
  2127. {
  2128. offset: 0.8,
  2129. color: "#093085"
  2130. }
  2131. ],
  2132. false
  2133. ),
  2134. }
  2135. },
  2136. emphasis: {
  2137. itemStyle: {
  2138. color: '#fff',
  2139. shadowBlur: 10,
  2140. shadowOffsetX: 1,
  2141. shadowOffsetY: 1,
  2142. shadowColor: 'rgb(250,250, 250)'
  2143. }
  2144. },
  2145. data: hcCount
  2146. }]
  2147. };
  2148. realTimeTraffi.setOption(option);
  2149. }