details.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862
  1. <template>
  2. <view class="fm-page">
  3. <uni-nav-bar left-icon="back" background-color='rgba(0,0,0,0)' title="闸门" @clickLeft="clickLeft">
  4. <!-- <view class="self-title">标题栏</view>
  5. <template v-slot:left><view class="self-back"><uni-icons type="arrowleft" size="24"></uni-icons></view></template>
  6. -->
  7. </uni-nav-bar>
  8. <view class="fm-content">
  9. <view class="info">
  10. <view class="device-id" @click="copy(equipInfo)">
  11. <image class="logo"
  12. :src="`${$imageURL}/bigdata_pc/equipdistribute/${equipInfo.type}.png`" mode="">
  13. </image>
  14. {{equipInfo.imei||equipInfo.device_id}}
  15. <image :src="$imageURL+'/bigdata_app/image/environment/fuzhi.png'" mode=""
  16. class="tishi">
  17. </image>
  18. <view
  19. :class="['float-right','yficonfont',equipInfo.is_online==1?'on icon-zaixian':'off icon-lixian']">
  20. {{equipInfo.is_online==1?'在线':'离线'}}
  21. </view>
  22. </view>
  23. <view class="info-list">
  24. <span class="float-left">设备名称:</span> <span class="float-right">{{equipInfo.device_name}}</span>
  25. </view>
  26. <view class="info-list">
  27. <span class="float-left">上报时间:</span> <span
  28. class="float-right">{{equipInfo.addtime||equipInfo.uptime | timeFormat}}</span>
  29. </view>
  30. <view class="info-list">
  31. <span class="float-left">设备地址:</span> <span
  32. class="float-right">{{equipInfo.address?equipInfo.address:"--"}}</span>
  33. </view>
  34. <u-calendar v-model="calendar_show" mode="date" :max-date="date" @change="timeChange($event)">
  35. </u-calendar>
  36. <u-toast ref="toast" />
  37. </view>
  38. <view class="title"></view>
  39. <view class="newState">
  40. <view class="top">
  41. <view class="left">
  42. <image class="img"
  43. :src="$imageURL+'/bigdata_app/image/irrigate/fm.png'"
  44. ></image>
  45. <view>
  46. <p> <span class="num">{{deviceData.nowHeight}}</span> mm</p>
  47. <p>{{deviceData.deviceStatus}}</p>
  48. </view>
  49. </view>
  50. <view class="btn" style="width:170rpx">
  51. <u-button text="设置开度" size="mini" @click="kdShow = true">设置开度</u-button>
  52. </view>
  53. <view class="right btn">
  54. <u-button text="刷新" size="mini" @click="zfControl('refresh')">刷新</u-button>
  55. </view>
  56. </view>
  57. <view class="up-down">
  58. <view class="bottom">
  59. <view class="opt">
  60. <image
  61. :src="$imageURL+'/bigdata_app/image/irrigate/fm-up.png'"
  62. ></image>
  63. <!-- <p class="num">到位</p>
  64. <p>顶到位</p> -->
  65. </view>
  66. <view class="btn">
  67. <u-button text="上升" size="mini" @click="zfControl('up')">上升</u-button>
  68. </view>
  69. </view>
  70. <view class="bottom">
  71. <view class="opt">
  72. <image :src="$imageURL+'/bigdata_app/image/irrigate/fm-down.png'"
  73. ></image>
  74. <!-- <p class="num">未到位</p>
  75. <p>底到位</p> -->
  76. </view>
  77. <view class="btn">
  78. <u-button class="active" text="下降" size="mini" @click="zfControl('down')">下降</u-button>
  79. </view>
  80. </view>
  81. </view>
  82. <view class="btn">
  83. <button text="停止" @click="zfControl('stop')">停止</button>
  84. </view>
  85. </view>
  86. <!-- 操作记录 -->
  87. <view class="consoleList">
  88. <view class="title">操作记录</view>
  89. <view class="histimeBox">
  90. <u-icon name="calendar" color="#C1C1C1" size="24"></u-icon>
  91. <view class="time" @click="consoleshow = true">
  92. {{consoleTime.startDate ? consoleTime.startDate : '开始'}}
  93. </view>
  94. <view class="">至</view>
  95. <view class="time" @click="consoleshow = true">{{consoleTime.endDate ? consoleTime.endDate : '结束'}}
  96. </view>
  97. <u-icon name="close-circle" color="#C1C1C1" size="28" @click="clearContime"
  98. v-if="consoleTime.startDate"></u-icon>
  99. </view>
  100. <u-calendar @maxDate="maxDate" v-model="consoleshow" mode="range" @change="changeConsoleDate"></u-calendar>
  101. <view class="tableList tableTitle">
  102. <view>时间</view>
  103. <view>操作内容</view>
  104. <view>操作结果</view>
  105. <view>操作人</view>
  106. </view>
  107. <view class="tableList" v-for="(item, index) in tableData" :key="item.addtime + index">
  108. <view>{{item.addtime}}</view>
  109. <view :class="item.status=='成功' ? 'success' : 'error'">{{item.order}}</view>
  110. <view>{{item.status}}</view>
  111. <view>{{item.user}}</view>
  112. </view>
  113. <u-loadmore style="margin-top: 16rpx;" :status="status" />
  114. </view>
  115. <u-popup v-model="kdShow" mode="center" width="600rpx">
  116. <view style="padding: 40rpx;">
  117. <slider style="margin-top: 20rpx;" :value="kdValue" show-value="true" :min="0" :max="1000"
  118. block-color="#57C878" activeColor="#57C878" step="1" />
  119. <view class="btn-box">
  120. <u-button @click="kdSubmit" size="mini" type="success">确定</u-button>
  121. </view>
  122. </view>
  123. </u-popup>
  124. </view>
  125. </view>
  126. </template>
  127. <script>
  128. import {
  129. QueryPermission,
  130. getPermissionById,
  131. getUserPermission
  132. } from "../../util/QueryPermission.js"
  133. export default {
  134. data() {
  135. return {
  136. maxDate: '2050-12-31',
  137. city: "",
  138. type: null, //设备类型
  139. device_status: null,
  140. equipInfo: {},
  141. cbd: [
  142. ],
  143. newState: {}, //设备最新状态
  144. setTimeShow: false,
  145. calendar_show: false,
  146. culErr: '',
  147. decoy: '',
  148. newtishitf: false, //暂无数据提示
  149. dataloadingtf: true, //加载中提示
  150. date: "", //日历最大可选日期
  151. operateType: '',
  152. status: '', //是否加载更多
  153. page: 1,
  154. tableData: [],
  155. deviceData: {},
  156. consoleshow: false,
  157. consoleTime: {},
  158. kdValue: 0,
  159. kdShow: false
  160. }
  161. },
  162. computed: {
  163. },
  164. filters: {
  165. equipType(type) {
  166. switch (type) {
  167. case 3:
  168. return "虫情测报灯";
  169. case 7:
  170. return "孢子仪";
  171. case 4:
  172. return "性诱测报"
  173. }
  174. },
  175. formatValue(val, a1, a2) {
  176. if (a2 == 4 && a1 == "电池状态") {
  177. switch (Number(val)) {
  178. case 0:
  179. return '正常';
  180. break;
  181. case 1:
  182. return '欠压';
  183. break;
  184. case 2:
  185. return '过压';
  186. break;
  187. }
  188. } else {
  189. return val ? val : '无'
  190. }
  191. }
  192. },
  193. onReachBottom() {
  194. if (this.status == 'loadmore') {
  195. this.page++;
  196. this.getEquipcontroldata()
  197. }
  198. },
  199. onLoad(option) {
  200. this.equipInfo = JSON.parse(option.info)
  201. console.log(this.equipInfo)
  202. this.getEquipcontroldata()
  203. this.getDeviceList()
  204. // this.getDeviceStatus()
  205. // this.type = Number(this.equipInfo.type) || Number(this.equipInfo.equip_type) || Number(this.equipInfo
  206. // .device_type_id)
  207. // this.equipInfo.type = this.type
  208. // this.getState()
  209. // // this.selectaddress(Number(this.equipInfo.lat), Number(this.equipInfo.lng))
  210. // var times = new Date()
  211. // this.date = times.getFullYear() + 1 + "-" + Number(times.getMonth() + 1) + "-" + times.getDate()
  212. },
  213. methods: {
  214. clickLeft() {
  215. uni.navigateBack({
  216. delta: 1
  217. })
  218. },
  219. kdSubmit() {
  220. this.kdShow = false
  221. this.zfControl('value')
  222. },
  223. // 指令下发
  224. zfControl(cmd) {
  225. this.$myRequest({
  226. method: 'POST',
  227. url: '/api/api_gateway?method=hran.view.hran_order',
  228. data: {
  229. d_id: this.equipInfo.d_id,
  230. order: cmd,
  231. controlValue: this.kdValue
  232. }
  233. }).then((res) => {
  234. console.log('指令', res)
  235. if (res == true) {
  236. uni.showToast({
  237. title: '指令下发成功!',
  238. duration: 2000,
  239. });
  240. setTimeout(() => {
  241. this.tableData = [];
  242. this.page = 1;
  243. this.getEquipcontroldata()
  244. }, 2000)
  245. } else {
  246. uni.showToast({
  247. title: '指令下发失败!',
  248. duration: 2000,
  249. });
  250. }
  251. })
  252. },
  253. changeConsoleDate(e) {
  254. console.log(e)
  255. this.consoleTime = e;
  256. this.tableData = [];
  257. this.page = 1;
  258. this.getEquipcontroldata();
  259. },
  260. clearContime() {
  261. this.consoleTime = {};
  262. this.tableData = [];
  263. this.page = 1;
  264. this.getEquipcontroldata();
  265. },
  266. //操作记录
  267. async getEquipcontroldata() {
  268. uni.showLoading({
  269. title: '加载中'
  270. });
  271. const {
  272. consoleTime
  273. } = this;
  274. let begin = consoleTime.startDate ? new Date(consoleTime.startDate+ ' 00:00:00').getTime() / 1000 : '';
  275. let end = consoleTime.endDate ? new Date(consoleTime.endDate+ ' 23:59:59').getTime() / 1000 : '';
  276. //操作记录
  277. let res = await this.$myRequest({
  278. method: "POST",
  279. url: "/api/api_gateway?method=hran.view.hran_order_list",
  280. data: {
  281. d_id: this.equipInfo.d_id,
  282. page: this.page,
  283. page_size: 15,
  284. start: begin,
  285. end: end
  286. },
  287. })
  288. console.log(res)
  289. uni.hideLoading();
  290. // this.tableData = [];
  291. const record = res.data;
  292. this.tableData = [...this.tableData, ...record];
  293. this.total = res.total;
  294. if (this.page * 15 > this.total) {
  295. this.status = 'nomore'
  296. } else {
  297. this.status = 'loadmore'
  298. }
  299. // console.log(this.tableData);
  300. },
  301. // 获取设备数据
  302. getDeviceList() {
  303. this.devicetf = true
  304. const {
  305. consoleTime
  306. } = this;
  307. let begin = consoleTime.startDate ? new Date(consoleTime.startDate+ ' 00:00:00').getTime() / 1000 : '';
  308. let end = consoleTime.endDate ? new Date(consoleTime.endDate+ ' 23:59:59').getTime() / 1000 : '';
  309. try {
  310. this.$myRequest({
  311. method: 'POST',
  312. url: '/api/api_gateway?method=hran.view.hran_data',
  313. data: {
  314. d_id: this.equipInfo.d_id,
  315. start: begin,
  316. end: end,
  317. page: 1,
  318. page_size: 1
  319. }
  320. }).then((res) => {
  321. this.devicetf = false
  322. console.log('设备数据', res)
  323. if (res.data.length > 0) {
  324. const {
  325. data,
  326. title
  327. } = res
  328. // console.log(data, title, total)
  329. this.deviceData = data[0]
  330. // this.deviceTitle = title
  331. } else {
  332. this.deviceData = {}
  333. }
  334. })
  335. } catch (error) {
  336. console.log('+++++', error)
  337. }
  338. },
  339. async getDeviceStatus() {
  340. const res = await this.$myRequest({
  341. url: '/api/api_gateway?method=new_gateway.device_info.devices_list',
  342. data: {
  343. device_type_id: this.equipInfo.type,
  344. id: this.equipInfo.imei || this.equipInfo.device_id,
  345. page: 1,
  346. size: 999
  347. }
  348. })
  349. let newRes = res.device[0]
  350. this.equipInfo = {
  351. ...this.equipInfo,
  352. ...newRes
  353. }
  354. console.log('响应', this.equipInfo)
  355. },
  356. async getState() {
  357. this.dataloadingtf = true
  358. const res = await this.$myRequest({
  359. url: '/api/api_gateway?method=new_gateway.device_info.device_status',
  360. data: {
  361. device_type_id: this.equipInfo.type,
  362. id: this.equipInfo.d_id
  363. }
  364. })
  365. this.newState = res
  366. this.dataloadingtf = false
  367. console.log('res', res)
  368. },
  369. partClick(path) {
  370. console.log(path)
  371. var device_id = this.equipInfo.device_id || this.equipInfo.imei
  372. uni.navigateTo({
  373. url: path + '?d_id=' + this.equipInfo.d_id + "&device_id=" + device_id + "&device_type=" + this
  374. .type
  375. });
  376. },
  377. operate(type) {
  378. this.calendar_show = true
  379. this.operateType = type
  380. },
  381. timeChange(e, filed) {
  382. // // 根据type_id,执行相应的操作
  383. // let typeId = this.equipInfo.type
  384. // let postData = {}
  385. // if(typeId===32){
  386. // // 添加诱芯
  387. // }else if(typeId === 33){
  388. // // 添加诱芯,更换色板
  389. // this.sbSubmit(e.result)
  390. // }else if(typeId === 34){
  391. // // 添加诱芯,更换卷带
  392. // this.jdSubmit(e.result)
  393. // }
  394. this.yxSubmit(e.result)
  395. },
  396. async yxSubmit(time) {
  397. let {
  398. title,
  399. url,
  400. field
  401. } = this.operateOptions[this.operateType]
  402. if (!time) {
  403. this.$refs.toast.show({
  404. title: '请填写' + title + '到期时间!',
  405. type: 'warning',
  406. })
  407. return false
  408. }
  409. let postData = {
  410. device_type_id: this.equipInfo.type,
  411. id: this.equipInfo.device_id
  412. }
  413. postData[field] = +new Date(time) / 1000
  414. const res = await this.$myRequest({
  415. url: url,
  416. data: postData
  417. })
  418. if (res) {
  419. this.$refs.toast.show({
  420. title: title + '时间设置成功!',
  421. type: 'success',
  422. })
  423. this.getDeviceStatus()
  424. }
  425. },
  426. // 色板
  427. async sbSubmit(time) {
  428. if (!time) {
  429. this.$refs.toast.show({
  430. title: '请填写色板到期时间!',
  431. type: 'warning',
  432. })
  433. return false
  434. }
  435. const res = await this.$myRequest({
  436. url: '/api/api_gateway?method=new_gateway.device_info.sban',
  437. data: {
  438. device_type_id: this.equipInfo.type,
  439. id: this.equipInfo.device_id,
  440. sban_expire_time: +new Date(time) / 1000
  441. }
  442. })
  443. if (res) {
  444. this.$refs.toast.show({
  445. title: '设置成功!',
  446. type: 'success',
  447. })
  448. this.getDeviceStatus()
  449. }
  450. },
  451. async jdSubmit(time) {
  452. if (!time) {
  453. this.$refs.toast.show({
  454. title: '请填写卷带到期时间!',
  455. type: 'warning',
  456. })
  457. return false
  458. }
  459. const res = await this.$myRequest({
  460. url: '/api/api_gateway?method=new_gateway.device_info.syone_jd',
  461. data: {
  462. device_type_id: this.equipInfo.type,
  463. id: this.equipInfo.device_id,
  464. jd_expire_time: +new Date(time) / 1000
  465. }
  466. })
  467. if (res) {
  468. this.$refs.toast.show({
  469. title: '设置成功!',
  470. type: 'success',
  471. })
  472. this.getDeviceStatus()
  473. }
  474. },
  475. selectaddress(lat, lng) { //获取分布位置
  476. uni.request({
  477. type: "GET",
  478. url: "https://restapi.amap.com/v3/geocode/regeo?output=JSON&location=" + lng + "," + lat +
  479. "&key=27273b81090f78759e4057f94474516f&radius=1000&extensions=all",
  480. dataType: "json",
  481. complete: res => {
  482. console.log(res)
  483. this.city = res.data.regeocode.formatted_address
  484. }
  485. });
  486. },
  487. copy(item) {
  488. console.log(item)
  489. uni.setClipboardData({
  490. data: item.imei || item.device_id,
  491. success: function() {
  492. console.log('success');
  493. }
  494. });
  495. }
  496. },
  497. }
  498. </script>
  499. <style lang='scss'>
  500. page {
  501. height: 100%;
  502. .fm-page {
  503. width: 100%;
  504. min-height: 100%;
  505. background: linear-gradient(180deg, #f5f6fa00 0%, #F5F6FA 23.64%, #F5F6FA 100%), linear-gradient(102deg, #BFEADD 6.77%, #B8F1E7 40.15%, #B9EEF5 84.02%);
  506. }
  507. .fm-content {
  508. padding: 0rpx 32rpx;
  509. box-sizing: border-box;
  510. }
  511. .title {
  512. color: #999999;
  513. margin: 32rpx 0;
  514. }
  515. .logo {
  516. width: 36rpx;
  517. height: 36rpx;
  518. margin-right: 12rpx;
  519. position: relative;
  520. top: 8rpx;
  521. }
  522. .device-id {
  523. height: 60rpx;
  524. line-height: 60rpx;
  525. margin-bottom: 18rpx;
  526. color: #5C5C5C;
  527. .float-right {
  528. float: right;
  529. width: 88px;
  530. height: 30px;
  531. text-align: center;
  532. position: absolute;
  533. top: 0;
  534. right: 0;
  535. border-top-right-radius: 24rpx;
  536. }
  537. }
  538. .on {
  539. background-image: url('/static/images/cb/online.png');
  540. color: #fff;
  541. }
  542. .off {
  543. background-image: url('/static/images/cb/outline.png');
  544. color: #999999;
  545. }
  546. .info {
  547. position: relative;
  548. padding: 8rpx 32rpx 32rpx 32rpx;
  549. line-height: 50rpx;
  550. font-size: 26rpx;
  551. border-radius: 24rpx;
  552. background-color: #fff;
  553. box-sizing: border-box;
  554. width: 100%;
  555. .info-list {
  556. overflow: hidden;
  557. font-size: 12px;
  558. .float-right {
  559. float: right;
  560. color: #666;
  561. .arrow {
  562. margin-left: 10rpx;
  563. }
  564. }
  565. .float-left {
  566. float: left;
  567. color: #999;
  568. }
  569. }
  570. .tishi {
  571. width: 28rpx;
  572. height: 28rpx;
  573. margin: 0rpx 0 0 12rpx;
  574. position: relative;
  575. top: 6rpx;
  576. }
  577. }
  578. .tit {
  579. font-weight: 800;
  580. height: 50rpx;
  581. font-size: 30rpx;
  582. margin-bottom: 20rpx;
  583. display: flex;
  584. justify-content: space-between;
  585. .span {
  586. color: #6e6c76;
  587. font-size: 24rpx;
  588. display: flex;
  589. justify-content: space-between;
  590. /* margin-top: 12rpx; */
  591. }
  592. }
  593. .newState {
  594. padding: 32rpx;
  595. border-radius: 16rpx;
  596. background: #FFF;
  597. .top {
  598. height: 112rpx;
  599. display: flex;
  600. justify-content: space-between;
  601. align-items: center;
  602. .left {
  603. width: 40%;
  604. display: flex;
  605. align-items: center;
  606. }
  607. .right {
  608. width: 160rpx;
  609. }
  610. .img {
  611. float: left;
  612. width: 110rpx;
  613. height: 110rpx;
  614. margin-right: 32rpx;
  615. }
  616. p:nth-child(2) {
  617. color: #687A74;
  618. }
  619. .num {
  620. font-size: 40rpx;
  621. font-weight: 700;
  622. color: #042118;
  623. }
  624. }
  625. .up-down {
  626. height: 222rpx;
  627. margin: 32rpx 0;
  628. display: flex;
  629. gap: 18rpx;
  630. justify-content: space-between;
  631. }
  632. .bottom {
  633. box-sizing: border-box;
  634. height: 100%;
  635. display: flex;
  636. padding: 32rpx 0;
  637. flex-direction: column;
  638. justify-content: center;
  639. align-items: center;
  640. gap: 30rpx;
  641. flex: 1 0 0;
  642. border-radius: 16rpx;
  643. background: linear-gradient(180deg, #14a4781a 0%, #14a47800 100%), #FFF;
  644. .opt {
  645. width: 70rpx;
  646. height: 70rpx;
  647. font-size: 24rpx;
  648. color: #687A74;
  649. image {
  650. width: 64rpx;
  651. height: 64rpx;
  652. float: left;
  653. margin-right: 16rpx;
  654. }
  655. .num {
  656. color: #042118;
  657. font-weight: 700;
  658. font-size: 28rpx;
  659. }
  660. }
  661. }
  662. .btn {
  663. button {
  664. font-size: 28rpx;
  665. width: 100%;
  666. background: #EEF0F8;
  667. height: 63rpx;
  668. line-height: 63rpx;
  669. border: none;
  670. outline: none;
  671. border-radius: 16rpx;
  672. &:after {
  673. border: none;
  674. }
  675. &.active {
  676. color: #fff;
  677. background: #14A478;
  678. }
  679. }
  680. }
  681. }
  682. }
  683. /deep/.u-calendar__action {
  684. display: flex;
  685. justify-content: space-around;
  686. .u-calendar__action__text {
  687. line-height: 25px;
  688. }
  689. }
  690. .red {
  691. color: rgb(235, 103, 101);
  692. }
  693. .consoleList {
  694. padding: 32rpx;
  695. background: #fff;
  696. border-radius: 16rpx;
  697. margin-top: 32rpx;
  698. min-height: calc(100vh - 1020rpx);
  699. .title {
  700. margin: 0;
  701. margin-bottom: 16rpx;
  702. color: #042118;
  703. font-weight: 600;
  704. }
  705. .histimeBox {
  706. margin: 32rpx 0;
  707. }
  708. .tableList {
  709. font-size: 28rpx;
  710. height: 93rpx;
  711. color: #042118;
  712. display: flex;
  713. justify-content: space-between;
  714. align-items: center;
  715. border-bottom: 2rpx solid var(--neutral-color-border-base, #DCE6E3);
  716. view {
  717. text-align: center;
  718. }
  719. .success {
  720. color: #14A478;
  721. }
  722. .error {
  723. color: #FF5951;
  724. }
  725. view:nth-child(1) {
  726. width: 160rpx;
  727. text-align: left;
  728. }
  729. view:nth-child(2) {
  730. width: 170rpx;
  731. }
  732. view:nth-child(3) {
  733. width: 120rpx;
  734. }
  735. }
  736. .tableTitle {
  737. /* background: #E8F3F0; */
  738. color: #042118;
  739. font-weight: 500;
  740. height: 78rpx;
  741. }
  742. }
  743. .histimeBox {
  744. display: flex;
  745. align-items: center;
  746. justify-content: space-between;
  747. height: 56rpx;
  748. padding: 6rpx 24rpx;
  749. box-sizing: border-box;
  750. border-radius: 8rpx;
  751. margin-top: 54rpx;
  752. border: 2rpx solid var(--neutral-color-border-light, #e4edea);
  753. .u-icon {
  754. z-index: 10;
  755. }
  756. .time {
  757. width: 280rpx;
  758. color: #c1c1c1;
  759. }
  760. view {
  761. color: #333333;
  762. text-align: center;
  763. }
  764. }
  765. .btn-box {
  766. text-align: center;
  767. }
  768. </style>