autoLaunchReport.vue 85 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155
  1. <template>
  2. <div class="autoLaunchReport">
  3. <!-- <div class="tabBody">
  4. <a-tabs v-model='analysisDirection' @change="tabChange">
  5. <a-tab-pane :key="1" tab="素材+定向"> </a-tab-pane>
  6. <a-tab-pane :key="2" tab="素材+出价" > </a-tab-pane>
  7. </a-tabs>
  8. </div> -->
  9. <div class="tabBody2" >
  10. <a-tabs v-model='tabKey' @change="tabChange">
  11. <a-tab-pane :key="1" tab="定向分析" > </a-tab-pane>
  12. <a-tab-pane :key="2" tab="素材分析" > </a-tab-pane>
  13. </a-tabs>
  14. </div>
  15. <div class="topOptions">
  16. <span class="OptinItem ">
  17. <!-- reqUrl='/ctop/userAllocation/getAccountIdListByUserId' -->
  18. <!-- <Treeselect :appId.sync="accountIds" :multiple="true" request="2,4" reqUrl='/ctop/userAllocation/getAccountIdsByUserId' ref="treeSelect" style="margin-bottom:8px " /> -->
  19. <a-select
  20. v-model="accountIds"
  21. style="width: 400px"
  22. placeholder="请选择账户"
  23. :maxTagCount='1'
  24. allowClear
  25. @change="accountChange"
  26. show-search
  27. option-filter-prop="children"
  28. :filter-option="filterOption"
  29. >
  30. <a-select-option v-for="item in accountList" :key="item.account_id" :value='item.account_id'>
  31. {{ item.auth_name+'_('+(item.project_name||"无所属项目")+')' }}
  32. </a-select-option>
  33. </a-select>
  34. </span>
  35. <span class="OptinItem">
  36. <a-tree-select
  37. v-if="tabKey==1"
  38. v-model="directionalId"
  39. show-search
  40. style="width: 350px;height:30px"
  41. :dropdownMatchSelectWidth='true'
  42. :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
  43. tree-checkable
  44. searchPlaceholder='选择策略以及定向包'
  45. :show-checked-strategy="SHOW_PARENT"
  46. placeholder="选择策略以及定向包"
  47. treeNodeFilterProp="title"
  48. :allowClear="true"
  49. @change="treeChange"
  50. :maxTagCount='1'
  51. :tree-data="treeData"
  52. :filterOption='filterOption'
  53. >
  54. </a-tree-select>
  55. <a-tree-select
  56. v-if="tabKey==2"
  57. v-model="materialId"
  58. show-search
  59. style="width: 350px;height:30px"
  60. :dropdownMatchSelectWidth='true'
  61. :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
  62. tree-checkable
  63. searchPlaceholder='选择策略以及素材'
  64. :show-checked-strategy="SHOW_PARENT"
  65. placeholder="选择策略以及素材"
  66. treeNodeFilterProp="title"
  67. :allowClear="true"
  68. @change="materialTreeChange"
  69. :maxTagCount='1'
  70. :tree-data="materialTreeData"
  71. :filterOption='filterOption'
  72. >
  73. </a-tree-select>
  74. </span>
  75. <span class="OptinItem">
  76. <a-range-picker
  77. @change="dateChange"
  78. v-model="dateRange"
  79. :disabled-date="disabledDate"
  80. style="width:200px"
  81. />
  82. </span>
  83. <span class="optionBtn">
  84. <a-button type='primary' @click="search" class="searchBtn">查询</a-button>
  85. <!-- <a-button type='default' @click="reset">重置</a-button> -->
  86. </span>
  87. </div>
  88. <div class="chartBox">
  89. <div class="chartTop">
  90. <span>数据维度:</span>
  91. <a-radio-group v-model="value" @change="chartDataTypeChange">
  92. <a-radio :value="1">
  93. 消耗
  94. </a-radio>
  95. <a-radio :value="2">
  96. 封面曝光数
  97. </a-radio>
  98. <a-radio :value="3">
  99. 封面点击数
  100. </a-radio>
  101. <a-radio :value="4">
  102. 素材曝光数
  103. </a-radio>
  104. <!-- <a-radio :value="5">
  105. 转化数@
  106. </a-radio> -->
  107. </a-radio-group>
  108. </div>
  109. <a-spin :spinning="spinning">
  110. <div class="chartBody">
  111. <div id="mapEchart" style='width:30%;height:300px;border:1px solid #e0e0e0;padding:10px' ref="mapEchart">
  112. <a-empty style="position: relative; top: 50%; margin-top: -65px" />
  113. </div>
  114. <div id="sexEchart" style='width:30%;height:300px;border:1px solid #e0e0e0;padding:10px' ref="sexEchart">
  115. <a-empty style="position: relative; top: 50%; margin-top: -65px" />
  116. </div>
  117. <div id="ageEchart" style='width:30%;height:300px;border:1px solid #e0e0e0;padding:10px' ref="ageEchart">
  118. <a-empty style="position: relative; top: 50%; margin-top: -65px" />
  119. </div>
  120. </div>
  121. </a-spin>
  122. <div class="tableBox">
  123. <!-- <div class="tableTop">
  124. 关联定向
  125. </div> -->
  126. <div class="tableOpt">
  127. <span>表格类型:</span>
  128. <a-radio-group v-model="tableValue" @change="tableTypeChange">
  129. <a-radio :value="1">
  130. 地域
  131. </a-radio>
  132. <a-radio :value="2">
  133. 性别
  134. </a-radio>
  135. <a-radio :value="3">
  136. 年龄
  137. </a-radio>
  138. </a-radio-group>
  139. </div>
  140. <div class="tableBody">
  141. <a-table
  142. size="middle"
  143. :columns="columns"
  144. :dataSource="tableData"
  145. :pagination='true'
  146. bordered
  147. id="outTable"
  148. :loading="loading"
  149. style="word-break: break-all;font-size:16px;font-weight:600"
  150. :scroll="{'x':scrollX}"
  151. >
  152. <span slot="ctr" slot-scope="ctr">{{ ctr | toPercentage }}</span>
  153. <span slot="cost" slot-scope="cost">{{ cost | decimalsHandle }}</span>
  154. <span slot="clickMaterial" slot-scope="clickMaterial">{{ clickMaterial | formatCurrency }}</span>
  155. <span slot="showMaterial" slot-scope="showMaterial">{{ showMaterial | formatCurrency }}</span>
  156. <span slot="convertMaterial" slot-scope="convertMaterial">{{ convertMaterial | formatCurrency }}</span>
  157. <span slot="play25FeedBreak" slot-scope="play25FeedBreak">{{ play25FeedBreak | formatCurrency }}</span>
  158. <span slot="play50FeedBreak" slot-scope="play50FeedBreak">{{ play50FeedBreak | formatCurrency }}</span>
  159. <span slot="play75FeedBreak" slot-scope="play75FeedBreak">{{ play75FeedBreak | formatCurrency }}</span>
  160. <span slot="play100FeedBreak" slot-scope="play100FeedBreak">{{ play100FeedBreak | formatCurrency }}</span>
  161. <span slot="nextDayOpen" slot-scope="nextDayOpen">{{ nextDayOpen | formatCurrency }}</span>
  162. <span slot="downloadFinish" slot-scope="downloadFinish">{{ downloadFinish | formatCurrency }}</span>
  163. <span slot="downloadStart" slot-scope="downloadStart">{{ downloadStart | formatCurrency }}</span>
  164. <span slot="likeMaterial" slot-scope="likeMaterial">{{ likeMaterial | formatCurrency }}</span>
  165. <span slot="shareMaterial" slot-scope="shareMaterial">{{ shareMaterial | formatCurrency }}</span>
  166. <span slot="register" slot-scope="register">{{ register | formatCurrency }}</span>
  167. <span slot="follow" slot-scope="follow">{{ follow | formatCurrency }}</span>
  168. <span slot="formCount" slot-scope="formCount">{{ formCount | formatCurrency }}</span>
  169. <span slot="formCountCost" slot-scope="formCountCost">{{ formCountCost | decimalsHandle }}</span>
  170. <span slot="aClick" slot-scope="aClick">{{ aClick | formatCurrency }}</span>
  171. <span slot="photoShow" slot-scope="photoShow">{{ photoShow | formatCurrency }}</span>
  172. <span slot="photoClick" slot-scope="photoClick">{{ photoClick | formatCurrency }}</span>
  173. <span slot="bClick" slot-scope="bClick">{{ bClick | formatCurrency }}</span>
  174. <span slot="active" slot-scope="active">{{ active | formatCurrency }}</span>
  175. <span slot="submit" slot-scope="submit">{{ submit | formatCurrency }}</span>
  176. <span slot="nextDayOpen" slot-scope="nextDayOpen">{{ nextDayOpen | formatCurrency }}</span>
  177. <span slot="eventCreditGrantLandingPage" slot-scope="eventCreditGrantLandingPage">{{ eventCreditGrantLandingPage | formatCurrency }}</span>
  178. <span slot="submitCost" slot-scope="submitCost">{{ submitCost | decimalsHandle }}</span>
  179. <span slot="eventCreditGrantLandingPageCost" slot-scope="eventCreditGrantLandingPageCost">{{ eventCreditGrantLandingPageCost | decimalsHandle }}</span>
  180. <span slot="submitRate" slot-scope="submitRate">{{ submitRate | toPercentage }}</span>
  181. <span slot="eventCreditGrantLandingPageRate" slot-scope="eventCreditGrantLandingPageRate">{{ eventCreditGrantLandingPageRate | toPercentage }}</span>
  182. <span
  183. slot="play25FeedBreakRate"
  184. slot-scope="play25FeedBreakRate"
  185. >{{ play25FeedBreakRate | toPercentage }}</span>
  186. <span slot="playOverRate" slot-scope="playOverRate">{{ playOverRate | toPercentage }}</span>
  187. <!-- 新加数据 -->
  188. <span slot="convertRate" slot-scope="convertRate">{{ convertRate | toPercentage }}</span>
  189. <span slot="nextDayOpenRate" slot-scope="nextDayOpenRate">{{ nextDayOpenRate | toPercentage }}</span>
  190. <span slot="ctr" slot-scope="ctr">{{ ctr | toPercentage }}</span>
  191. <span slot="cpc" slot-scope="cpc">{{ cpc | decimalsHandle }}</span>
  192. <span slot="cpm" slot-scope="cpm">{{ cpm | decimalsHandle }}</span>
  193. <span slot="activeRate" slot-scope="activeRate">{{ activeRate | toPercentage }}</span>
  194. <span
  195. slot="installFinishRate"
  196. slot-scope="installFinishRate"
  197. >{{ installFinishRate | toPercentage }}</span>
  198. <span slot="validPlayRate" slot-scope="validPlayRate">{{ validPlayRate | toPercentage }}</span>
  199. <span slot="activePayCost" slot-scope="activePayCost">{{ activePayCost | decimalsHandle }}</span>
  200. <span slot="nextDayOpenCost" slot-scope="nextDayOpenCost">{{ nextDayOpenCost | decimalsHandle }}</span>
  201. <span slot="validPlayCost" slot-scope="validPlayCost">{{ validPlayCost | decimalsHandle }}</span>
  202. <span slot="activeCost" slot-scope="activeCost">{{ activeCost | decimalsHandle }}</span>
  203. <span slot="nextDayOpenCost" slot-scope="nextDayOpenCost">{{ nextDayOpenCost | decimalsHandle }}</span>
  204. <span
  205. slot="gameAddictionCost"
  206. slot-scope="gameAddictionCost"
  207. >{{ gameAddictionCost | decimalsHandle }}</span>
  208. <span
  209. slot="downloadFinishCost"
  210. slot-scope="downloadFinishCost"
  211. >{{ downloadFinishCost | decimalsHandle }}</span>
  212. <span
  213. slot="downloadStartCost"
  214. slot-scope="downloadStartCost"
  215. >{{ downloadStartCost | decimalsHandle }}</span>
  216. <span
  217. slot="installFinishCost"
  218. slot-scope="installFinishCost"
  219. >{{ installFinishCost | decimalsHandle }}</span>
  220. <span slot="convertCost" slot-scope="convertCost">{{ convertCost | decimalsHandle }}</span>
  221. <!-- -->
  222. <span
  223. slot="downloadStartRate"
  224. slot-scope="downloadStartRate"
  225. >{{ downloadStartRate | toPercentage }}</span>
  226. <span
  227. slot="downloadFinishRate"
  228. slot-scope="downloadFinishRate"
  229. >{{ downloadFinishRate | toPercentage }}</span>
  230. <span slot="activeRate" slot-scope="activeRate">{{ activeRate | toPercentage }}</span>
  231. <span
  232. slot="activeRegisterRate"
  233. slot-scope="activeRegisterRate"
  234. >{{ activeRegisterRate | toPercentage }}</span>
  235. <span
  236. slot="gameAddictionRate"
  237. slot-scope="gameAddictionRate"
  238. >{{ gameAddictionRate | toPercentage }}</span>
  239. <span slot="nextDayOpenRate" slot-scope="nextDayOpenRate">{{ nextDayOpenRate | toPercentage }}</span>
  240. <!-- <span slot="nextDayOpenRate" slot-scope="nextDayOpenRate">{{ nextDayOpenRate | toPercentage }}</span> -->
  241. </a-table>
  242. </div>
  243. </div>
  244. <div class="tableBox">
  245. <div class="tableTop">
  246. {{tabKey==1?'关联素材':'关联定向'}}
  247. </div>
  248. <div class="tableOpt">
  249. <!-- <span>表格类型:</span>
  250. <a-radio-group v-model="tableValue" @change="tableTypeChange">
  251. <a-radio :value="1">
  252. 地域
  253. </a-radio>
  254. <a-radio :value="2">
  255. 性别
  256. </a-radio>
  257. <a-radio :value="3">
  258. 年龄
  259. </a-radio>
  260. </a-radio-group> -->
  261. </div>
  262. <div class="tableBody">
  263. <a-table
  264. size="middle"
  265. :columns="materialColumns"
  266. :dataSource="materialtableData"
  267. :pagination='materialipagination'
  268. bordered
  269. id="outTable"
  270. :loading="materialloading"
  271. style="word-break: break-all;font-size:16px;font-weight:600"
  272. :scroll="{'x':materialscrollX}"
  273. @change="materialTableChange"
  274. >
  275. <span slot="ctr" slot-scope="ctr">{{ ctr | toPercentage }}</span>
  276. <span slot="cost" slot-scope="cost">{{ cost | decimalsHandle }}</span>
  277. <span slot="clickMaterial" slot-scope="clickMaterial">{{ clickMaterial | formatCurrency }}</span>
  278. <span slot="showMaterial" slot-scope="showMaterial">{{ showMaterial | formatCurrency }}</span>
  279. <span slot="convertMaterial" slot-scope="convertMaterial">{{ convertMaterial | formatCurrency }}</span>
  280. <span slot="play25FeedBreak" slot-scope="play25FeedBreak">{{ play25FeedBreak | formatCurrency }}</span>
  281. <span slot="play50FeedBreak" slot-scope="play50FeedBreak">{{ play50FeedBreak | formatCurrency }}</span>
  282. <span slot="play75FeedBreak" slot-scope="play75FeedBreak">{{ play75FeedBreak | formatCurrency }}</span>
  283. <span slot="play100FeedBreak" slot-scope="play100FeedBreak">{{ play100FeedBreak | formatCurrency }}</span>
  284. <span slot="nextDayOpen" slot-scope="nextDayOpen">{{ nextDayOpen | formatCurrency }}</span>
  285. <span slot="downloadFinish" slot-scope="downloadFinish">{{ downloadFinish | formatCurrency }}</span>
  286. <span slot="downloadStart" slot-scope="downloadStart">{{ downloadStart | formatCurrency }}</span>
  287. <span slot="likeMaterial" slot-scope="likeMaterial">{{ likeMaterial | formatCurrency }}</span>
  288. <span slot="shareMaterial" slot-scope="shareMaterial">{{ shareMaterial | formatCurrency }}</span>
  289. <span slot="register" slot-scope="register">{{ register | formatCurrency }}</span>
  290. <span slot="follow" slot-scope="follow">{{ follow | formatCurrency }}</span>
  291. <span slot="formCount" slot-scope="formCount">{{ formCount | formatCurrency }}</span>
  292. <span slot="formCountCost" slot-scope="formCountCost">{{ formCountCost | decimalsHandle }}</span>
  293. <span slot="aClick" slot-scope="aClick">{{ aClick | formatCurrency }}</span>
  294. <span slot="photoShow" slot-scope="photoShow">{{ photoShow | formatCurrency }}</span>
  295. <span slot="photoClick" slot-scope="photoClick">{{ photoClick | formatCurrency }}</span>
  296. <span slot="bClick" slot-scope="bClick">{{ bClick | formatCurrency }}</span>
  297. <span slot="active" slot-scope="active">{{ active | formatCurrency }}</span>
  298. <span slot="submit" slot-scope="submit">{{ submit | formatCurrency }}</span>
  299. <span slot="nextDayOpen" slot-scope="nextDayOpen">{{ nextDayOpen | formatCurrency }}</span>
  300. <span slot="eventCreditGrantLandingPage" slot-scope="eventCreditGrantLandingPage">{{ eventCreditGrantLandingPage | formatCurrency }}</span>
  301. <span slot="submitCost" slot-scope="submitCost">{{ submitCost | decimalsHandle }}</span>
  302. <span slot="eventCreditGrantLandingPageCost" slot-scope="eventCreditGrantLandingPageCost">{{ eventCreditGrantLandingPageCost | decimalsHandle }}</span>
  303. <span slot="submitRate" slot-scope="submitRate">{{ submitRate | toPercentage }}</span>
  304. <span slot="eventCreditGrantLandingPageRate" slot-scope="eventCreditGrantLandingPageRate">{{ eventCreditGrantLandingPageRate | toPercentage }}</span>
  305. <span
  306. slot="play25FeedBreakRate"
  307. slot-scope="play25FeedBreakRate"
  308. >{{ play25FeedBreakRate | toPercentage }}</span>
  309. <span slot="playOverRate" slot-scope="playOverRate">{{ playOverRate | toPercentage }}</span>
  310. <!-- 新加数据 -->
  311. <span slot="convertRate" slot-scope="convertRate">{{ convertRate | toPercentage }}</span>
  312. <span slot="nextDayOpenRate" slot-scope="nextDayOpenRate">{{ nextDayOpenRate | toPercentage }}</span>
  313. <span slot="ctr" slot-scope="ctr">{{ ctr | toPercentage }}</span>
  314. <span slot="cpc" slot-scope="cpc">{{ cpc | decimalsHandle }}</span>
  315. <span slot="cpm" slot-scope="cpm">{{ cpm | decimalsHandle }}</span>
  316. <span slot="activeRate" slot-scope="activeRate">{{ activeRate | toPercentage }}</span>
  317. <span
  318. slot="installFinishRate"
  319. slot-scope="installFinishRate"
  320. >{{ installFinishRate | toPercentage }}</span>
  321. <span slot="validPlayRate" slot-scope="validPlayRate">{{ validPlayRate | toPercentage }}</span>
  322. <span slot="activePayCost" slot-scope="activePayCost">{{ activePayCost | decimalsHandle }}</span>
  323. <span slot="nextDayOpenCost" slot-scope="nextDayOpenCost">{{ nextDayOpenCost | decimalsHandle }}</span>
  324. <span slot="validPlayCost" slot-scope="validPlayCost">{{ validPlayCost | decimalsHandle }}</span>
  325. <span slot="activeCost" slot-scope="activeCost">{{ activeCost | decimalsHandle }}</span>
  326. <span slot="nextDayOpenCost" slot-scope="nextDayOpenCost">{{ nextDayOpenCost | decimalsHandle }}</span>
  327. <span
  328. slot="gameAddictionCost"
  329. slot-scope="gameAddictionCost"
  330. >{{ gameAddictionCost | decimalsHandle }}</span>
  331. <span
  332. slot="downloadFinishCost"
  333. slot-scope="downloadFinishCost"
  334. >{{ downloadFinishCost | decimalsHandle }}</span>
  335. <span
  336. slot="downloadStartCost"
  337. slot-scope="downloadStartCost"
  338. >{{ downloadStartCost | decimalsHandle }}</span>
  339. <span
  340. slot="installFinishCost"
  341. slot-scope="installFinishCost"
  342. >{{ installFinishCost | decimalsHandle }}</span>
  343. <span slot="convertCost" slot-scope="convertCost">{{ convertCost | decimalsHandle }}</span>
  344. <!-- -->
  345. <span
  346. slot="downloadStartRate"
  347. slot-scope="downloadStartRate"
  348. >{{ downloadStartRate | toPercentage }}</span>
  349. <span
  350. slot="downloadFinishRate"
  351. slot-scope="downloadFinishRate"
  352. >{{ downloadFinishRate | toPercentage }}</span>
  353. <span slot="activeRate" slot-scope="activeRate">{{ activeRate | toPercentage }}</span>
  354. <span
  355. slot="activeRegisterRate"
  356. slot-scope="activeRegisterRate"
  357. >{{ activeRegisterRate | toPercentage }}</span>
  358. <span
  359. slot="gameAddictionRate"
  360. slot-scope="gameAddictionRate"
  361. >{{ gameAddictionRate | toPercentage }}</span>
  362. <span slot="nextDayOpenRate" slot-scope="nextDayOpenRate">{{ nextDayOpenRate | toPercentage }}</span>
  363. <span slot="coverUrl" slot-scope="text,record">
  364. <a-popover placement="right">
  365. <template slot="content">
  366. <video :src="record.videoId_dictText" style="width:250px" controls ></video>
  367. </template>
  368. <template slot="title">
  369. </template>
  370. <img :src="record.imageId_dictText" alt="" style="width:100px">
  371. </a-popover>
  372. </span>
  373. </a-table>
  374. </div>
  375. </div>
  376. </div>
  377. </div>
  378. </template>
  379. <script>
  380. import moment from 'moment';
  381. import { getAction, postAction, downFile, downFilePost } from '@/api/manage';
  382. const SHOW_PARENT = TreeSelect.SHOW_PARENT;
  383. import { TreeSelect } from 'ant-design-vue';
  384. import qs from 'qs'
  385. // 引入基本模板
  386. var echarts = require('echarts')
  387. import 'echarts/map/js/china'
  388. // 引入柱状图组件
  389. require('echarts/lib/chart/bar')
  390. // require('echarts/lib/chart/pie')
  391. require('echarts/lib/chart/line')
  392. require('echarts/lib/chart/map')
  393. // 引入提示框和title组件
  394. require('echarts/lib/component/tooltip')
  395. require('echarts/lib/component/title')
  396. require('echarts/lib/component/graphic')
  397. require('echarts/lib/component/toolbox')
  398. require('echarts/lib/component/legend')
  399. let option = {
  400. color: ['#1890ff'],
  401. tooltip: {
  402. trigger: 'axis',
  403. axisPointer: {
  404. // 坐标轴指示器,坐标轴触发有效
  405. type: 'line' // 默认为直线,可选为:'line' | 'shadow'
  406. }
  407. },
  408. grid: {
  409. left: '0%',
  410. right: '0%',
  411. bottom: '0%',
  412. top: '12%',
  413. containLabel: false,
  414. },
  415. xAxis: [
  416. {
  417. type: 'category',
  418. data: [],
  419. show: true,
  420. axisTick: {
  421. alignWithLabel: true
  422. }
  423. }
  424. ],
  425. yAxis: [
  426. {
  427. type: 'value',
  428. show: false
  429. }
  430. ],
  431. series: [
  432. {
  433. name: '',
  434. type: 'bar',
  435. barWidth: '40%',
  436. smooth: true,
  437. areaStyle:{},
  438. itemStyle: {
  439. color: new echarts.graphic.LinearGradient(
  440. 0, 0, 0, 1,
  441. [
  442. {offset: 0, color: '#1890ff'},
  443. {offset: 1, color: '#FFF'}
  444. ]
  445. )
  446. },
  447. data: []
  448. }
  449. ]
  450. }
  451. const regionColumns = [
  452. {
  453. title: '地域',
  454. dataIndex: 'region',
  455. key: 'region',
  456. align: 'center',
  457. scopedSlots: { customRender: 'region' },
  458. width:120,
  459. fixed: 'left' ,
  460. },
  461. ];
  462. const sexColumns = [
  463. {
  464. title: '性别',
  465. dataIndex: 'sex',
  466. key: 'sex',
  467. align: 'center',
  468. scopedSlots: { customRender: 'sex' },
  469. width:120,
  470. fixed: 'left' ,
  471. },
  472. ];
  473. const ageColumns = [
  474. {
  475. title: '年龄',
  476. dataIndex: 'age',
  477. key: 'age',
  478. align: 'center',
  479. scopedSlots: { customRender: 'age' },
  480. width:120,
  481. fixed: 'left' ,
  482. },
  483. ];
  484. const material = [
  485. {
  486. title: '素材',
  487. dataIndex: 'coverUrl',
  488. key: 'coverUrl',
  489. align: 'center',
  490. scopedSlots: { customRender: 'coverUrl' },
  491. width:120,
  492. fixed: 'left' ,
  493. },
  494. {
  495. title: '关联创意数',
  496. dataIndex: 'creativeCount',
  497. key: 'creativeCount',
  498. align: 'center',
  499. scopedSlots: { customRender: 'creativeCount' },
  500. },
  501. // {
  502. // title: '关联广告组数',
  503. // dataIndex: 'relativeGroup',
  504. // key: 'relativeGroup',
  505. // align: 'center',
  506. // scopedSlots: { customRender: 'relativeGroup' },
  507. // },
  508. {
  509. title: '广告场景',
  510. dataIndex: 'scenes',
  511. key: 'scenes',
  512. align: 'center',
  513. scopedSlots: { customRender: 'scenes' },
  514. },
  515. // {
  516. // title: '3s播放数',
  517. // dataIndex: '3',
  518. // key: '3',
  519. // align: 'center',
  520. // scopedSlots: { customRender: '3' },
  521. // },
  522. // {
  523. // title: '10s播放数',
  524. // dataIndex: '10',
  525. // key: '10',
  526. // align: 'center',
  527. // scopedSlots: { customRender: '10' },
  528. // },
  529. // {
  530. // title: '3s完播率',
  531. // dataIndex: 'playOver',
  532. // key: 'playOver',
  533. // align: 'center',
  534. // scopedSlots: { customRender: 'playOver' },
  535. // },
  536. // {
  537. // title: '10s完播率',
  538. // dataIndex: '10playOver',
  539. // key: '10playOver',
  540. // align: 'center',
  541. // scopedSlots: { customRender: '10playOver' },
  542. // },
  543. // {
  544. // title: '完播率',
  545. // dataIndex: 'playOverRate',
  546. // key: 'playOverRate',
  547. // align: 'center',
  548. // scopedSlots: { customRender: 'playOverRate' },
  549. // },
  550. ];
  551. const directional = [
  552. {
  553. title: '定向包名称',
  554. dataIndex: 'name',
  555. key: 'name',
  556. align: 'center',
  557. scopedSlots: { customRender: 'name' },
  558. width:200,
  559. flex:'left'
  560. },
  561. {
  562. title: '关联广告组数',
  563. dataIndex: 'group',
  564. key: 'group',
  565. align: 'center',
  566. scopedSlots: { customRender: 'group' },
  567. },
  568. {
  569. title: '覆盖人群',
  570. dataIndex: 'coverPoepele',
  571. key: 'coverPoepele',
  572. align: 'center',
  573. scopedSlots: { customRender: 'coverPoepele' },
  574. },
  575. {
  576. title: '地域分布',
  577. dataIndex: 'region',
  578. key: 'region',
  579. align: 'center',
  580. scopedSlots: { customRender: 'region' },
  581. },
  582. {
  583. title: '年龄分布',
  584. dataIndex: 'age',
  585. key: 'age',
  586. align: 'center',
  587. scopedSlots: { customRender: 'age' },
  588. },
  589. {
  590. title: '商业兴趣分布',
  591. dataIndex: 'url',
  592. key: 'url',
  593. align: 'center',
  594. scopedSlots: { customRender: 'url' },
  595. },
  596. {
  597. title: '性别分布',
  598. dataIndex: 'sex',
  599. key: 'sex',
  600. align: 'center',
  601. scopedSlots: { customRender: 'sex' },
  602. },
  603. ]
  604. const publicColumns = [
  605. {
  606. title: '消耗(元)',
  607. dataIndex: 'cost',
  608. width:150,
  609. tip: '广告在投放期间的花费总额',
  610. align: 'center',
  611. scopedSlots: { customRender: 'cost' },
  612. // sorter: () => {}
  613. },
  614. {
  615. title: '封面曝光数',
  616. dataIndex: 'photoShow',
  617. tip: '广告在瀑布流被观看次数',
  618. align: 'center',
  619. scopedSlots: { customRender: 'photoShow' },
  620. // sorter:() => {}
  621. },
  622. {
  623. title: '封面点击数',
  624. dataIndex: 'photoClick',
  625. tip: '用户点击封面进入视频播放页的次数(数据会进行反作弊去重)',
  626. align: 'center',
  627. scopedSlots: { customRender: 'photoClick' },
  628. // sorter: () => {}
  629. },
  630. {
  631. title: '素材曝光数',
  632. dataIndex: 'aclick',
  633. tip: '用户进入视频播放页观看的次数(数据会进行反作弊去重)',
  634. align: 'center',
  635. scopedSlots: { customRender: 'aClick' },
  636. // sorter:() => {}
  637. },
  638. {
  639. title: '行为数',
  640. dataIndex: 'bclick',
  641. tip: '用户在视频播放页单击转化按钮的次数/展示数*100%',
  642. align: 'center',
  643. scopedSlots: { customRender: 'bClick' },
  644. // sorter:() => {}
  645. },
  646. {
  647. title: '封面点击率',
  648. dataIndex: 'clickRate',
  649. tip: '封面点击数占封面展示数百分比',
  650. align: 'center',
  651. scopedSlots: { customRender: 'clickRate' },
  652. // sorter:() => {}
  653. },
  654. {
  655. title: '行为率',
  656. dataIndex: 'bClickRate',
  657. tip: '行为数占素材曝光数百分比',
  658. align: 'center',
  659. scopedSlots: { customRender: 'bClickRate' },
  660. // sorter:() => {}
  661. },
  662. {
  663. title: '平均千次封面曝光花费(元)',
  664. dataIndex: 'cpm',
  665. tip: '花费/封面曝光数*1000',
  666. align: 'center',
  667. scopedSlots: { customRender: 'cpm' },
  668. // sorter:() => {}
  669. },
  670. {
  671. title: '平均封面点击单价(元)',
  672. dataIndex: 'cpc',
  673. tip: '花费/封面点击数',
  674. align: 'center',
  675. scopedSlots: { customRender: 'cpc' },
  676. // sorter:() => {}
  677. },
  678. {
  679. title: '激活数',
  680. dataIndex: 'active',
  681. tip: '广告主回传的应用激活次数',
  682. align: 'center',
  683. scopedSlots: { customRender: 'active' },
  684. // sorter:() => {}
  685. },
  686. {
  687. title: '激活单价',
  688. dataIndex: 'activeCost',
  689. tip: '花费/激活数',
  690. align: 'center',
  691. scopedSlots: { customRender: 'activeCost' },
  692. // sorter:() => {}
  693. },
  694. {
  695. title: '下载完成激活率',
  696. dataIndex: 'activeRate',
  697. tip: '激活数/安卓下载完成数',
  698. align: 'center',
  699. scopedSlots: { customRender: 'activeRate' },
  700. // sorter:() => {}
  701. },
  702. {
  703. title: '注册数',
  704. dataIndex: 'register',
  705. tip: '付费金额/当日消耗',
  706. align: 'center',
  707. scopedSlots: { customRender: 'register' },
  708. // sorter:() => {}
  709. },
  710. {
  711. title: '注册成本',
  712. dataIndex: 'activeRegisterCost',
  713. tip: '当日消耗/当日回传注册数',
  714. align: 'center',
  715. scopedSlots: { customRender: 'activeRegisterCost' },
  716. // sorter:() => {}
  717. },
  718. {
  719. title: '注册率',
  720. dataIndex: 'activeRegisterRate',
  721. tip: '当日回传注册数/当日激活数',
  722. align: 'center',
  723. scopedSlots: { customRender: 'activeRegisterRate' },
  724. // sorter:() => {}
  725. },
  726. {
  727. title: '次留数',
  728. dataIndex: 'nextDayOpen',
  729. tip: '前一日激活用户在次日继续访问的PV',
  730. align: 'center',
  731. scopedSlots: { customRender: 'nextDayOpen' },
  732. // sorter:() => {}
  733. },
  734. {
  735. title: '次留率',
  736. dataIndex: 'nextDayOpenRate',
  737. tip: '前一日激活用户在次日继续访问的PV/前一日激活数',
  738. align: 'center',
  739. scopedSlots: { customRender: 'nextDayOpenRate' },
  740. // sorter:() => {}
  741. },
  742. ]
  743. export default {
  744. data() {
  745. return {
  746. analysisDirection:1,
  747. spinning:false,
  748. materialId:[],
  749. treeData: [],
  750. materialTreeData:[],
  751. SHOW_PARENT,
  752. userId:'',
  753. tabKey:1,
  754. loading:false,
  755. ipagination: {
  756. current: 1,
  757. pageSize: 10,
  758. // pageSizeOptions: ['10', '20', '30'],
  759. showTotal: (total, range) => {
  760. return range[0] + "-" + range[1] + " 共" + total + "条"
  761. },
  762. showQuickJumper: true,
  763. showSizeChanger:true,
  764. pageSizeOptions: ['10', '30', '50'],
  765. total: 0,
  766. onChange: (current, pageSize) => {
  767. // 切换分页时的回调,
  768. // 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
  769. this.ipagination.current = current;
  770. this.ipagination.pageSize= pageSize;
  771. }
  772. },
  773. tableValue:1,
  774. accountIds:undefined,
  775. accountList:[],
  776. directionalId:undefined,
  777. value:1,
  778. columns:[...regionColumns,...publicColumns],
  779. tableData:[],
  780. dateRange: [],
  781. topOption: JSON.parse(JSON.stringify(option)),
  782. scrollX:2500,
  783. materialipagination: {
  784. current: 1,
  785. pageSize: 10,
  786. // pageSizeOptions: ['10', '20', '30'],
  787. showTotal: (total, range) => {
  788. return range[0] + "-" + range[1] + " 共" + total + "条"
  789. },
  790. showQuickJumper: true,
  791. showSizeChanger:true,
  792. pageSizeOptions: ['10', '30', '50'],
  793. total: 0,
  794. onChange: (current, pageSize) => {
  795. // 切换分页时的回调,
  796. // 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
  797. this.ipagination.current = current;
  798. this.ipagination.pageSize= pageSize;
  799. }
  800. },
  801. materialColumns:[...material,...publicColumns],
  802. materialtableData:[],
  803. materialloading:false,
  804. materialscrollX:4000,
  805. age:[],
  806. gender:[],
  807. region:[],
  808. currentStrategy:{},
  809. }
  810. },
  811. methods: {
  812. filterOption(input, option) {
  813. return (
  814. option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
  815. );
  816. },
  817. // //项目改变后的事件
  818. treeChange(val) {
  819. // console.log(this.treeData)
  820. console.log(val)
  821. this.directionalId = [];
  822. //选择一个后禁用其他
  823. if(val.length==1){
  824. if(val[0].indexOf('strategy')==-1){
  825. let selectindex=0
  826. this.treeData.forEach((ele,index)=>{
  827. if(ele.children){
  828. ele.children.map((item,ind)=>{
  829. if(item.value==val[0]){
  830. selectindex=index;
  831. }
  832. })
  833. }
  834. });
  835. // console.log(selectindex)
  836. if(selectindex ||selectindex==0){
  837. this.treeData.forEach((ele,index)=>{
  838. if(index!=selectindex){
  839. ele.disableCheckbox = true;
  840. if(ele.children){
  841. ele.children.map((item,ind)=>{
  842. item.disableCheckbox = true;
  843. })
  844. }
  845. }
  846. })
  847. }
  848. }else{
  849. // console.log(1)
  850. this.treeData.forEach((ele,index)=>{
  851. if(ele.value!=val[0]){
  852. ele.disableCheckbox = true;
  853. if(ele.children){
  854. ele.children.forEach((item,ind)=>{
  855. item.disableCheckbox = true;
  856. })
  857. }
  858. }
  859. })
  860. }
  861. // console.log(this.mediaId)
  862. }
  863. if(val.length==0){
  864. this.treeData.forEach((ele,index)=>{
  865. ele.disableCheckbox = false;
  866. if(ele.children){
  867. ele.children.forEach((item,ind)=>{
  868. item.disableCheckbox = false;
  869. })
  870. }
  871. });
  872. }
  873. if(val){
  874. val.forEach((ele,index)=>{
  875. if(ele.indexOf('strategy')==-1){
  876. this.directionalId.push(ele)
  877. }else{
  878. let projectArr=this.treeData.filter((item)=>{
  879. return item.value==ele
  880. });
  881. // console.log(projectArr)
  882. projectArr[0].children.forEach((element)=>{
  883. this.directionalId.push(element.value)
  884. })
  885. }
  886. })
  887. }
  888. console.log(this.directionalId);
  889. this.getRelativeData()
  890. },
  891. //请求项目和账户内容
  892. accountHttp(){
  893. this.treeData=[];
  894. this.directionalId=[];
  895. getAction('/ai/analyze/getStrategyAndTarget', {
  896. accountId:this.accountIds
  897. }).then(res => {
  898. if(res.success){
  899. // console.log(res);
  900. if(res.result){
  901. res.result.forEach((element,index) => {
  902. if(element){
  903. this.treeData.push({});
  904. this.treeData[index].title=element.strategy_name +'_('+ element.id +')';
  905. this.treeData[index].value='strategy'+element.id;
  906. this.treeData[index].key=element.id;
  907. this.treeData[index].children=[];
  908. if(element.targets.length&&element.targets[0]){
  909. element.targets.forEach((ele,i)=>{
  910. this.treeData[index].children.push({});
  911. this.treeData[index].children[i].title=ele.target_type+'_'+ele.target_content
  912. this.treeData[index].children[i].value=element.id+'_'+ele.id;
  913. this.treeData[index].children[i].key=element.id+'_'+ele.id;
  914. })
  915. }
  916. }
  917. });
  918. // console.log(this.treeData)
  919. this.directionalId=[this.treeData[0].children[0].value]
  920. }
  921. }
  922. })
  923. },
  924. accountMaterialHttp(){
  925. this.materialTreeData=[];
  926. this.materialId=[];
  927. getAction('/ai/analyze/getStrategyAndMaterial', {
  928. accountId:this.accountIds
  929. }).then(res => {
  930. if(res.success){
  931. // console.log(res);
  932. if(res.result){
  933. res.result.forEach((element,index) => {
  934. if(element){
  935. this.materialTreeData.push({});
  936. this.materialTreeData[index].title=element.strategy_name +'_('+ element.id +')';
  937. this.materialTreeData[index].value='strategy'+element.id;
  938. this.materialTreeData[index].key=element.id;
  939. this.materialTreeData[index].children=[];
  940. if(element.materials.length&&element.materials[0]){
  941. element.materials.forEach((ele,i)=>{
  942. this.materialTreeData[index].children.push({});
  943. this.materialTreeData[index].children[i].title=ele.material_name
  944. this.materialTreeData[index].children[i].value=element.id+'_'+ele.code;
  945. this.materialTreeData[index].children[i].key=element.id+'_'+ele.code;
  946. this.materialTreeData[index].children[i].coverUrl=ele.cover_url;
  947. })
  948. }
  949. }
  950. });
  951. // console.log(this.treeData)
  952. this.materialId=[this.materialTreeData[0].children[0].value]
  953. }
  954. }
  955. })
  956. },
  957. materialTreeChange(val){
  958. console.log(val)
  959. this.materialId = [];
  960. //选择一个后禁用其他
  961. if(val.length==1){
  962. if(val[0].indexOf('strategy')==-1){
  963. let selectindex=0
  964. this.materialTreeData.forEach((ele,index)=>{
  965. if(ele.children){
  966. ele.children.map((item,ind)=>{
  967. if(item.value==val[0]){
  968. selectindex=index;
  969. }
  970. })
  971. }
  972. });
  973. // console.log(selectindex)
  974. if(selectindex ||selectindex==0){
  975. this.materialTreeData.forEach((ele,index)=>{
  976. if(index!=selectindex){
  977. ele.disableCheckbox = true;
  978. if(ele.children){
  979. ele.children.map((item,ind)=>{
  980. item.disableCheckbox = true;
  981. })
  982. }
  983. }
  984. })
  985. }
  986. }else{
  987. // console.log(1)
  988. this.materialTreeData.forEach((ele,index)=>{
  989. if(ele.value!=val[0]){
  990. ele.disableCheckbox = true;
  991. if(ele.children){
  992. ele.children.forEach((item,ind)=>{
  993. item.disableCheckbox = true;
  994. })
  995. }
  996. }
  997. })
  998. }
  999. // console.log(this.mediaId)
  1000. }
  1001. if(val.length==0){
  1002. this.materialTreeData.forEach((ele,index)=>{
  1003. ele.disableCheckbox = false;
  1004. if(ele.children){
  1005. ele.children.forEach((item,ind)=>{
  1006. item.disableCheckbox = false;
  1007. })
  1008. }
  1009. });
  1010. }
  1011. if(val){
  1012. val.forEach((ele,index)=>{
  1013. if(ele.indexOf('strategy')==-1){
  1014. this.materialId.push(ele)
  1015. }else{
  1016. let projectArr=this.materialTreeData.filter((item)=>{
  1017. return item.value==ele
  1018. });
  1019. console.log(projectArr)
  1020. projectArr[0].children.forEach((element)=>{
  1021. this.materialId.push(element.value)
  1022. })
  1023. }
  1024. })
  1025. }
  1026. console.log(this.materialId);
  1027. this.getRelativeData()
  1028. },
  1029. accountChange(val){
  1030. console.log(val);
  1031. if(val){
  1032. if(this.tabKey==1){
  1033. this.accountHttp()
  1034. }else if(this.tabKey==2){
  1035. this.accountMaterialHttp()
  1036. }
  1037. }
  1038. },
  1039. disabledDate(current) {
  1040. return current && current > moment()
  1041. },
  1042. dateChange(date, dateString) {
  1043. // console.log(date,dateString)
  1044. },
  1045. chartDataTypeChange(e) {
  1046. console.log('radio checked', e.target.value);
  1047. this.getEchartData()
  1048. },
  1049. tableTypeChange(e){
  1050. console.log('radio checked', e.target.value);
  1051. if(e.target.value==2){
  1052. this.columns=[...sexColumns,...publicColumns];
  1053. this.tableData=this.gender
  1054. }else if(e.target.value==1){
  1055. this.columns=[...regionColumns,...publicColumns]
  1056. this.tableData=this.region
  1057. }else if(e.target.value==3){
  1058. this.columns=[...ageColumns,...publicColumns]
  1059. this.tableData=this.age
  1060. }
  1061. // this.getEchartData()
  1062. },
  1063. // directionalTableHttp(){
  1064. // this.loading=true;
  1065. // postAction('',{
  1066. // }).then(res=>{
  1067. // console.log(res)
  1068. // })
  1069. // },
  1070. // materialTableHttp(){
  1071. // this.loading=true;
  1072. // postAction('',{
  1073. // }).then(res=>{
  1074. // console.log(res)
  1075. // })
  1076. // },
  1077. directionalIdChange(val){
  1078. console.log(val)
  1079. },
  1080. //获取echart的值
  1081. initEchart(idName, optionName) {
  1082. const chart = this.$refs[idName]
  1083. // console.log(chart)
  1084. if (chart) {
  1085. const myChart = echarts.init(document.getElementById(idName))
  1086. // myChart.showLoading({
  1087. // text: "图表数据正在努力加载..."
  1088. // });
  1089. myChart.setOption(optionName)
  1090. window.addEventListener('resize', function() {
  1091. myChart.resize()
  1092. })
  1093. }
  1094. },
  1095. // province,data
  1096. handlerMapEchartOption(province,data){
  1097. var res = [];
  1098. for (var j = 0; j < data.length; j++) {
  1099. res.push({
  1100. name: province[j],
  1101. value: data[j]
  1102. });
  1103. }
  1104. console.log(res)
  1105. // res.sort(function(a, b) {
  1106. // // console.log(a,b)
  1107. // return a.value - b.value;
  1108. // });
  1109. // var res1 = [];
  1110. // var res2 = [];
  1111. // for (var t = 0; t < 10; t++) {
  1112. // res1[t] = res[res.length - 1 - t].name;
  1113. // res2[t] = res[res.length - 1 - t].value;
  1114. // }
  1115. var option = {
  1116. title: {
  1117. text: '省级地域分布',
  1118. // subtext: '仅供参考',
  1119. left: 'left',
  1120. },
  1121. tooltip: {
  1122. show: true,
  1123. formatter: function(params) {
  1124. return params.name + ':' + params.value
  1125. },
  1126. },
  1127. visualMap: {
  1128. type: 'piecewise',
  1129. // text: ['头', '尾'],
  1130. pieces: [{
  1131. min: 100000,
  1132. color: '#73240D',
  1133. },
  1134. {
  1135. min: 50000,
  1136. max: 100000,
  1137. color: '#BB0000',
  1138. },
  1139. {
  1140. min: 30000,
  1141. max: 50000,
  1142. color: '#BD430A',
  1143. },
  1144. {
  1145. min: 10000,
  1146. max: 30000,
  1147. color: '#E08150',
  1148. },
  1149. {
  1150. min: 5000,
  1151. max: 10000,
  1152. color: '#E9B090',
  1153. },
  1154. {
  1155. min: 1000,
  1156. max: 5000,
  1157. color: '#F2DDD2',
  1158. },
  1159. {
  1160. value: 0,
  1161. color: '#F1eeee',
  1162. },
  1163. ],
  1164. orient: 'vertical',
  1165. itemSymbol: 'circle',
  1166. itemWidth: 20,
  1167. itemHeight: 20,
  1168. showLabel: true,
  1169. seriesIndex: [0],
  1170. textStyle: {
  1171. color: '#7B93A7'
  1172. },
  1173. bottom: '10%',
  1174. left: "5%",
  1175. },
  1176. grid: {
  1177. right: '5%',
  1178. top: '20%',
  1179. left:'20%',
  1180. bottom: '10%',
  1181. width: '20%'
  1182. },
  1183. xAxis: {
  1184. min: 0,
  1185. // max: 4000,
  1186. show: false
  1187. },
  1188. geo: {
  1189. map: 'china',
  1190. // right: '35%',
  1191. left: '30%',
  1192. label: {
  1193. emphasis: {
  1194. show: false,
  1195. }
  1196. },
  1197. itemStyle: {
  1198. emphasis: {
  1199. areaColor: '#99FF99'
  1200. }
  1201. }
  1202. },
  1203. series: [{
  1204. name: 'mapSer',
  1205. type: 'map',
  1206. map: 'china',
  1207. roam: false,
  1208. geoIndex: 0,
  1209. label: {
  1210. show: false,
  1211. },
  1212. data: res
  1213. }
  1214. ]
  1215. };
  1216. console.log(option)
  1217. return option
  1218. },
  1219. handlerSexOption(data){
  1220. var option = {
  1221. color: ['#37a2da','#32c5e9','#9fe6b8','#ffdb5c','#ff9f7f','#fb7293','#e7bcf3','#8378ea'],
  1222. tooltip : {
  1223. trigger: 'item',
  1224. formatter: "{a} <br/>{b} : {c} ({d}%)"
  1225. },
  1226. toolbox: {
  1227. show : true,
  1228. },
  1229. title: {
  1230. text: '性别分布',
  1231. // subtext: '仅供参考',
  1232. left: 'left',
  1233. },
  1234. legend: {
  1235. type:"scroll",
  1236. orient: 'vertical',
  1237. left:'2%',
  1238. align:'left',
  1239. top:'middle',
  1240. textStyle: {
  1241. color:'#8C8C8C'
  1242. },
  1243. height:100
  1244. },
  1245. series : [
  1246. {
  1247. name:'性别分布',
  1248. type:'pie',
  1249. radius : [0, 100],
  1250. data,
  1251. }
  1252. ]
  1253. };
  1254. return option
  1255. },
  1256. handlerAgeOption(data){
  1257. const colorList = ['#58D5FF', '#73ACFF', '#FDD56A', '#FDB36A', '#FD866A','#9E87FF']
  1258. var option = {
  1259. tooltip: {
  1260. trigger: 'item',
  1261. formatter: "{a} <br/>{b} : {c} ({d}%)"
  1262. },
  1263. toolbox: {
  1264. show : true,
  1265. },
  1266. title: {
  1267. text: '年龄分布',
  1268. // subtext: '仅供参考',
  1269. left: 'left',
  1270. },
  1271. // grid: {
  1272. // right: '5%',
  1273. // top: '20%',
  1274. // left:'15%',
  1275. // bottom: '10%',
  1276. // width: '20%'
  1277. // },
  1278. legend: {
  1279. type:"scroll",
  1280. orient: 'vertical',
  1281. left:'2%',
  1282. align:'left',
  1283. top:'middle',
  1284. textStyle: {
  1285. color:'#8C8C8C'
  1286. },
  1287. height:200
  1288. },
  1289. series: [{
  1290. type: 'pie',
  1291. // center: ['30%', '30%'],
  1292. radius: ['30%', '60%'],
  1293. minAngle: 10 ,
  1294. avoidLabelOverlap: true,
  1295. hoverOffset: 15,
  1296. itemStyle: {
  1297. color: (params) => {
  1298. return colorList[params.dataIndex]
  1299. }
  1300. },
  1301. label: {
  1302. show: true,
  1303. position: 'outer',
  1304. alignTo: 'labelLine',
  1305. // ·圆点
  1306. backgroundColor: 'auto',//圆点颜色,auto:映射的系列色
  1307. height: 0,
  1308. width: 0,
  1309. lineHeight: 0,
  1310. // height,width.lineHeight必须为0
  1311. distanceToLabelLine: 0,//圆点到labelline距离
  1312. borderRadius: 2.5,
  1313. padding: [2.5, -2.5, 2.5, -2.5],
  1314. /*radius和padding为圆点大小,圆点半径为几radius和padding各项数值就为几
  1315. 如:圆点半径为1
  1316. borderRadius: 1,
  1317. padding: [1, -1, 1, -1]
  1318. */
  1319. formatter: '{a|{b}:}{b|{d}%}',
  1320. rich: {
  1321. a: {
  1322. padding: [0, 0, 0, 10]
  1323. },
  1324. b: {
  1325. padding: [0, 10, 0, 0]
  1326. }
  1327. }
  1328. },
  1329. data,
  1330. }, ]
  1331. }
  1332. return option
  1333. },
  1334. //点击分页
  1335. // sort(pagination, filters, sorter, { currentDataSource }){
  1336. // console.log(pagination)
  1337. // this.ipagination.current=pagination.current;
  1338. // this.ipagination.pageSize=pagination.pageSize;
  1339. // this.getEchartData()
  1340. // },
  1341. materialTableChange(pagination, filters, sorter, { currentDataSource }){
  1342. console.log(pagination)
  1343. this.materialipagination.current=pagination.current;
  1344. this.materialipagination.pageSize=pagination.pageSize;
  1345. this.getRelativeData()
  1346. },
  1347. tabChange(key){
  1348. console.log(key)
  1349. this.accountIds=undefined;
  1350. this.directionalId=[];
  1351. this.materialId=[];
  1352. if(key==1){
  1353. this.materialColumns=[...material,...publicColumns]
  1354. }else{
  1355. this.materialColumns=[...directional,...publicColumns]
  1356. }
  1357. // this.getRelativeData()
  1358. },
  1359. getEchartData(){
  1360. let params=this.handlerParams();
  1361. params.dataType=this.value
  1362. if(params.accountId&&(params.targetIds||params.codes)){
  1363. this.spinning=true;
  1364. this.loading=true
  1365. postAction('/ai/analyze/chart/targetOrMaterial',params).then(res=>{
  1366. console.log(res)
  1367. this.spinning=false;
  1368. this.loading=false
  1369. if(res.success){
  1370. this.age=res.result.age
  1371. this.gender=res.result.gender
  1372. this.region=res.result.region
  1373. var province = ['北京', '广东', '浙江', '湖南', '河南', '安徽', '重庆', '山东', '江西', '四川', '江苏', '湖北', '福建', '上海', '广西', '河北', '陕西', '云南', '海南', '黑龙江', '辽宁', '山西', '天津', '甘肃', '内蒙古', '新疆', '宁夏', '吉林', '贵州', '青海', '西藏', '澳门', '香港', '台湾'];
  1374. let params=this.handlerRegion(province,this.region)
  1375. console.log(params)
  1376. this.initEchart('mapEchart',this.handlerMapEchartOption(province,params))
  1377. let genderData=this.handlerGender(this.gender)
  1378. this.initEchart('sexEchart',this.handlerSexOption(ageData))
  1379. let ageData=this.handlerAge(this.age)
  1380. this.initEchart('ageEchart',this.handlerAgeOption(ageData))
  1381. this.spinning=false
  1382. if(this.tableValue==1){
  1383. this.tableData=res.result.region
  1384. }else if(this.tableValue==2){
  1385. this.tableData=res.result.gender
  1386. }else if(this.tableValue==3){
  1387. this.tableData=res.result.age
  1388. }
  1389. }
  1390. })
  1391. }
  1392. },
  1393. handlerRegion(province,data){
  1394. let value=[];
  1395. switch (this.value) {
  1396. case 1:
  1397. province.forEach((ele,index)=>{
  1398. value=data.map(item=>{
  1399. if(item.province==ele){
  1400. if(item.cost){
  1401. return item.cost
  1402. }else{
  1403. return 0
  1404. }
  1405. }
  1406. })
  1407. })
  1408. break;
  1409. case 2:
  1410. province.forEach((ele,index)=>{
  1411. value=data.map(item=>{
  1412. if(item.province==ele){
  1413. if(item.photoShow){
  1414. return item.photoShow
  1415. }else{
  1416. return 0
  1417. }
  1418. }
  1419. })
  1420. })
  1421. break;
  1422. case 3:
  1423. province.forEach((ele,index)=>{
  1424. value=data.map(item=>{
  1425. if(item.province==ele){
  1426. if(item.photoClick){
  1427. return item.photoClick
  1428. }else{
  1429. return 0
  1430. }
  1431. }
  1432. })
  1433. })
  1434. break;
  1435. case 4:
  1436. province.forEach((ele,index)=>{
  1437. value=data.map(item=>{
  1438. if(item.province==ele){
  1439. if(item.aclick){
  1440. return item.aclick
  1441. }else{
  1442. return 0
  1443. }
  1444. }
  1445. })
  1446. })
  1447. break;
  1448. default:
  1449. break;
  1450. }
  1451. return value
  1452. },
  1453. handlerGender(data){
  1454. let value=[];
  1455. switch (this.value) {
  1456. case 1:
  1457. value=data.map(item=>{
  1458. if(item.cost){
  1459. return {
  1460. value:item.cost,
  1461. name:item.gender
  1462. }
  1463. }
  1464. })
  1465. break;
  1466. case 2:
  1467. value=data.map(item=>{
  1468. if(item.cost){
  1469. return {
  1470. value:item.photoShow,
  1471. name:item.gender
  1472. }
  1473. }
  1474. })
  1475. break;
  1476. case 3:
  1477. value=data.map(item=>{
  1478. if(item.cost){
  1479. return {
  1480. value:item.photoClick,
  1481. name:item.gender
  1482. }
  1483. }
  1484. })
  1485. break;
  1486. case 4:
  1487. value=data.map(item=>{
  1488. if(item.cost){
  1489. return {
  1490. value:item.aclick,
  1491. name:item.gender
  1492. }
  1493. }
  1494. })
  1495. break;
  1496. default:
  1497. break;
  1498. }
  1499. return value
  1500. },
  1501. handlerAge(data){
  1502. let value=[];
  1503. switch (this.value) {
  1504. case 1:
  1505. value=data.map(item=>{
  1506. if(item.cost){
  1507. return {
  1508. value:item.cost,
  1509. name:item.ageSegment
  1510. }
  1511. }
  1512. })
  1513. break;
  1514. case 2:
  1515. value=data.map(item=>{
  1516. if(item.cost){
  1517. return {
  1518. value:item.photoShow,
  1519. name:item.ageSegment
  1520. }
  1521. }
  1522. })
  1523. break;
  1524. case 3:
  1525. value=data.map(item=>{
  1526. if(item.cost){
  1527. return {
  1528. value:item.photoClick,
  1529. name:item.ageSegment
  1530. }
  1531. }
  1532. })
  1533. break;
  1534. case 4:
  1535. value=data.map(item=>{
  1536. if(item.cost){
  1537. return {
  1538. value:item.aclick,
  1539. name:item.ageSegment
  1540. }
  1541. }
  1542. })
  1543. break;
  1544. default:
  1545. break;
  1546. }
  1547. return value
  1548. },
  1549. getDetailTableData(){
  1550. let params=this.handlerParams();
  1551. if(params.accountId&&(params.targetIds||params.codes)){
  1552. params.dataType=this.tableValue
  1553. this.loading=true
  1554. postAction('',params).then(res=>{
  1555. console.log(res)
  1556. this.loading=false
  1557. this.tableData=res.result.list
  1558. })
  1559. }else{
  1560. }
  1561. },
  1562. getRelativeData(){
  1563. let params=this.handlerParams();
  1564. // params.dataType=this.tableValue
  1565. if(params.accountId&&(params.targetIds||params.codes)){
  1566. this.materialloading=true
  1567. postAction('/ai/analyze/report/targetOrMaterial',params).then(res=>{
  1568. console.log(res)
  1569. this.materialloading=false
  1570. if(res.success){
  1571. this.materialtableData=res.result.list
  1572. this.ipagination.total=res.result.total;
  1573. }else{
  1574. this.$message.error('出错了')
  1575. }
  1576. })
  1577. }else{
  1578. this.$message.error('请选择账户、策略等信息')
  1579. }
  1580. },
  1581. search(){
  1582. this.getRelativeData()
  1583. this.getEchartData()
  1584. },
  1585. handlerParams(){
  1586. let params={};
  1587. params.accountId=this.accountIds
  1588. if(this.tabKey==1){
  1589. if(this.directionalId&&this.directionalId.length){
  1590. params.type='target'
  1591. params.strategyId=this.directionalId[0].split('_')[0]
  1592. params.targetIds=this.directionalId.map(item=>{
  1593. return item.split('_')[1]
  1594. })
  1595. }
  1596. }else{
  1597. params.type='material'
  1598. if(this.materialId&&this.materialId.length){
  1599. params.strategyId=this.materialId[0].split('_')[0]
  1600. params.codes=this.materialId.map(item=>{
  1601. return item.split('_')[1]
  1602. })
  1603. }
  1604. }
  1605. if(this.dateRange&&this.dateRange.length>0){
  1606. params.startDate=this.dateRange[0].format('YYYY-MM-DD')
  1607. params.endDate=this.dateRange[1].format('YYYY-MM-DD')
  1608. }
  1609. params.pageNo=this.ipagination.current;
  1610. params.pageSize=this.ipagination.pageSize
  1611. return params
  1612. },
  1613. handlerInitData(currentStrategy){
  1614. if(currentStrategy){
  1615. this.currentStrategy=JSON.parse(currentStrategy)
  1616. this.accountIds=this.currentStrategy.accountId;
  1617. if(this.tabKey==1){
  1618. this.treeData=[];
  1619. this.directionalId=[];
  1620. getAction('/ai/analyze/getStrategyAndTarget', {
  1621. accountId:this.accountIds
  1622. }).then(res => {
  1623. if(res.success){
  1624. // console.log(res);
  1625. if(res.result){
  1626. res.result.forEach((element,index) => {
  1627. if(element){
  1628. this.treeData.push({});
  1629. this.treeData[index].title=element.strategy_name +'_('+ element.id +')';
  1630. this.treeData[index].value='strategy'+element.id;
  1631. this.treeData[index].key=element.id;
  1632. this.treeData[index].children=[];
  1633. if(element.targets.length&&element.targets[0]){
  1634. element.targets.forEach((ele,i)=>{
  1635. this.treeData[index].children.push({});
  1636. this.treeData[index].children[i].title=ele.target_type+'_'+ele.target_content
  1637. this.treeData[index].children[i].value=element.id+'_'+ele.id;
  1638. this.treeData[index].children[i].key=element.id+'_'+ele.id;
  1639. })
  1640. }
  1641. }
  1642. });
  1643. // console.log(this.treeData)
  1644. // this.directionalId=[this.treeData[0].children[0].value]
  1645. // this.treeData.map((item=>{
  1646. // if(){
  1647. // }
  1648. // }))
  1649. this.directionalId=[`strategy${this.currentStrategy.id}`]
  1650. this.treeChange(this.directionalId)
  1651. }
  1652. }
  1653. })
  1654. }else if(this.tabKey==2){
  1655. this.accountMaterialHttp()
  1656. }
  1657. }
  1658. }
  1659. },
  1660. mounted() {
  1661. // this.$nextTick(()=>{
  1662. // var province = ['北京', '广东', '浙江', '湖南', '河南', '安徽', '重庆', '山东', '江西', '四川', '江苏', '湖北', '福建', '上海', '广西', '河北', '陕西', '云南', '海南', '黑龙江', '辽宁', '山西', '天津', '甘肃', '内蒙古', '新疆', '宁夏', '吉林', '贵州', '青海', '西藏', '澳门', '香港', '台湾'];
  1663. // var data = [3554, 241, 296, 221, 206, 152, 147, 121, 109, 108, 99, 91, 80, 80, 58, 48, 56, 51, 43, 37, 34, 27, 24, 24, 16, 13, 12, 9, 9, 6, 0, 7, 8, 8]
  1664. // this.initEchart('mapEchart',this.handlerMapEchartOption(province,data))
  1665. // var data1=[
  1666. // {value:20, name:'男'},
  1667. // {value:30, name:'女'},
  1668. // {value:25, name:'其他'},
  1669. // ]
  1670. // this.initEchart('sexEchart',this.handlerSexOption(data1))
  1671. // var data2= [
  1672. // {
  1673. // name: 'first',
  1674. // value: 1
  1675. // }, {
  1676. // name: 'second',
  1677. // value: 2
  1678. // }, {
  1679. // name: 'third',
  1680. // value: 3
  1681. // }, {
  1682. // name: 'fourth',
  1683. // value: 4
  1684. // }, {
  1685. // name: 'fifth',
  1686. // value: 5
  1687. // }, {
  1688. // name: 'sixth',
  1689. // value: 6
  1690. // }]
  1691. // this.initEchart('ageEchart',this.handlerAgeOption(data2))
  1692. // })
  1693. let userInfo=localStorage.getItem('pro__Login_Userinfo');
  1694. let currentStrategy=localStorage.getItem('currentStrategy');
  1695. let userId=''
  1696. if(userInfo){
  1697. this.userId=JSON.parse(userInfo).value.id
  1698. }
  1699. this.handlerInitData(currentStrategy)
  1700. getAction('/ctop/userAllocation/getAccountIdsByUserId',{
  1701. userId:this.userId,
  1702. }).then(res=>{
  1703. console.log(res)
  1704. if(res.success){
  1705. this.accountList=res.result
  1706. }
  1707. })
  1708. },
  1709. filters: {
  1710. toPercentage(val) {
  1711. if(val){
  1712. if(typeof val != 'string'){
  1713. return (val * 100).toFixed(2) + '%'
  1714. }else{
  1715. return val
  1716. }
  1717. }else if(typeof val =='string'){
  1718. return val
  1719. }
  1720. else{
  1721. return 0
  1722. }
  1723. },
  1724. //保留两位小数并且变成货币格式
  1725. decimalsHandle(val){
  1726. if(val && typeof val !='string'){
  1727. if(val>=0){
  1728. val=parseFloat(val).toFixed(2);
  1729. let numberStr = val.toString()
  1730. let str = numberStr.split('.')
  1731. let str0=str[0].split('').reverse();
  1732. for (let i = 0; i < str0.length; i++) {
  1733. if ((i + 1) % 4 === 0) {
  1734. str0.splice(i, 0, ',')
  1735. }
  1736. }
  1737. str0.reverse()
  1738. let handleResult = ''
  1739. for (let j = 0; j < str0.length; j++) {
  1740. handleResult += str0[j]
  1741. }
  1742. return handleResult+'.'+str[1]
  1743. }else{
  1744. val=parseFloat(val).toFixed(2);
  1745. let numberStr = val.toString()
  1746. let str = numberStr.split('.')
  1747. let str0=str[0].substr(1).split('').reverse();
  1748. for (let i = 0; i < str0.length; i++) {
  1749. if ((i + 1) % 4 === 0) {
  1750. str0.splice(i, 0, ',')
  1751. }
  1752. }
  1753. str0.reverse()
  1754. let handleResult = ''
  1755. for (let j = 0; j < str0.length; j++) {
  1756. handleResult += str0[j]
  1757. }
  1758. return '-'+handleResult+'.'+str[1]
  1759. }
  1760. }else if(typeof val =='string'){
  1761. return val
  1762. }
  1763. else{
  1764. return 0
  1765. }
  1766. },
  1767. //变成货币格式
  1768. formatCurrency(val){
  1769. if((val||val==0)&& typeof val !='string'){
  1770. let numberStr = val.toString()
  1771. let str = numberStr.split('').reverse()
  1772. for (let i = 0; i < str.length; i++) {
  1773. if ((i + 1) % 4 === 0) {
  1774. str.splice(i, 0, ',')
  1775. }
  1776. }
  1777. str.reverse()
  1778. let handleResult = ''
  1779. for (let j = 0; j < str.length; j++) {
  1780. handleResult += str[j]
  1781. }
  1782. return handleResult
  1783. }else if(typeof val =='string'){
  1784. return val
  1785. }
  1786. else{
  1787. return '-'
  1788. }
  1789. }
  1790. }
  1791. }
  1792. </script>
  1793. <style lang="scss">
  1794. .autoLaunchReport{
  1795. .ant-tooltip-inner,.ant-tooltip-arrow::before{
  1796. background-color: #fff;
  1797. color: #333;
  1798. }
  1799. .tabBody2{
  1800. .ant-tabs-nav .ant-tabs-tab {
  1801. position: relative;
  1802. display: inline-block;
  1803. -webkit-box-sizing: border-box;
  1804. box-sizing: border-box;
  1805. height: 100%;
  1806. margin: 0 ;
  1807. padding: 10px 20px ;
  1808. text-decoration: none;
  1809. cursor: pointer;
  1810. -webkit-transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  1811. transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  1812. font-size: 15px;
  1813. }
  1814. }
  1815. }
  1816. </style>
  1817. <style lang="scss" scoped>
  1818. .autoLaunchReport {
  1819. background-color: #fff;
  1820. padding: 10px 20px;
  1821. position: relative;
  1822. width: 100%;
  1823. .OptinItem{
  1824. display: inline-block;
  1825. margin-right: 15px;
  1826. margin-top: 15px;
  1827. .ok{
  1828. margin-right: 15px;
  1829. }
  1830. }
  1831. .OptinItem:first-child{
  1832. margin-right: 10px;
  1833. }
  1834. .topOptions{
  1835. padding: 0px 10px 10px;
  1836. margin-top: -9px;
  1837. position: relative;
  1838. .topOpt{
  1839. width: 100%;
  1840. margin-bottom: 10px;
  1841. }
  1842. }
  1843. .optionBtn{
  1844. .searchBtn{
  1845. // margin-right: 10px;
  1846. position: absolute;
  1847. right: 10px;
  1848. bottom: 10px;
  1849. }
  1850. }
  1851. .circul{
  1852. width: 5px;
  1853. height: 5px;
  1854. border-radius: 50%;
  1855. background-color: #32CD32;;
  1856. }
  1857. .show{
  1858. // background-color: #fff;
  1859. width: 100%;
  1860. display: flex;
  1861. justify-content: space-between;
  1862. // padding: 0px 15px;
  1863. box-sizing: border-box;
  1864. .showBox {
  1865. width: 19%;
  1866. box-sizing: border-box;
  1867. padding: 15px 15px;
  1868. background-color: #fff;
  1869. .title {
  1870. color: #999;
  1871. font-size: 16px;
  1872. position: relative;
  1873. text-align: center;
  1874. .infotitle{
  1875. padding: 8px 0;
  1876. }
  1877. span {
  1878. font-size: 1rem;
  1879. // color: #1890ff;
  1880. position: absolute;
  1881. top: 0;
  1882. right: 0;
  1883. cursor: pointer;
  1884. }
  1885. }
  1886. .infoNum{
  1887. padding:10px 0;
  1888. text-align: center;
  1889. font-weight: 600;
  1890. font-size: 20px;
  1891. span{
  1892. font-weight: 600;
  1893. font-size: 16px;
  1894. }
  1895. .red{
  1896. font-size: 20px;
  1897. font-weight: 600;
  1898. color: red;
  1899. }
  1900. .green{
  1901. display: block;
  1902. text-align: center;
  1903. margin-left: 0.2rem;
  1904. font-size: 14px;
  1905. font-weight: 700;
  1906. color: #32CD32;
  1907. .huanbi{
  1908. // color:#999;
  1909. font-weight: 400;
  1910. font-size: 14px;
  1911. }
  1912. }
  1913. }
  1914. }
  1915. }
  1916. .chartBox{
  1917. background-color: #fff;
  1918. margin: 15px 0px;
  1919. padding: 2px 10px 30px;
  1920. .chartBody{
  1921. margin-top: 20px;
  1922. display: flex;
  1923. justify-content: space-between;
  1924. }
  1925. }
  1926. .tableBox{
  1927. background-color: #fff;
  1928. margin: 15px 0px;
  1929. padding: 15px 0px;
  1930. .tableTop{
  1931. position: relative;
  1932. padding: 20px 0;
  1933. border-top: 1px solid #e0e0e0;
  1934. font-size: 24px;
  1935. color: black;
  1936. .selectTime{
  1937. margin-right: 20px;
  1938. }
  1939. .add{
  1940. position: absolute;
  1941. top: 0;
  1942. right: 0;
  1943. }
  1944. }
  1945. .tableOpt{
  1946. margin-bottom: 20px;
  1947. }
  1948. }
  1949. }
  1950. </style>