ucharts.vue 20 KB

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