index.vue 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114
  1. <template>
  2. <div class="statistics-dashboard">
  3. <!-- 数据概览 (Data Overview) -->
  4. <el-card class="overview-section" shadow="never">
  5. <el-row :gutter="20">
  6. <el-col :xs="24" :sm="24" :md="16" :lg="16" :xl="16" class="companybox">
  7. <img src="../assets/images/topbg.png" alt="" class="topimg">
  8. <img src="../assets/images/topbg.png" alt="" class="bottomimg">
  9. <div class="companyboxtitle">
  10. 企业数据
  11. </div>
  12. <div class="companyflex">
  13. <div class="topbg companycard cardafter">
  14. <div class="card-title1">
  15. <img src="../assets/images/tab_company.png" alt="" class="icon-img">
  16. 分公司数量
  17. </div>
  18. <div class="card-value highlight1">
  19. <count-to :start-val="0" :end-val="dealderCount" :duration="3600"
  20. class="card-panel-num companynumber" />
  21. </div>
  22. </div>
  23. <div class="companycard cardafter">
  24. <div class="card-title1">
  25. <img src="../assets/images/salesperson.png" alt="" class="icon-img">
  26. 销售数量
  27. </div>
  28. <div class="card-value highlight1">
  29. <count-to :start-val="0" :end-val="groupMgrCount" :duration="3600"
  30. class="card-panel-num companynumber" />
  31. </div>
  32. </div>
  33. <div class="companycard cardafter">
  34. <div class="card-title1">
  35. <img src="../assets/images/member.png" alt="" class="icon-img">
  36. 会员数量
  37. </div>
  38. <div class="card-value highlight1">
  39. <count-to :start-val="0" :end-val="memberCount" :duration="3600" class="card-panel-num companynumber" />
  40. <span class="highlight-today-add companyadd">+{{todayIncreaseUserNum}}</span>
  41. </div>
  42. </div>
  43. <div class="cardafter companycard">
  44. <div class="card-title1">
  45. <img src="../assets/images/tab_enterprise.png" alt="" class="icon-img">
  46. 企微数量
  47. </div>
  48. <div class="card-value highlight1">
  49. <count-to :start-val="0" :end-val="qwMemberNum" :duration="3600" class="card-panel-num companynumber" />
  50. </div>
  51. </div>
  52. <div class="botttombg companycard">
  53. <div class="card-title1">
  54. <svg-icon icon-class="phone" />
  55. pad使用情况
  56. </div>
  57. <div class="card-value highlight1">
  58. <count-to :start-val="0" :end-val="padUsedNum" :duration="3600" class="card-panel-num companynumber" />
  59. /
  60. <count-to :start-val="0" :end-val="padTotalNum" :duration="1800" class="card-panel-num companynumber" />
  61. </div>
  62. </div>
  63. </div>
  64. </el-col>
  65. <el-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8" class="propertyboxtitle">
  66. <div class="property_title">
  67. 资产概览
  68. </div>
  69. <div class="propertyboxflex">
  70. <div class="property-card propertyline">
  71. <div class="property-title">
  72. <i class="el-icon-money"></i>
  73. 企业资产(元)
  74. </div>
  75. <div class="card-value highlight">
  76. <count-to :start-val="0" :end-val="balance" :duration="3600" class="card-panel-num" />
  77. </div>
  78. </div>
  79. <div class="property-card">
  80. <div class="property-title">
  81. <span>今日消耗 (元)</span>
  82. </div>
  83. <div class="card-value highlight" style="color: rgba(32, 33, 36, 1);margin-top: 10px;">
  84. <count-to :start-val="0" :end-val="todayComsumption" :duration="3600" class="card-panel-num" />
  85. </div>
  86. <div class="card-compare">
  87. 较昨日 <span>+1</span>
  88. </div>
  89. </div>
  90. </div>
  91. </el-col>
  92. </el-row>
  93. <el-row :gutter="20">
  94. <el-col :xs="24" :sm="24" :md="16" :lg="16" :xl="16">
  95. <div class="operatetitle">
  96. 经营数据
  97. </div>
  98. <div class="operatetitle-col">
  99. <div class="operatetitle-card">
  100. <div class="card-title">
  101. <i class="el-icon-shopping-cart-full"></i>
  102. 收款总数
  103. </div>
  104. <div class="operate-value highlight">
  105. <count-to :start-val="0" :end-val="recvTotalNum" :duration="3600" class="card-panel-num" />
  106. <div class="yesterdaybox">
  107. 较昨日 <span class="highlight-today-add2">+{{recvTodayNum}}</span>
  108. </div>
  109. </div>
  110. <div class="card-badge">
  111. </div>
  112. </div>
  113. <div class="operatetitle-card">
  114. <div class="card-title">
  115. <i class="el-icon-shopping-cart-full"></i>
  116. 订单总数
  117. </div>
  118. <div class="operate-value highlight">
  119. <count-to :start-val="0" :end-val="orderTotalNum" :duration="3600" class="card-panel-num" />
  120. <div class="yesterdaybox">
  121. 较昨日 <span class="highlight-today-add2">+{{todayOrderNum}}</span>
  122. </div>
  123. </div>
  124. <div class="card-badge">
  125. </div>
  126. </div>
  127. <div class="operatetitle-card">
  128. <div class="card-title">
  129. 平台今日看课人数
  130. </div>
  131. <div class="operate-value highlight">
  132. <count-to :start-val="0" :end-val="todayWatchUserCount" :duration="3600" class="card-panel-num" />
  133. </div>
  134. <div class="card-sub">
  135. <span>配额上限</span>
  136. <span class="sub-value">
  137. <count-to :start-val="0" :end-val="todayWatchUserCount" :duration="3600" class="card-panel-num"
  138. style="color: rgba(49, 185, 154, 1);" />
  139. /
  140. <count-to :start-val="0" :end-val="versionLimit" :duration="3600" class="card-panel-num" />
  141. </span>
  142. </div>
  143. <el-progress :percentage="todayWatchUserCount/versionLimit" :show-text="false"
  144. color="#409EFF"></el-progress>
  145. </div>
  146. <div class="operatetitle-card">
  147. <div class="card-title">
  148. <i class="el-icon-shopping-cart-full"></i>
  149. 商品总数
  150. </div>
  151. <div class="operate-value highlight">
  152. <count-to :start-val="0" :end-val="goodsTotalNum" :duration="3600" class="card-panel-num" />
  153. <div class="yesterdaybox">
  154. 较昨日 <span class="highlight-today-add2">+{{todayGoodsNum}}</span>
  155. </div>
  156. </div>
  157. <div class="card-badge">
  158. </div>
  159. </div>
  160. </div>
  161. </el-col>
  162. <el-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8" style="padding-left: 15px;">
  163. <div class="internetbox">
  164. <div class="internet-cardtop">
  165. <div class="cardinnerbox">
  166. <div class="cardtopimg">
  167. <img src="../assets/images/liuliang.png" alt=""><span>剩余流量</span>
  168. </div>
  169. <div class="cardtopnumber">
  170. <span>{{formatBytes(this.trafficCount)}}</span>
  171. </div>
  172. </div>
  173. <div class="progress">
  174. <el-progress :percentage="90" :show-text="false" define-back-color="#000">
  175. </el-progress>
  176. </div>
  177. <div class="cardinnerbox2">
  178. <div>
  179. 今日消耗 <span>{{formatBytes(this.todayTraffic)}}</span>
  180. </div>
  181. <div>
  182. 本月 <span>{{formatBytes(this.thisMonthTraffic)}}</span>
  183. </div>
  184. </div>
  185. </div>
  186. <div class="internetbox-messge">
  187. <div class="internet-card">
  188. <img src="../assets/images/message.png" alt="">
  189. <span class="internet-title">
  190. 短信剩余条数 (条)
  191. </span>
  192. </div>
  193. <div class="internet-number">
  194. 0
  195. </div>
  196. </div>
  197. </div>
  198. </el-col>
  199. </el-row>
  200. </el-card>
  201. <!-- 分析概览 (Analysis Overview) -->
  202. <div class="analysis-section" shadow="never">
  203. <div slot="header" class="header">
  204. <div>分析概览</div>
  205. <div class="tab-group">
  206. <el-radio-group v-model="queryTime" size="medium" @change="handleAnalysis">
  207. <el-radio-button label="今日"></el-radio-button>
  208. <el-radio-button label="昨日"></el-radio-button>
  209. <el-radio-button label="本周"></el-radio-button>
  210. <el-radio-button label="本月"></el-radio-button>
  211. <el-radio-button label="上月"></el-radio-button>
  212. </el-radio-group>
  213. </div>
  214. <div class="action-group">
  215. <!-- 选择部门 -->
  216. <el-select v-model="deptId" placeholder="请选择部门" size="small" @change="handleDeptChange" style="width: 100px">
  217. <el-option
  218. v-for="company in deptOptions"
  219. :key="company.deptId"
  220. :label="company.deptName"
  221. :value="company.deptId"
  222. />
  223. </el-select>
  224. <!-- 选择销售公司 -->
  225. <el-select v-model="companyId" placeholder="请选择销售公司" size="small" clearable @change="handleCompanyChange" style="width: 180px" >
  226. <el-option
  227. v-for="company in companyOptions"
  228. :key="company.companyId"
  229. :label="company.companyName"
  230. :value="company.companyId"
  231. />
  232. </el-select>
  233. <el-radio-group v-model="userTypeText" @change="handleUserType">
  234. <el-radio-button label="会员"></el-radio-button>
  235. <el-radio-button label="企微"></el-radio-button>
  236. </el-radio-group>
  237. <el-dropdown @command="handleAutoRefresh" trigger="click">
  238. <el-button size="small" plain>
  239. 自动刷新
  240. <i class="el-icon-arrow-down el-icon--right"></i>
  241. </el-button>
  242. <el-dropdown-menu slot="dropdown">
  243. <el-dropdown-item :command="0" :class="{ 'is-active': !autoRefreshInterval }">关闭</el-dropdown-item>
  244. <el-dropdown-item :command="5" :class="{ 'is-active': autoRefreshInterval === 5 }">5分钟</el-dropdown-item>
  245. <el-dropdown-item :command="10"
  246. :class="{ 'is-active': autoRefreshInterval === 10 }">10分钟</el-dropdown-item>
  247. <el-dropdown-item :command="15"
  248. :class="{ 'is-active': autoRefreshInterval === 15 }">15分钟</el-dropdown-item>
  249. </el-dropdown-menu>
  250. </el-dropdown>
  251. <el-button size="small" plain icon="el-icon-refresh" type="primary" @click="manualRefresh">手动刷新</el-button>
  252. </div>
  253. </div>
  254. </div>
  255. <div>
  256. <el-row :gutter="20">
  257. <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12" style="position: relative">
  258. <div class="analysis-card-check" :class="selectedDiv===0?'analysis-card-check-selected color':''"
  259. @click="handleToggleDiv(0)">
  260. <div class="analysis-card">
  261. <img class="card-icon" src="../assets/images/cishu_views.png"></img>
  262. <div class="card-content">
  263. <div class="card-row">
  264. <span>观看人数</span>
  265. <span class="highlight">
  266. <count-to :start-val="0" :end-val="watchUserCount" :duration="3600" class="card-panel-num" />
  267. </span>
  268. </div>
  269. <div class="card-row">
  270. <span>完播人数</span>
  271. <span class="highlight">
  272. <count-to :start-val="0" :end-val="completedUserCount" :duration="3600" class="card-panel-num" />
  273. </span>
  274. </div>
  275. <div class="card-row">
  276. <span>完播率</span>
  277. <span class="highlight">{{completedRate}}%</span>
  278. </div>
  279. </div>
  280. </div>
  281. <div class="analysis-card">
  282. <img class="card-icon" src="../assets/images/number_views.png"></img>
  283. <div class="card-content">
  284. <div class="card-row">
  285. <span>观看次数</span>
  286. <span class="highlight-red">
  287. <count-to :start-val="0" :end-val="watchCount" :duration="3600" class="card-panel-num" /></span>
  288. </div>
  289. <div class="card-row">
  290. <span>完播次数</span>
  291. <span class="highlight-red">
  292. <count-to :start-val="0" :end-val="completedCount" :duration="3600" class="card-panel-num" />
  293. </span>
  294. </div>
  295. <div class="card-row">
  296. <span>视频完播率</span>
  297. <span class="highlight-red">{{watchRate}}%</span>
  298. </div>
  299. </div>
  300. </div>
  301. </div>
  302. </el-col>
  303. <el-col :xs="24" :sm="12" :md="6" :lg="6" :xl="6" style="position: relative">
  304. <div class="analysis-card-check" :class="selectedDiv===1?'analysis-card-check-selected color':''"
  305. @click="handleToggleDiv(1)">
  306. <div class="analysis-card">
  307. <img class="card-icon" src="../assets/images/renshu_views.png"></img>
  308. <div class="card-content">
  309. <div class="card-row">
  310. <span>答题人数</span>
  311. <span class="highlight-black">
  312. <count-to :start-val="0" :end-val="answerMemberCount" :duration="3600" class="card-panel-num" />
  313. </span>
  314. </div>
  315. <div class="card-row">
  316. <span>正确人数</span>
  317. <span class="highlight-black">
  318. <count-to :start-val="0" :end-val="correctUserCount" :duration="3600" class="card-panel-num" />
  319. </span>
  320. </div>
  321. <div class="card-row">
  322. <span>正确率</span>
  323. <span class="highlight-black">{{correctRate}}%</span>
  324. </div>
  325. </div>
  326. </div>
  327. </div>
  328. </el-col>
  329. <el-col :xs="24" :sm="12" :md="6" :lg="6" :xl="6" style="position: relative">
  330. <div class="analysis-card-check" :class="selectedDiv===2?'analysis-card-check-selected color':''"
  331. @click="handleToggleDiv(2)">
  332. <div class="analysis-card">
  333. <img class="card-icon" src="../assets/images/hongbao_views.png"></img>
  334. <div class="card-content">
  335. <div class="card-row">
  336. <span>答题红包个数</span>
  337. <span class="highlight-black">
  338. <count-to :start-val="0" :end-val="rewardCount" :duration="3600" class="card-panel-num" />
  339. </span>
  340. </div>
  341. <div class="card-row">
  342. <span>答题红包金额(元)</span>
  343. <span class="highlight-black">
  344. <count-to :start-val="0" :end-val="rewardMoney" :duration="3600" class="card-panel-num" /></span>
  345. </div>
  346. </div>
  347. </div>
  348. </div>
  349. </el-col>
  350. </el-row>
  351. </div>
  352. <!-- 图表区域 (Charts Area) -->
  353. <transition name="fade">
  354. <el-row :gutter="20" class="charts-section" v-show="selectedDiv===0">
  355. <el-col :span="12">
  356. <el-card shadow="never">
  357. <div slot="header" class="chart-header">
  358. <span>会员观看、完播人数趋势图</span>
  359. <div class="legend">
  360. <div class="legend-item">
  361. <span class="dot viewer-dot"></span>
  362. <span>观看人数</span>
  363. </div>
  364. <div class="legend-item">
  365. <span class="dot complete-dot"></span>
  366. <span>完播人数</span>
  367. </div>
  368. </div>
  369. <!-- <el-button size="small" plain class="view-more">平台每日统计 <i class="el-icon-arrow-right"></i></el-button>-->
  370. </div>
  371. <div ref="viewerChart" class="chart-container"></div>
  372. </el-card>
  373. </el-col>
  374. <el-col :span="12">
  375. <el-card shadow="never">
  376. <div slot="header" class="chart-header">
  377. <span>经销商会员观看TOP10</span>
  378. <div class="legend">
  379. <el-radio-group v-model="viewerType" size="small" @change="handleDealerChartData">
  380. <el-radio-button label="0">按观看人数</el-radio-button>
  381. <el-radio-button label="1">按完播人数</el-radio-button>
  382. </el-radio-group>
  383. </div>
  384. <!-- <el-button size="small" plain class="view-more">经销商统计 <i class="el-icon-arrow-right"></i></el-button>-->
  385. </div>
  386. <div ref="dealerChart" class="chart-container"></div>
  387. </el-card>
  388. </el-col>
  389. </el-row>
  390. </transition>
  391. <transition name="fade">
  392. <el-row :gutter="20" class="charts-section" v-show="selectedDiv===1">
  393. <el-card shadow="never">
  394. <div slot="header" class="chart-header">
  395. <span>课程观看TOP10</span>
  396. <div class="legend">
  397. <el-radio-group v-model="viewerType" size="small" @change="handleCourseWatchChart">
  398. <el-radio-button label="0">按观看人数</el-radio-button>
  399. <el-radio-button label="1">按完播人数</el-radio-button>
  400. <el-radio-button label="2">按答题人数</el-radio-button>
  401. <el-radio-button label="3">按正确人数</el-radio-button>
  402. </el-radio-group>
  403. </div>
  404. <div class="legend">
  405. <el-radio-group v-model="delerSort" @change="handleCourseWatchChart">
  406. <el-radio label="DESC">前10名</el-radio>
  407. <el-radio label="ASC">倒数10名</el-radio>
  408. </el-radio-group>
  409. </div>
  410. <div class="legend">
  411. <div class="legend-item">
  412. <span class="dot viewer-dot"></span>
  413. <span>观看人数</span>
  414. </div>
  415. <div class="legend-item">
  416. <span class="dot complete-dot"></span>
  417. <span>完播人数</span>
  418. </div>
  419. <div class="legend-item">
  420. <span class="dot" style="background-color: #E6A23C"></span>
  421. <span>答题人数</span>
  422. </div>
  423. <div class="legend-item">
  424. <span class="dot" style="background-color: #F56C6C"></span>
  425. <span>正确人数</span>
  426. </div>
  427. </div>
  428. <!-- <el-button size="small" plain class="view-more">经销商统计 <i class="el-icon-arrow-right"></i></el-button>-->
  429. </div>
  430. <div ref="courseWatchChart" class="chart-container"></div>
  431. </el-card>
  432. </el-row>
  433. </transition>
  434. <transition name="fade">
  435. <el-row :gutter="20" class="charts-section" v-show="selectedDiv===2">
  436. <el-col :span="12">
  437. <el-card shadow="never">
  438. <div slot="header" class="chart-header">
  439. <span>答题红包金额TOP10</span>
  440. <div class="legend">
  441. <el-radio-group v-model="dataType" size="small" @change="handleAnswerRedPackViewerChart">
  442. <el-radio-button label="0">按经销商排行</el-radio-button>
  443. <el-radio-button label="1">按课程排行</el-radio-button>
  444. </el-radio-group>
  445. </div>
  446. <!-- <el-button size="small" plain class="view-more">红包记录 <i class="el-icon-arrow-right"></i></el-button>-->
  447. </div>
  448. <div ref="answerRedPackViewerChart" class="chart-container"></div>
  449. </el-card>
  450. </el-col>
  451. <el-col :span="12">
  452. <el-card shadow="never">
  453. <div slot="header" class="chart-header">
  454. <span>答题红包金额趋势图</span>
  455. <div class="legend">
  456. <div class="legend-item">
  457. <span class="dot viewer-dot"></span>
  458. <span>答题红包金额</span>
  459. </div>
  460. </div>
  461. <!-- <el-button size="small" plain class="view-more">红包记录 <i class="el-icon-arrow-right"></i></el-button>-->
  462. </div>
  463. <div ref="answerRedPackMoneyViewerChart" class="chart-container"></div>
  464. </el-card>
  465. </el-col>
  466. </el-row>
  467. </transition>
  468. <el-row :gutter="20" class="charts-section">
  469. <el-col :span="12">
  470. <el-card shadow="never">
  471. <div slot="header" class="chart-header">
  472. <span>本月订单数</span>
  473. <div class="legend">
  474. <div class="legend-item">
  475. <span class="dot viewer-dot"></span>
  476. <span>订单数</span>
  477. </div>
  478. <div class="legend-item">
  479. <span class="dot complete-dot"></span>
  480. <span>订单金额</span>
  481. </div>
  482. </div>
  483. </div>
  484. <div ref="viewerOrderChart" class="chart-container"></div>
  485. </el-card>
  486. </el-col>
  487. <el-col :span="12">
  488. <el-card shadow="never">
  489. <div slot="header" class="chart-header">
  490. <span>本月收款数</span>
  491. <div class="legend">
  492. <div class="legend-item">
  493. <span class="dot viewer-dot"></span>
  494. <span>收款数</span>
  495. </div>
  496. <div class="legend-item">
  497. <span class="dot complete-dot"></span>
  498. <span>收款金额</span>
  499. </div>
  500. </div>
  501. </div>
  502. <div ref="viewerReceiveChart" class="chart-container"></div>
  503. </el-card>
  504. </el-col>
  505. </el-row>
  506. <br/>
  507. </div>
  508. </template>
  509. <script>
  510. import * as echarts from 'echarts'
  511. import CountTo from "vue-count-to";
  512. import {
  513. analysisPreview,
  514. authorizationInfo,
  515. dealerAggregated, deaMemberTopTen, rechargeComsumption, rewardMoneyTopTen, rewardMoneyTrend,
  516. smsBalance, thisMonthOrderCount, thisMonthRecvCount, trafficLog,
  517. watchCourseTopTen, watchEndPlayTrend
  518. } from "@/api/statistics/statistics";
  519. import dayjs from 'dayjs';
  520. import { listDept } from '@/api/system/dept'
  521. import { listCompany } from '@/api/his/company'
  522. const viewCharOption = {
  523. tooltip: {
  524. trigger: 'axis',
  525. axisPointer: {
  526. type: 'shadow'
  527. }
  528. },
  529. grid: {
  530. left: '3%',
  531. right: '4%',
  532. bottom: '3%',
  533. containLabel: true
  534. },
  535. xAxis: {
  536. type: 'category',
  537. data: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23']
  538. },
  539. yAxis: {
  540. type: 'value'
  541. },
  542. series: [
  543. {
  544. name: '观看人数',
  545. type: 'bar',
  546. data: [],
  547. itemStyle: {
  548. color: '#409EFF'
  549. }
  550. },
  551. {
  552. name: '完播人数',
  553. type: 'bar',
  554. data: [],
  555. itemStyle: {
  556. color: '#67C23A'
  557. }
  558. }
  559. ]
  560. }
  561. const thisMonthOrderCountOption = {
  562. tooltip: {
  563. trigger: 'axis',
  564. axisPointer: {
  565. type: 'shadow'
  566. }
  567. },
  568. grid: {
  569. left: '3%',
  570. right: '4%',
  571. bottom: '3%',
  572. containLabel: true
  573. },
  574. xAxis: {
  575. type: 'category',
  576. data: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23']
  577. },
  578. yAxis: {
  579. type: 'value'
  580. },
  581. series: [
  582. {
  583. name: '订单数',
  584. type: 'line',
  585. data: [],
  586. itemStyle: {
  587. color: '#409EFF'
  588. }
  589. },
  590. {
  591. name: '订单金额',
  592. type: 'line',
  593. data: [],
  594. itemStyle: {
  595. color: '#67C23A'
  596. }
  597. }
  598. ]
  599. }
  600. const thisMonthRecvCountOption = {
  601. tooltip: {
  602. trigger: 'axis',
  603. axisPointer: {
  604. type: 'shadow'
  605. }
  606. },
  607. grid: {
  608. left: '3%',
  609. right: '4%',
  610. bottom: '3%',
  611. containLabel: true
  612. },
  613. xAxis: {
  614. type: 'category',
  615. data: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23']
  616. },
  617. yAxis: {
  618. type: 'value'
  619. },
  620. series: [
  621. {
  622. name: '收款数',
  623. type: 'line',
  624. data: [],
  625. itemStyle: {
  626. color: '#409EFF'
  627. }
  628. },
  629. {
  630. name: '收款金额',
  631. type: 'line',
  632. data: [],
  633. itemStyle: {
  634. color: '#67C23A'
  635. }
  636. }
  637. ]
  638. }
  639. const dealerOption = {
  640. tooltip: {
  641. trigger: 'axis',
  642. axisPointer: {
  643. type: 'shadow'
  644. }
  645. },
  646. grid: {
  647. left: '3%',
  648. right: '4%',
  649. bottom: '3%',
  650. containLabel: true
  651. },
  652. xAxis: {
  653. type: 'value'
  654. },
  655. yAxis: {
  656. type: 'category',
  657. data: []
  658. },
  659. series: [
  660. {
  661. name: '观看人数',
  662. type: 'bar',
  663. data: [],
  664. itemStyle: {
  665. color: '#409EFF'
  666. }
  667. }
  668. ]
  669. }
  670. const courseWatchOption = {
  671. tooltip: {
  672. trigger: 'axis',
  673. axisPointer: {
  674. type: 'shadow'
  675. }
  676. },
  677. grid: {
  678. left: '3%',
  679. right: '4%',
  680. bottom: '8%',
  681. top: '3%',
  682. containLabel: true
  683. },
  684. xAxis: {
  685. type: 'category',
  686. data: [],
  687. axisLabel: {
  688. interval: 0,
  689. rotate: 30,
  690. fontSize: 10,
  691. width: 100,
  692. overflow: 'truncate'
  693. }
  694. },
  695. yAxis: {
  696. type: 'value',
  697. splitLine: {
  698. lineStyle: {
  699. type: 'dashed'
  700. }
  701. }
  702. },
  703. series: [
  704. {
  705. name: '观看人数',
  706. type: 'bar',
  707. data: [],
  708. itemStyle: {
  709. color: '#409EFF'
  710. }
  711. },
  712. {
  713. name: '完播人数',
  714. type: 'bar',
  715. data: [],
  716. itemStyle: {
  717. color: '#67C23A'
  718. }
  719. },
  720. {
  721. name: '答题人数',
  722. type: 'bar',
  723. data: [],
  724. itemStyle: {
  725. color: '#E6A23C'
  726. }
  727. },
  728. {
  729. name: '正确人数',
  730. type: 'bar',
  731. data: [],
  732. itemStyle: {
  733. color: '#F56C6C'
  734. }
  735. }
  736. ]
  737. }
  738. const lineChartOption = {
  739. tooltip: {
  740. trigger: 'axis',
  741. axisPointer: {
  742. type: 'cross' // 改为 'cross' 更适合折线图
  743. }
  744. },
  745. grid: {
  746. left: '3%',
  747. right: '4%',
  748. bottom: '8%', // 如果x轴标签旋转,可能需要更大的 bottom
  749. top: '5%', // 增加一点顶部空间给可能的 Y 轴名称
  750. containLabel: true
  751. },
  752. xAxis: {
  753. type: 'time', // X轴类型改为 'time'
  754. // data: [], // 时间轴不需要单独设置 data,数据在 series 中提供
  755. axisLabel: {
  756. // interval: 0, // 时间轴通常自动处理间隔,可以先移除或注释掉
  757. rotate: 30, // 保留旋转,如果标签可能重叠
  758. fontSize: 10,
  759. // width: 100, // width 和 overflow 对于时间轴可能行为不同,按需调整
  760. // overflow: 'truncate',
  761. formatter: null // ECharts 会自动格式化时间,如需特定格式可用 function 或字符串模板
  762. }
  763. },
  764. yAxis: {
  765. type: 'value',
  766. name: '金额 (元)', // 添加 Y 轴名称
  767. nameLocation: 'end', // 名称位置
  768. nameTextStyle: {
  769. align: 'right',
  770. padding: [0, 10, 0, 0] // 调整名称与轴线的距离
  771. },
  772. splitLine: {
  773. lineStyle: {
  774. type: 'dashed'
  775. }
  776. },
  777. axisLabel: {
  778. formatter: '{value} 元' // 可选:给 Y 轴刻度添加单位
  779. }
  780. },
  781. series: [
  782. {
  783. name: '答题红包金额',
  784. type: 'line', // 系列类型改为 'line'
  785. data: [
  786. ],
  787. itemStyle: { // 控制数据点(标记)的样式
  788. color: '#409EFF'
  789. },
  790. lineStyle: { // 控制线的样式
  791. color: '#409EFF'
  792. },
  793. smooth: false, // 是否平滑曲线,可设为 true
  794. symbol: 'circle', // 数据点标记形状,'emptyCircle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow', 'none'
  795. symbolSize: 4 // 数据点标记大小
  796. }
  797. ]
  798. };
  799. const redPackageOption = {
  800. tooltip: {
  801. trigger: 'axis',
  802. axisPointer: {
  803. type: 'shadow'
  804. }
  805. },
  806. grid: {
  807. left: '3%',
  808. right: '4%',
  809. bottom: '8%',
  810. top: '3%',
  811. containLabel: true
  812. },
  813. xAxis: {
  814. type: 'category',
  815. data: [],
  816. axisLabel: {
  817. interval: 0,
  818. rotate: 30,
  819. fontSize: 10,
  820. width: 100,
  821. overflow: 'truncate'
  822. }
  823. },
  824. yAxis: {
  825. type: 'value',
  826. splitLine: {
  827. lineStyle: {
  828. type: 'dashed'
  829. }
  830. }
  831. },
  832. series: [
  833. {
  834. name: '答题红包金额',
  835. type: 'bar',
  836. data: [],
  837. itemStyle: {
  838. color: '#409EFF'
  839. }
  840. }
  841. ]
  842. }
  843. export default {
  844. name: 'StatisticsDashboard',
  845. components: {CountTo},
  846. data() {
  847. return {
  848. deptOptions:[],
  849. deptId:this.$store.state.user.deptId,
  850. companyInitOptions:[],
  851. companyOptions:[],
  852. companyId:null,
  853. percentage: 0,
  854. // 预测message
  855. remainMessage: '',
  856. // 当天使用流量
  857. todayTraffic: 0,
  858. trafficCount: 0,
  859. // 当月使用流量
  860. thisMonthTraffic: 0,
  861. dataType: '0',
  862. delerSort: 'DESC',
  863. smsRemainCount: 0,
  864. viewerType: '0',
  865. viewerChart: null,
  866. userTypeText: process.env.VUE_APP_COURSE_DEFAULT==1?"会员":"企微",
  867. userType: process.env.VUE_APP_COURSE_DEFAULT,
  868. dealerChart: null,
  869. // 分公司数量
  870. dealderCount: 0,
  871. // 销售数量
  872. groupMgrCount: 0,
  873. // 会员总数量
  874. memberCount: 0,
  875. // 企微数量
  876. qwMemberNum: 0,
  877. // pad使用情况
  878. padTotalNum: 0,
  879. // pad使用情况
  880. padUsedNum: 0,
  881. // 正常会员数量
  882. normalNum: 0,
  883. // 黑名单会员数量
  884. blackNum: 0,
  885. // 观看人数
  886. watchUserCount: 0,
  887. // 完播人数
  888. completedUserCount: 0,
  889. // 完播率
  890. completedRate: 0,
  891. // 观看次数
  892. watchCount:0,
  893. // 完播次数
  894. completedCount: 0,
  895. // 视频完播率
  896. watchRate: 0,
  897. // 答题人数
  898. answerMemberCount: 0,
  899. // 正确人数
  900. correctUserCount: 0,
  901. correctRate: 0.0,
  902. // 答题红包个数
  903. rewardCount: 0,
  904. // 答题红包金额
  905. rewardMoney: 0.0,
  906. queryTime: '今日',
  907. todayWatchUserCount: 0,
  908. versionLimit: 0,
  909. /// 选中的分析概览
  910. selectedDiv: 0,
  911. filterType: 0,
  912. answerRedPackViewerChart: null,
  913. answerRedPackMoneyViewerChart: null,
  914. todayComsumption: 0,
  915. yesterdayComsumption: 0,
  916. balance: 0,
  917. autoRefreshInterval: null,
  918. // 今日新增用户数
  919. todayIncreaseUserNum: 0,
  920. // 订单总数
  921. orderTotalNum: 0,
  922. // 今日新增订单数
  923. todayOrderNum: 0,
  924. // 收款总数
  925. recvTotalNum: 0,
  926. // 今日收款总数
  927. recvTodayNum: 0,
  928. // 商品总数
  929. goodsTotalNum: 0,
  930. // 今日商品总数
  931. todayGoodsNum: 0
  932. }
  933. },
  934. mounted() {
  935. this.$nextTick(() => {
  936. this.initViewerChart()
  937. this.initDealerChart()
  938. this.initCourseWatchChart();
  939. this.initAnswerRedPackViewerChart();
  940. this.initAnswerRedPackMoneyViewerChart();
  941. this.initThisMonthOrderChart();
  942. this.initThisMonthRecvChart()
  943. // 监听窗口大小变化,重新渲染图表
  944. window.addEventListener('resize', () => {
  945. this.viewerChart && this.viewerChart.resize()
  946. this.dealerChart && this.dealerChart.resize()
  947. })
  948. })
  949. },
  950. created() {
  951. this.refresh();
  952. listDept().then(res => {
  953. this.deptOptions = res.data;
  954. });
  955. listCompany().then(res => {
  956. this.companyIntiOptions = res.rows;
  957. this.companyOptions = this.companyIntiOptions.filter(item => item.deptId === this.deptId);
  958. });
  959. },
  960. methods: {
  961. //首页统计选择部门、销售公司
  962. handleDeptChange(){
  963. this.companyOptions = this.companyIntiOptions.filter(item => item.deptId === this.deptId);
  964. this.companyId = null;
  965. this.refresh();
  966. },
  967. handleCompanyChange(){
  968. if(this.companyId){
  969. this.deptId = this.companyOptions.filter(item => item.companyId === this.companyId)[0].deptId;
  970. this.refresh();
  971. }else{
  972. this.refresh();
  973. }
  974. },
  975. handleUserType(){
  976. if(this.userTypeText === '会员'){
  977. this.userType = 1
  978. }else{
  979. this.userType = 2
  980. }
  981. this.refresh()
  982. },
  983. /**
  984. * 计算余额预计可持续的天数
  985. * @param {number} balance - 当前账户余额
  986. * @param {number} todayConsumption - 今日消耗金额
  987. * @param {number} yesterdayConsumption - 昨日消耗金额
  988. * @return {Object} 包含天数和进度百分比的对象
  989. */
  990. calculateRemainingDays(balance, todayConsumption, yesterdayConsumption) {
  991. // 如果今日和昨日消耗都为0,则无法预测(避免除以0)
  992. if (todayConsumption === 0 && yesterdayConsumption === 0) {
  993. return {
  994. days: Infinity,
  995. percentage: 0,
  996. message: '暂无消耗数据'
  997. };
  998. }
  999. // 计算每日平均消耗量
  1000. const avgDailyConsumption = (todayConsumption + yesterdayConsumption) / 2;
  1001. // 如果平均消耗为0,则无法预测
  1002. if (avgDailyConsumption === 0) {
  1003. return {
  1004. days: Infinity,
  1005. percentage: 0,
  1006. message: '暂无消耗数据'
  1007. };
  1008. }
  1009. // 计算剩余天数(向下取整)
  1010. const remainingDays = Math.floor(balance / avgDailyConsumption);
  1011. // 计算进度条百分比,最大为100
  1012. // 这里假设100天是满值,可以根据需要调整
  1013. const maxDays = 100;
  1014. const percentage = Math.min(100, Math.max(0, Math.round((remainingDays / maxDays) * 100)));
  1015. let message = '';
  1016. if (remainingDays > 365) {
  1017. message = '预测余额充足';
  1018. } else {
  1019. message = `预测不足${remainingDays}天`;
  1020. }
  1021. return {
  1022. days: remainingDays,
  1023. percentage: 100 - percentage,
  1024. message: message
  1025. };
  1026. },
  1027. /**
  1028. * 将字节数转换为合适的单位表示(Byte、KB、MB、GB、TB)
  1029. * @param {number} bytes - 字节数
  1030. * @param {number} [decimals=2] - 小数点后保留的位数
  1031. * @returns {string} 格式化后的字符串,包含数值和单位
  1032. */
  1033. formatBytes(bytes, decimals = 2) {
  1034. const isNegative = bytes < 0; // 判断是否为负数
  1035. bytes = Math.abs(bytes); // 获取绝对值
  1036. if (bytes === 0) return '0 Byte';
  1037. const k = 1024;
  1038. const sizes = ['Byte', 'KB', 'MB', 'GB', 'TB'];
  1039. // 计算合适的单位级别
  1040. const i = Math.floor(Math.log(bytes) / Math.log(k));
  1041. // 转换为对应单位的值
  1042. const value = bytes / Math.pow(k, i);
  1043. // 格式化为指定小数位的字符串
  1044. const result = parseFloat(value.toFixed(decimals)) + ' ' + sizes[Math.min(i, sizes.length - 1)];
  1045. // 如果是负数,返回带负号的值
  1046. return isNegative ? `-${result}` : result;
  1047. },
  1048. // 手动刷新
  1049. manualRefresh() {
  1050. this.refresh();
  1051. },
  1052. // 处理自动刷新选项
  1053. handleAutoRefresh(command) {
  1054. // 清除之前的定时器
  1055. if (this.timer) {
  1056. clearInterval(this.timer);
  1057. this.timer = null;
  1058. }
  1059. // 设置新的刷新间隔
  1060. this.autoRefreshInterval = parseInt(command);
  1061. // 如果间隔大于0,设置新的定时器
  1062. if (this.autoRefreshInterval > 0) {
  1063. this.timer = setInterval(() => {
  1064. this.refresh();
  1065. }, this.autoRefreshInterval * 60 * 1000); // 转换为毫秒
  1066. this.$message.success(`已设置${this.autoRefreshInterval}分钟自动刷新`);
  1067. } else {
  1068. this.$message.info('已关闭自动刷新');
  1069. }
  1070. },
  1071. refresh() {
  1072. rechargeComsumption().then(res=>{
  1073. if(res.code === 200){
  1074. this.balance = res.data.balance;
  1075. this.todayComsumption = res.data.todayComsumption;
  1076. this.yesterdayComsumption = res.data.yesterdayComsumption;
  1077. let calculateRemainingDays1 = this.calculateRemainingDays(this.balance,this.todayComsumption,this.yesterdayComsumption);
  1078. this.percentage = calculateRemainingDays1.percentage;
  1079. this.remainMessage = calculateRemainingDays1.message;
  1080. }
  1081. });
  1082. trafficLog().then(res=>{
  1083. if(res.code === 200) {
  1084. this.todayTraffic = res.data.today;
  1085. this.thisMonthTraffic = res.data.thisMonth;
  1086. this.trafficCount = res.data.traffic;
  1087. }
  1088. })
  1089. dealerAggregated().then(res=>{
  1090. if(res.code === 200){
  1091. this.dealderCount = res.data.dealderCount??0;
  1092. this.groupMgrCount = res.data.groupMgrCount??0;
  1093. this.memberCount = res.data.memberCount??0;
  1094. this.qwMemberNum = res.data.qwMemberNum??0;
  1095. this.padTotalNum = res.data.padTotalNum??0;
  1096. this.padUsedNum = res.data.padUsedNum??0;
  1097. this.padInfo = res.data.padInfo;
  1098. this.normalNum = res.data.normalNum??0;
  1099. this.blackNum = res.data.blackNum??0;
  1100. this.todayIncreaseUserNum = res.data.todayIncreaseUserNum??0;
  1101. this.orderTotalNum = res.data.orderTotalNum??0;
  1102. this.todayOrderNum = res.data.todayOrderNum??0;
  1103. this.recvTotalNum = res.data.recvTotalNum??0;
  1104. this.recvTodayNum = res.data.recvTodayNum??0;
  1105. this.goodsTotalNum = res.data.goodsTotalNum??0;
  1106. this.todayGoodsNum = res.data.todayGoodsNum??0;
  1107. }
  1108. })
  1109. let param = this.getParam();
  1110. // 获取当前日期时间
  1111. const today = dayjs();
  1112. param.startTime = this.formatDate(today);
  1113. param.endTime = this.formatDate(today);
  1114. analysisPreview(param).then(res=>{
  1115. if(res.code === 200){
  1116. this.watchUserCount = res.data.watchUserCount;
  1117. this.completedUserCount = res.data.completedUserCount;
  1118. this.completedRate = res.data.completedRate;
  1119. this.watchCount = res.data.watchCount;
  1120. this.completedCount = res.data.completedCount;
  1121. this.answerMemberCount = res.data.answerMemberCount;
  1122. this.correctUserCount = res.data.correctUserCount;
  1123. this.correctRate = res.data.correctRate;
  1124. this.rewardCount = res.data.rewardCount;
  1125. this.rewardMoney = res.data.rewardMoney;
  1126. this.watchRate = res.data.watchRate;
  1127. }
  1128. })
  1129. smsBalance().then(res=>{
  1130. if(res.code === 200){
  1131. if(res.data == null) {
  1132. this.smsRemainCount = 0;
  1133. } else {
  1134. this.smsRemainCount = res.data;
  1135. }
  1136. }
  1137. })
  1138. authorizationInfo().then(res=>{
  1139. if(res.code === 200){
  1140. this.todayWatchUserCount = res.data.todayWatchUserCount;
  1141. this.versionLimit = res.data.versionLimit;
  1142. }
  1143. })
  1144. this.handleCourseWatchChart()
  1145. this.handleViewChartData()
  1146. // 经销商会员观看TOP10
  1147. this.handleDealerChartData()
  1148. this.handleAnswerRedPackViewerChart()
  1149. this.handleAnswerRedPackMoneyViewerChart()
  1150. this.handleThisMonthRecvCount();
  1151. this.handleThisMonthOrderCount();
  1152. },
  1153. /**
  1154. * 将数字添加千位分隔符
  1155. * @param {number|string} num - 需要格式化的数字
  1156. * @return {string} 添加千位分隔符后的字符串
  1157. */
  1158. formatNumberWithCommas(num) {
  1159. if (num === null || num === undefined || isNaN(Number(num))) {
  1160. return '0';
  1161. }
  1162. const numStr = String(num);
  1163. // 处理负数
  1164. const isNegative = numStr.startsWith('-');
  1165. const absNumStr = isNegative ? numStr.slice(1) : numStr;
  1166. // 分离整数部分和小数部分
  1167. const parts = absNumStr.split('.');
  1168. const integerPart = parts[0];
  1169. const decimalPart = parts.length > 1 ? '.' + parts[1] : '';
  1170. const formattedInteger = integerPart.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
  1171. return (isNegative ? '-' : '') + formattedInteger + decimalPart;
  1172. },
  1173. handleToggleDiv(selected) {
  1174. this.selectedDiv = selected;
  1175. if (selected === 1) {
  1176. this.$nextTick(() => {
  1177. if (this.courseWatchChart) {
  1178. this.courseWatchChart.resize();
  1179. } else {
  1180. }
  1181. });
  1182. }
  1183. else if (selected === 0) {
  1184. this.$nextTick(() => {
  1185. if (this.viewerChart) this.viewerChart.resize();
  1186. if (this.dealerChart) this.dealerChart.resize();
  1187. });
  1188. } else if (selected === 2) {
  1189. this.$nextTick(() => {
  1190. if (this.answerRedPackViewerChart) this.answerRedPackViewerChart.resize();
  1191. if (this.answerRedPackMoneyViewerChart) this.answerRedPackMoneyViewerChart.resize();
  1192. });
  1193. }
  1194. if (this.selectedDiv === 0) {
  1195. this.handleViewChartData()
  1196. this.handleDealerChartData()
  1197. } else if (this.selectedDiv === 1) {
  1198. this.handleCourseWatchChart()
  1199. } else if (this.selectedDiv === 2) {
  1200. this.handleAnswerRedPackViewerChart()
  1201. this.handleAnswerRedPackMoneyViewerChart()
  1202. }
  1203. },
  1204. formatDate(date) {
  1205. return dayjs(date).format('YYYY-MM-DD');
  1206. },
  1207. getParam(){
  1208. let param = {
  1209. startTime: '',
  1210. endTime: '',
  1211. userType: this.userType
  1212. };
  1213. // 获取当前日期时间
  1214. const today = dayjs();
  1215. let type = 0;
  1216. if (this.queryTime === '今日') {
  1217. param.startTime = this.formatDate(today);
  1218. param.endTime = this.formatDate(today);
  1219. type = 0;
  1220. } else if (this.queryTime === '昨日') {
  1221. const yesterday = today.subtract(1, 'day');
  1222. param.startTime = this.formatDate(yesterday);
  1223. param.endTime = this.formatDate(yesterday);
  1224. type = 1;
  1225. } else if (this.queryTime === '本周') {
  1226. param.startTime = this.formatDate(today.startOf('week'));
  1227. param.endTime = this.formatDate(today.endOf('week'));
  1228. type = 2;
  1229. } else if (this.queryTime === '本月') {
  1230. param.startTime = this.formatDate(today.startOf('month'));
  1231. param.endTime = this.formatDate(today.endOf('month'));
  1232. type = 3;
  1233. } else if (this.queryTime === '上月') {
  1234. const lastMonth = today.subtract(1, 'month');
  1235. param.startTime = this.formatDate(lastMonth.startOf('month'));
  1236. param.endTime = this.formatDate(lastMonth.endOf('month'));
  1237. type = 4;
  1238. } else {
  1239. console.warn(`未知的 queryTime: ${this.queryTime}, 默认使用今日`);
  1240. param.startTime = this.formatDate(today);
  1241. param.endTime = this.formatDate(today);
  1242. }
  1243. param.type = type;
  1244. param.sort = this.delerSort;
  1245. return param;
  1246. },
  1247. // 分析概览
  1248. handleAnalysis(e) {
  1249. let param = this.getParam();
  1250. analysisPreview(param).then(res => {
  1251. if (res.code === 200) {
  1252. this.watchUserCount = res.data.watchUserCount;
  1253. this.completedUserCount = res.data.completedUserCount;
  1254. this.completedRate = res.data.completedRate;
  1255. this.watchCount = res.data.watchCount;
  1256. this.completedCount = res.data.completedCount;
  1257. this.answerMemberCount = res.data.answerMemberCount;
  1258. this.correctUserCount = res.data.correctUserCount;
  1259. this.correctRate = res.data.correctRate;
  1260. this.rewardCount = res.data.rewardCount;
  1261. this.rewardMoney = res.data.rewardMoney;
  1262. this.watchRate = res.data.watchRate;
  1263. }
  1264. })
  1265. if (this.selectedDiv === 0) {
  1266. this.handleViewChartData()
  1267. this.handleDealerChartData()
  1268. } else if (this.selectedDiv === 1) {
  1269. this.handleCourseWatchChart()
  1270. } else if (this.selectedDiv === 2) {
  1271. this.handleAnswerRedPackViewerChart()
  1272. this.handleAnswerRedPackMoneyViewerChart()
  1273. }
  1274. },
  1275. handleAnswerRedPackViewerChart(){
  1276. let param = this.getParam();
  1277. param = {...param,statisticalType:this.viewerType,dataType: this.dataType};
  1278. rewardMoneyTopTen(param).then(res=>{
  1279. if(res.code === 200){
  1280. let data = res.data;
  1281. let companyNameList = data.map(e=>e.companyName)
  1282. let courseNameList = data.map(e=>e.courseName)
  1283. let rewardMoneyList = data.map(e=>e.rewardMoney)
  1284. if(this.dataType === '0'){
  1285. redPackageOption.xAxis.data = companyNameList;
  1286. }else{
  1287. redPackageOption.xAxis.data = courseNameList;
  1288. }
  1289. redPackageOption.series[0].data = rewardMoneyList;
  1290. this.answerRedPackViewerChart.setOption(redPackageOption)
  1291. }
  1292. })
  1293. },
  1294. handleAnswerRedPackMoneyViewerChart(){
  1295. let param = this.getParam();
  1296. param = {...param,statisticalType:this.viewerType,dataType: this.dataType};
  1297. rewardMoneyTrend(param).then(res=>{
  1298. if(res.code === 200){
  1299. let data = res.data;
  1300. let option = data.map(e=>[e.x,e.rewardMoney])
  1301. lineChartOption.series[0].data = option;
  1302. this.answerRedPackMoneyViewerChart.setOption(lineChartOption)
  1303. }
  1304. })
  1305. },
  1306. handleCourseWatchChart() {
  1307. let param = this.getParam();
  1308. param = {...param,statisticalType:this.viewerType};
  1309. watchCourseTopTen(param).then(res=>{
  1310. if(res.code === 200){
  1311. let data = res.data;
  1312. let watchUserCountList = data.map(e=>e.watchUserCount);
  1313. let completedUserCountList = data.map(e=>e.completedUserCount);
  1314. let answerUserCountList = data.map(e=>e.answerUserCount);
  1315. let correctUserCountList = data.map(e=>e.correctUserCount);
  1316. let courseNameList = data.map(e=>e.courseName);
  1317. courseWatchOption.xAxis.data = courseNameList;
  1318. courseWatchOption.series[0].data = watchUserCountList;
  1319. courseWatchOption.series[1].data = completedUserCountList;
  1320. courseWatchOption.series[2].data = answerUserCountList;
  1321. courseWatchOption.series[3].data = correctUserCountList;
  1322. this.courseWatchChart.setOption(courseWatchOption)
  1323. }
  1324. })
  1325. },
  1326. handleDealerChartData(){
  1327. let param = this.getParam();
  1328. // 经销商会员观看TOP10
  1329. deaMemberTopTen({...param,statisticalType: this.viewerType}).then(res=>{
  1330. if(res.code === 200){
  1331. let data = res.data;
  1332. let companyNameList = data.map(e=>e.companyName);
  1333. let watchUserList = data.map(e=>e.watchUserCount);
  1334. dealerOption.yAxis.data = companyNameList;
  1335. dealerOption.series[0].data = watchUserList;
  1336. this.dealerChart.setOption(dealerOption)
  1337. }
  1338. })
  1339. },
  1340. handleThisMonthOrderCount(){
  1341. thisMonthOrderCount().then(res=>{
  1342. if(res.code === 200){
  1343. let dates = res.dates;
  1344. let orderCount = res.orderCount;
  1345. let payPrice = res.payPrice;
  1346. thisMonthOrderCountOption.series[0].data = orderCount;
  1347. thisMonthOrderCountOption.series[1].data = payPrice;
  1348. thisMonthOrderCountOption.xAxis.data = dates;
  1349. this.thisMonthOrderChart.setOption(thisMonthOrderCountOption)
  1350. }
  1351. })
  1352. },
  1353. handleThisMonthRecvCount(){
  1354. thisMonthRecvCount().then(res=>{
  1355. if(res.code === 200){
  1356. let dates = res.dates;
  1357. let orderCount = res.orderCount;
  1358. let payMoney = res.payMoney;
  1359. thisMonthRecvCountOption.series[0].data = orderCount;
  1360. thisMonthRecvCountOption.series[1].data = payMoney;
  1361. thisMonthRecvCountOption.xAxis.data = dates;
  1362. this.thisMonthRecvChart.setOption(thisMonthRecvCountOption)
  1363. }
  1364. })
  1365. },
  1366. handleViewChartData(){
  1367. let param = this.getParam();
  1368. watchEndPlayTrend({...param}).then(res=>{
  1369. if(res.code === 200){
  1370. let data = res.data;
  1371. let watchUserCountList = data.map(e=>e.watchUserCount);
  1372. let completedUserCountList = data.map(e=>e.completedUserCount);
  1373. let xAxis = data.map(e=>e.x);
  1374. viewCharOption.series[0].data = watchUserCountList;
  1375. viewCharOption.series[1].data = completedUserCountList;
  1376. viewCharOption.xAxis.data = xAxis;
  1377. this.viewerChart.setOption(viewCharOption);
  1378. }
  1379. })
  1380. },
  1381. initThisMonthOrderChart(){
  1382. this.thisMonthOrderChart = echarts.init(this.$refs.viewerOrderChart)
  1383. this.thisMonthOrderChart.setOption(thisMonthOrderCountOption)
  1384. },
  1385. initThisMonthRecvChart(){
  1386. this.thisMonthRecvChart = echarts.init(this.$refs.viewerReceiveChart)
  1387. this.thisMonthRecvChart.setOption(thisMonthOrderCountOption)
  1388. },
  1389. initViewerChart() {
  1390. this.viewerChart = echarts.init(this.$refs.viewerChart)
  1391. this.viewerChart.setOption(viewCharOption)
  1392. },
  1393. initDealerChart() {
  1394. this.dealerChart = echarts.init(this.$refs.dealerChart)
  1395. this.dealerChart.setOption(dealerOption)
  1396. },
  1397. initCourseWatchChart() {
  1398. this.courseWatchChart = echarts.init(this.$refs.courseWatchChart)
  1399. this.courseWatchChart.setOption(courseWatchOption)
  1400. },
  1401. initAnswerRedPackViewerChart(){
  1402. this.answerRedPackViewerChart = echarts.init(this.$refs.answerRedPackViewerChart)
  1403. this.answerRedPackViewerChart.setOption(redPackageOption)
  1404. },
  1405. initAnswerRedPackMoneyViewerChart(){
  1406. this.answerRedPackMoneyViewerChart = echarts.init(this.$refs.answerRedPackMoneyViewerChart)
  1407. this.answerRedPackMoneyViewerChart.setOption(lineChartOption)
  1408. }
  1409. },
  1410. beforeDestroy() {
  1411. // 组件销毁时清除定时器
  1412. if (this.timer) {
  1413. clearInterval(this.timer);
  1414. this.timer = null;
  1415. }
  1416. // window.removeEventListener('resize', this.resizeHandler)
  1417. this.viewerChart && this.viewerChart.dispose()
  1418. this.dealerChart && this.dealerChart.dispose()
  1419. }
  1420. }
  1421. </script>
  1422. <style scoped>
  1423. .highlight-today-add {
  1424. color: green;
  1425. font-size: 17px;
  1426. font-weight: normal;
  1427. }
  1428. .highlight-today-add2 {
  1429. color: rgba(49, 185, 154, 1);
  1430. font-size: 14px;
  1431. font-weight: normal;
  1432. transform: scale(.9);
  1433. }
  1434. .action-group .el-button+.el-button,
  1435. .action-group .el-dropdown {
  1436. margin-left: 10px;
  1437. }
  1438. .is-active {
  1439. color: #409EFF;
  1440. font-weight: bold;
  1441. }
  1442. ::v-deep .el-radio-button__inner:hover {
  1443. color: #409EFF;
  1444. /* 鼠标悬浮时的文字颜色,可以根据需要调整 */
  1445. }
  1446. ::v-deep .el-radio-button.is-active .el-radio-button__inner {
  1447. background-color: #409EFF;
  1448. /* 选中时的背景色 */
  1449. border-color: #409EFF;
  1450. /* 选中时的边框色 */
  1451. color: #FFFFFF;
  1452. /* 选中时的文字颜色 (通常是白色) */
  1453. box-shadow: -1px 0 0 0 #409EFF;
  1454. /* 处理按钮间的连接缝隙 */
  1455. }
  1456. /* 如果需要,也可以修改非选中状态下的聚焦(focus)或悬浮(hover)样式 */
  1457. /* 例如,让非选中按钮悬浮时边框和文字也变蓝 */
  1458. ::v-deep .el-radio-button:not(.is-active) .el-radio-button__inner:hover {
  1459. color: #409EFF;
  1460. /* border-color: #b3d8ff; Element UI 默认悬浮边框色,可以按需修改 */
  1461. }
  1462. /* 聚焦时的外框,如果需要的话 */
  1463. ::v-deep .el-radio-button:focus:not(.is-checked) .el-radio-button__inner {
  1464. /* border-color: #409EFF; */
  1465. /* Element UI 默认的 focus 颜色通常关联主题色 */
  1466. /* box-shadow: 0 0 2px 2px rgba(64, 158, 255, 0.2); */
  1467. /* 示例 focus 光晕 */
  1468. }
  1469. .statistics-dashboard {
  1470. padding: 20px;
  1471. background-color: #f5f7fa;
  1472. }
  1473. .overview-section,
  1474. .analysis-section {
  1475. margin-bottom: 20px;
  1476. border-radius: 4px;
  1477. }
  1478. .header {
  1479. display: flex;
  1480. justify-content: space-between;
  1481. align-items: center;
  1482. font-size: 16px;
  1483. font-weight: 500;
  1484. }
  1485. .data-card {
  1486. background-color: #fff;
  1487. border-radius: 4px;
  1488. padding: 15px;
  1489. height: 120px;
  1490. display: flex;
  1491. flex-direction: column;
  1492. position: relative;
  1493. transition: background-color 0.3s ease-in-out;
  1494. }
  1495. .data-card:hover {
  1496. border: 1px solid #4592ff;
  1497. background-color: #e7f1ff;
  1498. }
  1499. .card-title {
  1500. color: #606266;
  1501. font-size: 14px;
  1502. margin-bottom: 10px;
  1503. }
  1504. .card-title1 {
  1505. color: white;
  1506. font-size: 14px;
  1507. margin-bottom: 10px;
  1508. }
  1509. .card-value {
  1510. font-size: 24px;
  1511. font-weight: bold;
  1512. margin-top: 20px;
  1513. }
  1514. .highlight {
  1515. color: #409EFF;
  1516. }
  1517. .card-sub {
  1518. display: flex;
  1519. justify-content: space-between;
  1520. font-size: 12px;
  1521. color: #909399;
  1522. margin-top: 5px;
  1523. }
  1524. .card-desc {
  1525. font-size: 12px;
  1526. color: #909399;
  1527. margin-top: 5px;
  1528. }
  1529. .card-badge {
  1530. position: absolute;
  1531. top: 15px;
  1532. right: 15px;
  1533. background: #f0f9eb;
  1534. color: #67c23a;
  1535. padding: 2px 5px;
  1536. border-radius: 4px;
  1537. }
  1538. .cdn-label {
  1539. background-color: #409EFF;
  1540. color: white;
  1541. padding: 2px 5px;
  1542. border-radius: 4px;
  1543. margin-right: 5px;
  1544. font-size: 12px;
  1545. }
  1546. .tab-group {
  1547. display: flex;
  1548. gap: 10px;
  1549. }
  1550. .action-group {
  1551. display: flex;
  1552. gap: 10px;
  1553. }
  1554. .analysis-card {
  1555. border-radius: 4px;
  1556. padding: 20px;
  1557. display: flex;
  1558. align-items: center;
  1559. }
  1560. .card-icon {
  1561. width: 50px;
  1562. height: 50px;
  1563. background-color: rgba(64, 158, 255, 0.1);
  1564. border-radius: 8px;
  1565. display: flex;
  1566. justify-content: center;
  1567. align-items: center;
  1568. font-size: 24px;
  1569. color: #409EFF;
  1570. margin-right: 20px;
  1571. }
  1572. .card-content {
  1573. display: flex;
  1574. }
  1575. .card-row {
  1576. display: flex;
  1577. justify-content: center;
  1578. justify-items: center;
  1579. flex-direction: column;
  1580. padding: 10px;
  1581. .highlight {
  1582. text-align: center;
  1583. margin-top: 1em;
  1584. font-family: BebasNeue;
  1585. color: #1677ff;
  1586. font-size: 21px;
  1587. line-height: 42px;
  1588. font-weight: 600;
  1589. margin-top: 8px;
  1590. }
  1591. font-size: 15px;
  1592. color: #000;
  1593. }
  1594. .charts-section {
  1595. margin-top: 20px;
  1596. }
  1597. .chart-header {
  1598. display: flex;
  1599. justify-content: space-between;
  1600. align-items: center;
  1601. }
  1602. .view-more {
  1603. font-size: 12px;
  1604. }
  1605. .legend {
  1606. display: flex;
  1607. gap: 15px;
  1608. }
  1609. .legend-item {
  1610. display: flex;
  1611. align-items: center;
  1612. font-size: 12px;
  1613. }
  1614. .dot {
  1615. width: 10px;
  1616. height: 10px;
  1617. border-radius: 50%;
  1618. margin-right: 5px;
  1619. }
  1620. .viewer-dot {
  1621. background-color: #409EFF;
  1622. }
  1623. .complete-dot {
  1624. background-color: #67C23A;
  1625. }
  1626. .chart-container {
  1627. height: 350px;
  1628. width: 100%;
  1629. }
  1630. .analysis-card-check {
  1631. display: flex;
  1632. flex-direction: row;
  1633. border: 1px solid transparent;
  1634. background-color: #fff;
  1635. border-radius: 4px;
  1636. }
  1637. .analysis-card-check:hover {
  1638. cursor: pointer;
  1639. }
  1640. .analysis-card-check-selected:after {
  1641. content: "";
  1642. display: block;
  1643. border-width: 15px;
  1644. position: absolute;
  1645. bottom: -30px;
  1646. left: 50%;
  1647. margin-left: -32px;
  1648. border-style: solid dashed dashed solid;
  1649. border-color: #4592FF transparent transparent transparent;
  1650. font-size: 0;
  1651. line-height: 0;
  1652. z-index: 1;
  1653. }
  1654. .analysis-card-check-selected:before {
  1655. content: "";
  1656. display: block;
  1657. border-width: 15px;
  1658. position: absolute;
  1659. bottom: -30px;
  1660. left: 50%;
  1661. margin-left: -32px;
  1662. border-style: solid dashed dashed solid;
  1663. border-color: #4592FF transparent transparent transparent;
  1664. font-size: 0;
  1665. line-height: 0;
  1666. z-index: 1;
  1667. }
  1668. .analysis-card-check-selected {
  1669. border: 1px solid #4592FF;
  1670. background-color: #e7f1ff;
  1671. }
  1672. .color {
  1673. position: relative;
  1674. border: 1px solid #4592FF;
  1675. background-color: #e7f1ff;
  1676. }
  1677. .color:after {
  1678. bottom: -27px;
  1679. border-color: #E7F1FF transparent transparent transparent;
  1680. }
  1681. .companybox {
  1682. color: white;
  1683. background-color: #006CFF;
  1684. padding: 10px 10px 40px 10px;
  1685. box-sizing: border-box;
  1686. position: relative;
  1687. border-radius: 6px;
  1688. .topimg {
  1689. width: 100px;
  1690. height: 80px;
  1691. position: absolute;
  1692. top: 0px;
  1693. left: 0;
  1694. }
  1695. .bottomimg {
  1696. width: 100px;
  1697. height: 80px;
  1698. position: absolute;
  1699. bottom: -10px;
  1700. right: 0;
  1701. transform: rotate(180deg);
  1702. }
  1703. .companyboxtitle {
  1704. height: 30px;
  1705. margin-bottom: 20px;
  1706. font-weight: 600;
  1707. }
  1708. .companyflex {
  1709. display: flex;
  1710. justify-content: space-around;
  1711. }
  1712. }
  1713. .companynumber {
  1714. color: white;
  1715. }
  1716. .companycard {
  1717. width: 25%;
  1718. }
  1719. .companyadd {
  1720. color: white;
  1721. }
  1722. .cardafter {
  1723. position: relative;
  1724. }
  1725. .cardafter::after {
  1726. content: "";
  1727. height: 60px;
  1728. border-right: 1px solid rgba(255, 255, 255, 0.20);
  1729. position: absolute;
  1730. right: 30px;
  1731. top: 0px;
  1732. }
  1733. .highlight1 {
  1734. margin-top: 10px;
  1735. margin-left: 20px;
  1736. }
  1737. .propertyboxtitle {
  1738. background-image: url(../assets/images/zcgl_bg.png);
  1739. height: 100px;
  1740. }
  1741. .propertyboxflex {
  1742. display: flex;
  1743. background-color: white;
  1744. justify-content: space-between;
  1745. }
  1746. .property-card {
  1747. width: 48%;
  1748. border-radius: 4px;
  1749. padding: 15px;
  1750. height: 100px;
  1751. display: flex;
  1752. flex-direction: column;
  1753. position: relative;
  1754. transition: background-color 0.3s ease-in-out;
  1755. }
  1756. .property_title {
  1757. height: 40px;
  1758. line-height: 40px;
  1759. color: rgba(32, 33, 36, 1);
  1760. box-sizing: border-box;
  1761. padding-left: 10px;
  1762. font-weight: 600;
  1763. }
  1764. .card-compare {
  1765. margin-top: 5px;
  1766. font-size: 14px;
  1767. color: rgba(92, 95, 102, 1);
  1768. span {
  1769. font-size: 13px;
  1770. transform: scale(.8);
  1771. color: rgba(49, 185, 154, 1);
  1772. }
  1773. }
  1774. .propertyline {
  1775. position: relative;
  1776. }
  1777. .propertyline::after {
  1778. position: absolute;
  1779. content: "";
  1780. height: 80px;
  1781. border-right: 1px solid rgba(237, 239, 242, 1);
  1782. right: 0;
  1783. }
  1784. .operatetitle {
  1785. font-weight: 600;
  1786. height: 50px;
  1787. line-height: 50px;
  1788. }
  1789. .operatetitle-col{
  1790. display: flex;
  1791. justify-content: space-between;
  1792. padding-bottom: 20px;
  1793. padding-right: 5px;
  1794. .operatetitle-card {
  1795. width: 24%;
  1796. border: 1px solid transparent;
  1797. background-color: rgba(245, 247, 250, 1);
  1798. border-radius: 4px;
  1799. padding: 15px;
  1800. display: flex;
  1801. flex-direction: column;
  1802. position: relative;
  1803. transition: background-color 0.3s ease-in-out;
  1804. .operate-value {
  1805. font-size: 24px;
  1806. font-weight: bold;
  1807. }
  1808. }
  1809. }
  1810. .yesterdaybox {
  1811. font-size: 14px;
  1812. color: rgba(92, 95, 102, 1);
  1813. font-weight: 200;
  1814. margin-top: 10px;
  1815. }
  1816. .internetbox {
  1817. background: linear-gradient(to right, rgba(255, 99, 0, 1), rgba(255, 159, 1, 1));
  1818. border-radius: 6px;
  1819. padding: 2px 5px 15px 5px;
  1820. width: 100%;
  1821. .internet-cardtop {
  1822. background-color: white;
  1823. border-radius: 3px;
  1824. margin-top: 5px;
  1825. justify-content: space-between;
  1826. padding: 15px;
  1827. box-sizing: border-box;
  1828. color: rgba(32, 33, 36, 1);
  1829. .cardinnerbox {
  1830. display: flex;
  1831. justify-content: space-between;
  1832. .cardtopimg {
  1833. display: flex;
  1834. align-items: center;
  1835. font-size: 15px;
  1836. img {
  1837. height: 18px;
  1838. width: 18px;
  1839. }
  1840. }
  1841. .cardtopnumber {
  1842. font-size: 25px;
  1843. color: rgba(32, 33, 36, 1);
  1844. font-weight: bold;
  1845. }
  1846. }
  1847. .cardinnerbox2 {
  1848. display: flex;
  1849. justify-content: space-between;
  1850. font-size: 14px;
  1851. color: rgba(92, 95, 102, 1);
  1852. }
  1853. }
  1854. .internetbox-messge{
  1855. color: white;
  1856. display: flex;
  1857. justify-content: space-between;
  1858. padding: 15px 10px 10px 10px;
  1859. .internet-card{
  1860. display: flex;
  1861. font-size: 14px;
  1862. align-items: center;
  1863. img{
  1864. height: 18px;
  1865. width: 18px;
  1866. }
  1867. span{
  1868. padding-left: 5px;
  1869. }
  1870. }
  1871. .internet-number{
  1872. font-size: 25px;
  1873. }
  1874. }
  1875. .internetbox {
  1876. display: flex;
  1877. color: white;
  1878. .internet-card {
  1879. width: 100%;
  1880. display: flex;
  1881. color: white;
  1882. }
  1883. }
  1884. .internet-title {
  1885. font-size: 14px;
  1886. }
  1887. }
  1888. .company {
  1889. background-color: 006CFF;
  1890. }
  1891. .highlight-red{
  1892. text-align: center;
  1893. margin-top: 1em;
  1894. font-family: BebasNeue;
  1895. color: rgba(255, 82, 82, 1);
  1896. font-size: 21px;
  1897. line-height: 42px;
  1898. font-weight: 600;
  1899. margin-top: 8px;
  1900. }
  1901. .highlight-black{
  1902. text-align: center;
  1903. margin-top: 1em;
  1904. font-family: BebasNeue;
  1905. color: rgba(32, 33, 36, 1);
  1906. font-size: 21px;
  1907. line-height: 42px;
  1908. font-weight: 600;
  1909. margin-top: 8px;
  1910. }
  1911. .operatetitle-card:hover{
  1912. border: 1px solid #4592ff;
  1913. background-color: #e7f1ff;
  1914. }
  1915. .icon-img{
  1916. height: 14px;
  1917. width: 14px;
  1918. }
  1919. .progress{
  1920. transform: rotate(180deg);
  1921. margin-top: 20px;
  1922. }
  1923. .progress ::v-deep .el-progress-bar__outer{
  1924. background-color: rgba(247, 152, 11, 0.2);
  1925. }
  1926. ::v-deep .el-progress {
  1927. .el-progress-bar {
  1928. .el-progress-bar__inner {
  1929. background: linear-gradient(to right, #FF6300,#FF9F01)
  1930. }
  1931. }
  1932. }
  1933. </style>