ucharts.vue 20 KB

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