eleDetail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807
  1. <template>
  2. <view class="ele-details-page">
  3. <cu-custom :isBack="true">
  4. <template slot="content">
  5. <view class="nav-title">小气候监测站II监测要素</view>
  6. </template>
  7. </cu-custom>
  8. <view class="date-picker" @click="openDatePicker">
  9. <text>{{ startDate }}</text>
  10. <text class="separator">-</text>
  11. <text>{{ endDate }}</text>
  12. <image class="date-icon" src="/static/images/device/date-active.svg" />
  13. </view>
  14. <u-calendar
  15. v-model="show"
  16. :mode="mode"
  17. @change="onDateChange"
  18. ref="calendar"
  19. ></u-calendar>
  20. <view class="echarts-board">
  21. <view class="period-tabs">
  22. <view
  23. class="tab-item"
  24. :class="{ active: activePeriod === '24h' }"
  25. @click="changePeriod('24h')"
  26. >24小时</view
  27. >
  28. <view
  29. class="tab-item"
  30. :class="{ active: activePeriod === '7d' }"
  31. @click="changePeriod('7d')"
  32. >一周</view
  33. >
  34. <view
  35. class="tab-item"
  36. :class="{ active: activePeriod === '30d' }"
  37. @click="changePeriod('30d')"
  38. >一月</view
  39. >
  40. </view>
  41. <view class="element-tabs" v-if="hasData">
  42. <view class="ele-board">
  43. <view
  44. v-for="(item, index) in eleTabs"
  45. :key="index"
  46. class="ele-item"
  47. :class="{ 'ele-active': eleActive === index }"
  48. @click="changeElement(index)"
  49. >{{ item.name }}</view
  50. >
  51. </view>
  52. <view class="fold-icon" @click="toggleFold">
  53. <u-icon :name="isFolded ? 'arrow-down' : 'arrow-up'"></u-icon>
  54. </view>
  55. </view>
  56. <!-- 展开后的所有要素 -->
  57. <view v-if="!isFolded && hasData" class="expanded-elements">
  58. <view
  59. class="expanded-item"
  60. v-for="(item, index) in eleTabs"
  61. :key="index"
  62. :class="{ 'ele-active': eleActive === index }"
  63. @click="changeElement(index)"
  64. >
  65. {{ item.name }}
  66. </view>
  67. </view>
  68. <view class="chart-container" v-if="hasData">
  69. <canvas
  70. canvas-id="temperatureChart"
  71. id="temperatureChart"
  72. class="chart"
  73. @touchstart="touchLineA($event)"
  74. @touchmove="moveLineA($event)"
  75. @touchend="touchEndLineA($event)"
  76. disable-scroll="true"
  77. ></canvas>
  78. </view>
  79. <view class="no-data" v-else>
  80. <text>暂无数据</text>
  81. </view>
  82. <!-- <view class="stats-panel">
  83. <view class="stat-item">
  84. <text class="value">27<text class="unit">°C</text></text>
  85. <text class="label">最低值</text>
  86. </view>
  87. <view class="stat-item">
  88. <text class="value">32<text class="unit">°C</text></text>
  89. <text class="label">平均值</text>
  90. </view>
  91. <view class="stat-item">
  92. <text class="value red">42<text class="unit red">°C</text></text>
  93. <text class="label">最高值</text>
  94. </view>
  95. </view> -->
  96. </view>
  97. <view class="history-section">
  98. <view class="section-title">历史数据</view>
  99. <view class="table-wrap">
  100. <view class="fixed-column">
  101. <view class="table-cell header">上报时间</view>
  102. <view class="table-cell" v-for="(item, idx) in tableList" :key="idx">
  103. {{ item.uptime }}
  104. </view>
  105. </view>
  106. <view class="table-bg"></view>
  107. <scroll-view class="scroll-column" scroll-x="true">
  108. <view class="scroll-content">
  109. <view class="table-row">
  110. <view class="table-cell header">{{
  111. activeChartInfo.name + "(" + activeChartInfo.unit + ")"
  112. }}</view>
  113. </view>
  114. <view class="table-row" v-for="(item, idx) in tableList" :key="idx">
  115. <view class="table-cell">{{ item[activeChartInfo.title] }}</view>
  116. </view>
  117. </view>
  118. </scroll-view>
  119. </view>
  120. <view class="pagination">
  121. <view
  122. class="page-item prev"
  123. @click="prevPage"
  124. :class="{ disabled: currentPage === 1 }"
  125. >上一页</view
  126. >
  127. <view class="page-info">
  128. <text class="curret-page">{{ currentPage }}</text>
  129. <text>/</text>
  130. <text>{{ totalPages }}</text>
  131. </view>
  132. <view
  133. class="page-item next"
  134. @click="nextPage"
  135. :class="{ disabled: currentPage >= totalPages }"
  136. >下一页</view
  137. >
  138. </view>
  139. </view>
  140. </view>
  141. </template>
  142. <script>
  143. import uCharts from "../../../components/js_sdk/u-charts/u-charts/u-charts.js";
  144. import baseCharts from "./charts.vue";
  145. export default {
  146. components: { baseCharts },
  147. onLoad(options) {
  148. const deviceInfo = JSON.parse(decodeURIComponent(options.deviceInfo));
  149. console.log(deviceInfo, "deviceInfo");
  150. this.eleKey = options.eleKey || "";
  151. this.initDateRange(deviceInfo.uptime);
  152. this.deviceInfo = deviceInfo;
  153. this.getChartData();
  154. this.getObData();
  155. },
  156. data() {
  157. return {
  158. temperatureChart: null,
  159. activePeriod: "",
  160. activeElement: "temperature",
  161. show: false,
  162. mode: "range",
  163. startDate: "",
  164. endDate: "",
  165. isFolded: true, // 控制要素是否收起
  166. eleTabs: [],
  167. eleActive: 0,
  168. hasData: true,
  169. tableList: [],
  170. currentPage: 1,
  171. pageSize: 9,
  172. total: 0,
  173. chartData: {
  174. categories: [],
  175. series: [],
  176. },
  177. activeChartInfo: {},
  178. eleKey: "",
  179. };
  180. },
  181. computed: {
  182. totalPages() {
  183. return Math.ceil(this.total / this.pageSize);
  184. },
  185. },
  186. methods: {
  187. initDateRange(timestamp) {
  188. if (!timestamp) {
  189. const today = new Date();
  190. this.endDate = this.formatDate(today);
  191. const startDate = new Date(today);
  192. startDate.setDate(startDate.getDate() - 7);
  193. this.startDate = this.formatDate(startDate);
  194. return;
  195. }
  196. const date = new Date(Number(timestamp) * 1000);
  197. this.endDate = this.formatDate(date);
  198. const startDate = new Date(date);
  199. startDate.setDate(startDate.getDate() - 7);
  200. this.startDate = this.formatDate(startDate);
  201. },
  202. formatDate(date) {
  203. const year = date.getFullYear();
  204. const month = String(date.getMonth() + 1).padStart(2, "0");
  205. const day = String(date.getDate()).padStart(2, "0");
  206. return `${year}-${month}-${day}`;
  207. },
  208. initChart() {
  209. const ctx = uni.createCanvasContext("temperatureChart", this);
  210. const currentEle = this.eleTabs[this.eleActive];
  211. console.log(currentEle, "currentEle");
  212. currentEle.data.forEach((item) => {
  213. if (item.value === "/") {
  214. item.value = "0";
  215. }
  216. });
  217. const series = [
  218. {
  219. name: currentEle.name,
  220. data: currentEle.data,
  221. lineWidth: 3,
  222. pointShape: "circle",
  223. pointSize: 12,
  224. pointColor: currentEle.color,
  225. pointBorderColor: "#fff",
  226. pointBorderWidth: 2,
  227. symbol: "emptyCircle",
  228. symbolSize: 6,
  229. legendShape: "circle",
  230. },
  231. ];
  232. const xData = currentEle.data.map((item) => item.time);
  233. this.temperatureChart = new uCharts({
  234. $this: this,
  235. canvasId: "temperatureChart",
  236. type: "line",
  237. context: ctx,
  238. width: 340,
  239. height: 180,
  240. categories: xData,
  241. series: series,
  242. legend: {
  243. position: "top",
  244. show: true,
  245. padding: 5,
  246. fontColor: "#303133",
  247. fontSize: 12,
  248. itemType: "circle",
  249. itemShape: "emptyCircle",
  250. itemWidth: 12,
  251. itemHeight: 12,
  252. lineWidth: 2,
  253. },
  254. xAxis: {
  255. axisLineColor: "#E4E7ED",
  256. disableGrid: true,
  257. fontColor: "#656565",
  258. fontSize: 10,
  259. itemCount: 5,
  260. scrollShow: true,
  261. },
  262. yAxis: {
  263. splitNumber: 4,
  264. axisLineColor: "#E4E7ED",
  265. fontColor: "#656565",
  266. gridColor: "#E4E7ED",
  267. dashLength: 4,
  268. disableGrid: false,
  269. fontSize: 10,
  270. },
  271. dataLabel: false,
  272. enableScroll: true,
  273. background: "#FFFFFF",
  274. extra: {
  275. line: {
  276. type: "curve",
  277. width: 2,
  278. activeType: "hollow",
  279. },
  280. },
  281. });
  282. },
  283. touchLineA(e) {
  284. this.temperatureChart.scrollStart(e);
  285. },
  286. moveLineA(e) {
  287. this.temperatureChart.scroll(e);
  288. },
  289. touchEndLineA(e) {
  290. this.temperatureChart.scrollEnd(e);
  291. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  292. // this.temperatureChart.showToolTip(e, {
  293. // format: function(item, category) {
  294. // console.log(item, 'iyee', e)
  295. // return category + ' ' + item.name + ':' + item.data
  296. // }
  297. // });
  298. },
  299. // 打开日期选择器
  300. openDatePicker() {
  301. this.show = true;
  302. // 延迟设置日期,确保组件已经初始化
  303. this.$nextTick(() => {
  304. if (this.$refs.calendar) {
  305. // 直接设置组件内部的日期状态
  306. const calendar = this.$refs.calendar;
  307. calendar.startDate = this.startDate;
  308. calendar.endDate = this.endDate;
  309. // 如果有选中的日期范围,设置对应的年、月、日
  310. if (this.startDate) {
  311. const startParts = this.startDate.split("-");
  312. calendar.startYear = parseInt(startParts[0]);
  313. calendar.startMonth = parseInt(startParts[1]);
  314. calendar.startDay = parseInt(startParts[2]);
  315. }
  316. if (this.endDate) {
  317. const endParts = this.endDate.split("-");
  318. calendar.endYear = parseInt(endParts[0]);
  319. calendar.endMonth = parseInt(endParts[1]);
  320. calendar.endDay = parseInt(endParts[2]);
  321. }
  322. // 如果有开始日期,设置日历当前显示的年月为开始日期的年月
  323. if (this.startDate) {
  324. const startParts = this.startDate.split("-");
  325. calendar.year = parseInt(startParts[0]);
  326. calendar.month = parseInt(startParts[1]);
  327. calendar.changeData();
  328. }
  329. }
  330. });
  331. },
  332. // 日期选择变化事件
  333. onDateChange(e) {
  334. this.startDate = e.startDate;
  335. this.endDate = e.endDate;
  336. this.activePeriod = "custom"; // 设置为自定义周期
  337. this.show = false;
  338. this.getChartData();
  339. },
  340. // 切换时间周期
  341. changePeriod(period) {
  342. this.activePeriod = period;
  343. // 根据选择的周期自动计算日期范围
  344. const now = new Date();
  345. const endDate = now.toISOString().split("T")[0];
  346. const startDate = new Date();
  347. if (period === "24h") {
  348. startDate.setDate(now.getDate());
  349. } else if (period === "7d") {
  350. startDate.setDate(now.getDate() - 7);
  351. } else if (period === "30d") {
  352. startDate.setMonth(now.getMonth() - 1);
  353. }
  354. this.startDate = startDate.toISOString().split("T")[0];
  355. this.endDate = endDate;
  356. this.getChartData();
  357. },
  358. // 切换要素标签
  359. changeElement(index) {
  360. if (this.eleTabs.length === 0) return;
  361. this.eleActive = index;
  362. this.activeChartInfo = this.eleTabs[index];
  363. this.isFolded = true; // 关闭展开面板
  364. this.$nextTick(() => {
  365. this.initChart();
  366. });
  367. },
  368. // 切换要素展开/收起状态
  369. toggleFold() {
  370. this.isFolded = !this.isFolded;
  371. },
  372. // 上一页
  373. prevPage() {
  374. if (this.currentPage > 1) {
  375. this.currentPage--;
  376. this.getObData();
  377. }
  378. },
  379. // 下一页
  380. nextPage() {
  381. if (this.currentPage < this.totalPages) {
  382. this.currentPage++;
  383. this.getObData();
  384. }
  385. },
  386. // 折线图数据
  387. getChartData() {
  388. this.$myRequest({
  389. url: "/api/api_gateway?method=qxz.data.qxz_ob_data_map",
  390. data: {
  391. device_id: this.deviceInfo.devBid,
  392. start: String(
  393. Math.floor(new Date(this.startDate + " 00:00:00").getTime() / 1000),
  394. ),
  395. end: String(
  396. Math.floor(new Date(this.endDate + " 23:59:59").getTime() / 1000),
  397. ),
  398. page: 1,
  399. page_size: 999,
  400. },
  401. }).then((res) => {
  402. console.log("getChartData:", res);
  403. if (res && Array.isArray(res) && res.length > 0) {
  404. this.eleTabs = res;
  405. this.hasData = true;
  406. this.activeChartInfo =
  407. this.eleTabs.find((item) => item.title === this.eleKey) ||
  408. this.eleTabs[0];
  409. this.eleActive = this.eleTabs.indexOf(this.activeChartInfo);
  410. console.log(this.activeChartInfo, "activeChartInfo");
  411. this.$nextTick(() => {
  412. this.initChart();
  413. });
  414. } else {
  415. this.eleTabs = [];
  416. this.hasData = false;
  417. }
  418. });
  419. },
  420. // 历史数据
  421. getObData() {
  422. this.$myRequest({
  423. url: "/api/api_gateway?method=qxz.data.qxz_ob_data",
  424. data: {
  425. device_id: this.deviceInfo.devBid,
  426. start: String(
  427. Math.floor(new Date(this.startDate + " 00:00:00").getTime() / 1000),
  428. ),
  429. end: String(
  430. Math.floor(new Date(this.endDate + " 23:59:59").getTime() / 1000),
  431. ),
  432. page: this.currentPage,
  433. page_size: this.pageSize,
  434. },
  435. }).then((res) => {
  436. console.log("getObData:", res);
  437. const columns = res.title;
  438. const data = res.data;
  439. const newData = data.map((item) => {
  440. return this.processData(item);
  441. });
  442. const resCol = this.convertDynamic(columns, (prop, val) =>
  443. Array.isArray(val) ? `${val[1]}${val[3] || ""}` : val,
  444. );
  445. this.columns = resCol;
  446. this.tableList = newData;
  447. this.total = res.count;
  448. console.log("tableList:", this.columns);
  449. console.log("tableList", this.tableList);
  450. });
  451. },
  452. convertDynamic(data, getLabelValue) {
  453. if (!data || typeof data !== "object") return [];
  454. const result = [];
  455. const keys = Object.keys(data);
  456. for (const prop of keys) {
  457. const arr = data[prop];
  458. const value = getLabelValue(prop, arr, data);
  459. if (value !== undefined && value !== null) {
  460. result.push({
  461. label: String(value),
  462. prop,
  463. align: "center",
  464. });
  465. }
  466. }
  467. return result;
  468. },
  469. processData(data) {
  470. return Object.entries(data).reduce((acc, [key, value]) => {
  471. acc[key] = Array.isArray(value) ? value[0] : value;
  472. return acc;
  473. }, {});
  474. },
  475. },
  476. };
  477. </script>
  478. <style lang="scss">
  479. .ele-details-page {
  480. background:
  481. linear-gradient(180deg, #ffffff00 0%, #f5f6fa 23.64%, #f5f6fa 100%),
  482. linear-gradient(102deg, #bfeadd 6.77%, #b8f1e7 40.15%, #b9eef5 84.02%);
  483. min-height: 100vh;
  484. padding: 0 32rpx;
  485. padding-top: 98rpx;
  486. }
  487. .date-picker {
  488. display: flex;
  489. align-items: center;
  490. justify-content: space-between;
  491. background-color: #fff;
  492. border-radius: 40rpx;
  493. padding: 16rpx 24rpx;
  494. margin-bottom: 36rpx;
  495. font-size: 28rpx;
  496. color: #999;
  497. margin-top: 46rpx;
  498. .date-icon {
  499. width: 32rpx;
  500. height: 32rpx;
  501. }
  502. }
  503. .separator {
  504. margin: 0 16rpx;
  505. }
  506. .echarts-board {
  507. padding: 32rpx;
  508. border-radius: 16rpx;
  509. background: #fff;
  510. margin-bottom: 24rpx;
  511. position: relative;
  512. .period-tabs {
  513. width: 350rpx;
  514. height: 64rpx;
  515. display: flex;
  516. justify-content: space-between;
  517. align-items: center;
  518. margin: auto;
  519. margin-bottom: 12rpx;
  520. border-radius: 32rpx;
  521. background: #f1f4f8;
  522. padding: 8rpx 10rpx;
  523. color: #303133;
  524. font-family: "Source Han Sans CN VF";
  525. font-size: 26rpx;
  526. font-style: normal;
  527. font-weight: 400;
  528. line-height: normal;
  529. .tab-item {
  530. padding: 5rpx 24rpx;
  531. height: 48rpx;
  532. line-height: 48rpx;
  533. border-radius: 32rpx;
  534. }
  535. .active {
  536. background: #fff;
  537. }
  538. }
  539. .element-tabs {
  540. display: flex;
  541. justify-content: space-between;
  542. align-items: center;
  543. overflow-x: auto;
  544. white-space: nowrap;
  545. .ele-board {
  546. flex: 1;
  547. display: flex;
  548. align-items: center;
  549. overflow-x: auto;
  550. overflow-y: hidden;
  551. white-space: nowrap;
  552. }
  553. .ele-item {
  554. position: relative;
  555. color: #999999;
  556. font-size: 28rpx;
  557. font-weight: 400;
  558. white-space: nowrap;
  559. margin-right: 16rpx;
  560. padding: 14rpx 16rpx;
  561. cursor: pointer;
  562. }
  563. .ele-active {
  564. color: #303133;
  565. font-weight: 500;
  566. &::after {
  567. content: "";
  568. position: absolute;
  569. left: 50%;
  570. transform: translateX(-50%);
  571. bottom: 4rpx;
  572. display: block;
  573. width: 30rpx;
  574. height: 8rpx;
  575. border-radius: 4rpx;
  576. background: #1fc676;
  577. }
  578. }
  579. .fold-icon {
  580. width: 48rpx;
  581. border-left: 2px solid #999;
  582. padding-left: 16rpx;
  583. margin-left: 16rpx;
  584. cursor: pointer;
  585. }
  586. }
  587. /* 展开后的要素容器样式 */
  588. .expanded-elements {
  589. position: absolute;
  590. top: 126rpx;
  591. left: 0;
  592. right: 0;
  593. background: #f5f7fa;
  594. border-radius: 12rpx;
  595. padding: 16rpx;
  596. display: flex;
  597. flex-wrap: wrap;
  598. gap: 16rpx;
  599. z-index: 10;
  600. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
  601. }
  602. .expanded-item {
  603. flex: 0 0 calc(33.33% - 16rpx);
  604. text-align: center;
  605. padding: 16rpx 0;
  606. border-radius: 8rpx;
  607. color: #999999;
  608. font-size: 26rpx;
  609. background: #ffffff;
  610. cursor: pointer;
  611. transition: all 0.3s ease;
  612. }
  613. .expanded-item.ele-active {
  614. color: #1fc676;
  615. background: #e6f7ef;
  616. font-weight: 500;
  617. }
  618. .chart-container {
  619. border-radius: 16rpx;
  620. margin-bottom: 24rpx;
  621. position: relative;
  622. padding: 10rpx;
  623. overflow: hidden;
  624. .chart {
  625. width: 100%;
  626. height: 336rpx;
  627. }
  628. }
  629. .no-data {
  630. border-radius: 16rpx;
  631. margin-bottom: 24rpx;
  632. padding: 10rpx;
  633. height: 336rpx;
  634. display: flex;
  635. align-items: center;
  636. justify-content: center;
  637. background-color: #f9f9f9;
  638. text {
  639. color: #999;
  640. font-size: 32rpx;
  641. }
  642. }
  643. .stats-panel {
  644. display: flex;
  645. justify-content: space-between;
  646. background-color: #f1f4f8;
  647. border-radius: 16rpx;
  648. padding: 24rpx 64rpx;
  649. .stat-item {
  650. display: flex;
  651. flex-direction: column;
  652. align-items: center;
  653. .label {
  654. color: #656565;
  655. font-size: 24rpx;
  656. font-weight: 400;
  657. }
  658. .value {
  659. font-size: 40rpx;
  660. font-weight: bold;
  661. }
  662. .unit {
  663. color: #999999;
  664. font-size: 20rpx;
  665. }
  666. .red {
  667. color: #fb4e52;
  668. }
  669. }
  670. }
  671. }
  672. .history-section {
  673. background-color: #fff;
  674. border-radius: 16rpx;
  675. padding: 24rpx 32rpx;
  676. .section-title {
  677. font-size: 28rpx;
  678. font-weight: bold;
  679. margin-bottom: 16rpx;
  680. color: #303133;
  681. }
  682. .table-wrap {
  683. display: flex;
  684. width: 100%;
  685. box-sizing: border-box;
  686. margin: 20rpx 0;
  687. color: #042118;
  688. font-family: "Source Han Sans CN VF";
  689. font-size: 24rpx;
  690. font-style: normal;
  691. font-weight: 400;
  692. line-height: normal;
  693. .fixed-column {
  694. width: 250rpx;
  695. .table-cell {
  696. width: 100%;
  697. white-space: nowrap;
  698. }
  699. }
  700. .table-bg {
  701. width: 16rpx;
  702. background: linear-gradient(270deg, #ffffff33 0%, #9598a433 100%);
  703. }
  704. .scroll-column {
  705. flex: 1;
  706. height: auto;
  707. overflow: hidden;
  708. margin-left: -10rpx;
  709. }
  710. .scroll-content {
  711. min-width: 100%;
  712. width: fit-content;
  713. display: flex;
  714. flex-direction: column;
  715. .table-row {
  716. display: flex;
  717. .table-cell {
  718. flex: 1;
  719. }
  720. }
  721. }
  722. .table-cell {
  723. width: 160rpx;
  724. height: 64rpx;
  725. line-height: 64rpx;
  726. text-align: center;
  727. border-bottom: 2px solid #e4e7ed;
  728. box-sizing: border-box;
  729. }
  730. .table-cell.header {
  731. background: #f6f8fc;
  732. }
  733. }
  734. .pagination {
  735. display: flex;
  736. align-items: center;
  737. justify-content: space-between;
  738. margin-top: 24rpx;
  739. .page-item {
  740. width: 104rpx;
  741. height: 48rpx;
  742. color: #656565;
  743. font-size: 24rpx;
  744. line-height: 48rpx;
  745. text-align: center;
  746. border: 2rpx solid #e4e7ed;
  747. border-radius: 8rpx;
  748. }
  749. .page-item.disabled {
  750. color: #999;
  751. border-color: #e4e7ed;
  752. background-color: #f5f7fa;
  753. }
  754. .next {
  755. color: #0bbc58;
  756. border: 2rpx solid #0bbc58;
  757. }
  758. .next.disabled {
  759. color: #999;
  760. border-color: #e4e7ed;
  761. background-color: #f5f7fa;
  762. }
  763. .page-info {
  764. color: #999999;
  765. font-family: "Source Han Sans CN VF";
  766. font-size: 24rpx;
  767. font-style: normal;
  768. font-weight: 400;
  769. line-height: normal;
  770. .curret-page {
  771. color: #303133;
  772. }
  773. }
  774. }
  775. }
  776. ::v-deep .u-calendar__action {
  777. display: flex;
  778. justify-content: center;
  779. }
  780. </style>