index.vue 62 KB

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