eleDetail.vue 21 KB

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