dashboard.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  1. <!-- 物联网卡-详情 -->
  2. <template>
  3. <div class="page">
  4. <el-card shadow="nover" class="page-full-part">
  5. <div shadow="nover" class="top-wrap">
  6. <div class="title flex">
  7. 数据统计
  8. <div class="select-wrap">
  9. <el-select v-model="types" placeholder="请选择" style="width: 120px" @change="typeChange()">
  10. <!-- 1电信,2联通,3移动 -->
  11. <el-option label="电信" :value="1" />
  12. <el-option label="联通" :value="2" />
  13. <el-option label="移动" :value="3" />
  14. </el-select>
  15. </div>
  16. </div>
  17. <div class="top-inner-wrap">
  18. <div class="line-wrap flow-line-wrap">
  19. <div class="text-wrap">
  20. <div class="text">昨日流量消耗</div>
  21. <div>{{formatSize(statisticsData.yesterdayTotal * 1024 * 1024)}}</div>
  22. </div>
  23. <div class="line-inner-wrap" ref="yesterdayLine"></div>
  24. </div>
  25. <div class="line-wrap flow-line-wrap">
  26. <div class="text-wrap">
  27. <div class="text">当月流量消耗</div>
  28. <div>{{formatSize(statisticsData.realMonthTotal * 1024 * 1024)}}</div>
  29. </div>
  30. <div class="line-inner-wrap" ref="monthLine"></div>
  31. </div>
  32. <div class="line-wrap flow-line-wrap">
  33. <div class="text-wrap">
  34. <div class="text">本年流量消耗</div>
  35. <div>{{formatSize(statisticsData.yearTotal * 1024 * 1024)}}</div>
  36. </div>
  37. <div class="line-inner-wrap" ref="yearLine"></div>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="statistics-wrap">
  42. <el-card shadow="nover" class="left-wrap">
  43. <div class="top-title-wrap">
  44. <div class="title">流量统计</div>
  45. <div class="operate-wrap">
  46. <el-button-group>
  47. <el-button @click="changeDate(1)" :type="activeIndex == 1 ? 'primary' : ''">昨日</el-button>
  48. <el-button @click="changeDate(2)" :type="activeIndex == 2 ? 'primary' : ''">近一周</el-button>
  49. <el-button @click="changeDate(3)" :type="activeIndex == 3 ? 'primary' : ''">近一月</el-button>
  50. <el-button @click="changeDate(4)" :type="activeIndex == 4 ? 'primary' : ''">近一年</el-button>
  51. </el-button-group>
  52. <el-date-picker
  53. class="date-picker-wrap"
  54. v-model="dateTimeRange"
  55. :disabled-date="disabledDate"
  56. type="datetimerange"
  57. range-separator="至"
  58. start-placeholder="开始时间"
  59. end-placeholder="结束时间"
  60. format="YYYY-MM-DD HH:mm:ss"
  61. date-format="YYYY/MM/DD"
  62. time-format="hh:mm:ss"
  63. />
  64. </div>
  65. </div>
  66. <div style="height: 508px;" ref="flowLine"></div>
  67. </el-card>
  68. <el-card shadow="nover" class="right-wrap">
  69. <div class="top-title-wrap">
  70. <div class="title">流量使用TOP10</div>
  71. <el-date-picker
  72. class="date-picker-wrap"
  73. v-model="dateRange"
  74. :disabled-date="disabledDate"
  75. type="daterange"
  76. range-separator="至"
  77. start-placeholder="开始日期"
  78. end-placeholder="结束日期"
  79. format="YYYY-MM-DD"
  80. date-format="YYYY/MM/DD"
  81. />
  82. </div>
  83. <div class="ranking-list">
  84. <div class="rank-item" v-for="(item, index) in rankList" :key="index">
  85. <div :class="`number-item-${++index}`" class="number">{{index++}}</div>
  86. <div class="card-num">{{item.accessNumber}}</div>
  87. <el-progress class="progress-wrap" :text-inside="true" :stroke-width="16" :percentage="totalNum ? (item.value / totalNum * 100).toFixed(2) : 0" />
  88. <div class="flow-num">{{formatSize(item.value * 1024 * 1024)}}</div>
  89. </div>
  90. </div>
  91. </el-card>
  92. </div>
  93. </el-card>
  94. </div>
  95. </template>
  96. <script lang="ts" setup>
  97. import { ref, reactive, nextTick, watch, markRaw } from "vue"
  98. import { formatSize } from "/@/utils/common";
  99. import api from '/@/api/iotCard';
  100. import { useStore } from '/@/store/index';
  101. import * as echarts from 'echarts';
  102. import dayjs from 'dayjs';
  103. const store = useStore();
  104. const types = ref(1);
  105. const statisticsData = ref({
  106. realMonthTotal: 0,
  107. yearTotal: 0,
  108. yesterdayTotal: 0
  109. })
  110. const flowLine = ref();
  111. const yesterdayLine = ref();
  112. const monthLine = ref();
  113. const yearLine = ref();
  114. const dateRange = ref<any>([
  115. dayjs(new Date()).subtract(1, 'month'),
  116. dayjs(new Date()),
  117. ])
  118. const dateTimeRange = ref<any>([
  119. dayjs(new Date()).subtract(6, 'day'),
  120. dayjs(new Date()),
  121. ])
  122. const totalNum = ref(0);
  123. const activeIndex= ref(2);
  124. const rankList = ref([]);
  125. const flowLineXAxisData = ref<any>([]);
  126. const flowLineData = ref<any>([]);
  127. const yearLineXAxisData = ref<any>([]);
  128. const yearLineData = ref<any>([]);
  129. const monthLineXAxisData = ref<any>([]);
  130. const monthLineData = ref<any>([]);
  131. const yesterdayLineXAxisData = ref<any>([dayjs(new Date()).subtract(1, 'day').format('YYYY-MM-DD')]);
  132. const yesterdayLineData = ref<any>([]);
  133. const state = reactive({
  134. global: {
  135. yesterdayLine: null,
  136. monthLine: null,
  137. yearLine: null,
  138. dispose: [null, '', undefined],
  139. } as any,
  140. myCharts: [],
  141. charts: {
  142. theme: '',
  143. bgColor: '',
  144. color: '#303133',
  145. },
  146. });
  147. const disabledDate = (time: Date) => {
  148. return time.getTime() > Date.now()
  149. }
  150. const getFlowDataByDateRange = async (dateRangeData:any) => {
  151. const simFlowRes = await api.dashboard.getFlowDataByDateRange({
  152. sdate: dayjs(dateRangeData[0]).format('YYYY-MM-DD HH:mm:ss'),
  153. edate: dayjs(dateRangeData[1]).format('YYYY-MM-DD HH:mm:ss'),
  154. types: types.value
  155. })
  156. return simFlowRes.data;
  157. }
  158. const getYesterdayFlowData = async () => {
  159. const yesterday = dayjs(new Date()).subtract(1, 'day').format('YYYY-MM-DD')
  160. const res = await getFlowDataByDateRange([
  161. yesterday + " 00:00:00",
  162. yesterday + " 23:59:59"
  163. ])
  164. yesterdayLineData.value = [res[0].value];
  165. initYesterdayLineChart();
  166. }
  167. const getMonthFlowData = async () => {
  168. monthLineXAxisData.value = [];
  169. monthLineData.value = [];
  170. const monthDay1 = dayjs(new Date()).startOf('month').format('YYYY-MM-DD');
  171. const monthDay2 = dayjs(new Date()).endOf('month').format('YYYY-MM-DD');
  172. const res = await getFlowDataByDateRange([monthDay1, monthDay2])
  173. res.reverse().forEach((item:any) => {
  174. monthLineXAxisData.value.push(item.date);
  175. monthLineData.value.push(item.value);
  176. })
  177. initMonthLineChart();
  178. }
  179. const getYearFlowData = async () => {
  180. yearLineXAxisData.value = [];
  181. yearLineData.value = [];
  182. const year = dayjs(new Date()).startOf('year').format('YYYY');
  183. const res = await getFlowDataByDateRange([
  184. year + '-01-01',
  185. year + '-12-31'
  186. ])
  187. res.reverse().forEach((item:any) => {
  188. yearLineXAxisData.value.push(item.date);
  189. yearLineData.value.push(item.value);
  190. })
  191. initYearLineChart();
  192. }
  193. const getFlowData = async () => {
  194. flowLineXAxisData.value = [];
  195. flowLineData.value = [];
  196. const res = await getFlowDataByDateRange(dateTimeRange.value)
  197. res.reverse().forEach((item:any) => {
  198. flowLineXAxisData.value.push(item.date);
  199. flowLineData.value.push(item.value);
  200. })
  201. iniFlowLineChart();
  202. }
  203. const changeDate = (key:number) => {
  204. // 1 昨天 2近一周 3近一月 4近一年
  205. activeIndex.value = key;
  206. if(key === 1) {
  207. // 昨天
  208. const yesterday = dayjs(new Date()).subtract(1, 'day').format('YYYY-MM-DD')
  209. dateTimeRange.value = [
  210. yesterday + " 00:00:00",
  211. yesterday + " 23:59:59"
  212. ]
  213. }else if(key === 2) {
  214. // 近一周
  215. dateTimeRange.value = [
  216. dayjs(new Date()).subtract(6, 'day'),
  217. dayjs(new Date()),
  218. ]
  219. }else if(key === 3) {
  220. // 近一月
  221. dateTimeRange.value = [
  222. dayjs(new Date()).subtract(1, 'month'),
  223. dayjs(new Date()),
  224. ]
  225. }else if(key === 4) {
  226. // 近一年
  227. dateTimeRange.value = [
  228. dayjs(new Date()).subtract(1, 'year'),
  229. dayjs(new Date()),
  230. ]
  231. }
  232. getFlowData();
  233. }
  234. const typeChange = () => {
  235. getYesterdayFlowData();
  236. getMonthFlowData();
  237. getYearFlowData();
  238. getFlowData();
  239. getTop10Data();
  240. }
  241. const getTop10Data = async () => {
  242. const top10Res = await api.dashboard.getTop10Data({
  243. sdate: dayjs(dateRange.value[0]).format('YYYY-MM-DD'),
  244. edate: dayjs(dateRange.value[1]).format('YYYY-MM-DD'),
  245. types: types.value
  246. })
  247. rankList.value = top10Res.data || [];
  248. totalNum.value = top10Res.data ? top10Res.data[0].value : 0;
  249. }
  250. const getFlowAllData = async () => {
  251. const res = await api.dashboard.getFlowData({
  252. types: types.value
  253. })
  254. statisticsData.value = res
  255. }
  256. // 折线图 - 昨日流量消耗
  257. const initYesterdayLineChart = () => {
  258. if (!state.global.dispose.some((b: any) => b === state.global.yesterdayLine)) state.global.yesterdayLine.dispose();
  259. state.global.yesterdayLine = markRaw(echarts.init(yesterdayLine.value, state.charts.theme));
  260. const option = {
  261. backgroundColor: state.charts.bgColor,
  262. xAxis: {
  263. data: yesterdayLineXAxisData.value,
  264. show: false,
  265. },
  266. yAxis: [
  267. {
  268. type: 'value',
  269. name: '',
  270. show: false,
  271. splitLine: { show: false, lineStyle: { type: 'dashed', color: '#f5f5f5' } },
  272. },
  273. ],
  274. tooltip: {
  275. trigger: 'axis',
  276. formatter: function (params:any) {
  277. var relVal = params[0].name
  278. let circle = `<i style="margin-right:4px;display: inline-block;width: 10px;height: 10px;border-radius: 50%;background-color:${params[0].color}"></i>`
  279. relVal += '<br/>' + circle + ' 流量: ' + formatSize(params[0].value*1024*1024)
  280. return relVal;
  281. }
  282. },
  283. grid: { top: 10, right: 10, bottom: 10, left: 10 },
  284. series: [
  285. {
  286. name: '流量',
  287. type: 'line',
  288. smooth: true,
  289. data: yesterdayLineData.value,
  290. lineStyle: { color: '#fe9a8b' },
  291. itemStyle: { color: '#fe9a8b', borderColor: '#fe9a8b' },
  292. areaStyle: {
  293. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  294. { offset: 0, color: '#fe9a8bb3' },
  295. { offset: 1, color: '#fe9a8b03' },
  296. ]),
  297. },
  298. }
  299. ],
  300. };
  301. (<any>state.global.yesterdayLine).setOption(option);
  302. (<any>state.myCharts).push(state.global.yesterdayLine);
  303. };
  304. // 折线图 - 当月流量消耗
  305. const initMonthLineChart = () => {
  306. if (!state.global.dispose.some((b: any) => b === state.global.monthLine)) state.global.monthLine.dispose();
  307. state.global.monthLine = markRaw(echarts.init(monthLine.value, state.charts.theme));
  308. const option = {
  309. backgroundColor: state.charts.bgColor,
  310. xAxis: {
  311. data: monthLineXAxisData.value,
  312. show: false,
  313. },
  314. yAxis: [
  315. {
  316. type: 'value',
  317. name: '',
  318. show: false,
  319. },
  320. ],
  321. tooltip: {
  322. trigger: 'axis',
  323. formatter: function (params:any) {
  324. var relVal = params[0].name
  325. let circle = `<i style="margin-right:4px;display: inline-block;width: 10px;height: 10px;border-radius: 50%;background-color:${params[0].color}"></i>`
  326. relVal += '<br/>' + circle + ' 流量: ' + formatSize(params[0].value*1024*1024)
  327. return relVal;
  328. }
  329. },
  330. grid: { top: 10, right: 10, bottom: 10, left: 10 },
  331. series: [
  332. {
  333. name: '流量',
  334. type: 'line',
  335. smooth: true,
  336. data: monthLineData.value,
  337. lineStyle: { color: '#9E87FF' },
  338. itemStyle: { color: '#9E87FF', borderColor: '#9E87FF' },
  339. areaStyle: {
  340. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  341. { offset: 0, color: '#9E87FFb3' },
  342. { offset: 1, color: '#9E87FF03' },
  343. ]),
  344. },
  345. }
  346. ],
  347. };
  348. (<any>state.global.monthLine).setOption(option);
  349. (<any>state.myCharts).push(state.global.monthLine);
  350. };
  351. // 折线图 - 本年流量消耗
  352. const initYearLineChart = () => {
  353. if (!state.global.dispose.some((b: any) => b === state.global.yearLine)) state.global.yearLine.dispose();
  354. state.global.yearLine = markRaw(echarts.init(yearLine.value, state.charts.theme));
  355. const option = {
  356. backgroundColor: state.charts.bgColor,
  357. xAxis: {
  358. data: yearLineXAxisData.value,
  359. show: false,
  360. },
  361. yAxis: [
  362. {
  363. type: 'value',
  364. name: '',
  365. show: false,
  366. splitLine: { show: false, lineStyle: { type: 'dashed', color: '#f5f5f5' } }
  367. }
  368. ],
  369. tooltip: {
  370. trigger: 'axis',
  371. formatter: function (params:any) {
  372. var relVal = params[0].name
  373. let circle = `<i style="margin-right:4px;display: inline-block;width: 10px;height: 10px;border-radius: 50%;background-color:${params[0].color}"></i>`
  374. relVal += '<br/>' + circle + ' 流量: ' + formatSize(params[0].value*1024*1024)
  375. return relVal;
  376. }
  377. },
  378. grid: { top: 10, right: 10, bottom: 10, left: 10 },
  379. series: [
  380. {
  381. name: '流量',
  382. type: 'line',
  383. smooth: true,
  384. data: yearLineData.value,
  385. lineStyle: { color: '#fe9a8b' },
  386. itemStyle: { color: '#fe9a8b', borderColor: '#fe9a8b' },
  387. areaStyle: {
  388. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  389. { offset: 0, color: '#fe9a8bb3' },
  390. { offset: 1, color: '#fe9a8b03' },
  391. ]),
  392. },
  393. }
  394. ],
  395. };
  396. (<any>state.global.yearLine).setOption(option);
  397. (<any>state.myCharts).push(state.global.yearLine);
  398. };
  399. // 折线图 - 流量统计
  400. const iniFlowLineChart = async () => {
  401. if (!state.global.dispose.some((b: any) => b === state.global.flowLine)) state.global.flowLine.dispose();
  402. state.global.flowLine = markRaw(echarts.init(flowLine.value, state.charts.theme));
  403. const option = {
  404. backgroundColor: state.charts.bgColor,
  405. grid: { top: 70, right: 20, bottom: 30, left: 30 },
  406. tooltip: {
  407. trigger: 'axis',
  408. formatter: function (params:any) {
  409. var relVal = params[0].name
  410. let circle = `<i style="margin-right:4px;display: inline-block;width: 10px;height: 10px;border-radius: 50%;background-color:${params[0].color}"></i>`
  411. relVal += '<br/>' + circle + ' 流量: ' + params[0].value + 'MB'
  412. return relVal;
  413. }
  414. },
  415. xAxis: {
  416. data: flowLineXAxisData.value,
  417. },
  418. yAxis: [
  419. {
  420. type: 'value',
  421. name: '',
  422. splitLine: { show: true, lineStyle: { type: 'dashed', color: '#f5f5f5' } },
  423. axisLabel: {
  424. margin: 2,
  425. formatter: function (value:any) {
  426. if (value >= 10000 && value < 10000000) {
  427. value = value / 10000 + "W";
  428. } else if (value >= 10000000) {
  429. value = value / 10000000 + "KW";
  430. }
  431. return value;
  432. }
  433. },
  434. },
  435. ],
  436. series: [
  437. {
  438. name: '流量',
  439. type: 'line',
  440. symbolSize: 6,
  441. symbol: 'circle',
  442. smooth: true,
  443. data: flowLineData.value,
  444. lineStyle: { color: '#9E87FF' },
  445. itemStyle: { color: '#9E87FF', borderColor: '#9E87FF' },
  446. areaStyle: {
  447. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  448. { offset: 0, color: '#9E87FFb3' },
  449. { offset: 1, color: '#9E87FF03' },
  450. ]),
  451. },
  452. emphasis: {
  453. itemStyle: {
  454. color: {
  455. type: 'radial',
  456. x: 0.5,
  457. y: 0.5,
  458. r: 0.5,
  459. colorStops: [
  460. { offset: 0, color: '#9E87FF' },
  461. { offset: 0.4, color: '#9E87FF' },
  462. { offset: 0.5, color: '#fff' },
  463. { offset: 0.7, color: '#fff' },
  464. { offset: 0.8, color: '#fff' },
  465. { offset: 1, color: '#fff' },
  466. ],
  467. },
  468. borderColor: '#9E87FF',
  469. borderWidth: 2,
  470. },
  471. },
  472. },
  473. ],
  474. };
  475. (<any>state.global.flowLine).setOption(option);
  476. (<any>state.myCharts).push(state.global.flowLine);
  477. };
  478. getFlowAllData();
  479. getYesterdayFlowData();
  480. getMonthFlowData();
  481. getYearFlowData();
  482. getFlowData();
  483. getTop10Data();
  484. // 监听 vuex 中是否开启深色主题
  485. watch(
  486. () => store.state.themeConfig.themeConfig.isIsDark,
  487. (isIsDark) => {
  488. nextTick(() => {
  489. state.charts.theme = isIsDark ? 'dark' : '';
  490. state.charts.bgColor = isIsDark ? 'transparent' : '';
  491. state.charts.color = isIsDark ? '#dadada' : '#303133';
  492. setTimeout(() => {
  493. iniFlowLineChart();
  494. initYesterdayLineChart();
  495. initMonthLineChart();
  496. initYearLineChart();
  497. }, 500);
  498. });
  499. },
  500. {
  501. deep: true,
  502. immediate: true,
  503. }
  504. );
  505. </script>
  506. <style lang="scss" scoped>
  507. .select-wrap {
  508. text-align: right;
  509. }
  510. .top-wrap {
  511. width: 100%;
  512. .flex {
  513. justify-content: space-between;
  514. }
  515. .top-inner-wrap {
  516. display: flex;
  517. margin-top: 10px;
  518. }
  519. .line-wrap {
  520. flex: 1;
  521. background-color: #fff;
  522. background: #fcfcfc;
  523. border: 1px solid #e0e4e8;
  524. display: flex;
  525. justify-content: space-between;
  526. align-items: center;
  527. padding: 20px;
  528. position: relative;
  529. .text-wrap {
  530. position: absolute;
  531. left: 20px;
  532. top: 40px;
  533. .text {
  534. font-size: 14px;
  535. color: #000000a3;
  536. }
  537. div:nth-child(2) {
  538. font-size: 32px;
  539. font-weight: 700;
  540. overflow: hidden;
  541. white-space: nowrap;
  542. text-overflow: ellipsis;
  543. }
  544. }
  545. .line-inner-wrap {
  546. height: 100px;
  547. width: calc(100% - 150px);
  548. margin-left: 150px;
  549. }
  550. }
  551. .line-wrap:not(:nth-child(1)) {
  552. margin-left: 20px;
  553. }
  554. }
  555. .title {
  556. color: var(--el-text-color-primary);
  557. font-size: 16px;
  558. font-weight: 700;
  559. }
  560. .statistics-wrap {
  561. display: flex;
  562. justify-content: space-between;
  563. align-items: normal;
  564. margin-top: 20px;
  565. width: 100%;
  566. .left-wrap {
  567. width: 66.3%;
  568. .top-title-wrap {
  569. display: flex;
  570. justify-content: space-between;
  571. align-items: center;
  572. margin-bottom: 16px;
  573. :deep(.el-date-editor.el-input__wrapper) {
  574. width: 360px!important;
  575. margin-left: 12px;
  576. }
  577. .operate-wrap {
  578. display: flex;
  579. justify-content: center;
  580. align-items: center;
  581. }
  582. }
  583. }
  584. .right-wrap {
  585. width: calc(33.7% - 20px);
  586. margin-left: 20px;
  587. .top-title-wrap {
  588. display: flex;
  589. justify-content: space-between;
  590. align-items: center;
  591. margin-bottom: 16px;
  592. :deep(.el-date-editor.el-input__wrapper) {
  593. max-width: 220px!important;
  594. }
  595. }
  596. .ranking-list {
  597. width: 100%;
  598. .rank-item {
  599. width: 100%;
  600. display: flex;
  601. justify-content: space-between;
  602. align-items: center;
  603. margin-bottom: 24px;
  604. .number {
  605. flex: 0 0 24px;
  606. height: 24px;
  607. color: #fff;
  608. font-weight: 700;
  609. line-height: 24px;
  610. text-align: center;
  611. background-color: #d1d1d1;
  612. }
  613. .number-item-1 {
  614. color: #e50012;
  615. background-color: #e500121a;
  616. }
  617. .number-item-2 {
  618. color: #fba500;
  619. background-color: #fba5001a;
  620. }
  621. .number-item-3 {
  622. color: #597ef7;
  623. background-color: #597ef71a;
  624. }
  625. .card-num {
  626. width: 110px;
  627. }
  628. .progress-wrap {
  629. width: 32%;
  630. }
  631. .flow-num {
  632. width: 90px;
  633. text-align: right;
  634. }
  635. }
  636. }
  637. }
  638. }
  639. </style>