index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761
  1. <template>
  2. <div class="dashboard-container" ref="dashboardContainerRef" v-loading="isLoading">
  3. <!-- 顶部的地区和店铺筛选 -->
  4. <div class="total-search">
  5. <div class="wrapper">
  6. <el-form ref="topSearchFormRef" inline :model="topSearchForm">
  7. <el-form-item label="代理商">
  8. <el-select :popper-append-to-body="false" @change="handleChangeTopSelect('agents')" v-model="topSearchForm.agents" class="select" placeholder="请选择代理商">
  9. <el-option
  10. style="height: auto !important; line-height: 1.1; padding: 5px 15px; margin: 2px 0"
  11. v-for="(item, index) in selectOptions.agents"
  12. :key="`${item.shopAddress}:${index}`"
  13. :label="item.shopName"
  14. :value="`${item.shopAddress}:${index}`"
  15. >
  16. <div style="font-size: 14px; font-weight: bold; margin-bottom: 7px; color: black">{{ item.shopName }}</div>
  17. <div style="height: auto !important; line-height: 1.1; margin: 2px 0">{{ item.shopAddress }}</div>
  18. </el-option>
  19. </el-select>
  20. </el-form-item>
  21. <el-form-item label="加盟商">
  22. <el-select @change="handleChangeTopSelect('franchise')" v-model="topSearchForm.franchise" class="select" placeholder="请选择加盟商">
  23. <el-option
  24. style="height: auto !important; line-height: 1.1; padding: 5px 15px; margin: 2px 0"
  25. v-for="(item, index) in selectOptions.franchise"
  26. :key="`${item.shopAddress}:${index}`"
  27. :label="item.shopName"
  28. :value="`${item.shopAddress}:${index}`"
  29. >
  30. <div style="font-size: 14px; font-weight: bold; margin-bottom: 7px; color: black">{{ item.shopName }}</div>
  31. <div style="height: auto !important; line-height: 1.1; margin: 2px 0">{{ item.shopAddress }}</div>
  32. </el-option>
  33. </el-select>
  34. </el-form-item>
  35. <el-form-item label="商家">
  36. <el-select @change="handleChangeTopSelect('shop')" class="select" v-model="topSearchForm.shop" placeholder="请选择商家">
  37. <el-option v-for="(item, index) in selectOptions.shopList" :key="`${item.shopName}:${index}`" :label="item.shopName" :value="`${item.shopName}:${index}`"></el-option>
  38. </el-select>
  39. </el-form-item>
  40. <el-button class="btn" type="primary" size="default" @click="getHomeData">筛选</el-button>
  41. <el-button class="btn" size="default" @click="handleResetForm">重置</el-button>
  42. </el-form>
  43. </div>
  44. </div>
  45. <!-- 统计区域 -->
  46. <!-- <StatisticsPanel :filters="['address']" title="统计区" @change="handleStatisticsAreaFilterChnage"> -->
  47. <StatisticsPanel title="统计区" @change="handleStatisticsAreaFilterChnage">
  48. <div ref="statisticalAreaRef" class="statistics-container">
  49. <StatisticsSection
  50. @change="handleFilterChange"
  51. class="statistics-container-item"
  52. style="flex-basis: calc((100% - 32px) / 3)"
  53. :style="{
  54. margin: [1, 4].includes(index) ? '0 16px' : '',
  55. 'margin-bottom': index <= 2 ? '16px' : 0
  56. }"
  57. v-for="(item, index) in statisticalArea"
  58. :key="item.label + index"
  59. :meta="item"
  60. :itemData="statisticalRegionData[item.itemData]"
  61. ></StatisticsSection>
  62. </div>
  63. </StatisticsPanel>
  64. <!-- 消费画像,财务统计 -->
  65. <div class="section">
  66. <StatisticsPanel class="consumer-profile-wrapper" title="消费画像">
  67. <!-- <template #button>
  68. <el-button type="text">
  69. 消费画像
  70. <i class="el-icon-arrow-right el-icon--right"></i>
  71. </el-button>
  72. </template> -->
  73. <div class="consumer-profile-container">
  74. <TrendPanel class="item" v-for="item in consumerProfile" :key="item.label" :label="item.label" :value="memberConsumptionStatistics[item.field]" :style="item.itemStyles"></TrendPanel>
  75. </div>
  76. </StatisticsPanel>
  77. <!-- <StatisticsPanel class="financial-statistics-wrapper" title="财务统计" :filters="['date']" @change="handleFinancialStatisticsFilterChange"> -->
  78. <StatisticsPanel class="financial-statistics-wrapper" title="财务统计" @change="handleFinancialStatisticsFilterChange">
  79. <div class="financial-statistics-container">
  80. <TrendPanel class="item" v-for="item in financialStatistics" :key="item.label" :label="item.label" :value="financeStatistics[item.field]" :style="item.itemStyles"></TrendPanel>
  81. </div>
  82. </StatisticsPanel>
  83. </div>
  84. <!-- 图表区 -->
  85. <div class="charts-container">
  86. <div class="left">
  87. <!-- <StatisticsPanel :filters="['address', 'sourceChannel']" title="分析图" @change="handleAnalysisChartFilterChange"> -->
  88. <StatisticsPanel title="分析图" @change="handleAnalysisChartFilterChange">
  89. <template #button>
  90. <button @click="currentAnalysisTab = 1" :class="{ active: currentAnalysisTab === 1 }" class="analysis-chart-btn">交易额</button>
  91. <button @click="currentAnalysisTab = 2" :class="{ active: currentAnalysisTab === 2 }" class="analysis-chart-btn">订单量</button>
  92. <button @click="currentAnalysisTab = 3" :class="{ active: currentAnalysisTab === 3 }" class="analysis-chart-btn">会员量</button>
  93. </template>
  94. <AnalysisChart ref="analysisChartRef" :chartData="diagramsData"></AnalysisChart>
  95. </StatisticsPanel>
  96. <div class="left-footer">
  97. <!-- <StatisticsPanel style="width: 50%" :filters="['address']" title="物流统计" @change="handlelLogisticsStatisticsChartFilterChange"> -->
  98. <StatisticsPanel style="width: 50%" title="物流统计" @change="handlelLogisticsStatisticsChartFilterChange">
  99. <LogisticsStatisticsChart :chartData="logisticsStatistics" ref="lLogisticsStatisticsChartRef"></LogisticsStatisticsChart>
  100. </StatisticsPanel>
  101. <StatisticsPanel style="width: 50%" title="商品排名">
  102. <template #button>
  103. <div class="goods-ranking-btn-wrapper">
  104. <button @click="currentGoodsRankingTab = 1" :class="{ active: currentGoodsRankingTab === 1 }" class="analysis-chart-btn">社区</button>
  105. <button @click="currentGoodsRankingTab = 2" :class="{ active: currentGoodsRankingTab === 2 }" class="analysis-chart-btn">商圈</button>
  106. <button @click="currentGoodsRankingTab = 3" :class="{ active: currentGoodsRankingTab === 3 }" class="analysis-chart-btn">商城</button>
  107. </div>
  108. </template>
  109. <GoodsRankingChart :chartData="goodsRankingData" ref="goodsRankingChartRef"></GoodsRankingChart>
  110. </StatisticsPanel>
  111. </div>
  112. </div>
  113. <div class="right">
  114. <!-- <StatisticsPanel :filters="['address']" title="网点统计" style="width: 100%; height: 860px; display: flex; flex-direction: column" @change="handleSiteFilterChange"> -->
  115. <StatisticsPanel title="网点统计" style="width: 100%; height: 860px; display: flex; flex-direction: column" @change="handleSiteFilterChange">
  116. <div class="data-statistics">
  117. <StatisticsItem class="item" v-for="item in sitedatastatistics" :key="item.label" :title="item.label" :value="dotStatistics[item.field] || 0" :style="item.itemStyles"></StatisticsItem>
  118. </div>
  119. <div class="map-pie-container">
  120. <SiteMapChart :chartData="nationalMapList" class="map-chart" ref="siteMapChartRef"></SiteMapChart>
  121. <SitePieChart :chartData="dotStatistics" class="pie-chart" ref="sitePieChartRef"></SitePieChart>
  122. </div>
  123. </StatisticsPanel>
  124. </div>
  125. </div>
  126. <PAndLWarning></PAndLWarning>
  127. <!-- 设置盈亏红线 -->
  128. <SetPLLine></SetPLLine>
  129. </div>
  130. </template>
  131. <script>
  132. import * as _ from 'lodash'
  133. import axios from 'axios'
  134. import { getHomeStatisticsData, getHomeStatisticsShopList } from '@/api/home'
  135. import { getDefaultBarData } from './utils/echarts'
  136. import StatisticsPanel from './componets/StatisticsPanel.vue'
  137. import AddresSelect from './componets/AddresSelect.vue'
  138. import DateSelect from './componets/DateSelect.vue'
  139. import StatisticsSection from './componets/StatisticsSection'
  140. import TrendPanel from './componets/TrendPanel.vue'
  141. import AnalysisChart from './componets/AnalysisChart.vue'
  142. import LogisticsStatisticsChart from './componets/LogisticsStatisticsChart.vue'
  143. import GoodsRankingChart from './componets/GoodsRankingChart.vue'
  144. import StatisticsItem from './componets/StatisticsItem.vue'
  145. import SiteMapChart from './componets/SiteMapChart.vue'
  146. import SitePieChart from './componets/SitePieChart.vue'
  147. import PAndLWarning from './componets/PAndLWarning.vue'
  148. import SetPLLine from './componets/SetPLLine.vue'
  149. import { statisticalArea, consumerProfile, financialStatistics, sitedatastatistics, searchType } from './data/dashboard.js'
  150. // api docs: https://www.showdoc.com.cn/2275703555064913/11472635245710770
  151. export default {
  152. components: {
  153. SetPLLine,
  154. PAndLWarning,
  155. StatisticsPanel,
  156. AddresSelect,
  157. StatisticsSection,
  158. TrendPanel,
  159. AnalysisChart,
  160. LogisticsStatisticsChart,
  161. GoodsRankingChart,
  162. StatisticsItem,
  163. SiteMapChart,
  164. SitePieChart,
  165. DateSelect
  166. },
  167. data() {
  168. return {
  169. observer: null,
  170. isLoading: false,
  171. statisticalArea: Object.freeze(statisticalArea),
  172. consumerProfile: Object.freeze(consumerProfile),
  173. financialStatistics: Object.freeze(financialStatistics),
  174. sitedatastatistics: Object.freeze(sitedatastatistics),
  175. totalSearch: {
  176. selectAddress: 1,
  177. selectShop: 1
  178. },
  179. topSearchForm: {
  180. agents: undefined,
  181. shop: undefined,
  182. franchise: undefined,
  183. type: undefined
  184. },
  185. dymicStyle: {
  186. siteContainerHeight: '891px',
  187. statisticalAreaItemWidth: '32%'
  188. },
  189. selectOptions: {
  190. addressSelectOptions: [
  191. { label: '佛山市', value: 1 }
  192. // { label: '乌鲁木齐市', value: 2 }
  193. ],
  194. shopListOptions: [
  195. { label: '全部', value: 1 }
  196. // { label: '文智瑜沙雕皮业', value: 2 }
  197. ],
  198. dateOptions: [
  199. // { label: '今天', value: 1 },
  200. // { label: '近一周', value: 2 },
  201. // { label: '近一月', value: 3 },
  202. // { label: '近一年', value: 4 }
  203. ],
  204. sourceChannelOptions: [
  205. // { label: '社区', value: 1 },
  206. // { label: '商圈', value: 2 },
  207. // { label: '商城', value: 3 }
  208. ],
  209. shopList: [], // 商家列表
  210. agents: [], // 代理商列表
  211. franchise: [] // 加盟商列表
  212. },
  213. // 分析图相关
  214. currentAnalysisTab: 1, // 交易额1,订单量2,会员量3
  215. // 销售排名
  216. currentGoodsRankingTab: 1, // 社区1,商圈2,商城3
  217. /* 数据区域 */
  218. statisticalRegionData: {
  219. memberStatistics: {
  220. // 会员统计
  221. memberTotal: 0, //会员总数
  222. normalMemberTotal: 0, // 普通会员数量
  223. headquarterTotal: 0, // 团长数量
  224. partnerTotal: 0, // 合伙人数量
  225. todayMember: 0 // 今日新增会员数
  226. },
  227. orderStatistics: {
  228. // 订单统计
  229. orderTotal: 0, // 订单总数
  230. todayOrderTotal: 0, // 今日订单量
  231. todayFinishOrderTotal: 0 // 今日完成订单
  232. },
  233. platformTransactionDataStatistics: {
  234. // 平台交易数据统计
  235. totalTransactionAmount: 0, // 总交易额
  236. todayTransactionAmount: 0, // 今日交易额
  237. totalExpense: 0, // 总支出
  238. totalIncome: 0 // 总输入
  239. },
  240. voucherStatistics: {
  241. // 平台代金券统计
  242. voucherTotal: 0, // 总库存
  243. voucherStock: 0, // 新增库存
  244. todayVoucherUseTotal: 0, // 今日使用量
  245. todayRealAmount: 0, // 今日使用量
  246. todayRechargeTotal: 0 // 今日充值量
  247. },
  248. commissionStatistics: {
  249. // 佣金统计
  250. totalIncome: 0, // 累计收入佣金
  251. todayTotalIncome: 0, // 今日总收入佣金
  252. headquarterCommission: 0, // 团长佣金分配总额
  253. partnerCommission: 0, // 合伙人佣金分配总额
  254. joinCommission: 0, // 加盟商佣金分配总额
  255. agentCommission: 0 // 代理商佣金分配总额
  256. },
  257. consumptionStatistics: {
  258. // 消费金统计
  259. totalIncome: 0, // 消费金总收入
  260. totalConsumption: 0, // 消费金总支付
  261. todayConsumptionOrderAmount: 0, //今日消费金支出订单金额
  262. todayConsumptionOrderTotal: 0 //今日消费金支付订单数
  263. }
  264. },
  265. // 消费画像
  266. memberConsumptionStatistics: {
  267. memberConsumptionTotal: 0, // 会员消费总额
  268. memberOrderTotal: 0, // 会员总下单次数
  269. memberAfterSaleTotal: 0 // 会员总售后次数
  270. },
  271. // 财务统计
  272. financeStatistics: {
  273. receivableAmount: 0, // 应收金额
  274. discountAmount: 0, // 优免金额
  275. realAmount: 0, // 实收金额
  276. customerFlow: 0, // 客流量
  277. profitLossRate: 0 // 盈亏达成率
  278. },
  279. // 分析图数据
  280. analysisChartStatistics: {
  281. memberQuantity: getDefaultBarData(), // 会员量
  282. orderQuantity: getDefaultBarData(), // 订单量
  283. transactionAmount: getDefaultBarData() // 交易额
  284. },
  285. // 商品排名
  286. goodsRanking: {
  287. community: [],
  288. shop: [],
  289. businessDistrict: []
  290. },
  291. // 物流统计
  292. logisticsStatistics: {
  293. totalAmount: 0,
  294. totalQuantity: 0
  295. },
  296. // 网点统计
  297. dotStatistics: {
  298. masterWorkerQuantity: 0 // 师傅数量
  299. },
  300. nationalMapList: []
  301. }
  302. },
  303. provide() {
  304. return {
  305. addressList: this.selectOptions.addressSelectOptions,
  306. dateList: this.selectOptions.dateOptions,
  307. sourceChannelList: this.selectOptions.sourceChannelOptions
  308. }
  309. },
  310. created() {
  311. this.getFranchiseesOrAgents(1)
  312. this.getFranchiseesOrAgents(2)
  313. this.getShopList()
  314. },
  315. mounted() {
  316. this.getHomeData()
  317. this.observeContainerSize()
  318. },
  319. methods: {
  320. // 获取代理商或者加盟商列表 1=代理商 2=加盟商
  321. async getFranchiseesOrAgents(type = 1) {
  322. try {
  323. const res = await axios.get(`${process.env.VUE_APP_LAOA_BASE_API}/api/hz/shop/third/getShopsByType`, {
  324. params: { type, shopName: '' }
  325. })
  326. const target = type === 1 ? 'agents' : 'franchise'
  327. this.selectOptions[target] = res.status === 200 && res.data.statusCode === 20000 ? res.data.data : []
  328. } catch (error) {
  329. console.error('Error fetching data:', error)
  330. const target = type === 1 ? 'agents' : 'franchise'
  331. this.selectOptions[target] = []
  332. }
  333. },
  334. // 获取商家列表
  335. async getShopList() {
  336. try {
  337. const res = await getHomeStatisticsShopList()
  338. this.selectOptions.shopList = res.data
  339. } catch (error) {
  340. this.selectOptions.shopList = []
  341. }
  342. },
  343. // 一次性获取首页数据
  344. async getHomeData() {
  345. this.isLoading = true
  346. try {
  347. const type = this.topSearchForm.type
  348. let address = undefined
  349. if (type) {
  350. address = this.topSearchForm[searchType.find((item) => item.value === type).key]
  351. if (address) {
  352. address = address.split(':')[0]
  353. }
  354. }
  355. const res = await getHomeStatisticsData({
  356. type: type || null,
  357. address
  358. })
  359. const { data } = res
  360. Object.assign(this.statisticalRegionData.memberStatistics, data.memberStatistics, data.memberStatistics.memberIncreaseRate)
  361. Object.assign(this.statisticalRegionData.orderStatistics, data.orderStatistics)
  362. Object.assign(this.statisticalRegionData.platformTransactionDataStatistics, data.platformTransactionDataStatistics)
  363. Object.assign(this.statisticalRegionData.voucherStatistics, data.voucherStatistics)
  364. Object.assign(this.statisticalRegionData.commissionStatistics, data.commissionStatistics)
  365. Object.assign(this.statisticalRegionData.consumptionStatistics, data.consumptionStatistics)
  366. Object.assign(this.memberConsumptionStatistics, data.memberConsumptionStatistics)
  367. Object.assign(this.analysisChartStatistics, data.analysisChartStatistics)
  368. Object.assign(this.logisticsStatistics, data.logisticsStatistics)
  369. // 商品排名
  370. const { mallProductStatisticsTotalList, communityProductStatisticsTotalList, businessDistrictProductStatisticsTotalList } = data.goodsSortStatistics
  371. this.goodsRanking.community = communityProductStatisticsTotalList
  372. this.goodsRanking.shop = mallProductStatisticsTotalList
  373. this.goodsRanking.businessDistrict = businessDistrictProductStatisticsTotalList
  374. // 网点统计
  375. this.dotStatistics = {
  376. ...data.dotStatistics,
  377. ...this.statisticalRegionData.memberStatistics
  378. }
  379. // 地图数据
  380. this.nationalMapList = data.nationalMapList
  381. } catch (error) {
  382. } finally {
  383. this.isLoading = false
  384. }
  385. },
  386. // 最上面的搜索区域发生变化
  387. handleChangeTotalSearchAddress(addressInfo) {
  388. const { label, value } = addressInfo
  389. this.totalSearch.selectAddress = value
  390. },
  391. // 监听容器变化重新渲染图标
  392. observeContainerSize() {
  393. const _this = this
  394. this.observer = new ResizeObserver(
  395. _.debounce(() => {
  396. _this.$refs.analysisChartRef.resize()
  397. _this.$refs.lLogisticsStatisticsChartRef.resize()
  398. _this.$refs.goodsRankingChartRef.resize()
  399. _this.$refs.siteMapChartRef.resize()
  400. _this.$refs.sitePieChartRef.resize()
  401. }, 500)
  402. )
  403. this.observer.observe(this.$refs.dashboardContainerRef)
  404. },
  405. handleResetForm() {
  406. this.topSearchForm = {
  407. agents: undefined,
  408. shop: undefined,
  409. franchise: undefined,
  410. type: undefined
  411. }
  412. this.getHomeData()
  413. },
  414. // 统计区域的筛选发生变化
  415. handleStatisticsAreaFilterChnage(form) {
  416. console.log('统计区域的筛选发生变化', form)
  417. },
  418. // 财务统计筛选发生变化
  419. handleFinancialStatisticsFilterChange(form) {
  420. console.log('财务统计区域筛选发生变化', form)
  421. },
  422. // 分析图区域筛选发生变化
  423. handleAnalysisChartFilterChange(form) {
  424. console.log('分析图区域筛选发生变化', form)
  425. },
  426. // 物流统计区域筛选发生变化
  427. handlelLogisticsStatisticsChartFilterChange(form) {
  428. console.log('物流统计区域筛选发生变化', form)
  429. },
  430. // 网点统计筛选区域发生变化
  431. handleSiteFilterChange(form) {
  432. console.log('网点统计筛选区域发生变化', form)
  433. },
  434. // 二级区域的筛选发生变化
  435. handleFilterChange(label, data) {
  436. console.log('二级区域发生变化了', label, data)
  437. },
  438. handleChangeTopSelect(currentKey) {
  439. for (const key in this.topSearchForm) {
  440. if (Object.hasOwnProperty.call(this.topSearchForm, key) && currentKey !== key) {
  441. this.topSearchForm[key] = undefined
  442. }
  443. }
  444. this.topSearchForm.type = searchType.find((item) => item.key === currentKey).value || null
  445. }
  446. },
  447. computed: {
  448. // 分析图数据
  449. diagramsData() {
  450. return this.analysisChartStatistics[{ 1: 'transactionAmount', 2: 'orderQuantity', 3: 'memberQuantity' }[this.currentAnalysisTab]]
  451. },
  452. // 商品排名数据
  453. goodsRankingData() {
  454. return this.goodsRanking[{ 1: 'community', 2: 'businessDistrict', 3: 'shop' }[this.currentGoodsRankingTab]]
  455. }
  456. },
  457. beforeDestroy() {
  458. if (this.observer) {
  459. this.observer.unobserve(this.$refs.dashboardContainerRef)
  460. this.observer = null
  461. }
  462. }
  463. }
  464. </script>
  465. <style lang="scss" scoped>
  466. .statistics-container {
  467. display: flex;
  468. flex-wrap: wrap;
  469. justify-content: space-between;
  470. @media (max-width: 1540px) {
  471. &-item {
  472. flex-basis: calc((100% - 16px) / 2) !important;
  473. margin: 0 16px 16px 0 !important;
  474. &:nth-child(2n) {
  475. margin-right: 0 !important;
  476. }
  477. }
  478. }
  479. @media (max-width: 1340px) {
  480. display: block;
  481. &-item {
  482. margin: 0 0 16px !important;
  483. }
  484. }
  485. }
  486. .section {
  487. display: flex;
  488. .consumer-profile-wrapper {
  489. flex: 325;
  490. margin-right: 24px;
  491. }
  492. .financial-statistics-wrapper {
  493. flex: 481;
  494. }
  495. .consumer-profile-container,
  496. .financial-statistics-container {
  497. display: flex;
  498. justify-content: space-between;
  499. }
  500. @media (max-width: 1390px) {
  501. display: block;
  502. .consumer-profile-wrapper,
  503. .financial-statistics-wrapper {
  504. width: 100%;
  505. }
  506. .financial-statistics-container {
  507. display: flex;
  508. .item {
  509. flex: 1;
  510. }
  511. }
  512. }
  513. @media (max-width: 730px) {
  514. .financial-statistics-container {
  515. display: flex;
  516. flex-wrap: wrap;
  517. .item {
  518. flex: 0 0 48%;
  519. margin-right: 0 !important;
  520. margin-bottom: 20px !important;
  521. }
  522. }
  523. }
  524. @media (max-width: 570px) {
  525. .consumer-profile-container {
  526. display: flex;
  527. flex-wrap: wrap;
  528. .item {
  529. flex: 0 0 48%;
  530. margin-right: 0 !important;
  531. margin-bottom: 20px !important;
  532. }
  533. }
  534. }
  535. }
  536. .dashboard-container {
  537. width: 100%;
  538. height: calc(100vh - 50px);
  539. background-color: #f4f7fc;
  540. padding: 24px;
  541. box-sizing: border-box;
  542. overflow: auto;
  543. .total-search {
  544. min-height: 72px;
  545. background-color: #fff;
  546. padding: 16px 24px;
  547. box-sizing: border-box;
  548. .wrapper {
  549. ::v-deep .el-form-item__label {
  550. font-size: 16px;
  551. font-weight: normal;
  552. padding-right: 16px;
  553. }
  554. .el-form-item {
  555. margin-right: 24px;
  556. }
  557. .select {
  558. border: 1px solid #dcdfe6;
  559. border-radius: 4px;
  560. }
  561. .btn {
  562. height: 40px;
  563. width: 96px;
  564. font-size: 16px;
  565. font-weight: 500;
  566. &.el-button--default {
  567. border: 1px solid #dcdfe6;
  568. }
  569. &.el-button--primary {
  570. background-color: #3a68f2;
  571. border: none;
  572. &:hover {
  573. background-color: rgba($color: #3a68f2, $alpha: 0.8);
  574. }
  575. }
  576. }
  577. }
  578. }
  579. .charts-container {
  580. display: flex;
  581. justify-content: space-between;
  582. width: 100%;
  583. @media (max-width: 1373px) {
  584. display: block;
  585. .left,
  586. .right {
  587. width: 100% !important;
  588. }
  589. }
  590. @media (max-width: 875px) {
  591. .left-footer {
  592. display: block !important;
  593. ::v-deep .statistics-panel-container {
  594. width: 100% !important;
  595. }
  596. }
  597. }
  598. .left {
  599. width: 60%;
  600. margin-right: 24px;
  601. .analysis-chart-btn {
  602. font-size: 14px;
  603. color: #424e66;
  604. line-height: 1.5;
  605. padding: 3px 12px;
  606. cursor: pointer;
  607. margin-left: 16px;
  608. background-color: transparent;
  609. &.active {
  610. color: #0519d4;
  611. background-color: #f1f4ff;
  612. border-radius: 4px;
  613. }
  614. @media (max-width: 1540px) {
  615. font-size: 12px;
  616. padding: 2px 8px;
  617. margin-right: 0;
  618. }
  619. }
  620. .left-footer {
  621. display: flex;
  622. }
  623. }
  624. .right {
  625. /* flex: 1; */
  626. width: 40%;
  627. .data-statistics {
  628. display: flex;
  629. align-items: center;
  630. .item {
  631. @media (max-width: 1540px) {
  632. margin-right: 30px !important;
  633. }
  634. @media (max-width: 1317px) {
  635. margin-right: 51px !important;
  636. }
  637. }
  638. }
  639. .map-pie-container {
  640. flex: 1;
  641. display: flex;
  642. align-items: center;
  643. flex-direction: column;
  644. .map-chart {
  645. flex: 1;
  646. width: 100%;
  647. }
  648. .pie-chart {
  649. width: 100%;
  650. }
  651. }
  652. }
  653. }
  654. }
  655. .memberIncreaseRate-tooltip {
  656. .item {
  657. display: flex;
  658. align-items: center;
  659. line-height: 1.5;
  660. font-size: 14px;
  661. div {
  662. &:nth-child(2) {
  663. font-weight: bold;
  664. color: #f40;
  665. }
  666. }
  667. }
  668. }
  669. </style>