index.vue 23 KB

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