index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868
  1. <template>
  2. <view class="device-details-page">
  3. <cu-custom :isBack="true">
  4. <template slot="content">
  5. <view class="nav-title">{{ deviceInfo.devName }}</view>
  6. </template>
  7. </cu-custom>
  8. <!-- 设备基本信息 -->
  9. <view class="device-info">
  10. <view @click="copy(deviceInfo.devBid)" class="info-item">
  11. <text class="info-label">设备ID</text>
  12. <text class="info-value">{{ deviceInfo.devBid }}</text>
  13. <image
  14. src="/static/images/device/copy.svg"
  15. mode=""
  16. class="info-img"
  17. ></image>
  18. </view>
  19. <view class="info-item">
  20. <text class="info-label">设备位置</text>
  21. <text class="info-value">{{ deviceInfo.address }}</text>
  22. </view>
  23. <view class="info-item">
  24. <text class="info-label">上报时间</text>
  25. <text class="info-value">{{ formatTimestamp(deviceInfo.uptime) }}</text>
  26. </view>
  27. <view class="dev-status">{{
  28. deviceInfo.devStatus == "1" ? "在线" : "离线"
  29. }}</view>
  30. </view>
  31. <!-- 标签页切换 -->
  32. <view class="tab-container">
  33. <view class="tab-top">
  34. <view
  35. class="tab-item"
  36. :class="{ active: activeTab === 'monitoring' }"
  37. @click="switchTab('monitoring')"
  38. >
  39. <text class="tab-text">监测要素</text>
  40. <image
  41. v-if="activeTab === 'monitoring'"
  42. src="/static/images/device/smile.svg"
  43. mode=""
  44. class="smile"
  45. ></image>
  46. </view>
  47. <view
  48. class="tab-item"
  49. :class="{ active: activeTab === 'details' }"
  50. @click="switchTab('details')"
  51. >
  52. <text class="tab-text">设备详情</text>
  53. <image
  54. v-if="activeTab === 'details'"
  55. src="/static/images/device/smile.svg"
  56. mode=""
  57. class="smile"
  58. ></image>
  59. </view>
  60. </view>
  61. </view>
  62. <!-- 标签页内容 -->
  63. <view class="tab-content">
  64. <!-- 监测要素页面 -->
  65. <view v-if="activeTab === 'monitoring'" class="monitoring-page">
  66. <view
  67. class="data-card"
  68. v-for="(item, index) in monitorList"
  69. :key="index"
  70. @click="goPage('eleDetail', item)"
  71. >
  72. <view class="card-title">{{ item.factorName }}</view>
  73. <view class="data-value-row">
  74. <view>
  75. <text v-if="item.yData && item.yData.length" class="data-value">{{ item.yData[0] }}</text>
  76. <text class="data-unit">{{ item.factorUnit }}</text>
  77. </view>
  78. <image
  79. class="device-img"
  80. :src="`/static/images/device/${item.key}-default.svg`"
  81. mode="aspectFit"
  82. ></image>
  83. </view>
  84. <view class="card-thrid">
  85. <text>{{ item.alias }}</text>
  86. </view>
  87. </view>
  88. </view>
  89. <!-- 设备详情页面 -->
  90. <view v-if="activeTab === 'details'" class="details-page">
  91. <!-- 设备参数 -->
  92. <view class="device-params">
  93. <view class="device-control">
  94. <!-- <view class="control-left">
  95. <view>2025-12-28 08:00:00</view>
  96. <u-icon name="reload" class="reload-img"></u-icon>
  97. </view> -->
  98. <view class="control-right">
  99. <image
  100. class="control-img"
  101. src="/static/images/cb/control.svg"
  102. mode="aspectFit"
  103. @click="goPage('devControl')"
  104. ></image>
  105. <image
  106. class="control-img"
  107. src="/static/images/cb/setting.svg"
  108. mode="aspectFit"
  109. @click="goPage('devRepair')"
  110. ></image>
  111. <image
  112. class="control-img"
  113. src="/static/images/cb/sim.svg"
  114. mode="aspectFit"
  115. @click="goPage('simDetail')"
  116. ></image>
  117. </view>
  118. </view>
  119. <view class="params-board">
  120. <view class="params-left">
  121. <view
  122. v-for="(item, index) in statusList"
  123. :key="index"
  124. class="params-item"
  125. >
  126. <view class="params-val">{{ item.val }}</view>
  127. <view class="params-label">{{ item.label }}</view>
  128. </view>
  129. </view>
  130. <view class="params-right">
  131. <image
  132. class="device-img"
  133. src="/static/images/device/dev-station.svg"
  134. mode="aspectFit"
  135. ></image>
  136. </view>
  137. </view>
  138. </view>
  139. <!-- 设备数据表格 -->
  140. <view class="table-container">
  141. <view class="table-control">
  142. <view class="title">设备数据</view>
  143. <view class="date-board" @click="openDatePicker">
  144. <text>{{ startDate }}</text>
  145. <text class="line">至</text>
  146. <text>{{ endDate }}</text>
  147. <image class="date-icon" src="/static/images/device/date.svg" />
  148. </view>
  149. </view>
  150. <u-calendar
  151. v-model="show"
  152. :mode="mode"
  153. @change="onDateChange"
  154. ref="calendar"
  155. ></u-calendar>
  156. <view class="table-wrap" v-if="tableData && tableData.length > 0">
  157. <view class="fixed-column">
  158. <view class="table-cell header">上报时间</view>
  159. <view
  160. class="table-cell"
  161. v-for="(item, idx) in tableData"
  162. :key="idx"
  163. >
  164. {{ item.uptime }}
  165. </view>
  166. </view>
  167. <view class="table-bg"></view>
  168. <scroll-view class="scroll-column" scroll-x="true">
  169. <view class="scroll-content">
  170. <view class="table-row">
  171. <view
  172. class="table-cell header"
  173. v-for="(item, index) in tableColumn"
  174. :key="index"
  175. >{{ item.label }}</view
  176. >
  177. </view>
  178. <view
  179. class="table-row"
  180. v-for="(item, idx) in tableData"
  181. :key="idx"
  182. >
  183. <view
  184. class="table-cell"
  185. v-for="(item1, index1) in tableColumn"
  186. :key="index1"
  187. >{{ item[item1.prop] }}</view
  188. >
  189. </view>
  190. </view>
  191. </scroll-view>
  192. </view>
  193. <view class="empty-state" v-else>
  194. <u-empty text="暂无数据" mode="list"></u-empty>
  195. </view>
  196. <view class="pagination" v-if="tableData && tableData.length > 0">
  197. <view
  198. class="page-item prev"
  199. :class="{ disabled: page <= 1 }"
  200. @click="prevPage"
  201. >上一页</view>
  202. <view class="page-info">
  203. <text class="curret-page">{{ page }}</text>
  204. <text>/</text>
  205. <text>{{ totalPages }}</text>
  206. </view>
  207. <view
  208. class="page-item next"
  209. :class="{ disabled: page >= totalPages }"
  210. @click="nextPage"
  211. >下一页</view>
  212. </view>
  213. </view>
  214. </view>
  215. </view>
  216. </view>
  217. </template>
  218. <script>
  219. export default {
  220. onLoad(options) {
  221. console.log(options, "optionsss");
  222. this.deviceInfo = options;
  223. this.initDateRange(options.uptime);
  224. this.getQxzObData();
  225. this.getDeviceStatus();
  226. this.getDeviceData();
  227. },
  228. data() {
  229. return {
  230. deviceInfo: {},
  231. activeTab: "monitoring",
  232. monitorList: [],
  233. statusList: [],
  234. show: false,
  235. mode: "range",
  236. startDate: "",
  237. endDate: "",
  238. page: 1,
  239. pageSize: 9,
  240. total: 0,
  241. tableData: [],
  242. tableColumn: [],
  243. };
  244. },
  245. computed: {
  246. totalPages() {
  247. return Math.ceil(this.total / this.pageSize) || 1;
  248. },
  249. },
  250. methods: {
  251. formatTimestamp(timestamp) {
  252. if (!timestamp) return "";
  253. const date = new Date(Number(timestamp) * 1000);
  254. const year = date.getFullYear();
  255. const month = String(date.getMonth() + 1).padStart(2, "0");
  256. const day = String(date.getDate()).padStart(2, "0");
  257. const hours = String(date.getHours()).padStart(2, "0");
  258. const minutes = String(date.getMinutes()).padStart(2, "0");
  259. const seconds = String(date.getSeconds()).padStart(2, "0");
  260. return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
  261. },
  262. formatDate(date) {
  263. const year = date.getFullYear();
  264. const month = String(date.getMonth() + 1).padStart(2, "0");
  265. const day = String(date.getDate()).padStart(2, "0");
  266. return `${year}-${month}-${day}`;
  267. },
  268. initDateRange(timestamp) {
  269. if (!timestamp) {
  270. const today = new Date();
  271. this.endDate = this.formatDate(today);
  272. const startDate = new Date(today);
  273. startDate.setDate(startDate.getDate() - 7);
  274. this.startDate = this.formatDate(startDate);
  275. return;
  276. }
  277. const date = new Date(Number(timestamp) * 1000);
  278. this.endDate = this.formatDate(date);
  279. const startDate = new Date(date);
  280. startDate.setDate(startDate.getDate() - 7);
  281. this.startDate = this.formatDate(startDate);
  282. },
  283. switchTab(tab) {
  284. this.activeTab = tab;
  285. },
  286. copy(item) {
  287. console.log(item);
  288. uni.setClipboardData({
  289. data: item,
  290. success: function () {
  291. console.log("success");
  292. },
  293. });
  294. },
  295. goPage(type, eleItem) {
  296. let url = ''
  297. if (eleItem && eleItem.key) {
  298. url = `/pages/deviceDetails/weatherStation/${type}?deviceInfo=${encodeURIComponent(JSON.stringify(this.deviceInfo))}&eleKey=${eleItem.key}`
  299. } else {
  300. url = `/pages/deviceDetails/weatherStation/${type}?deviceInfo=${encodeURIComponent(JSON.stringify(this.deviceInfo))}`
  301. }
  302. uni.navigateTo({
  303. url
  304. });
  305. },
  306. openDatePicker() {
  307. this.show = true;
  308. },
  309. onDateChange(event) {
  310. if (event && event.startDate && event.endDate) {
  311. this.startDate = event.startDate;
  312. this.endDate = event.endDate;
  313. this.show = false;
  314. this.page = 1;
  315. this.getDeviceData();
  316. }
  317. },
  318. prevPage() {
  319. if (this.page <= 1) return;
  320. this.page--;
  321. this.getDeviceData();
  322. },
  323. nextPage() {
  324. if (this.page >= this.totalPages) return;
  325. this.page++;
  326. this.getDeviceData();
  327. },
  328. // 获取设备最新监测数据
  329. async getQxzObData() {
  330. const res = await this.$myRequest({
  331. url: "/api/api_gateway?method=qxz.data.qxz_ob_last_data",
  332. data: {
  333. device_id: this.deviceInfo.devBid,
  334. },
  335. });
  336. console.log("设备最新监测数据:", res);
  337. const title = res.title
  338. const data = res.data
  339. const alias = res.alias
  340. this.monitorList = this.formatChartData(title, data, alias)
  341. },
  342. formatChartData(obj, data, alias) {
  343. const keys = Object.keys(obj);
  344. const result = [];
  345. console.log(data, 'datadata');
  346. for (const prop of keys) {
  347. const objArr = obj[prop];
  348. if (objArr[4] == 1) {
  349. result.push({
  350. factorName: objArr[1],
  351. key: prop,
  352. yData: data[prop],
  353. factorUnit: objArr[3],
  354. newData: objArr[5],
  355. alias: alias[prop]
  356. });
  357. }
  358. }
  359. console.log(result, 'real-time data');
  360. return result;
  361. },
  362. convertDynamic(data, getLabelValue) {
  363. if (!data || typeof data !== 'object') return [];
  364. const result = [];
  365. const keys = Object.keys(data);
  366. for (const prop of keys) {
  367. const arr = data[prop];
  368. const value = getLabelValue(prop, arr, data);
  369. if (value !== undefined && value !== null) {
  370. result.push({
  371. label: String(value),
  372. prop,
  373. align: 'center'
  374. });
  375. }
  376. }
  377. return result;
  378. },
  379. // 获取设备状态数据
  380. async getDeviceStatus() {
  381. const res = await this.$myRequest({
  382. url: "/api/api_gateway?method=qxz.data.qxz_status",
  383. data: {
  384. device_id: this.deviceInfo.devBid,
  385. },
  386. });
  387. console.log("getDeviceStatus:", res);
  388. const newArr = this.transformObjectToArray(res);
  389. this.statusList = newArr;
  390. console.log(this.statusList, "getDevStatus");
  391. },
  392. transformObjectToArray(originalData) {
  393. if (
  394. typeof originalData !== "object" ||
  395. originalData === null ||
  396. Array.isArray(originalData)
  397. ) {
  398. return [];
  399. }
  400. return Object.keys(originalData).map((key) => {
  401. const [val = "", label = ""] = originalData[key] || [];
  402. return {
  403. label,
  404. val,
  405. key,
  406. };
  407. });
  408. },
  409. // 设备数据列表
  410. async getDeviceData() {
  411. const data = await this.$myRequest({
  412. url: "/api/api_gateway?method=qxz.data.qxz_device_data",
  413. data: {
  414. device_id: this.deviceInfo.devBid,
  415. page: String(this.page),
  416. page_size: String(this.pageSize),
  417. start: String(Math.floor(new Date(this.startDate + " 00:00:00").getTime() / 1000)),
  418. end: String(Math.floor(new Date(this.endDate + " 23:59:59").getTime() / 1000)),
  419. },
  420. });
  421. console.log(data, "resss");
  422. if (Array.isArray(data) && data.length > 0) {
  423. this.total = data[0]?.count || 0;
  424. this.tableData = data[0].data || [];
  425. const title = data[0].title;
  426. this.tableColumn = title
  427. .map((item) => {
  428. return {
  429. label: item[1],
  430. prop: item[0],
  431. };
  432. })
  433. .filter((item) => item.prop !== "uptime");
  434. } else {
  435. // 没数据时,设置为空
  436. this.total = 0;
  437. this.tableData = [];
  438. this.tableColumn = [];
  439. }
  440. console.log(this.tableColumn, "tableCol");
  441. console.log(this.tableData, "tableData");
  442. },
  443. },
  444. };
  445. </script>
  446. <style lang="scss">
  447. .device-details-page {
  448. background:
  449. linear-gradient(180deg, #ffffff00 0%, #f5f6fa 23.64%, #f5f6fa 100%),
  450. linear-gradient(102deg, #bfeadd 6.77%, #b8f1e7 40.15%, #b9eef5 84.02%);
  451. min-height: 100vh;
  452. padding: 0 32rpx;
  453. padding-top: 98rpx;
  454. }
  455. /* 设备基本信息 */
  456. .device-info {
  457. background-color: #ffffff;
  458. margin: 46rpx 0 24rpx 0;
  459. padding: 32rpx 24rpx;
  460. border-radius: 16rpx;
  461. background: linear-gradient(180deg, #eff 0%, #fff 23.56%);
  462. position: relative;
  463. .info-item {
  464. display: flex;
  465. align-items: center;
  466. margin-bottom: 16rpx;
  467. }
  468. .info-item:last-child {
  469. margin-bottom: 0;
  470. }
  471. .info-label {
  472. width: 116rpx;
  473. color: #999999;
  474. text-align: right;
  475. font-family: "Source Han Sans CN VF";
  476. font-size: 28rpx;
  477. font-style: normal;
  478. font-weight: 400;
  479. line-height: normal;
  480. margin-right: 32rpx;
  481. white-space: nowrap;
  482. }
  483. .info-value {
  484. color: #333333;
  485. font-family: "Source Han Sans CN VF";
  486. font-size: 28rpx;
  487. font-style: normal;
  488. font-weight: 400;
  489. line-height: normal;
  490. text-overflow: ellipsis;
  491. overflow: hidden;
  492. white-space: nowrap;
  493. }
  494. .info-img {
  495. width: 32rpx;
  496. height: 32rpx;
  497. margin-left: 16rpx;
  498. background: #0bbc581a;
  499. display: flex;
  500. align-items: center;
  501. justify-content: center;
  502. }
  503. .tishi {
  504. width: 24rpx;
  505. height: 24rpx;
  506. }
  507. .dev-status {
  508. position: absolute;
  509. right: 0;
  510. top: 0;
  511. border: 2rpx solid #ffffff;
  512. background: #0bbc581a;
  513. width: 152rpx;
  514. height: 56rpx;
  515. color: #0bbc58;
  516. text-align: center;
  517. font-size: 28rpx;
  518. font-weight: 400;
  519. line-height: 52rpx;
  520. border-radius: 0 16rpx 0 64rpx;
  521. }
  522. }
  523. /* 标签页切换 */
  524. .tab-container {
  525. background-color: #ffffff;
  526. border-radius: 16rpx;
  527. overflow: hidden;
  528. padding: 0 32rpx;
  529. margin-bottom: 24rpx;
  530. .tab-top {
  531. display: flex;
  532. }
  533. .tab-item {
  534. flex: 1;
  535. height: 80rpx;
  536. display: flex;
  537. flex-direction: column;
  538. align-items: center;
  539. position: relative;
  540. color: #666666;
  541. text-align: center;
  542. font-family: "Source Han Sans CN VF";
  543. font-size: 28rpx;
  544. font-style: normal;
  545. font-weight: 400;
  546. line-height: normal;
  547. .tab-text {
  548. margin-top: 16rpx;
  549. }
  550. .smile {
  551. width: 24rpx;
  552. height: 18rpx;
  553. }
  554. }
  555. .tab-item.active {
  556. color: #333333;
  557. font-weight: 700;
  558. }
  559. .time-board {
  560. display: flex;
  561. align-items: center;
  562. justify-content: space-between;
  563. margin-bottom: 16rpx;
  564. }
  565. .time-filter {
  566. display: flex;
  567. align-items: center;
  568. justify-content: space-between;
  569. width: 256rpx;
  570. height: 48rpx;
  571. padding: 6rpx 8rpx;
  572. border-radius: 32rpx;
  573. background: #f1f4f8;
  574. color: #303133;
  575. font-size: 20rpx;
  576. font-weight: 400;
  577. .filter-item {
  578. padding: 4rpx 16rpx;
  579. height: 36rpx;
  580. line-height: 36rpx;
  581. }
  582. .active {
  583. border-radius: 32rpx;
  584. background: #fff;
  585. }
  586. }
  587. }
  588. /* 监测要素页面 */
  589. .monitoring-page {
  590. padding-bottom: 20px;
  591. display: flex;
  592. flex-wrap: wrap;
  593. justify-content: space-between;
  594. .data-card {
  595. width: calc(50% - 8rpx);
  596. margin-bottom: 16rpx;
  597. background-color: #ffffff;
  598. border-radius: 16rpx;
  599. padding: 16rpx 24rpx;
  600. height: 186rpx;
  601. font-family: "Source Han Sans CN VF";
  602. font-size: 28rpx;
  603. font-weight: 400;
  604. box-sizing: border-box;
  605. .card-title {
  606. color: #042118;
  607. margin-bottom: 6rpx;
  608. }
  609. .data-value-row {
  610. display: flex;
  611. justify-content: space-between;
  612. align-items: center;
  613. color: #042118;
  614. font-family: "Source Han Sans CN VF";
  615. font-weight: 400;
  616. .data-value {
  617. font-size: 40rpx;
  618. font-weight: 700;
  619. margin-right: 8rpx;
  620. }
  621. .data-unit {
  622. font-size: 24rpx;
  623. }
  624. .device-img {
  625. width: 52rpx;
  626. height: 52rpx;
  627. }
  628. }
  629. .card-thrid {
  630. color: #687a74;
  631. margin-top: 6rpx;
  632. }
  633. }
  634. }
  635. /* 设备详情页面 */
  636. .details-page {
  637. .device-params {
  638. background-color: #ffffff;
  639. border-radius: 16rpx;
  640. padding: 32rpx;
  641. margin-bottom: 24rpx;
  642. .device-control {
  643. position: relative;
  644. z-index: 3;
  645. display: flex;
  646. align-items: center;
  647. justify-content: flex-end;
  648. margin-bottom: 24rpx;
  649. .control-left {
  650. color: #999999;
  651. font-family: "Source Han Sans CN VF";
  652. font-size: 28rpx;
  653. display: flex;
  654. align-items: center;
  655. .reload-img {
  656. font-size: 32rpx;
  657. color: #0bbc58;
  658. margin-left: 14rpx;
  659. }
  660. }
  661. .control-right {
  662. display: flex;
  663. align-items: center;
  664. .control-img {
  665. width: 48rpx;
  666. height: 48rpx;
  667. margin-left: 24rpx;
  668. }
  669. }
  670. }
  671. .params-board {
  672. display: flex;
  673. justify-content: space-between;
  674. align-items: center;
  675. position: relative;
  676. .params-left {
  677. display: flex;
  678. flex-wrap: wrap;
  679. .params-item {
  680. display: flex;
  681. flex-direction: column;
  682. width: 100%;
  683. // width: calc(50% - 20rpx);
  684. margin-bottom: 24rpx;
  685. .params-val {
  686. color: #303133;
  687. font-size: 28rpx;
  688. font-weight: 700;
  689. }
  690. .params-label {
  691. color: #999999;
  692. font-size: 24rpx;
  693. font-weight: 400;
  694. }
  695. }
  696. }
  697. .params-right {
  698. position: absolute;
  699. right: 0;
  700. .device-img {
  701. width: 150rpx;
  702. }
  703. }
  704. }
  705. }
  706. .table-container {
  707. padding: 16rpx 32rpx 32rpx 32rpx;
  708. border-radius: 16rpx;
  709. background: #fff;
  710. .table-control {
  711. display: flex;
  712. align-items: center;
  713. justify-content: space-between;
  714. margin-bottom: 16rpx;
  715. .title {
  716. color: #042118;
  717. font-family: "Source Han Sans CN VF";
  718. font-size: 28rpx;
  719. font-style: normal;
  720. font-weight: 700;
  721. line-height: normal;
  722. }
  723. .date-board {
  724. display: flex;
  725. align-items: center;
  726. color: #020305;
  727. font-family: "Source Han Sans CN VF";
  728. font-size: 24rpx;
  729. font-weight: 400;
  730. border-radius: 32rpx;
  731. background: #f1f4f8;
  732. padding: 7rpx 24rpx;
  733. .line {
  734. color: #656565;
  735. margin: 0 10rpx;
  736. }
  737. .date-icon {
  738. width: 32rpx;
  739. height: 32rpx;
  740. margin-left: 16rpx;
  741. }
  742. }
  743. }
  744. .table-wrap {
  745. display: flex;
  746. width: 100%;
  747. height: 788rpx;
  748. box-sizing: border-box;
  749. margin: 20rpx 0;
  750. color: #042118;
  751. font-family: "Source Han Sans CN VF";
  752. font-size: 24rpx;
  753. font-style: normal;
  754. font-weight: 400;
  755. line-height: normal;
  756. .fixed-column {
  757. width: 250rpx;
  758. .table-cell {
  759. width: 100%;
  760. white-space: nowrap;
  761. }
  762. }
  763. .table-bg {
  764. width: 16rpx;
  765. background: linear-gradient(270deg, #ffffff33 0%, #9598a433 100%);
  766. }
  767. .scroll-column {
  768. flex: 1;
  769. height: auto;
  770. overflow: hidden;
  771. margin-left: -10rpx;
  772. }
  773. .scroll-content {
  774. min-width: 100%;
  775. width: fit-content;
  776. display: flex;
  777. flex-direction: column;
  778. .table-row {
  779. display: flex;
  780. .table-cell {
  781. flex: 1;
  782. }
  783. }
  784. }
  785. .table-cell {
  786. width: 160rpx;
  787. height: 80rpx;
  788. line-height: 80rpx;
  789. text-align: center;
  790. border-bottom: 2px solid #e4e7ed;
  791. box-sizing: border-box;
  792. overflow: hidden;
  793. padding: 0 4rpx;
  794. text-overflow: ellipsis;
  795. }
  796. .table-cell.header {
  797. background: #f6f8fc;
  798. }
  799. }
  800. .pagination {
  801. display: flex;
  802. align-items: center;
  803. justify-content: space-between;
  804. margin-top: 24rpx;
  805. .page-item {
  806. width: 104rpx;
  807. height: 48rpx;
  808. color: #656565;
  809. font-size: 24rpx;
  810. line-height: 48rpx;
  811. text-align: center;
  812. border: 2rpx solid #e4e7ed;
  813. border-radius: 8rpx;
  814. }
  815. .prev.disabled {
  816. color: #c0c4cc;
  817. border-color: #e4e7ed;
  818. }
  819. .next {
  820. color: #0bbc58;
  821. border: 2px solid #0bbc58;
  822. }
  823. .next.disabled {
  824. color: #c0c4cc;
  825. border-color: #e4e7ed;
  826. }
  827. .page-info {
  828. color: #999999;
  829. font-family: "Source Han Sans CN VF";
  830. font-size: 24rpx;
  831. font-style: normal;
  832. font-weight: 400;
  833. line-height: normal;
  834. .curret-page {
  835. color: #303133;
  836. }
  837. }
  838. }
  839. .empty-state {
  840. padding: 80rpx 0;
  841. }
  842. }
  843. }
  844. ::v-deep .u-calendar__action {
  845. display: flex;
  846. justify-content: center;
  847. }
  848. </style>