ucharts.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701
  1. <template>
  2. <view>
  3. <view class="status_bar"></view>
  4. <view class="" style="position: relative;top: 44px;">
  5. <view style="position: fixed;z-index: 100;width: 100%;color: #FFFFFF;">
  6. <uni-nav-bar @clickLeft="clickLeft" left-icon="back" left-text="返回" title="历史数据"></uni-nav-bar>
  7. </view>
  8. <view class="selecttimes" @click="tiemshow=!tiemshow">
  9. <view class="timesbox">
  10. <image
  11. :src="'http://www.hnyfwlw.com:8006/bigdata_app'+'/image/prevention/1acfe2751c01d3786cdc49b83d7e505.png'"
  12. mode=""></image>
  13. <p>{{timetab(oldtime)}}</p>
  14. <p class="or">~</p>
  15. <p>{{timetab(newtime)}}</p>
  16. <u-icon name="rili" custom-prefix="custom-icon" class="icon"></u-icon>
  17. </view>
  18. <u-calendar v-model="tiemshow" mode="range" @change="tiemchange"></u-calendar>
  19. </view>
  20. <view class="shuju_one">
  21. <view class="shuju_one_title">
  22. <view :class="titleidnex==index?'title_text_color':'tltle_text'" v-for="(item,index) in titletext"
  23. :key="index" @click="changeindex(index)">
  24. {{item}}
  25. </view>
  26. </view>
  27. <view class="canvastishi" v-if="!canvastishiTF && !dataloadingtf">
  28. 暂无数据
  29. </view>
  30. <view class="canvastishi" v-if="dataloadingtf">
  31. <p class="dataloading">加载中</p>
  32. </view>
  33. <canvas v-if="canvastishiTF" canvas-id="canvasColumnA" id="canvasColumnA" class="charts"
  34. @touchstart="touchLineA($event)" @touchmove="moveLineA($event)" @touchend="touchEndLineA($event)"
  35. disable-scroll=true
  36. :style="{'width':cWidth*pixelRatio+'px','height':cHeight*pixelRatio+'px', 'transform': 'scale('+(1/pixelRatio)+')','margin-left':-cWidth*(pixelRatio-1)/2+'px','margin-top':-cHeight*(pixelRatio-1)/2+'px'}"></canvas>
  37. </view>
  38. <view class="shuju_two" v-if="allqingchong">
  39. <view class="canvastishi" v-if="!canvastishiTF && !dataloadingtf">
  40. 暂无数据
  41. </view>
  42. <view class="canvastishi" v-if="dataloadingtf">
  43. <p class="dataloading">加载中</p>
  44. </view>
  45. <canvas v-if="canvastishiTF" canvas-id="canvasColumnB" id="canvasColumnB" class="charts"
  46. @touchstart="touchLineBb($event)" @touchmove="moveLineBb($event)" @touchend="touchEndLineBb($event)"
  47. disable-scroll=true
  48. :style="{'width':cWidth*pixelRatio+'px','height':cHeight*pixelRatio+'px', 'transform': 'scale('+(1/pixelRatio)+')','margin-left':-cWidth*(pixelRatio-1)/2+'px','margin-top':-cHeight*(pixelRatio-1)/2+'px'}"></canvas>
  49. </view>
  50. <view class="refresh" @click="refresh" :style="{'top': allqingchong?'1380rpx':'790rpx'}">
  51. 刷 新
  52. </view>
  53. <view class="condition" :style="{'top': allqingchong?'1450rpx':'870rpx'}">
  54. <scroll-view scroll-top="0" scroll-x="true" class="scroll-X">
  55. <table class="table" v-if="$QueryPermission(264)||$QueryPermission(323)">
  56. <tr class="tr">
  57. <th class="th" v-for="(item,index) in thdata" :key="'a'+index">{{item}}</th>
  58. </tr>
  59. <tr class="tr" v-for="(items,indexs) in eqlistdata" :key="'b'+indexs" v-if="forbidden">
  60. <td class="td">{{items.d_h_t.addtime|timeFormat()}}</td>
  61. <td class="td">{{items.d_h_t.ds}}</td>
  62. <td class="td">{{items.d_h_t.ws}}</td>
  63. <td class="td">{{items.d_h_t.rps}}</td>
  64. <td class="td">{{items.d_h_t.tps}}</td>
  65. <td class="td">{{items.d_h_t.dps}}</td>
  66. <td class="td">{{items.d_h_t.tt}}</td>
  67. <td class="td">{{items.d_h_t.ct}}</td>
  68. <td class="td">{{items.d_h_t.at==""?"--":items.d_h_t.at}}</td>
  69. <td class="td">{{items.d_h_t.ah==""?"--":items.d_h_t.ah}}</td>
  70. <td class="td">{{items.d_h_t.cv}}</td>
  71. <td class="td">{{ items.d_h_t.vps == 0 ? '正常' : items.d_h_t.vps == 1 ? '欠压' : items.d_h_t.vps == 2 ? '过压' : items.d_h_t.vps}}</td>
  72. <td class="td">{{items.d_h_t.bv}}</td>
  73. <td class="td">{{items.d_h_t.csq}}</td>
  74. </tr>
  75. <tr class="tr" v-if="!forbidden">
  76. <td class="td" v-for="item in 14">暂无数据</td>
  77. </tr>
  78. </table>
  79. <table class="table2" v-else-if="!allqingchong">
  80. <tr class="tr">
  81. <th class="th" v-for="(item,index) in thdata3" :key="'a'+index">{{item}}</th>
  82. </tr>
  83. <tr class="tr" v-for="(items,indexs) in eqlistdata" :key="'b'+indexs" v-if="forbidden">
  84. <td class="td">{{items.d_h_t.addtime|timeFormat()}}</td>
  85. <td class="td">{{items.d_h_t.ds}}</td>
  86. <td class="td">{{items.d_h_t.ws}}</td>
  87. <td class="td">{{items.d_h_t.tps}}</td>
  88. <td class="td">{{items.d_h_t.tt}}</td>
  89. <td class="td">{{items.d_h_t.at==""?"--":items.d_h_t.at}}</td>
  90. <td class="td">{{items.d_h_t.ah==""?"--":items.d_h_t.ah}}</td>
  91. </tr>
  92. <tr class="tr" v-if="!forbidden">
  93. <td class="td" v-for="item in 7">暂无数据</td>
  94. </tr>
  95. </table>
  96. <table class="table2" v-else>
  97. <tr class="tr">
  98. <th class="th" v-for="(item,index) in thdata2" :key="'a'+index">{{item}}</th>
  99. </tr>
  100. <tr class="tr" v-for="(items,indexs) in eqlistdata" :key="'b'+indexs" v-if="forbidden">
  101. <td class="td">{{items.d_h_t.addtime|timeFormat()}}</td>
  102. <td class="td">{{items.d_h_t.ds}}</td>
  103. <td class="td">{{items.d_h_t.ws}}</td>
  104. <td class="td">{{items.d_h_t.rps}}</td>
  105. <td class="td">{{items.d_h_t.tps}}</td>
  106. <td class="td">{{items.d_h_t.dps}}</td>
  107. <td class="td">{{items.d_h_t.tt}}</td>
  108. <td class="td">{{items.d_h_t.ct}}</td>
  109. <td class="td">{{items.d_h_t.at==""?"--":items.d_h_t.at}}</td>
  110. <td class="td">{{items.d_h_t.ah==""?"--":items.d_h_t.ah}}</td>
  111. </tr>
  112. <tr class="tr" v-if="!forbidden">
  113. <td class="td" v-for="item in 10">暂无数据</td>
  114. </tr>
  115. </table>
  116. </scroll-view>
  117. <view class="pagenumber">
  118. <button @click="prev">上一页</button>
  119. <view class="pagenumber_page">
  120. 第{{page}}页
  121. </view>
  122. <view class="pagenumber_page">
  123. 共 {{pagesum}} 页
  124. </view>
  125. <button @click="next" :disabled="!forbidden">下一页</button>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. </template>
  131. <style lang="scss">
  132. </style>
  133. <script>
  134. import uCharts from '../../components/js_sdk/u-charts/u-charts/u-charts.js';
  135. var canvaColumnA = null;
  136. var canvaColumnB = null;
  137. var presenttime = null
  138. // var oldpresenttime = presenttime - 24*60*60*1000
  139. export default {
  140. data() {
  141. return {
  142. thdata: ["上报时间", "设备开关", "工作状态", "雨控状态", "温控状态", "倾倒状态", "定时(h)", "电击次数", "温度(℃)", "湿度(%)", "充电电压(v)","电压状态",
  143. "电池电压(v)", "信号强度"
  144. ],
  145. thdata2: ["上报时间", "设备开关", "工作状态", "雨控状态", "温控状态", "倾倒状态", "定时(h)", "电击次数", "温度(℃)", "湿度(%)"],
  146. thdata3: ["上报时间", "设备开关", "工作状态", "温控状态", "定时(h)", "温度(℃)", "湿度(%)"],
  147. eqlistdata: [],
  148. cWidth: '400',
  149. cHeight: '400',
  150. pixelRatio: 1,
  151. titletext: ["24小时", "近一个月", "近半年", "近一年"],
  152. titleidnex: 0,
  153. oldtime: '',
  154. newtime: '',
  155. page: 1,
  156. forbidden: false, //暂无数据
  157. times: {
  158. d_id: null,
  159. start_time: null,
  160. end_time: null,
  161. device_id: null
  162. },
  163. canvastishiTF: false, //折线图暂无数据提示
  164. dataloadingtf: true, //加载中提示
  165. pagesum: 1,
  166. tiemshow: false, //日历选择器
  167. allqingchong: false
  168. }
  169. },
  170. // 页面加载执行的函数
  171. onLoad(option) {
  172. this.times.d_id = option.d_id
  173. this.times.imei = option.imei
  174. this.cWidth = uni.upx2px(650);
  175. this.cHeight = uni.upx2px(500);
  176. this.getworm()
  177. },
  178. onShow() {
  179. presenttime = +new Date();
  180. this.oldtime = parseInt((presenttime - 24 * 60 * 60 * 1000) / 1000)
  181. this.newtime = parseInt(presenttime / 1000)
  182. setTimeout(() => {
  183. this.getServerData(parseInt(presenttime / 1000), parseInt((presenttime - 24 * 60 * 60 * 1000) /
  184. 1000))
  185. this.historydata(parseInt(presenttime / 1000), parseInt((presenttime - 24 * 60 * 60 * 1000) /
  186. 1000))
  187. }, 1000)
  188. },
  189. onPullDownRefresh() {
  190. console.log('refresh');
  191. this.getServerData(parseInt(presenttime / 1000), parseInt((presenttime - 24 * 60 * 60 * 1000) /
  192. 1000))
  193. this.historydata(parseInt(presenttime / 1000), parseInt((presenttime - 24 * 60 * 60 * 1000) /
  194. 1000))
  195. setTimeout(function() {
  196. uni.stopPullDownRefresh();
  197. }, 1000);
  198. },
  199. methods: { //
  200. //forecast.worm_lamp.device_polyline_data
  201. // 获取数据,发请求
  202. async getServerData(newtime, oldtimes) { //设备折线图
  203. this.dataloadingtf = true
  204. const res = await this.$myRequest({
  205. url: '/api/api_gateway?method=forecast.worm_lamp.device_polyline_data',
  206. data: {
  207. device_type_id: 2,
  208. d_id: this.times.d_id,
  209. end_time: newtime,
  210. start_time: oldtimes
  211. }
  212. })
  213. this.dataloadingtf = false
  214. if (res.length == 0) {
  215. this.canvastishiTF = false
  216. } else {
  217. this.canvastishiTF = true
  218. var xtitle = []
  219. var arr = []
  220. var arr1 = []
  221. var arr2 = []
  222. var arr3 = []
  223. var arr4 = []
  224. var arr5 = []
  225. for (var i = 0; i < res.length; i++) {
  226. var times = new Date(res[i].addtime * 1000)
  227. xtitle.unshift(times.getMonth() + 1 + "/" + times.getDate() + "-" + times.getHours() + ":" +
  228. times.getMinutes())
  229. arr1.unshift(res[i].temperature)
  230. arr2.unshift(res[i].humidity)
  231. arr3.unshift(Number(res[i].others.bv))
  232. arr4.unshift(Number(res[i].others.cv))
  233. arr5.unshift(res[i].others.ct)
  234. }
  235. arr.unshift(arr1, arr2, arr3, arr4)
  236. var obj = [{
  237. name: '温度',
  238. data: arr[0],
  239. color: '#F97000'
  240. }, {
  241. name: '湿度',
  242. data: arr[1],
  243. color: '#00E29D'
  244. }, {
  245. name: '电池电压',
  246. data: arr[2],
  247. color: '#FF3F3F'
  248. }, {
  249. name: '充电电压',
  250. data: arr[3],
  251. color: '#6CBBFF'
  252. }]
  253. var obj2 = [{
  254. name: '击虫次数',
  255. data: arr5,
  256. color: '#00E29D'
  257. }]
  258. // console.log(obj)
  259. this.showColumn("canvasColumnA", xtitle, obj)
  260. this.showColumnb("canvasColumnB", xtitle, obj2)
  261. }
  262. },
  263. changeindex(index) { //选择日期
  264. this.titleidnex = index
  265. var now = new Date();
  266. if (index == 0) {
  267. this.newtime = parseInt(+new Date(now) / 1000)
  268. this.oldtime = parseInt((presenttime - 24 * 60 * 60 * 1000) / 1000)
  269. this.getServerData(parseInt(presenttime / 1000), parseInt((presenttime - 24 * 60 * 60 * 1000) / 1000))
  270. this.historydata(parseInt(presenttime / 1000), parseInt((presenttime - 24 * 60 * 60 * 1000) / 1000))
  271. } else if (index == 1) {
  272. this.newtime = parseInt(+new Date(now) / 1000)
  273. var oldtime = now.setMonth(now.getMonth() - 1) / 1000
  274. this.oldtime = parseInt(oldtime)
  275. this.getServerData(parseInt(presenttime / 1000), parseInt(oldtime))
  276. this.historydata(parseInt(presenttime / 1000), parseInt(oldtime))
  277. } else if (index == 2) {
  278. this.newtime = parseInt(+new Date(now) / 1000)
  279. var oldtime = now.setMonth(now.getMonth() - 6) / 1000
  280. this.oldtime = parseInt(oldtime)
  281. this.getServerData(parseInt(presenttime / 1000), parseInt(oldtime))
  282. this.historydata(parseInt(presenttime / 1000), parseInt(oldtime))
  283. } else if (index == 3) {
  284. this.newtime = parseInt(+new Date(now) / 1000)
  285. var oldtime = now.setFullYear(now.getFullYear() - 1) / 1000
  286. this.oldtime = parseInt(oldtime)
  287. this.getServerData(parseInt(presenttime / 1000), parseInt(oldtime))
  288. this.historydata(parseInt(presenttime / 1000), parseInt(oldtime))
  289. }
  290. },
  291. async historydata(newtime, oldtimes) { //设备表格数据
  292. const res = await this.$myRequest({
  293. url: '/api/api_gateway?method=forecast.worm_lamp.device_history_data',
  294. data: {
  295. device_type_id: 2,
  296. device_id: this.times.imei,
  297. page: this.page,
  298. page_size: 10,
  299. start_time: oldtimes,
  300. end_time: newtime
  301. }
  302. })
  303. console.log(res.data)
  304. this.pagesum = Math.ceil(res.counts / 10) || 1
  305. this.eqlistdata = res.data
  306. if (res.data.length == 0) {
  307. this.forbidden = false
  308. } else {
  309. this.forbidden = true
  310. }
  311. },
  312. prev() { //上一页
  313. if (this.page != 1) {
  314. this.page--
  315. this.historydata(this.newtime, this.oldtime)
  316. }
  317. },
  318. next() { //下一页
  319. if (this.page < this.pagesum) {
  320. this.page++
  321. this.historydata(this.newtime, this.oldtime)
  322. }
  323. },
  324. tiemchange(e) {
  325. console.log(e)
  326. this.oldtime = +new Date(e.startDate) / 1000
  327. this.newtime = +new Date(e.endDate) / 1000 + 16 * 60 * 60
  328. this.getServerData(this.newtime, this.oldtime)
  329. this.historydata(this.newtime, this.oldtime)
  330. },
  331. timetab(e) {
  332. e = new Date(e * 1000)
  333. var year = e.getFullYear()
  334. var month = e.getMonth() + 1 < 10 ? "0" + (e.getMonth() + 1) : e.getMonth() + 1
  335. var day = e.getDate() < 10 ? "0" + e.getDate() : e.getDate()
  336. var time = year + "/" + month + "/" + day
  337. return time
  338. },
  339. clickLeft() {
  340. uni.navigateBack({
  341. delta: 1
  342. })
  343. },
  344. showColumn(id, xtitle, xinfo) {
  345. var _self = this
  346. const ctx = uni.createCanvasContext(id, this);
  347. canvaColumnA = new uCharts({
  348. context: ctx,
  349. type: 'line',
  350. legend: {
  351. position: "top"
  352. },
  353. fontSize: 11,
  354. background: '#FFFFFF',
  355. pixelRatio: 1,
  356. animation: true,
  357. dataLabel: false,
  358. categories: xtitle,
  359. series: xinfo,
  360. enableScroll: true, //开启图表拖拽功能
  361. xAxis: {
  362. disableGrid: true,
  363. type: 'grid',
  364. gridType: 'dash',
  365. itemCount: 4, //x轴单屏显示数据的数量,默认为5个
  366. scrollShow: true, //新增是否显示滚动条,默认false
  367. // scrollAlign: 'left', //滚动条初始位置
  368. scrollBackgroundColor: '#F7F7FF', //默认为 #EFEBEF
  369. scrollColor: '#DEE7F7', //默认为 #A6A6A6
  370. },
  371. yAxis: {},
  372. width: _self.cWidth * 1,
  373. height: _self.cHeight * 1,
  374. extra: {
  375. line: {
  376. type: 'curve'
  377. }
  378. }
  379. });
  380. },
  381. showColumnb(id, xtitle, xinfo) {
  382. var _self = this
  383. const ctx = uni.createCanvasContext(id, this);
  384. canvaColumnB = new uCharts({
  385. context: ctx,
  386. type: 'line',
  387. legend: {
  388. position: "top"
  389. },
  390. fontSize: 11,
  391. background: '#FFFFFF',
  392. pixelRatio: 1,
  393. animation: true,
  394. dataLabel: false,
  395. categories: xtitle,
  396. series: xinfo,
  397. enableScroll: true, //开启图表拖拽功能
  398. xAxis: {
  399. disableGrid: true,
  400. type: 'grid',
  401. gridType: 'dash',
  402. itemCount: 4, //x轴单屏显示数据的数量,默认为5个
  403. scrollShow: true, //新增是否显示滚动条,默认false
  404. // scrollAlign: 'left', //滚动条初始位置
  405. scrollBackgroundColor: '#F7F7FF', //默认为 #EFEBEF
  406. scrollColor: '#DEE7F7', //默认为 #A6A6A6
  407. },
  408. yAxis: {},
  409. width: _self.cWidth * 1,
  410. height: _self.cHeight * 1,
  411. extra: {
  412. line: {
  413. type: 'curve'
  414. }
  415. }
  416. });
  417. },
  418. touchLineA(e) {
  419. console.log(e)
  420. canvaColumnA.scrollStart(e);
  421. },
  422. moveLineA(e) {
  423. canvaColumnA.scroll(e);
  424. },
  425. touchEndLineA(e) {
  426. canvaColumnA.scrollEnd(e);
  427. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  428. canvaColumnA.showToolTip(e, {
  429. format: function(item, category) {
  430. return category + ' ' + item.name + ':' + Number(item.data).toFixed(3)
  431. }
  432. });
  433. },
  434. touchLineBb(e) {
  435. console.log(e)
  436. canvaColumnB.scrollStart(e);
  437. },
  438. moveLineBb(e) {
  439. canvaColumnB.scroll(e);
  440. },
  441. touchEndLineBb(e) {
  442. canvaColumnB.scrollEnd(e);
  443. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  444. canvaColumnB.showToolTip(e, {
  445. format: function(item, category) {
  446. return category + ' ' + item.name + ':' + item.data
  447. }
  448. });
  449. },
  450. async newdata() {
  451. const res = await this.$myRequest({
  452. url: '/api/api_gateway?method=forecast.send_control.get_device_config',
  453. data: {
  454. device_type_id: 2,
  455. d_id: this.times.d_id,
  456. control_type: "data"
  457. }
  458. })
  459. if (res) {
  460. uni.showToast({
  461. title: '刷新成功',
  462. duration: 2000,
  463. icon: "none"
  464. });
  465. } else {
  466. uni.showToast({
  467. title: '刷新失败',
  468. duration: 2000,
  469. icon: "none"
  470. });
  471. }
  472. },
  473. refresh() { //获取当前时间的数据
  474. this.newdata()
  475. },
  476. async getworm() {
  477. const res = await this.$myRequest({
  478. url: '/api/api_gateway?method=forecast.send_control.clear_insects_permission',
  479. data: {}
  480. })
  481. console.log(res)
  482. this.allqingchong = res[2] == 1 ? false : true;
  483. },
  484. }
  485. }
  486. </script>
  487. <style lang="scss">
  488. /*样式的width和height一定要与定义的cWidth和cHeight相对应*/
  489. .shuju_one,
  490. .shuju_two {
  491. position: absolute;
  492. top: 190rpx;
  493. width: 90%;
  494. left: 5%;
  495. box-shadow: 0 0 10rpx #bcb9ca;
  496. padding-top: 20rpx;
  497. height: 550rpx;
  498. .canvastishi {
  499. font-size: 32rpx;
  500. position: absolute;
  501. top: 50%;
  502. left: 50%;
  503. margin-left: -64rpx;
  504. margin-top: -21rpx;
  505. .dataloading:after {
  506. overflow: hidden;
  507. display: inline-block;
  508. vertical-align: bottom;
  509. animation: ellipsis 2s infinite;
  510. content: "\2026";
  511. }
  512. @keyframes ellipsis {
  513. from {
  514. width: 2px;
  515. }
  516. to {
  517. width: 15px;
  518. }
  519. }
  520. }
  521. .shuju_one_title {
  522. width: 70%;
  523. margin: 0 auto;
  524. display: flex;
  525. .tltle_text {
  526. width: 25%;
  527. border: 2rpx solid #B2B2B2;
  528. color: #57c878;
  529. text-align: center;
  530. font-size: 24rpx;
  531. height: 50rpx;
  532. line-height: 50rpx;
  533. }
  534. .title_text_color {
  535. width: 25%;
  536. border: 2rpx solid #57c878;
  537. background-color: #57c878;
  538. color: #fff;
  539. text-align: center;
  540. font-size: 24rpx;
  541. height: 50rpx;
  542. line-height: 50rpx;
  543. }
  544. }
  545. .qiun-columns {
  546. .qiun-charts {
  547. width: 650upx;
  548. height: 400upx;
  549. background-color: #FFFFFF;
  550. }
  551. .charts {
  552. width: 650upx;
  553. height: 400upx;
  554. background-color: #FFFFFF;
  555. }
  556. }
  557. }
  558. .shuju_two {
  559. top: 790rpx;
  560. }
  561. .selecttimes {
  562. position: absolute;
  563. top: 54px;
  564. width: 90%;
  565. box-shadow: 0 0 10rpx #bcb9ca;
  566. left: 5%;
  567. padding: 10rpx 20rpx;
  568. box-sizing: border-box;
  569. .timesbox {
  570. display: flex;
  571. justify-content: space-around;
  572. image {
  573. width: 30rpx;
  574. height: 30rpx;
  575. margin-top: 6rpx;
  576. }
  577. .icon {
  578. color: #949494;
  579. text-align: right;
  580. margin-left: 30rpx;
  581. }
  582. }
  583. }
  584. .refresh {
  585. position: absolute;
  586. left: 5%;
  587. width: 160rpx;
  588. height: 50rpx;
  589. background-color: #57c878;
  590. color: #FFFFFF;
  591. line-height: 50rpx;
  592. text-align: center;
  593. box-shadow: 0 0 10rpx #bcb9ca;
  594. }
  595. .condition {
  596. position: absolute;
  597. display: flex;
  598. flex-wrap: wrap;
  599. width: 90%;
  600. left: 5%;
  601. box-shadow: 0 0 10rpx #bcb9ca;
  602. margin-bottom: 30rpx;
  603. .scroll-X {
  604. width: 95%;
  605. margin: 20rpx auto;
  606. .table {
  607. width: 1056px;
  608. }
  609. .tr {
  610. display: flex;
  611. overflow: hidden;
  612. .th,
  613. .td {
  614. display: inline-block;
  615. padding: 5rpx;
  616. width: 140rpx;
  617. text-align: center;
  618. height: 52rpx;
  619. line-height: 52rpx;
  620. // border: 2rpx solid #F1F1F1;
  621. }
  622. .th:first-child,
  623. .td:first-child {
  624. width: 300rpx;
  625. }
  626. .th:nth-last-child(1),
  627. .th:nth-last-child(2),
  628. .td:nth-last-child(1),
  629. .td:nth-last-child(2) {
  630. width: 200rpx;
  631. }
  632. }
  633. .tr:nth-child(2n-1) {
  634. background-color: #f5fff8;
  635. }
  636. .tr:first-child {
  637. background-color: #57c878;
  638. color: #fff;
  639. }
  640. }
  641. .pagenumber {
  642. display: flex;
  643. margin: 20rpx auto;
  644. button {
  645. width: 150rpx;
  646. height: 50rpx;
  647. line-height: 50rpx;
  648. font-size: 26rpx;
  649. text-align: center;
  650. background-color: #57c878;
  651. color: #FFFFFF;
  652. }
  653. .pagenumber_page {
  654. width: 150rpx;
  655. height: 50rpx;
  656. line-height: 50rpx;
  657. font-size: 26rpx;
  658. text-align: center;
  659. }
  660. }
  661. }
  662. /deep/.u-calendar__action {
  663. display: flex;
  664. justify-content: space-around;
  665. .u-calendar__action__text {
  666. line-height: 25px;
  667. }
  668. }
  669. </style>