index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873
  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. if(type==='devRepair'){
  303. url = `/pages/afterSale/addafter?d_id=${this.deviceInfo.d_id}&device_id=${this.deviceInfo.devBid}&device_type=${this.deviceInfo.deviceType}`
  304. }
  305. uni.navigateTo({
  306. url
  307. });
  308. },
  309. openDatePicker() {
  310. this.show = true;
  311. },
  312. onDateChange(event) {
  313. if (event && event.startDate && event.endDate) {
  314. this.startDate = event.startDate;
  315. this.endDate = event.endDate;
  316. this.show = false;
  317. this.page = 1;
  318. this.getDeviceData();
  319. }
  320. },
  321. prevPage() {
  322. if (this.page <= 1) return;
  323. this.page--;
  324. this.getDeviceData();
  325. },
  326. nextPage() {
  327. if (this.page >= this.totalPages) return;
  328. this.page++;
  329. this.getDeviceData();
  330. },
  331. // 获取设备最新监测数据
  332. async getQxzObData() {
  333. const res = await this.$myRequest({
  334. url: "/api/api_gateway?method=qxz.data.qxz_ob_last_data",
  335. data: {
  336. device_id: this.deviceInfo.devBid,
  337. },
  338. });
  339. console.log("设备最新监测数据:", res);
  340. const title = res.title
  341. const data = res.data
  342. const alias = res.alias
  343. this.monitorList = this.formatChartData(title, data, alias)
  344. },
  345. formatChartData(obj, data, alias) {
  346. const keys = Object.keys(obj);
  347. const result = [];
  348. console.log(data, 'datadata');
  349. for (const prop of keys) {
  350. const objArr = obj[prop];
  351. if (objArr[4] == 1) {
  352. result.push({
  353. factorName: objArr[1],
  354. key: prop,
  355. yData: data[prop],
  356. factorUnit: objArr[3],
  357. newData: objArr[5],
  358. alias: alias[prop]
  359. });
  360. }
  361. }
  362. console.log(result, 'real-time data');
  363. return result;
  364. },
  365. convertDynamic(data, getLabelValue) {
  366. if (!data || typeof data !== 'object') return [];
  367. const result = [];
  368. const keys = Object.keys(data);
  369. for (const prop of keys) {
  370. const arr = data[prop];
  371. const value = getLabelValue(prop, arr, data);
  372. if (value !== undefined && value !== null) {
  373. result.push({
  374. label: String(value),
  375. prop,
  376. align: 'center'
  377. });
  378. }
  379. }
  380. return result;
  381. },
  382. // 获取设备状态数据
  383. async getDeviceStatus() {
  384. const res = await this.$myRequest({
  385. url: "/api/api_gateway?method=qxz.data.qxz_status",
  386. data: {
  387. device_id: this.deviceInfo.devBid,
  388. },
  389. });
  390. console.log("getDeviceStatus:", res);
  391. const newArr = this.transformObjectToArray(res);
  392. this.statusList = newArr;
  393. console.log(this.statusList, "getDevStatus");
  394. },
  395. transformObjectToArray(originalData) {
  396. if (
  397. typeof originalData !== "object" ||
  398. originalData === null ||
  399. Array.isArray(originalData)
  400. ) {
  401. return [];
  402. }
  403. return Object.keys(originalData).map((key) => {
  404. const [val = "", label = ""] = originalData[key] || [];
  405. return {
  406. label,
  407. val,
  408. key,
  409. };
  410. });
  411. },
  412. // 设备数据列表
  413. async getDeviceData() {
  414. const data = await this.$myRequest({
  415. url: "/api/api_gateway?method=qxz.data.qxz_device_data",
  416. data: {
  417. device_id: this.deviceInfo.devBid,
  418. page: String(this.page),
  419. page_size: String(this.pageSize),
  420. start: String(Math.floor(new Date(this.startDate + " 00:00:00").getTime() / 1000)),
  421. end: String(Math.floor(new Date(this.endDate + " 23:59:59").getTime() / 1000)),
  422. },
  423. });
  424. console.log(data, "resss");
  425. if (Array.isArray(data) && data.length > 0) {
  426. this.total = data[0]?.count || 0;
  427. this.tableData = data[0].data || [];
  428. const title = data[0].title;
  429. this.tableColumn = title
  430. .map((item) => {
  431. return {
  432. label: item[1],
  433. prop: item[0],
  434. };
  435. })
  436. .filter((item) => item.prop !== "uptime");
  437. } else {
  438. // 没数据时,设置为空
  439. this.total = 0;
  440. this.tableData = [];
  441. this.tableColumn = [];
  442. }
  443. console.log(this.tableColumn, "tableCol");
  444. console.log(this.tableData, "tableData");
  445. },
  446. },
  447. };
  448. </script>
  449. <style lang="scss">
  450. .device-details-page {
  451. background:
  452. linear-gradient(180deg, #ffffff00 0%, #f5f6fa 23.64%, #f5f6fa 100%),
  453. linear-gradient(102deg, #bfeadd 6.77%, #b8f1e7 40.15%, #b9eef5 84.02%);
  454. min-height: 100vh;
  455. padding: 0 32rpx;
  456. padding-top: 98rpx;
  457. }
  458. /* 设备基本信息 */
  459. .device-info {
  460. background-color: #ffffff;
  461. margin: 46rpx 0 24rpx 0;
  462. padding: 32rpx 24rpx;
  463. border-radius: 16rpx;
  464. background: linear-gradient(180deg, #eff 0%, #fff 23.56%);
  465. position: relative;
  466. .info-item {
  467. display: flex;
  468. align-items: center;
  469. margin-bottom: 16rpx;
  470. }
  471. .info-item:last-child {
  472. margin-bottom: 0;
  473. }
  474. .info-label {
  475. width: 116rpx;
  476. color: #999999;
  477. text-align: right;
  478. font-family: "Source Han Sans CN VF";
  479. font-size: 28rpx;
  480. font-style: normal;
  481. font-weight: 400;
  482. line-height: normal;
  483. margin-right: 32rpx;
  484. white-space: nowrap;
  485. }
  486. .info-value {
  487. color: #333333;
  488. font-family: "Source Han Sans CN VF";
  489. font-size: 28rpx;
  490. font-style: normal;
  491. font-weight: 400;
  492. line-height: normal;
  493. text-overflow: ellipsis;
  494. overflow: hidden;
  495. white-space: nowrap;
  496. }
  497. .info-img {
  498. width: 32rpx;
  499. height: 32rpx;
  500. margin-left: 16rpx;
  501. background: #0bbc581a;
  502. display: flex;
  503. align-items: center;
  504. justify-content: center;
  505. }
  506. .tishi {
  507. width: 24rpx;
  508. height: 24rpx;
  509. }
  510. .dev-status {
  511. position: absolute;
  512. right: 0;
  513. top: 0;
  514. border: 2rpx solid #ffffff;
  515. background: #0bbc581a;
  516. width: 152rpx;
  517. height: 56rpx;
  518. color: #0bbc58;
  519. text-align: center;
  520. font-size: 28rpx;
  521. font-weight: 400;
  522. line-height: 52rpx;
  523. border-radius: 0 16rpx 0 64rpx;
  524. }
  525. }
  526. /* 标签页切换 */
  527. .tab-container {
  528. background-color: #ffffff;
  529. border-radius: 16rpx;
  530. overflow: hidden;
  531. padding: 0 32rpx;
  532. margin-bottom: 24rpx;
  533. .tab-top {
  534. display: flex;
  535. }
  536. .tab-item {
  537. flex: 1;
  538. height: 80rpx;
  539. display: flex;
  540. flex-direction: column;
  541. align-items: center;
  542. position: relative;
  543. color: #666666;
  544. text-align: center;
  545. font-family: "Source Han Sans CN VF";
  546. font-size: 28rpx;
  547. font-style: normal;
  548. font-weight: 400;
  549. line-height: normal;
  550. .tab-text {
  551. margin-top: 16rpx;
  552. }
  553. .smile {
  554. width: 24rpx;
  555. height: 18rpx;
  556. }
  557. }
  558. .tab-item.active {
  559. color: #333333;
  560. font-weight: 700;
  561. }
  562. .time-board {
  563. display: flex;
  564. align-items: center;
  565. justify-content: space-between;
  566. margin-bottom: 16rpx;
  567. }
  568. .time-filter {
  569. display: flex;
  570. align-items: center;
  571. justify-content: space-between;
  572. width: 256rpx;
  573. height: 48rpx;
  574. padding: 6rpx 8rpx;
  575. border-radius: 32rpx;
  576. background: #f1f4f8;
  577. color: #303133;
  578. font-size: 20rpx;
  579. font-weight: 400;
  580. .filter-item {
  581. padding: 4rpx 16rpx;
  582. height: 36rpx;
  583. line-height: 36rpx;
  584. }
  585. .active {
  586. border-radius: 32rpx;
  587. background: #fff;
  588. }
  589. }
  590. }
  591. /* 监测要素页面 */
  592. .monitoring-page {
  593. padding-bottom: 20px;
  594. display: flex;
  595. flex-wrap: wrap;
  596. justify-content: space-between;
  597. .data-card {
  598. width: calc(50% - 8rpx);
  599. margin-bottom: 16rpx;
  600. background-color: #ffffff;
  601. border-radius: 16rpx;
  602. padding: 16rpx 24rpx;
  603. height: 186rpx;
  604. font-family: "Source Han Sans CN VF";
  605. font-size: 28rpx;
  606. font-weight: 400;
  607. box-sizing: border-box;
  608. .card-title {
  609. color: #042118;
  610. margin-bottom: 6rpx;
  611. }
  612. .data-value-row {
  613. display: flex;
  614. justify-content: space-between;
  615. align-items: center;
  616. color: #042118;
  617. font-family: "Source Han Sans CN VF";
  618. font-weight: 400;
  619. .data-value {
  620. font-size: 40rpx;
  621. font-weight: 700;
  622. margin-right: 8rpx;
  623. }
  624. .data-unit {
  625. font-size: 24rpx;
  626. }
  627. .device-img {
  628. width: 52rpx;
  629. height: 52rpx;
  630. }
  631. }
  632. .card-thrid {
  633. color: #687a74;
  634. margin-top: 6rpx;
  635. }
  636. }
  637. }
  638. /* 设备详情页面 */
  639. .details-page {
  640. .device-params {
  641. background-color: #ffffff;
  642. border-radius: 16rpx;
  643. padding: 32rpx;
  644. margin-bottom: 24rpx;
  645. .device-control {
  646. position: relative;
  647. z-index: 3;
  648. display: flex;
  649. align-items: center;
  650. justify-content: flex-end;
  651. margin-bottom: 24rpx;
  652. .control-left {
  653. color: #999999;
  654. font-family: "Source Han Sans CN VF";
  655. font-size: 28rpx;
  656. display: flex;
  657. align-items: center;
  658. .reload-img {
  659. font-size: 32rpx;
  660. color: #0bbc58;
  661. margin-left: 14rpx;
  662. }
  663. }
  664. .control-right {
  665. display: flex;
  666. align-items: center;
  667. .control-img {
  668. width: 48rpx;
  669. height: 48rpx;
  670. margin-left: 24rpx;
  671. }
  672. }
  673. }
  674. .params-board {
  675. display: flex;
  676. justify-content: space-between;
  677. align-items: center;
  678. position: relative;
  679. .params-left {
  680. display: flex;
  681. flex-wrap: wrap;
  682. .params-item {
  683. display: flex;
  684. flex-direction: column;
  685. width: 100%;
  686. // width: calc(50% - 20rpx);
  687. margin-bottom: 24rpx;
  688. .params-val {
  689. color: #303133;
  690. font-size: 28rpx;
  691. font-weight: 700;
  692. }
  693. .params-label {
  694. color: #999999;
  695. font-size: 24rpx;
  696. font-weight: 400;
  697. }
  698. }
  699. }
  700. .params-right {
  701. position: absolute;
  702. right: 0;
  703. .device-img {
  704. width: 150rpx;
  705. }
  706. }
  707. }
  708. }
  709. .table-container {
  710. padding: 16rpx 32rpx 32rpx 32rpx;
  711. border-radius: 16rpx;
  712. background: #fff;
  713. .table-control {
  714. display: flex;
  715. align-items: center;
  716. justify-content: space-between;
  717. margin-bottom: 16rpx;
  718. .title {
  719. color: #042118;
  720. font-family: "Source Han Sans CN VF";
  721. font-size: 28rpx;
  722. font-style: normal;
  723. font-weight: 700;
  724. line-height: normal;
  725. }
  726. .date-board {
  727. display: flex;
  728. align-items: center;
  729. color: #020305;
  730. font-family: "Source Han Sans CN VF";
  731. font-size: 24rpx;
  732. font-weight: 400;
  733. border-radius: 32rpx;
  734. background: #f1f4f8;
  735. padding: 7rpx 24rpx;
  736. .line {
  737. color: #656565;
  738. margin: 0 10rpx;
  739. }
  740. .date-icon {
  741. width: 32rpx;
  742. height: 32rpx;
  743. margin-left: 16rpx;
  744. }
  745. }
  746. }
  747. .table-wrap {
  748. display: flex;
  749. width: 100%;
  750. height: 788rpx;
  751. box-sizing: border-box;
  752. margin: 20rpx 0;
  753. color: #042118;
  754. font-family: "Source Han Sans CN VF";
  755. font-size: 24rpx;
  756. font-style: normal;
  757. font-weight: 400;
  758. line-height: normal;
  759. .fixed-column {
  760. width: 250rpx;
  761. .table-cell {
  762. width: 100%;
  763. white-space: nowrap;
  764. }
  765. }
  766. .table-bg {
  767. width: 16rpx;
  768. background: linear-gradient(270deg, #ffffff33 0%, #9598a433 100%);
  769. }
  770. .scroll-column {
  771. flex: 1;
  772. height: auto;
  773. overflow: hidden;
  774. margin-left: -10rpx;
  775. }
  776. .scroll-content {
  777. min-width: 100%;
  778. width: fit-content;
  779. display: flex;
  780. flex-direction: column;
  781. .table-row {
  782. display: flex;
  783. .table-cell {
  784. flex: 1;
  785. }
  786. }
  787. }
  788. .table-cell {
  789. width: 160rpx;
  790. height: 80rpx;
  791. line-height: 80rpx;
  792. text-align: center;
  793. border-bottom: 2px solid #e4e7ed;
  794. box-sizing: border-box;
  795. overflow: hidden;
  796. padding: 0 4rpx;
  797. text-overflow: ellipsis;
  798. }
  799. .table-cell.header {
  800. background: #f6f8fc;
  801. }
  802. }
  803. .pagination {
  804. display: flex;
  805. align-items: center;
  806. justify-content: space-between;
  807. margin-top: 24rpx;
  808. .page-item {
  809. width: 104rpx;
  810. height: 48rpx;
  811. color: #656565;
  812. font-size: 24rpx;
  813. line-height: 48rpx;
  814. text-align: center;
  815. border: 2rpx solid #e4e7ed;
  816. border-radius: 8rpx;
  817. }
  818. .prev.disabled {
  819. color: #c0c4cc;
  820. border-color: #e4e7ed;
  821. }
  822. .next {
  823. color: #0bbc58;
  824. border: 2px solid #0bbc58;
  825. }
  826. .next.disabled {
  827. color: #c0c4cc;
  828. border-color: #e4e7ed;
  829. }
  830. .page-info {
  831. color: #999999;
  832. font-family: "Source Han Sans CN VF";
  833. font-size: 24rpx;
  834. font-style: normal;
  835. font-weight: 400;
  836. line-height: normal;
  837. .curret-page {
  838. color: #303133;
  839. }
  840. }
  841. }
  842. .empty-state {
  843. padding: 80rpx 0;
  844. }
  845. }
  846. }
  847. ::v-deep .u-calendar__action {
  848. display: flex;
  849. justify-content: center;
  850. }
  851. </style>