DashboardView.vue 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409
  1. <script lang="ts" setup>
  2. import { ref, onMounted, reactive } from 'vue'
  3. import QuickCalendarDate from '@/components/DateRange/src/components/QuickCalendarDate.vue'
  4. import { VueDraggable } from 'vue-draggable-plus'
  5. import PieChart from './components/PieChart.vue'
  6. import SellerChart from './components/SellerChart.vue'
  7. import BarChart from './components/BarChart.vue'
  8. import RecentStatus from './components/RecentStatus.vue'
  9. import ScoringSystem from './components/ScoringSystem.vue'
  10. import TopMap from './components/TopMap.vue'
  11. import DashFilters from './components/DashFiters.vue'
  12. import { useRouter } from 'vue-router'
  13. import { ElMessage } from 'element-plus'
  14. const router = useRouter()
  15. const activeName = ref('first')
  16. const SaveVisible = ref(false)
  17. // 可拖拽模块的列表
  18. interface ManagementItem {
  19. title: string
  20. switchValue: boolean
  21. text: string
  22. id: number
  23. title1: string
  24. title2: string
  25. }
  26. const Management = ref<ManagementItem[]>([])
  27. const changeCancel = (id: any) => {
  28. Management.value[id - 1].switchValue = false
  29. }
  30. //RecentStatusList
  31. const RecentStatusList = ref()
  32. const pageInfo = ref({ pageNo: 1, pageSize: 10, total: 10000 })
  33. const isShowtitle1 = ref(true)
  34. // 点击tab
  35. const handleTabClick = (tab: any) => {
  36. if (tab.props.name == 'first') {
  37. isShowtitle1.value = true
  38. } else {
  39. isShowtitle1.value = false
  40. }
  41. GetTop10ODEcharts(dashboardObj.Top10faultData)
  42. }
  43. const KPIDefaulteData = ref()
  44. const PendingDefaulteData = ref()
  45. const RecentDefaulteData = ref()
  46. const ETDDefaulteData = ref()
  47. const ContainerefaultData = ref()
  48. const Top10DefaultData = ref()
  49. const Co2OriginDefaultData = ref()
  50. const Co2DestinationDefaultData = ref()
  51. const RevenueDefaultData = ref()
  52. // 获取首页数据
  53. let dashboardObj: any = {}
  54. const GetDashboardData = () => {
  55. $api
  56. .getDashboardFilters({})
  57. .then((res: any) => {
  58. if (res.code == 200) {
  59. //给默认筛选条件赋值
  60. KPIDefaulteData.value = res.data.KPIDefaulteData
  61. dashboardObj.KPIDefaulteData = res.data.KPIDefaulteData
  62. PendingDefaulteData.value = res.data.PendingDefaultData
  63. dashboardObj.PendingDefaultData = res.data.PendingDefaultData
  64. RecentDefaulteData.value = res.data.RecentDefaultData
  65. dashboardObj.RecentDefaultData = res.data.RecentDefaultData
  66. ETDDefaulteData.value = res.data.ETDDefaultData
  67. dashboardObj.ETDDefaultData = res.data.ETDDefaultData
  68. ContainerefaultData.value = res.data.ContainerefaultData
  69. dashboardObj.ContainerefaultData = res.data.ContainerefaultData
  70. Top10DefaultData.value = res.data.Top10faultData
  71. dashboardObj.Top10faultData = res.data.Top10faultData
  72. Co2OriginDefaultData.value = res.data.OriginCo2Top10faultData
  73. dashboardObj.OriginCo2Top10faultData = res.data.OriginCo2Top10faultData
  74. Co2DestinationDefaultData.value = res.data.DestinationCo2Top10faultData
  75. dashboardObj.DestinationCo2Top10faultData = res.data.DestinationCo2Top10faultData
  76. RevenueDefaultData.value = res.data.RevenueDefaultData
  77. dashboardObj.RevenueDefaultData = res.data.RevenueDefaultData
  78. }
  79. })
  80. .finally(() => {
  81. nextTick(() => {
  82. GetKpiData(KPIDefaulteData.value)
  83. GetPendingEcharts(PendingDefaulteData.value)
  84. getTableData(false, RecentDefaulteData.value)
  85. GetETDEcharts(ETDDefaulteData.value)
  86. GetContainerCountEcharts(ContainerefaultData.value)
  87. GetTop10ODEcharts(Top10DefaultData.value)
  88. GetCo2EmissionEcharts(Co2OriginDefaultData.value)
  89. GetCo2DestinationEcharts(Co2DestinationDefaultData.value)
  90. GetRevenueEcharts(RevenueDefaultData.value)
  91. })
  92. })
  93. }
  94. // 获取表单数据
  95. const getTableData = (isPage: any, val: any) => {
  96. dashboardObj.RecentDefaultData = val
  97. const rc = isPage ? pageInfo.value.total : -1
  98. $api
  99. .GetDashboardData({
  100. cp: pageInfo.value.pageNo,
  101. ps: pageInfo.value.pageSize,
  102. rc,
  103. ...val
  104. })
  105. .then((res: any) => {
  106. if (res.code === 200) {
  107. pageInfo.value.total = Number(res.data.rc)
  108. Management.value = res.data.Management
  109. RecentStatusList.value = res.data.searchData
  110. }
  111. })
  112. }
  113. const KPIobj = reactive({
  114. ETD_Title: '',
  115. ETDList: [],
  116. ETD_Radius: [],
  117. download_name: ''
  118. })
  119. const Arrivalobj = reactive({
  120. ETD_Title: '',
  121. ETDList: [],
  122. ETD_Radius: [],
  123. download_name: ''
  124. })
  125. const KPILoading = ref(true)
  126. const KPIArrivalLoading = ref(true)
  127. //查询KPI
  128. const GetKpiData = (val: any) => {
  129. dashboardObj.KPIDefaulteData = val
  130. // 获取KPI Departure图表数据
  131. $api
  132. .GetKPIEcharts({
  133. r_type: 'atd_r4',
  134. ...val
  135. })
  136. .then((res: any) => {
  137. if (res.code === 200) {
  138. KPIobj.ETD_Title = `{a|${res.data.title1}}{b|${res.data.title2}}`
  139. KPIobj.ETDList = res.data.ETDList
  140. KPIobj.ETD_Radius = res.data.ETD_Radius
  141. KPIobj.download_name = res.data.download_name
  142. }
  143. })
  144. .finally(() => {
  145. KPILoading.value = false
  146. })
  147. // 获取KPI Arrival图表数据
  148. $api
  149. .GetKPIEcharts({
  150. r_type: 'ata_r3',
  151. ...val
  152. })
  153. .then((res: any) => {
  154. if (res.code === 200) {
  155. Arrivalobj.ETD_Title = `{a|${res.data.title1}}{b|${res.data.title2}}`
  156. Arrivalobj.ETDList = res.data.ETDList
  157. Arrivalobj.ETD_Radius = res.data.ETD_Radius
  158. Arrivalobj.download_name = res.data.download_name
  159. }
  160. })
  161. .finally(() => {
  162. KPIArrivalLoading.value = false
  163. })
  164. }
  165. const Pendingobj = reactive({
  166. ETD_Title: '',
  167. ETDList: [],
  168. ETD_Radius: [],
  169. download_name: ''
  170. })
  171. const PendingArrivalobj = reactive({
  172. ETD_Title: '',
  173. ETDList: [],
  174. ETD_Radius: [],
  175. download_name: ''
  176. })
  177. const PendingLoading = ref(true)
  178. const PendingArrivalLoading = ref(true)
  179. // 查询Pending
  180. const GetPendingEcharts = (val: any) => {
  181. dashboardObj.PendingDefaultData = val
  182. // 获取Pending Departure图表数据
  183. $api
  184. .GetPendingEcharts({
  185. r_type: 'r4',
  186. ...val
  187. })
  188. .then((res: any) => {
  189. if (res.code === 200) {
  190. Pendingobj.ETD_Title = `{a|${res.data.title1}}{b|${res.data.title2}}`
  191. Pendingobj.ETDList = res.data.ETDList
  192. Pendingobj.ETD_Radius = res.data.ETD_Radius
  193. Pendingobj.download_name = res.data.download_name
  194. }
  195. })
  196. .finally(() => {
  197. PendingLoading.value = false
  198. })
  199. // 获取Pending Arrival图表数据
  200. $api
  201. .GetPendingEcharts({
  202. r_type: 'r3',
  203. ...val
  204. })
  205. .then((res: any) => {
  206. if (res.code === 200) {
  207. PendingArrivalobj.ETD_Title = `{a|${res.data.title1}}{b|${res.data.title2}}`
  208. PendingArrivalobj.ETDList = res.data.ETDList
  209. PendingArrivalobj.ETD_Radius = res.data.ETD_Radius
  210. PendingArrivalobj.download_name = res.data.download_name
  211. }
  212. })
  213. .finally(() => {
  214. PendingArrivalLoading.value = false
  215. })
  216. }
  217. const ETDobj = reactive({
  218. ETD_Title: '',
  219. ETDList: [],
  220. ETD_Radius: [],
  221. download_name: ''
  222. })
  223. const ETDLoading = ref(true)
  224. // 获取ETD/ETA 图表数据
  225. const GetETDEcharts = (val: any) => {
  226. dashboardObj.ETDDefaultData = val
  227. $api
  228. .GetETDEcharts({
  229. ...val
  230. })
  231. .then((res: any) => {
  232. if (res.code === 200) {
  233. ETDobj.ETD_Title = `{a|${res.data.ETD_Title}}`
  234. ETDobj.ETDList = res.data.ETDList
  235. ETDobj.ETD_Radius = res.data.ETD_Radius
  236. ETDobj.download_name = res.data.download_name
  237. }
  238. })
  239. .finally(() => {
  240. ETDLoading.value = false
  241. })
  242. }
  243. // 获取ContainerCount
  244. const containerObj = reactive({
  245. bar_title: '',
  246. barList: [],
  247. barSeries: [],
  248. Max: 0,
  249. interval: 0,
  250. download_name: ''
  251. })
  252. const containerLoading = ref(true)
  253. const GetContainerCountEcharts = (val: any) => {
  254. dashboardObj.ContainerefaultData = val
  255. $api
  256. .GetContainerCountEcharts({
  257. ...val
  258. })
  259. .then((res: any) => {
  260. if (res.code === 200) {
  261. containerObj.bar_title = res.data.ContainerCount_Title
  262. containerObj.barList = res.data.ContainerCountList
  263. containerObj.barSeries = res.data.ContainerCounSeries
  264. containerObj.Max = res.data.Max
  265. containerObj.interval = res.data.interval
  266. containerObj.download_name = res.data.download_name
  267. }
  268. })
  269. .finally(() => {
  270. containerLoading.value = false
  271. })
  272. }
  273. const topdestinationinType = ref()
  274. const toporiginType = ref()
  275. //获取Top10 Origin/Destination
  276. const Top10Obj = reactive({
  277. OriginData: [],
  278. DestinationData: []
  279. })
  280. const Top1OInterval = reactive({
  281. Max: 0,
  282. interval: 0
  283. })
  284. const Top1OInterval_dest = reactive({
  285. Max: 0,
  286. interval: 0
  287. })
  288. const TopOriginLoading = ref(true)
  289. const Top10Originref = ref()
  290. const Top10Destinationref = ref()
  291. const GetTop10ODEcharts = (val: any) => {
  292. dashboardObj.Top10faultData = val
  293. $api
  294. .GetTop10ODEcharts({
  295. ...val
  296. })
  297. .then((res: any) => {
  298. if (res.code === 200) {
  299. // Top10Originref.value[0].updataMapObj(dashboardObj.Top10faultData)
  300. if (isShowtitle1.value) {
  301. Top10Originref.value[0].updataMapObj(res.data.toporiginMap)
  302. } else {
  303. Top10Destinationref.value[0].updataMapObj(res.data.topdestinationinMap)
  304. }
  305. Top10Obj.DestinationData = res.data.seller_data_list_destination
  306. Top10Obj.OriginData = res.data.seller_data_list_origin
  307. Top1OInterval.Max = res.data.Max
  308. Top1OInterval.interval = res.data.interval
  309. Top1OInterval_dest.Max = res.data.dest_Max
  310. Top1OInterval_dest.interval = res.data.dest_interval
  311. topdestinationinType.value = res.data.topdestinationinType
  312. toporiginType.value = res.data.toporiginType
  313. }
  314. })
  315. .finally(() => {
  316. TopOriginLoading.value = false
  317. })
  318. }
  319. //获取CO2 Origin
  320. const EmissionLoading = ref(true)
  321. const EmissionObj = reactive({
  322. bar_title: '',
  323. barList: [],
  324. barSeries: [],
  325. Max: 0,
  326. interval: 0,
  327. download_name: ''
  328. })
  329. const GetCo2EmissionEcharts = (val: any) => {
  330. dashboardObj.OriginCo2Top10faultData = val
  331. $api
  332. .GetCo2EmissionEcharts({
  333. ...val
  334. })
  335. .then((res: any) => {
  336. if (res.code === 200) {
  337. EmissionObj.bar_title = res.data.ContainerCount_Title
  338. EmissionObj.barList = res.data.ContainerCountList
  339. EmissionObj.barSeries = res.data.ContainerCounSeries
  340. EmissionObj.Max = res.data.Max
  341. EmissionObj.interval = res.data.interval
  342. EmissionObj.download_name = res.data.download_name
  343. }
  344. })
  345. .finally(() => {
  346. EmissionLoading.value = false
  347. })
  348. }
  349. //获取CO2 Destination
  350. const DestinationObj = reactive({
  351. bar_title: '',
  352. barList: [],
  353. barSeries: [],
  354. Max: 0,
  355. interval: 0,
  356. download_name: ''
  357. })
  358. const DestinationLoading = ref(true)
  359. const GetCo2DestinationEcharts = (val: any) => {
  360. dashboardObj.DestinationCo2Top10faultData = val
  361. $api
  362. .GetCo2DestinationEcharts({
  363. ...val
  364. })
  365. .then((res: any) => {
  366. if (res.code === 200) {
  367. DestinationObj.bar_title = res.data.ContainerCount_Title
  368. DestinationObj.barList = res.data.ContainerCountList
  369. DestinationObj.barSeries = res.data.ContainerCounSeries
  370. DestinationObj.Max = res.data.Max
  371. DestinationObj.interval = res.data.interval
  372. DestinationObj.download_name = res.data.download_name
  373. }
  374. })
  375. .finally(() => {
  376. DestinationLoading.value = false
  377. })
  378. }
  379. //获取Revenue Spent
  380. const RevenueObj = reactive({
  381. bar_title: '',
  382. barList: [],
  383. barSeries: [],
  384. Max: 0,
  385. interval: 0,
  386. download_name: '',
  387. isShowTooltips: true
  388. })
  389. const RevenueLoading = ref(true)
  390. const revenue_date_start = ref()
  391. const revenue_date_end = ref()
  392. const GetRevenueEcharts = (val: any) => {
  393. revenue_date_start.value = val.date_start
  394. revenue_date_end.value = val.date_end
  395. dashboardObj.RevenueDefaultData = val
  396. $api
  397. .GetRevenueEcharts({
  398. ...val
  399. })
  400. .then((res: any) => {
  401. if (res.code === 200) {
  402. RevenueObj.bar_title = res.data.bar_title
  403. RevenueObj.barList = res.data.barList
  404. RevenueObj.barSeries = res.data.barSeries
  405. RevenueObj.Max = res.data.Max
  406. RevenueObj.interval = res.data.interval
  407. RevenueObj.download_name = res.data.download_name
  408. }
  409. })
  410. .finally(() => {
  411. RevenueLoading.value = false
  412. })
  413. }
  414. onMounted(() => {
  415. GetDashboardData()
  416. })
  417. // Save Layout
  418. const SaveLayout = () => {
  419. SaveVisible.value = false
  420. Management.value.forEach((item: any, index: any) => {
  421. item.id = index + 1
  422. })
  423. $api
  424. .SaveLayout({
  425. management: Management.value
  426. })
  427. .then((res: any) => {
  428. if (res.code == 200) {
  429. ElMessage({
  430. message: res.data.msg,
  431. duration: 3000,
  432. type: 'success'
  433. })
  434. }
  435. })
  436. }
  437. //Save Filters
  438. const SaveFilters = () => {
  439. SaveVisible.value = false
  440. Management.value.forEach((item: any, index: any) => {
  441. item.id = index + 1
  442. })
  443. $api
  444. .SaveLayout({
  445. management: Management.value,
  446. dashboardObj
  447. })
  448. .then((res: any) => {
  449. if (res.code == 200) {
  450. ElMessage({
  451. message: res.data.msg,
  452. duration: 3000,
  453. type: 'success'
  454. })
  455. }
  456. })
  457. }
  458. //ETD to ETA(DAYS)点击跳转
  459. const pie_chart_ETD = ref()
  460. const pie_chart_pending_arrival = ref()
  461. const pie_chart_pending_departure = ref()
  462. const pie_chart_kpi_departure = ref()
  463. const pie_chart_kpi_arrival = ref()
  464. const seller_chart_top10_origin = ref()
  465. const seller_chart_top10_destination = ref()
  466. const seller_chart_CO2_origin = ref()
  467. const seller_chart_CO2_destination = ref()
  468. const startyear = ref()
  469. const startmonth = ref()
  470. const startday = ref()
  471. const endyear = ref()
  472. const endmonth = ref()
  473. const endday = ref()
  474. //处理跳转数据
  475. const handleTurnData = (startdate: any, enddata: any, name: any) => {
  476. if (name == 'Container') {
  477. if (startdate != '') {
  478. startmonth.value = startdate.split('/')[0]
  479. startyear.value = startdate.split('/')[1]
  480. }
  481. if (enddata != '') {
  482. endmonth.value = enddata.split('/')[0]
  483. endyear.value = enddata.split('/')[1]
  484. }
  485. } else {
  486. if (startdate != '') {
  487. startmonth.value = startdate.split('/')[0]
  488. startyear.value = startdate.split('/')[2]
  489. startday.value = startdate.split('/')[1]
  490. }
  491. if (enddata != '') {
  492. endmonth.value = enddata.split('/')[0]
  493. endyear.value = enddata.split('/')[2]
  494. endday.value = enddata.split('/')[1]
  495. }
  496. }
  497. }
  498. const ClickParams = (val: any) => {
  499. const currentDate = new Date()
  500. let tenyear = currentDate.getFullYear()
  501. let tenmonth = currentDate.getMonth() - 11
  502. if (tenmonth < 0) {
  503. tenyear -= 1
  504. tenmonth += 11
  505. }
  506. const reportList: any = {}
  507. const handlereportlist = (transportation: any, type: any, name: any) => {
  508. if (transportation.includes('All')) {
  509. reportList.transport_mode = 'All'
  510. } else {
  511. reportList.transport_mode = dashboardObj.ETDDefaultData.transportation
  512. }
  513. if (name == 'Container') {
  514. if (type == 'ETA') {
  515. if (startyear.value) {
  516. reportList.eta_start = startmonth.value + '/01/' + startyear.value
  517. reportList.eta_end =
  518. endmonth.value +
  519. '/' +
  520. new Date(endyear.value, endmonth.value, 0).getDate() +
  521. '/' +
  522. endyear.value
  523. }
  524. } else {
  525. if (startyear.value) {
  526. reportList.etd_start = startmonth.value + '/01/' + startyear.value
  527. reportList.etd_end =
  528. endmonth.value +
  529. '/' +
  530. new Date(endyear.value, endmonth.value, 0).getDate() +
  531. '/' +
  532. endyear.value
  533. }
  534. }
  535. } else {
  536. if (type == 'ETA') {
  537. if (startyear.value) {
  538. reportList.eta_start = startmonth.value + '/' + startday.value + '/' + startyear.value
  539. reportList.eta_end = endmonth.value + '/' + endday.value + '/' + endyear.value
  540. }
  541. } else {
  542. if (startyear.value) {
  543. reportList.etd_start = startmonth.value + '/' + startday.value + '/' + startyear.value
  544. reportList.etd_end = endmonth.value + '/' + endday.value + '/' + endyear.value
  545. }
  546. }
  547. }
  548. }
  549. // ETD to ETA(DAYS)点击跳转
  550. if (val == 'ETD to ETA (Days)') {
  551. handleTurnData(
  552. dashboardObj.ETDDefaultData.date_start,
  553. dashboardObj.ETDDefaultData.date_end,
  554. 'Container'
  555. )
  556. reportList._reportRef = pie_chart_ETD.value[0].paramsdata.name
  557. reportList._reportRefe_date = currentDate.getMonth() + 1 + '/' + currentDate.getFullYear()
  558. reportList._reportType = 'r1'
  559. reportList._reportRefb_date = tenmonth + '/' + tenyear
  560. handlereportlist(
  561. dashboardObj.ETDDefaultData.transportation,
  562. dashboardObj.ETDDefaultData.date_type,
  563. 'Container'
  564. )
  565. sessionStorage.setItem('clickParams', 'clickParams')
  566. sessionStorage.setItem('reportList', JSON.stringify(reportList))
  567. let obj: any = {}
  568. obj.title = 'ETD to ETA (Days)'
  569. obj.name = pie_chart_ETD.value[0].paramsdata.name
  570. sessionStorage.setItem('tagsList', JSON.stringify(obj))
  571. router.push({
  572. path: '/tracking'
  573. })
  574. }
  575. // PendingArrival点击跳转
  576. else if (val == 'Pending1') {
  577. handleTurnData(
  578. dashboardObj.PendingDefaultData.date_start,
  579. dashboardObj.PendingDefaultData.date_end,
  580. ''
  581. )
  582. reportList._reportRef = pie_chart_pending_arrival.value[0].paramsdata.name
  583. reportList._reportType = 'r3'
  584. handlereportlist(
  585. dashboardObj.PendingDefaultData.transportation,
  586. dashboardObj.PendingDefaultData.date_type,
  587. ''
  588. )
  589. sessionStorage.setItem('clickParams', 'clickParams')
  590. sessionStorage.setItem('reportList', JSON.stringify(reportList))
  591. let obj: any = {}
  592. obj.title = 'Pending Arrival'
  593. obj.name = pie_chart_pending_arrival.value[0].paramsdata.name
  594. sessionStorage.setItem('tagsList', JSON.stringify(obj))
  595. router.push({
  596. path: '/tracking'
  597. })
  598. }
  599. // PendingDeparture点击跳转
  600. else if (val == 'Pending0') {
  601. handleTurnData(
  602. dashboardObj.PendingDefaultData.date_start,
  603. dashboardObj.PendingDefaultData.date_end,
  604. ''
  605. )
  606. reportList._reportType = 'r4'
  607. reportList._reportRef = pie_chart_pending_departure.value[0].paramsdata.name
  608. handlereportlist(
  609. dashboardObj.PendingDefaultData.transportation,
  610. dashboardObj.PendingDefaultData.date_type,
  611. ''
  612. )
  613. sessionStorage.setItem('clickParams', 'clickParams')
  614. sessionStorage.setItem('reportList', JSON.stringify(reportList))
  615. let obj: any = {}
  616. obj.title = 'Pending Departure'
  617. obj.name = pie_chart_pending_departure.value[0].paramsdata.name
  618. sessionStorage.setItem('tagsList', JSON.stringify(obj))
  619. router.push({
  620. path: '/tracking'
  621. })
  622. }
  623. // KPIDeparture点击跳转
  624. else if (val == 'KPI0') {
  625. handleTurnData(
  626. dashboardObj.KPIDefaulteData.date_start,
  627. dashboardObj.KPIDefaulteData.date_end,
  628. ''
  629. )
  630. reportList._reportRef = pie_chart_kpi_departure.value[0].paramsdata.name
  631. reportList._reportType = 'atd_r4'
  632. handlereportlist(
  633. dashboardObj.KPIDefaulteData.transportation,
  634. dashboardObj.KPIDefaulteData.date_type,
  635. ''
  636. )
  637. sessionStorage.setItem('clickParams', 'clickParams')
  638. sessionStorage.setItem('reportList', JSON.stringify(reportList))
  639. let obj: any = {}
  640. obj.title = 'KPI Departure'
  641. obj.name = pie_chart_kpi_departure.value[0].paramsdata.name
  642. sessionStorage.setItem('tagsList', JSON.stringify(obj))
  643. router.push({
  644. path: '/tracking'
  645. })
  646. }
  647. // KPIArrival点击跳转
  648. else if (val == 'KPI1') {
  649. handleTurnData(
  650. dashboardObj.KPIDefaulteData.date_start,
  651. dashboardObj.KPIDefaulteData.date_end,
  652. ''
  653. )
  654. reportList._reportRef = pie_chart_kpi_arrival.value[0].paramsdata.name
  655. reportList._reportType = 'ata_r3'
  656. handlereportlist(
  657. dashboardObj.KPIDefaulteData.transportation,
  658. dashboardObj.KPIDefaulteData.date_type,
  659. ''
  660. )
  661. sessionStorage.setItem('clickParams', 'clickParams')
  662. sessionStorage.setItem('reportList', JSON.stringify(reportList))
  663. let obj: any = {}
  664. obj.title = 'KPI Arrival'
  665. obj.name = pie_chart_kpi_arrival.value[0].paramsdata.name
  666. sessionStorage.setItem('tagsList', JSON.stringify(obj))
  667. router.push({
  668. path: '/tracking'
  669. })
  670. }
  671. // Top10 origin点击跳转
  672. else if (val == 'Top 10 Origin') {
  673. handleTurnData(dashboardObj.Top10faultData.date_start, dashboardObj.Top10faultData.date_end, '')
  674. reportList._reportRef = seller_chart_top10_origin.value[0].paramsdata
  675. reportList._reportType = 'top'
  676. reportList._reportStationType = toporiginType.value
  677. reportList._city_name = seller_chart_top10_origin.value[0].paramscityname
  678. handlereportlist(
  679. dashboardObj.Top10faultData.transportation,
  680. dashboardObj.Top10faultData.date_type,
  681. ''
  682. )
  683. sessionStorage.setItem('clickParams', 'clickParams')
  684. sessionStorage.setItem('reportList', JSON.stringify(reportList))
  685. let obj: any = {}
  686. obj.title = 'Top 10 Origin'
  687. obj.name = seller_chart_top10_origin.value[0].paramsdata
  688. obj.data = seller_chart_top10_origin.value[0].paramscityname
  689. sessionStorage.setItem('tagsList', JSON.stringify(obj))
  690. router.push({
  691. path: '/tracking'
  692. })
  693. }
  694. // Top10 destination点击跳转
  695. else if (val == 'Top 10 Destination') {
  696. handleTurnData(dashboardObj.Top10faultData.date_start, dashboardObj.Top10faultData.date_end, '')
  697. reportList._reportRef = seller_chart_top10_destination.value[0].paramsdata
  698. reportList._reportStationType = topdestinationinType.value
  699. reportList._reportType = 'top'
  700. reportList._city_name = seller_chart_top10_destination.value[0].paramscityname
  701. handlereportlist(
  702. dashboardObj.Top10faultData.transportation,
  703. dashboardObj.Top10faultData.date_type,
  704. ''
  705. )
  706. sessionStorage.setItem('clickParams', 'clickParams')
  707. sessionStorage.setItem('reportList', JSON.stringify(reportList))
  708. let obj: any = {}
  709. obj.title = 'Top 10 Destination'
  710. obj.name = seller_chart_top10_destination.value[0].paramsdata
  711. obj.data = seller_chart_top10_destination.value[0].paramscityname
  712. sessionStorage.setItem('tagsList', JSON.stringify(obj))
  713. router.push({
  714. path: '/tracking'
  715. })
  716. }
  717. // CO2e Emission by Origin (Top 10)点击跳转
  718. else if (val == 'CO2e Emission by Origin (Top 10)') {
  719. handleTurnData(
  720. dashboardObj.OriginCo2Top10faultData.date_start,
  721. dashboardObj.OriginCo2Top10faultData.date_end,
  722. ''
  723. )
  724. reportList._reportRef = seller_chart_CO2_origin.value[0].paramsdata.name
  725. reportList._reportDataType = seller_chart_CO2_origin.value[0].paramsdata.type
  726. reportList._reportStationType = 'origin'
  727. reportList._reportType = 'co2e'
  728. handlereportlist(
  729. dashboardObj.OriginCo2Top10faultData.transportation,
  730. dashboardObj.OriginCo2Top10faultData.date_type,
  731. ''
  732. )
  733. sessionStorage.setItem('clickParams', 'clickParams')
  734. sessionStorage.setItem('reportList', JSON.stringify(reportList))
  735. let obj: any = {}
  736. obj.title = 'CO2e Emission by Origin (Top 10)'
  737. obj.name = seller_chart_CO2_origin.value[0].paramsdata.name
  738. sessionStorage.setItem('tagsList', JSON.stringify(obj))
  739. router.push({
  740. path: '/tracking'
  741. })
  742. }
  743. // CO2e Emission by Origin (Top 10)点击跳转
  744. else if (val == 'CO2e Emission by Destination (Top 10)') {
  745. handleTurnData(
  746. dashboardObj.DestinationCo2Top10faultData.date_start,
  747. dashboardObj.DestinationCo2Top10faultData.date_end,
  748. ''
  749. )
  750. reportList._reportRef = seller_chart_CO2_destination.value[0].paramsdata.name
  751. reportList._reportDataType = seller_chart_CO2_destination.value[0].paramsdata.type
  752. reportList._reportType = 'co2e'
  753. reportList._reportStationType = 'agent'
  754. handlereportlist(
  755. dashboardObj.DestinationCo2Top10faultData.transportation,
  756. dashboardObj.DestinationCo2Top10faultData.date_type,
  757. ''
  758. )
  759. sessionStorage.setItem('clickParams', 'clickParams')
  760. sessionStorage.setItem('reportList', JSON.stringify(reportList))
  761. let obj: any = {}
  762. obj.title = 'CO2e Emission by Destination (Top 10)'
  763. obj.name = seller_chart_CO2_destination.value[0].paramsdata.name
  764. sessionStorage.setItem('tagsList', JSON.stringify(obj))
  765. router.push({
  766. path: '/tracking'
  767. })
  768. }
  769. }
  770. </script>
  771. <template>
  772. <div class="dashboard">
  773. <!-- 评分 -->
  774. <ScoringSystem></ScoringSystem>
  775. <!-- Title -->
  776. <div class="Title">
  777. <div>Dashboard</div>
  778. <div>
  779. <el-popover trigger="click" width="400" popper-style="border-radius: 12px">
  780. <template #reference>
  781. <el-button class="el-button--default">
  782. <span class="iconfont_icon">
  783. <svg class="iconfont" aria-hidden="true">
  784. <use xlink:href="#icon-icon_view__management_b"></use>
  785. </svg>
  786. </span>
  787. View Management
  788. </el-button>
  789. </template>
  790. <div class="Management">
  791. <div class="title">View Management</div>
  792. <div class="management_content" v-for="(item, index) in Management" :key="index">
  793. <div class="management_flex">
  794. <div class="content_title">{{ item.title }}</div>
  795. <div><el-switch v-model="item.switchValue" /></div>
  796. </div>
  797. <div class="content_text">{{ item.text }}</div>
  798. </div>
  799. <el-divider />
  800. <div class="tips">
  801. <span class="iconfont_icon">
  802. <svg class="iconfont iconfont_tips" aria-hidden="true">
  803. <use xlink:href="#icon-icon_info_b"></use>
  804. </svg>
  805. </span>
  806. <div class="tips_text">
  807. Please remember to click the save button in order to keep the new dashboard layout
  808. and widgets.
  809. </div>
  810. </div>
  811. </div>
  812. </el-popover>
  813. <el-popover
  814. :visible="SaveVisible"
  815. :popper-style="{
  816. display: 'flex',
  817. flexDirection: 'column',
  818. alignItems: 'center',
  819. backgroundColor: 'var(--management-bg-color)'
  820. }"
  821. >
  822. <template #reference>
  823. <el-button
  824. class="el-button--default"
  825. @blur="SaveVisible = false"
  826. @click="SaveVisible = !SaveVisible"
  827. >
  828. <span class="iconfont_icon">
  829. <svg class="iconfont" aria-hidden="true">
  830. <use xlink:href="#icon-icon_save_b"></use>
  831. </svg>
  832. </span>
  833. Save
  834. <span class="iconfont_icon">
  835. <svg class="iconfont" aria-hidden="true">
  836. <use xlink:href="#icon-icon_dropdown_b"></use>
  837. </svg>
  838. </span>
  839. </el-button>
  840. </template>
  841. <div class="Save_filters" @click="SaveFilters">
  842. <span class="iconfont_icon iconfont_icon_save">
  843. <svg class="iconfont" aria-hidden="true">
  844. <use xlink:href="#icon-icon_save_b"></use>
  845. </svg>
  846. </span>
  847. <div>Save Filters</div>
  848. </div>
  849. <div class="Save_filters" @click="SaveLayout">
  850. <span class="iconfont_icon iconfont_icon_save">
  851. <svg class="iconfont" aria-hidden="true">
  852. <use xlink:href="#icon-icon_save_b"></use>
  853. </svg>
  854. </span>
  855. <div>Save Layout</div>
  856. </div>
  857. </el-popover>
  858. </div>
  859. </div>
  860. <!-- 图表 -->
  861. <div class="echarts">
  862. <VueDraggable
  863. style="
  864. display: flex;
  865. flex-wrap: wrap;
  866. justify-content: space-between;
  867. gap: 8px;
  868. width: 100%;
  869. "
  870. ref="infoContentRef"
  871. ghost-class="ghost-class"
  872. :forceFallback="true"
  873. fallback-class="fallback-class"
  874. v-model="Management"
  875. handle=".handle-draggable"
  876. >
  877. <template v-for="item in Management" :key="item">
  878. <div v-if="item.title === 'KPI' && item.switchValue" class="filters_left">
  879. <!-- KPI -->
  880. <VBox_Dashboard @changeCancel="changeCancel(item.id)">
  881. <template #header>
  882. <div class="Title_flex">
  883. {{ item.title }}
  884. <DashFilters
  885. :defaultData="KPIDefaulteData"
  886. @FilterSearch="GetKpiData"
  887. ></DashFilters>
  888. <!-- <el-tooltip
  889. effect="dark"
  890. :offset="6"
  891. :content="item.text"
  892. placement="bottom-start"
  893. >
  894. <span class="iconfont_icon iconfont_icon_tip">
  895. <svg class="iconfont" aria-hidden="true">
  896. <use xlink:href="#icon-icon_info_b"></use>
  897. </svg>
  898. </span>
  899. </el-tooltip> -->
  900. </div>
  901. </template>
  902. <template #content>
  903. <div class="KPI_Pending">
  904. <div class="kpi">
  905. <PieChart
  906. ref="pie_chart_kpi_departure"
  907. @ClickParams="ClickParams(item.title + '0')"
  908. :PieData="KPIobj"
  909. v-vloading="KPILoading"
  910. style="height: 300px"
  911. ></PieChart>
  912. </div>
  913. <div class="kpi">
  914. <PieChart
  915. ref="pie_chart_kpi_arrival"
  916. :PieData="Arrivalobj"
  917. v-vloading="KPIArrivalLoading"
  918. @ClickParams="ClickParams(item.title + '1')"
  919. style="height: 300px"
  920. ></PieChart>
  921. </div>
  922. </div>
  923. </template>
  924. </VBox_Dashboard>
  925. </div>
  926. <div v-else-if="item.title === 'Pending' && item.switchValue" class="filters_left">
  927. <!-- Pending -->
  928. <VBox_Dashboard @changeCancel="changeCancel(item.id)">
  929. <template #header>
  930. <div class="Title_flex">
  931. {{ item.title }}
  932. <DashFilters
  933. :defaultData="PendingDefaulteData"
  934. :radioisDisabled="true"
  935. @FilterSearch="GetPendingEcharts"
  936. ></DashFilters>
  937. </div>
  938. </template>
  939. <template #content>
  940. <div class="KPI_Pending">
  941. <div class="kpi">
  942. <PieChart
  943. ref="pie_chart_pending_departure"
  944. :PieData="Pendingobj"
  945. v-vloading="PendingLoading"
  946. @ClickParams="ClickParams(item.title + '0')"
  947. style="height: 300px"
  948. ></PieChart>
  949. </div>
  950. <div class="kpi">
  951. <PieChart
  952. ref="pie_chart_pending_arrival"
  953. @ClickParams="ClickParams(item.title + '1')"
  954. :PieData="PendingArrivalobj"
  955. v-vloading="PendingArrivalLoading"
  956. style="height: 300px"
  957. ></PieChart>
  958. </div>
  959. </div>
  960. </template>
  961. </VBox_Dashboard>
  962. </div>
  963. <!-- ETD to ETA -->
  964. <div
  965. v-else-if="item.title === 'ETD to ETA (Days)' && item.switchValue"
  966. class="filters_left"
  967. >
  968. <VBox_Dashboard @changeCancel="changeCancel(item.id)">
  969. <template #header>
  970. <div class="Title_flex">
  971. {{ item.title }}
  972. <DashFilters
  973. :defaultData="ETDDefaulteData"
  974. @FilterSearch="GetETDEcharts"
  975. :isETDToETA="true"
  976. :isContainer="true"
  977. ></DashFilters>
  978. </div>
  979. </template>
  980. <template #content>
  981. <PieChart
  982. ref="pie_chart_ETD"
  983. @ClickParams="ClickParams(item.title)"
  984. :PieData="ETDobj"
  985. v-vloading="ETDLoading"
  986. style="height: 300px"
  987. ></PieChart>
  988. </template>
  989. </VBox_Dashboard>
  990. </div>
  991. <!-- Container Count -->
  992. <div
  993. v-else-if="item.title === 'Container Count' && item.switchValue"
  994. class="filters_left"
  995. >
  996. <VBox_Dashboard @changeCancel="changeCancel(item.id)">
  997. <template #header>
  998. <div class="Title_flex">
  999. {{ item.title }}
  1000. <DashFilters
  1001. :defaultData="ContainerefaultData"
  1002. @FilterSearch="GetContainerCountEcharts"
  1003. :isContainer="true"
  1004. ></DashFilters>
  1005. </div>
  1006. </template>
  1007. <template #content>
  1008. <BarChart
  1009. ref="seller_chart_Container_count"
  1010. :BarData="containerObj"
  1011. v-vloading="containerLoading"
  1012. style="height: 300px"
  1013. :isRevenue="true"
  1014. :barHeight="{ height: '300px' }"
  1015. ></BarChart>
  1016. </template>
  1017. </VBox_Dashboard>
  1018. </div>
  1019. <!-- Top10 Origin/Top 10 Destination -->
  1020. <div
  1021. v-else-if="item.title === 'Top 10 Origin/Destination' && item.switchValue"
  1022. class="KPI_Pending"
  1023. >
  1024. <VBox_Dashboard @changeCancel="changeCancel(item.id)" style="width: 100%">
  1025. <template #header>
  1026. <div class="Title_flex" style="height: 48px">
  1027. <el-tabs
  1028. v-model="activeName"
  1029. class="demo-tabs"
  1030. style="height: 48px"
  1031. @tab-click="handleTabClick"
  1032. >
  1033. <el-tab-pane :label="item.title1" name="first"></el-tab-pane>
  1034. <el-tab-pane :label="item.title2" name="second"></el-tab-pane>
  1035. </el-tabs>
  1036. <DashFilters
  1037. :defaultData="Top10DefaultData"
  1038. @FilterSearch="GetTop10ODEcharts"
  1039. ></DashFilters>
  1040. </div>
  1041. </template>
  1042. <template v-if="isShowtitle1" #content>
  1043. <div class="KPI_Pending">
  1044. <div class="seller_chart">
  1045. <SellerChart
  1046. ref="seller_chart_top10_origin"
  1047. @clickParams="ClickParams(item.title1)"
  1048. :SellerData="Top10Obj.OriginData"
  1049. v-vloading="TopOriginLoading"
  1050. :Interval="Top1OInterval"
  1051. ></SellerChart>
  1052. </div>
  1053. <div class="map">
  1054. <!-- <TopMap :obj="dashboardObj.Top10faultData" ref="Top10Originref"></TopMap> -->
  1055. <TopMap ref="Top10Originref"></TopMap>
  1056. </div>
  1057. </div>
  1058. </template>
  1059. <template v-else #content2>
  1060. <div class="KPI_Pending">
  1061. <div class="seller_chart">
  1062. <SellerChart
  1063. ref="seller_chart_top10_destination"
  1064. @clickParams="ClickParams(item.title2)"
  1065. :SellerData="Top10Obj.DestinationData"
  1066. :Interval="Top1OInterval_dest"
  1067. v-vloading="TopOriginLoading"
  1068. style="height: 272px"
  1069. ></SellerChart>
  1070. </div>
  1071. <div class="map" style="height: 272px">
  1072. <!-- <TopMap :obj="dashboardObj.Top10faultData" ref="Top10Destinationref"></TopMap> -->
  1073. <TopMap ref="Top10Destinationref"></TopMap>
  1074. </div>
  1075. </div>
  1076. </template>
  1077. </VBox_Dashboard>
  1078. </div>
  1079. <!-- CO2e Emission by Origin (Top 10) -->
  1080. <div
  1081. v-else-if="item.title === 'CO2e Emission by Origin (Top 10)' && item.switchValue"
  1082. class="filters_left"
  1083. >
  1084. <VBox_Dashboard @changeCancel="changeCancel(item.id)">
  1085. <template #header>
  1086. <div class="Title_flex">
  1087. {{ item.title }}
  1088. <DashFilters
  1089. :defaultData="Co2OriginDefaultData"
  1090. @FilterSearch="GetCo2EmissionEcharts"
  1091. ></DashFilters>
  1092. </div>
  1093. </template>
  1094. <template #content>
  1095. <BarChart
  1096. ref="seller_chart_CO2_origin"
  1097. :BarData="EmissionObj"
  1098. @clickParams="ClickParams(item.title)"
  1099. v-vloading="EmissionLoading"
  1100. style="height: 250px"
  1101. :isRevenue="true"
  1102. :barHeight="{ height: '250px' }"
  1103. ></BarChart>
  1104. </template>
  1105. </VBox_Dashboard>
  1106. </div>
  1107. <!-- CO2e Emission by Destination (Top 10) -->
  1108. <div
  1109. v-else-if="item.title === 'CO2e Emission by Destination (Top 10)' && item.switchValue"
  1110. class="filters_left"
  1111. >
  1112. <VBox_Dashboard @changeCancel="changeCancel(item.id)">
  1113. <template #header>
  1114. <div class="Title_flex">
  1115. {{ item.title }}
  1116. <DashFilters
  1117. :defaultData="Co2DestinationDefaultData"
  1118. @FilterSearch="GetCo2DestinationEcharts"
  1119. ></DashFilters>
  1120. </div>
  1121. </template>
  1122. <template #content>
  1123. <BarChart
  1124. ref="seller_chart_CO2_destination"
  1125. :BarData="DestinationObj"
  1126. v-vloading="DestinationLoading"
  1127. style="height: 250px"
  1128. :isRevenue="true"
  1129. @clickParams="ClickParams(item.title)"
  1130. :barHeight="{ height: '250px' }"
  1131. ></BarChart>
  1132. </template>
  1133. </VBox_Dashboard>
  1134. </div>
  1135. <!-- <div
  1136. v-else-if="item.title === 'Revenue' && item.switchValue"
  1137. class="KPI_Pending"
  1138. > -->
  1139. <div
  1140. v-else-if="
  1141. item.title === 'Recent Status' && item.switchValue && RecentStatusList.length != 0
  1142. "
  1143. class="KPI_Pending"
  1144. >
  1145. <!-- Recent Status -->
  1146. <VBox_Dashboard @changeCancel="changeCancel(item.id)" style="width: 100%">
  1147. <template #header>
  1148. <div class="Title_flex">
  1149. {{ item.title }}
  1150. <DashFilters
  1151. :defaultData="RecentDefaulteData"
  1152. @FilterSearch="getTableData"
  1153. :isRecent="true"
  1154. ></DashFilters>
  1155. </div>
  1156. </template>
  1157. <template #content>
  1158. <RecentStatus :RecentStatusList="RecentStatusList"></RecentStatus>
  1159. <div class="pagination">
  1160. <span>Total {{ pageInfo.total }}</span>
  1161. <el-pagination
  1162. v-model:current-page="pageInfo.pageNo"
  1163. v-model:page-size="pageInfo.pageSize"
  1164. :page-sizes="[10, 50, 100, 200]"
  1165. layout="prev, pager, next"
  1166. :pager-count="3"
  1167. :total="pageInfo.total"
  1168. @size-change="getTableData(true, RecentDefaulteData)"
  1169. @current-change="getTableData(true, RecentDefaulteData)"
  1170. />
  1171. </div>
  1172. </template>
  1173. </VBox_Dashboard>
  1174. </div>
  1175. <!-- Revenue -->
  1176. <div v-else-if="item.title === 'Revenue Spent' && item.switchValue" class="KPI_Pending">
  1177. <VBox_Dashboard @changeCancel="changeCancel(item.id)" style="width: 100%">
  1178. <template #header>
  1179. <div class="Title_flex">
  1180. Revenue Spent
  1181. <DashFilters
  1182. :defaultData="RevenueDefaultData"
  1183. @FilterSearch="GetRevenueEcharts"
  1184. :isRevenue="true"
  1185. :isContainer="true"
  1186. ></DashFilters>
  1187. </div>
  1188. </template>
  1189. <template #content>
  1190. <BarChart
  1191. :BarData="RevenueObj"
  1192. :isRevenue="false"
  1193. v-vloading="RevenueLoading"
  1194. :RevenueStartDate="revenue_date_start"
  1195. :RevenueEndDate="revenue_date_end"
  1196. style="height: 300px"
  1197. :barHeight="{ height: '300px' }"
  1198. ></BarChart>
  1199. </template>
  1200. </VBox_Dashboard>
  1201. </div>
  1202. </template>
  1203. </VueDraggable>
  1204. </div>
  1205. </div>
  1206. </template>
  1207. <style lang="scss" scoped>
  1208. .Title {
  1209. display: flex;
  1210. background-color: var(--color-mode);
  1211. height: 68px;
  1212. font-size: var(--font-size-6);
  1213. font-weight: 700;
  1214. padding: 0 24px;
  1215. align-items: center;
  1216. justify-content: space-between;
  1217. }
  1218. .iconfont {
  1219. vertical-align: -2px;
  1220. }
  1221. .Management {
  1222. max-height: 800px;
  1223. overflow-y: auto;
  1224. border-radius: 12px;
  1225. background-color: var(--management-bg-color);
  1226. }
  1227. .title {
  1228. font-weight: 700;
  1229. font-size: var(--font-size-5);
  1230. background-color: var(--color-header-bg);
  1231. height: 48px;
  1232. display: flex;
  1233. align-items: center;
  1234. padding-left: 16px;
  1235. }
  1236. .management_content {
  1237. width: 368px;
  1238. min-height: 54px;
  1239. margin: 10px auto;
  1240. background-color: var(--color-header-bg);
  1241. border-radius: var(--border-radius-6);
  1242. padding: 8px 16px;
  1243. }
  1244. .management_flex {
  1245. display: flex;
  1246. height: 20px;
  1247. justify-content: space-between;
  1248. align-items: center;
  1249. }
  1250. .content_title {
  1251. font-weight: 700;
  1252. font-size: var(--font-size-3);
  1253. }
  1254. .content_text {
  1255. color: var(--color-neutral-2);
  1256. font-size: var(--font-size-2);
  1257. line-height: 16px;
  1258. }
  1259. .tips {
  1260. display: flex;
  1261. justify-content: center;
  1262. }
  1263. .iconfont_tips {
  1264. fill: var(--color-neutral-2);
  1265. }
  1266. .tips_text {
  1267. width: 278.43px;
  1268. text-align: center;
  1269. font-size: var(--font-size-2);
  1270. color: var(--color-neutral-2);
  1271. }
  1272. .el-divider--horizontal {
  1273. margin: 8px 0;
  1274. }
  1275. .Save_filters {
  1276. display: flex;
  1277. align-items: center;
  1278. justify-content: center;
  1279. height: 40px;
  1280. font-size: var(--font-size-3);
  1281. width: 126px;
  1282. margin: 4px 0;
  1283. cursor: pointer;
  1284. }
  1285. .iconfont_icon_save {
  1286. margin-right: 16px;
  1287. fill: var(--color-neutral-1);
  1288. }
  1289. .Save_filters:hover {
  1290. border-color: var(--color-btn-default-bg-hover);
  1291. background-color: var(--color-btn-default-bg-hover);
  1292. .iconfont_icon_save {
  1293. fill: var(--color-theme);
  1294. }
  1295. div {
  1296. color: var(--color-theme);
  1297. }
  1298. }
  1299. .filters {
  1300. display: flex;
  1301. padding: 0 24px;
  1302. height: 32px;
  1303. align-items: center;
  1304. margin-bottom: 8px;
  1305. justify-content: space-between;
  1306. }
  1307. .KPI_Pending {
  1308. display: flex;
  1309. width: 100%;
  1310. }
  1311. .filters_left {
  1312. border-radius: var(--border-radius-6);
  1313. flex: 1 48%;
  1314. }
  1315. .KPI_title {
  1316. border-bottom: 1px solid var(--color-border);
  1317. height: 48px;
  1318. line-height: 48px;
  1319. align-items: center;
  1320. justify-content: space-between;
  1321. display: flex;
  1322. padding-left: 16px;
  1323. font-weight: 700;
  1324. font-size: var(--font-size-5);
  1325. }
  1326. .tips_filter {
  1327. margin-right: 8px;
  1328. height: 32px;
  1329. }
  1330. .filters_right {
  1331. width: 251px;
  1332. height: 32px;
  1333. margin-bottom: 8px;
  1334. }
  1335. :deep(.ETD_title) {
  1336. margin-bottom: 0 !important;
  1337. }
  1338. :deep(:where(.css-dev-only-do-not-override-19iuou).ant-picker-range) {
  1339. height: 32px;
  1340. }
  1341. .echarts {
  1342. padding: 0 22px;
  1343. background-color: var(--color-mode);
  1344. }
  1345. .kpi {
  1346. width: 50%;
  1347. border-right: 1px solid var(--color-border);
  1348. }
  1349. .kpi:last-child {
  1350. border-right: none;
  1351. }
  1352. .ghost-class {
  1353. opacity: 0;
  1354. }
  1355. .fallback-class {
  1356. opacity: 1 !important;
  1357. background-color: #fff;
  1358. cursor: move !important;
  1359. box-shadow: 4px 4px 32px 0px rgba(0, 0, 0, 0.2);
  1360. border-radius: 12px;
  1361. }
  1362. .pagination {
  1363. display: flex;
  1364. justify-content: space-between;
  1365. align-items: center;
  1366. border-top: 1px solid var(--color-border);
  1367. padding: 4px 8px;
  1368. }
  1369. .container-type {
  1370. font-size: 14px;
  1371. font-weight: 400;
  1372. margin-right: 4px;
  1373. }
  1374. .seller_chart {
  1375. width: 30%;
  1376. border-right: 1px solid var(--color-border);
  1377. }
  1378. .map {
  1379. width: 70%;
  1380. }
  1381. .Title_flex {
  1382. display: flex;
  1383. align-items: center;
  1384. justify-content: space-between;
  1385. margin-right: 30px;
  1386. }
  1387. .iconfont_icon_tip {
  1388. margin-left: 8px;
  1389. width: 16px;
  1390. height: 16px;
  1391. display: flex;
  1392. align-items: center;
  1393. }
  1394. .dashboard {
  1395. z-index: 2014;
  1396. position: relative;
  1397. background-color: var(--color-mode);
  1398. padding-bottom: 40px;
  1399. }
  1400. :deep(.el-tabs__header) {
  1401. height: 48px;
  1402. margin-bottom: 0;
  1403. }
  1404. </style>