ucharts.vue 20 KB

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