ucharts.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734
  1. <template>
  2. <view>
  3. <view class="status_bar"></view>
  4. <view class="" style="position: relative;top: 40px;">
  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="pickshow = !pickshow">
  9. <view class="timesbox">
  10. <image
  11. :src="'https://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="pickshow" mode="range" @change="tiemchange"></u-calendar>
  19. </view>
  20. <view class="shuju_one" v-show="!pickshow&&!picktwoshow">
  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-show="allqingchong&&!pickshow&&!picktwoshow">
  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}}</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. params: {
  158. year: true,
  159. month: true,
  160. day: true,
  161. hour: true,
  162. minute: true,
  163. second: false
  164. },
  165. pickshow: false,
  166. picktwoshow: false,
  167. tishiTF: false,
  168. times: {
  169. d_id: null,
  170. start_time: null,
  171. end_time: null,
  172. device_id: null
  173. },
  174. canvastishiTF: false, //暂无数据提示
  175. dataloadingtf: true, //加载中提示
  176. pagesum: 1,
  177. allqingchong:false
  178. }
  179. },
  180. // 页面加载执行的函数
  181. onLoad(option) {
  182. this.times.d_id = option.d_id
  183. this.times.imei = option.imei
  184. this.cWidth = uni.upx2px(650);
  185. this.cHeight = uni.upx2px(500);
  186. this.getworm()
  187. },
  188. onShow() {
  189. presenttime = +new Date();
  190. this.oldtime = parseInt((presenttime - 24 * 60 * 60 * 1000) / 1000)
  191. this.newtime = parseInt(presenttime / 1000)
  192. setTimeout(() => {
  193. this.getServerData(parseInt(presenttime / 1000), parseInt((presenttime - 24 * 60 * 60 * 1000) /
  194. 1000))
  195. this.historydata(parseInt(presenttime / 1000), parseInt((presenttime - 24 * 60 * 60 * 1000) /
  196. 1000))
  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. 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. if (this.newtime < this.oldtime) {
  290. this.tishiTF = true
  291. } else {
  292. this.tishiTF = false
  293. }
  294. },
  295. async historydata(newtime, oldtimes) { //设备表格数据
  296. const res = await this.$myRequest({
  297. url: '/api/api_gateway?method=forecast.worm_lamp.device_history_data',
  298. data: {
  299. device_type_id: 2,
  300. device_id: this.times.imei,
  301. page: this.page,
  302. page_size: 10,
  303. start_time: oldtimes,
  304. end_time: newtime
  305. }
  306. })
  307. console.log(res.data)
  308. this.pagesum = Math.ceil(res.counts / 10) || 1
  309. this.eqlistdata = res.data
  310. if (res.data.length == 0) {
  311. this.forbidden = false
  312. } else {
  313. this.forbidden = true
  314. }
  315. },
  316. prev() { //上一页
  317. if (this.page != 1) {
  318. this.page--
  319. this.historydata(this.newtime, this.oldtime)
  320. }
  321. },
  322. next() { //下一页
  323. if (this.page < this.pagesum) {
  324. this.page++
  325. this.historydata(this.newtime, this.oldtime)
  326. }
  327. },
  328. tiemchange(e) {
  329. console.log(e)
  330. this.oldtime = +new Date(e.startDate) / 1000
  331. this.newtime = +new Date(e.endDate) / 1000 + 16 * 60 * 60
  332. this.getServerData(this.newtime, this.oldtime)
  333. this.historydata(this.newtime, this.oldtime)
  334. },
  335. timetab(e) {
  336. e = new Date(e * 1000)
  337. var year = e.getFullYear()
  338. var month = e.getMonth() + 1 < 10 ? "0" + (e.getMonth() + 1) : e.getMonth() + 1
  339. var day = e.getDate() < 10 ? "0" + e.getDate() : e.getDate()
  340. var time = year + "/" + month + "/" + day
  341. return time
  342. },
  343. pickone(e) {
  344. this.oldtime = +new Date(e.year, e.month - 1, e.day, e.hour, e.minute) / 1000
  345. if (this.newtime < this.oldtime) {
  346. this.tishiTF = true
  347. } else {
  348. this.tishiTF = false
  349. }
  350. },
  351. picktwo(e) {
  352. this.newtime = +new Date(e.year, e.month - 1, e.day, e.hour, e.minute) / 1000
  353. if (this.newtime < this.oldtime) {
  354. this.tishiTF = true
  355. } else {
  356. this.tishiTF = false
  357. }
  358. },
  359. serter() {
  360. if (this.tishiTF == false) {
  361. this.getServerData(parseInt(presenttime / 1000), parseInt(this.oldtime))
  362. this.historydata(this.newtime, this.oldtime)
  363. uni.showToast({
  364. title: '搜索成功',
  365. duration: 2000
  366. });
  367. }
  368. },
  369. clickLeft() {
  370. uni.navigateBack({
  371. delta: 1
  372. })
  373. },
  374. showColumn(id, xtitle, xinfo) {
  375. var _self = this
  376. const ctx = uni.createCanvasContext(id, this);
  377. canvaColumnA = new uCharts({
  378. context: ctx,
  379. type: 'line',
  380. legend: {
  381. position: "top"
  382. },
  383. fontSize: 11,
  384. background: '#FFFFFF',
  385. pixelRatio: 1,
  386. animation: true,
  387. dataLabel: false,
  388. categories: xtitle,
  389. series: xinfo,
  390. enableScroll: true, //开启图表拖拽功能
  391. xAxis: {
  392. disableGrid: true,
  393. type: 'grid',
  394. gridType: 'dash',
  395. itemCount: 4, //x轴单屏显示数据的数量,默认为5个
  396. scrollShow: true, //新增是否显示滚动条,默认false
  397. // scrollAlign: 'left', //滚动条初始位置
  398. scrollBackgroundColor: '#F7F7FF', //默认为 #EFEBEF
  399. scrollColor: '#DEE7F7', //默认为 #A6A6A6
  400. },
  401. yAxis: {},
  402. width: _self.cWidth * 1,
  403. height: _self.cHeight * 1,
  404. extra: {
  405. line: {
  406. type: 'curve'
  407. }
  408. }
  409. });
  410. },
  411. showColumnb(id, xtitle, xinfo) {
  412. var _self = this
  413. const ctx = uni.createCanvasContext(id, this);
  414. canvaColumnB = new uCharts({
  415. context: ctx,
  416. type: 'line',
  417. legend: {
  418. position: "top"
  419. },
  420. fontSize: 11,
  421. background: '#FFFFFF',
  422. pixelRatio: 1,
  423. animation: true,
  424. dataLabel: false,
  425. categories: xtitle,
  426. series: xinfo,
  427. enableScroll: true, //开启图表拖拽功能
  428. xAxis: {
  429. disableGrid: true,
  430. type: 'grid',
  431. gridType: 'dash',
  432. itemCount: 4, //x轴单屏显示数据的数量,默认为5个
  433. scrollShow: true, //新增是否显示滚动条,默认false
  434. // scrollAlign: 'left', //滚动条初始位置
  435. scrollBackgroundColor: '#F7F7FF', //默认为 #EFEBEF
  436. scrollColor: '#DEE7F7', //默认为 #A6A6A6
  437. },
  438. yAxis: {},
  439. width: _self.cWidth * 1,
  440. height: _self.cHeight * 1,
  441. extra: {
  442. line: {
  443. type: 'curve'
  444. }
  445. }
  446. });
  447. },
  448. touchLineA(e) {
  449. console.log(e)
  450. canvaColumnA.scrollStart(e);
  451. },
  452. moveLineA(e) {
  453. canvaColumnA.scroll(e);
  454. },
  455. touchEndLineA(e) {
  456. canvaColumnA.scrollEnd(e);
  457. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  458. canvaColumnA.showToolTip(e, {
  459. format: function(item, category) {
  460. return category + ' ' + item.name + ':' + Number(item.data).toFixed(3)
  461. }
  462. });
  463. },
  464. touchLineBb(e) {
  465. console.log(e)
  466. canvaColumnB.scrollStart(e);
  467. },
  468. moveLineBb(e) {
  469. canvaColumnB.scroll(e);
  470. },
  471. touchEndLineBb(e) {
  472. canvaColumnB.scrollEnd(e);
  473. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  474. canvaColumnB.showToolTip(e, {
  475. format: function(item, category) {
  476. return category + ' ' + item.name + ':' + item.data
  477. }
  478. });
  479. },
  480. async newdata() {
  481. const res = await this.$myRequest({
  482. url: '/api/api_gateway?method=forecast.send_control.get_device_config',
  483. data: {
  484. device_type_id: 2,
  485. d_id: this.times.d_id,
  486. control_type: "data"
  487. }
  488. })
  489. if (res) {
  490. uni.showToast({
  491. title: '刷新成功',
  492. duration: 2000,
  493. icon: "none"
  494. });
  495. } else {
  496. uni.showToast({
  497. title: '刷新失败',
  498. duration: 2000,
  499. icon: "none"
  500. });
  501. }
  502. },
  503. refresh() { //获取当前时间的数据
  504. this.newdata()
  505. },
  506. async getworm() {
  507. const res = await this.$myRequest({
  508. url: '/api/api_gateway?method=forecast.send_control.clear_insects_permission',
  509. data: {}
  510. })
  511. console.log(res)
  512. this.allqingchong = res[2] == 1 ? false : true;
  513. },
  514. }
  515. }
  516. </script>
  517. <style lang="scss">
  518. /*样式的width和height一定要与定义的cWidth和cHeight相对应*/
  519. .shuju_one,
  520. .shuju_two {
  521. position: absolute;
  522. top: 190rpx;
  523. width: 90%;
  524. left: 5%;
  525. box-shadow: 0 0 10rpx #bcb9ca;
  526. padding-top: 20rpx;
  527. height: 550rpx;
  528. .canvastishi {
  529. font-size: 32rpx;
  530. position: absolute;
  531. top: 50%;
  532. left: 50%;
  533. margin-left: -64rpx;
  534. margin-top: -21rpx;
  535. .dataloading:after {
  536. overflow: hidden;
  537. display: inline-block;
  538. vertical-align: bottom;
  539. animation: ellipsis 2s infinite;
  540. content: "\2026";
  541. }
  542. @keyframes ellipsis {
  543. from {
  544. width: 2px;
  545. }
  546. to {
  547. width: 15px;
  548. }
  549. }
  550. }
  551. .shuju_one_title {
  552. width: 70%;
  553. margin: 0 auto;
  554. display: flex;
  555. .tltle_text {
  556. width: 25%;
  557. border: 2rpx solid #B2B2B2;
  558. color: #B2B2B2;
  559. text-align: center;
  560. font-size: 24rpx;
  561. height: 50rpx;
  562. line-height: 50rpx;
  563. }
  564. .title_text_color {
  565. width: 25%;
  566. border: 2rpx solid #28AE4F;
  567. color: #28AE4F;
  568. text-align: center;
  569. font-size: 24rpx;
  570. height: 50rpx;
  571. line-height: 50rpx;
  572. }
  573. }
  574. .qiun-columns {
  575. .qiun-charts {
  576. width: 650upx;
  577. height: 400upx;
  578. background-color: #FFFFFF;
  579. }
  580. .charts {
  581. width: 650upx;
  582. height: 400upx;
  583. background-color: #FFFFFF;
  584. }
  585. }
  586. }
  587. .shuju_two {
  588. top: 790rpx;
  589. }
  590. .selecttimes {
  591. position: absolute;
  592. top: 54px;
  593. width: 90%;
  594. box-shadow: 0 0 10rpx #bcb9ca;
  595. left: 5%;
  596. padding: 10rpx 20rpx;
  597. box-sizing: border-box;
  598. .timesbox {
  599. display: flex;
  600. justify-content: space-around;
  601. image {
  602. width: 30rpx;
  603. height: 30rpx;
  604. margin-top: 6rpx;
  605. }
  606. .icon {
  607. color: #949494;
  608. text-align: right;
  609. margin-left: 30rpx;
  610. }
  611. }
  612. }
  613. .refresh {
  614. position: absolute;
  615. top: 1380rpx;
  616. left: 5%;
  617. width: 160rpx;
  618. height: 50rpx;
  619. background-color: #28AE4F;
  620. color: #FFFFFF;
  621. line-height: 50rpx;
  622. text-align: center;
  623. }
  624. .condition {
  625. position: absolute;
  626. top: 1450rpx;
  627. display: flex;
  628. flex-wrap: wrap;
  629. width: 90%;
  630. left: 5%;
  631. box-shadow: 0 0 10rpx #bcb9ca;
  632. margin-bottom: 30rpx;
  633. .scroll-X {
  634. width: 95%;
  635. margin: 20rpx auto;
  636. .table {
  637. width: 1056px;
  638. }
  639. .table2{
  640. width: 800px;
  641. }
  642. .tr {
  643. display: flex;
  644. overflow: hidden;
  645. .th,
  646. .td {
  647. display: inline-block;
  648. padding: 5rpx;
  649. width: 140rpx;
  650. text-align: center;
  651. height: 52rpx;
  652. line-height: 52rpx;
  653. // border: 2rpx solid #F1F1F1;
  654. }
  655. .th:first-child,
  656. .td:first-child {
  657. width: 300rpx;
  658. }
  659. .th:nth-last-child(1),
  660. .th:nth-last-child(2),
  661. .td:nth-last-child(1),
  662. .td:nth-last-child(2) {
  663. width: 200rpx;
  664. }
  665. }
  666. .tr:nth-child(2n-1) {
  667. background-color: #f5fff8;
  668. }
  669. .tr:first-child {
  670. background-color: #57c878;
  671. color: #fff;
  672. }
  673. }
  674. .pagenumber {
  675. display: flex;
  676. margin: 20rpx auto;
  677. button {
  678. width: 150rpx;
  679. height: 50rpx;
  680. line-height: 50rpx;
  681. font-size: 26rpx;
  682. text-align: center;
  683. background-color: #17BB89;
  684. color: #FFFFFF;
  685. }
  686. .pagenumber_page {
  687. width: 150rpx;
  688. height: 50rpx;
  689. line-height: 50rpx;
  690. font-size: 26rpx;
  691. text-align: center;
  692. }
  693. }
  694. }
  695. /deep/.u-calendar__action {
  696. display: flex;
  697. justify-content: space-around;
  698. .u-calendar__action__text {
  699. line-height: 25px;
  700. }
  701. }
  702. </style>