index.vue 23 KB

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