cmb.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  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%">
  6. <uni-nav-bar
  7. @clickLeft="clickLeft"
  8. left-icon="back"
  9. left-text="返回"
  10. title="设备详情"
  11. ></uni-nav-bar>
  12. </view>
  13. <view class="info">
  14. <view class="info_item">
  15. <image
  16. :src="$imageURL+'/bigdata_app/image/cb/onBg.png'"
  17. mode=""
  18. class="bgi"
  19. ></image>
  20. <p style="font-size: 32rpx" @click="copy(eqinfo.device_id)">
  21. 设备 ID:{{ eqinfo.device_id || '无' }}
  22. <image
  23. :src="$imageURL+'/bigdata_app/image/environment/fuzhi.png'"
  24. mode=""
  25. class="tishi"
  26. ></image>
  27. </p>
  28. <p>设备名称:{{ eqinfo.device_name || eqinfo.name || '无' }}</p>
  29. <p>
  30. 最近上报时间:<span v-if="eqinfo.uptime">{{
  31. eqinfo.uptime == 0 ? '无' : eqinfo.uptime | timeFormat()
  32. }}</span
  33. ><span v-else>{{
  34. eqinfo.uptime == 0 ? '无' : eqinfo.uptime | timeFormat()
  35. }}</span>
  36. </p>
  37. <p>地址:{{ eqinfo.location || eqinfo.address || '暂无地址' }}</p>
  38. </view>
  39. </view>
  40. <view class="control">
  41. <view class="control_item" v-if="kongtf" @click="control">
  42. <image
  43. :src="
  44. $imageURL+ '/bigdata_app' +
  45. '/image/environment/forecastResult.png'
  46. "
  47. mode=""
  48. ></image>
  49. <p>预测结果</p>
  50. </view>
  51. </view>
  52. <view class="his_box" v-if="datatf">
  53. <view class="selecttimes" @click="tiemshow = !tiemshow">
  54. <view class="timesbox">
  55. <image
  56. :src="$imageURL+'/bigdata_app/image/prevention/1acfe2751c01d3786cdc49b83d7e505.png'"
  57. mode=""
  58. ></image>
  59. <p>{{ timetab(begintime) }}</p>
  60. <p class="or">~</p>
  61. <p>{{ timetab(end) }}</p>
  62. <u-icon
  63. name="rili"
  64. custom-prefix="custom-icon"
  65. class="icon"
  66. ></u-icon>
  67. </view>
  68. <u-calendar
  69. v-model="tiemshow"
  70. mode="range"
  71. @change="tiemchange"
  72. range-color="#999"
  73. btn-type="success"
  74. active-bg-color="#0BBC58"
  75. range-bg-color="rgba(11,188,88,0.13)"
  76. ></u-calendar>
  77. </view>
  78. <view class="shuju_one">
  79. <view class="canvastishi" v-if="!canvastishiTF && !dataloadingtf">
  80. 暂无数据
  81. </view>
  82. <view class="canvastishi" v-if="dataloadingtf">
  83. <p class="dataloading">加载中</p>
  84. </view>
  85. <canvas
  86. v-show="!tiemshow"
  87. canvas-id="canvasColumnA"
  88. id="canvasColumnA"
  89. class="charts"
  90. @touchstart="touchLineA($event)"
  91. @touchmove="moveLineA($event)"
  92. @touchend="touchEndLineA($event)"
  93. disable-scroll="true"
  94. :style="{
  95. width: cWidth * pixelRatio + 'px',
  96. height: cHeight * pixelRatio + 'px',
  97. transform: 'scale(' + 1 / pixelRatio + ')',
  98. 'margin-left': (-cWidth * (pixelRatio - 1)) / 2 + 'px',
  99. 'margin-top': (-cHeight * (pixelRatio - 1)) / 2 + 'px',
  100. }"
  101. ></canvas>
  102. <canvas
  103. v-show="!tiemshow"
  104. canvas-id="canvasColumnB"
  105. id="canvasColumnB"
  106. class="charts"
  107. @touchstart="touchLineB($event)"
  108. @touchmove="moveLineB($event)"
  109. @touchend="touchEndLineB($event)"
  110. disable-scroll="true"
  111. :style="{
  112. width: cWidth * pixelRatio + 'px',
  113. height: cHeight * pixelRatio + 'px',
  114. transform: 'scale(' + 1 / pixelRatio + ')',
  115. 'margin-left': (-cWidth * (pixelRatio - 1)) / 2 + 'px',
  116. 'margin-top': (-cHeight * (pixelRatio - 1)) / 2 + 'px',
  117. }"
  118. ></canvas>
  119. </view>
  120. <view class="condition">
  121. <scroll-view scroll-top="0" scroll-x="true" class="scroll-X">
  122. <table class="table">
  123. <tr class="tr">
  124. <th
  125. class="th"
  126. v-for="(item, index) in tableHead"
  127. :key="'a' + index"
  128. >
  129. {{ item }}
  130. </th>
  131. </tr>
  132. <tr
  133. class="tr"
  134. v-for="(items, indexs) in historylistdata"
  135. :key="'b' + indexs"
  136. v-if="!forbidden"
  137. >
  138. <td class="td">{{ items.uploadTime | timeFormat() }}</td>
  139. <td class="td">{{ items.dianChiDianYa }}</td>
  140. <td class="td">{{ items.fiftyTuRangHanShuiLiang }}</td>
  141. <td class="td">{{ items.fiftyTuRangWenDu }}</td>
  142. <td class="td">{{ items.fiveTuRangHanShuiLiang }}</td>
  143. <td class="td">{{ items.fiveTuRangWenDu }}</td>
  144. <td class="td">{{ items.kongQiWenDu }}</td>
  145. <td class="td">{{ items.luDianWenDu }}</td>
  146. <td class="td">{{ items.riZhaoShiShu }}</td>
  147. <td class="td">{{ items.shiRunShiJian }}</td>
  148. <td class="td">{{ items.tenTuRangHanShuiLiang }}</td>
  149. <td class="td">{{ items.tenTuRangWenDu }}</td>
  150. <td class="td">{{ items.tianJiangYuLiang }}</td>
  151. <td class="td">{{ items.tuRangDaoDianLv }}</td>
  152. <td class="td">{{ items.twentyFiveTuRangHanShuiLiang }}</td>
  153. <td class="td">{{ items.twentyFiveTuRangWenDu }}</td>
  154. <td class="td">{{ items.twentyTuRangHanShuiLiang }}</td>
  155. <td class="td">{{ items.twentyTuRangWenDu }}</td>
  156. <td class="td">{{ items.xiangDuiShiDu }}</td>
  157. <td class="td">{{ items.xiaoShiJiangYuLiang }}</td>
  158. </tr>
  159. <tr class="tr" v-if="forbidden">
  160. <td class="td" v-for="item in 13">暂无数据</td>
  161. </tr>
  162. </table>
  163. </scroll-view>
  164. <view class="pagenumber">
  165. <button @click="prev">上一页</button>
  166. <view class="pagenumber_page"> 第 {{ page }} 页 </view>
  167. <view class="pagenumber_page"> 共 {{ pagesum }} 页 </view>
  168. <button @click="next">下一页</button>
  169. </view>
  170. </view>
  171. </view>
  172. </view>
  173. </view>
  174. </template>
  175. <script>
  176. import uCharts from '../../components/js_sdk/u-charts/u-charts/u-charts.js';
  177. var canvaColumnA = null;
  178. var canvaColumnB = null;
  179. export default {
  180. data() {
  181. return {
  182. basetype: '',
  183. kongtf: false,
  184. datatf: false,
  185. eqinfo: {},
  186. city: '河南省',
  187. tiemshow: false, //时间筛选弹框
  188. begintime: '', //开始时间
  189. end: '', //结束时间
  190. dataloadingtf: true,
  191. canvastishiTF: false,
  192. device_id: '', //设备ID
  193. tableHead: [
  194. '上报时间',
  195. '电池电压',
  196. '50cm土壤含水量',
  197. '50cm土壤温度',
  198. '5cm土壤含水量',
  199. '5cm土壤温度',
  200. '空气温度',
  201. '露点温度',
  202. '日照时数',
  203. '叶面湿润时间',
  204. '10cm土壤含水量',
  205. '10cm土壤温度',
  206. '天降雨量',
  207. '土壤导电率',
  208. '25cm土壤含水量',
  209. '25cm土壤温度',
  210. '20cm土壤含水量',
  211. '20cm土壤温度',
  212. '相对湿度',
  213. '时降雨量',
  214. ], //表格抬头
  215. forbidden: false,
  216. historylistdata: [], //历史数据
  217. pagesum: 1,
  218. page: 1,
  219. cWidth: '',
  220. cHeight: '',
  221. pixelRatio: 1,
  222. param: {
  223. dianChiDianYa: '电池电压',
  224. fiftyTuRangHanShuiLiang: '50cm土壤含水量',
  225. fiftyTuRangWenDu: '50cm土壤温度',
  226. fiveTuRangHanShuiLiang: '5cm土壤含水量',
  227. fiveTuRangWenDu: '5cm土壤温度',
  228. kongQiWenDu: '空气温度',
  229. luDianWenDu: '露点温度',
  230. riZhaoShiShu: '日照时数',
  231. shiRunShiJian: '叶面湿润时间',
  232. tenTuRangHanShuiLiang: '10cm土壤含水量',
  233. tenTuRangWenDu: '10cm土壤温度',
  234. tianJiangYuLiang: '天降雨量',
  235. tuRangDaoDianLv: '土壤导电率',
  236. twentyFiveTuRangHanShuiLiang: '25cm土壤含水量',
  237. twentyFiveTuRangWenDu: '25cm土壤温度',
  238. twentyTuRangHanShuiLiang: '20cm土壤含水量',
  239. twentyTuRangWenDu: '20cm土壤温度',
  240. xiangDuiShiDu: '相对湿度',
  241. xiaoShiJiangYuLiang: '小时降雨量',
  242. },
  243. color: [
  244. '#ff7b30',
  245. '#f93948',
  246. '#fb2ea4',
  247. '#bc59db',
  248. '#7457ec',
  249. '#307dfd',
  250. '#31bfff',
  251. '#46e9b1',
  252. '#19cd48',
  253. '#b2e409',
  254. '#f0f254',
  255. '#fed000',
  256. '#f06f14',
  257. '#a74040',
  258. '#90bb71',
  259. '#a07635',
  260. '#6502bd',
  261. '#048bbb',
  262. '#9ebb01',
  263. '#cc9202',
  264. '#ff8fa0',
  265. '#a3d55f',
  266. '#d9bedd',
  267. '#00a6b6',
  268. '#236093',
  269. '#009fff',
  270. '#ddc0a6',
  271. '#c4a6dd',
  272. '#dda6a6',
  273. '#779e33',
  274. '#a6ddb0',
  275. ],
  276. };
  277. },
  278. methods: {
  279. copy(item) {
  280. uni.setClipboardData({
  281. data: item,
  282. success: function () {
  283. console.log('success');
  284. },
  285. });
  286. },
  287. control() {
  288. //设备控制
  289. uni.navigateTo({
  290. url: './forecastResult?id=' + this.eqinfo.device_id,
  291. });
  292. },
  293. tiemchange(e) {
  294. console.log(e);
  295. //切换时间
  296. // this.begintime = parseInt(+new Date(e.startDate) / 1000);
  297. this.begintime = parseInt(+new Date(`${e.startDate} 00:00:00`) / 1000);
  298. this.end = parseInt(+new Date(`${e.endDate} 00:00:00`) / 1000);
  299. this.histprydatas();
  300. this.getChartLine();
  301. },
  302. timetab(e) {
  303. //时间转换
  304. e = new Date(e * 1000);
  305. var year = e.getFullYear();
  306. var month =
  307. e.getMonth() + 1 < 10 ? '0' + (e.getMonth() + 1) : e.getMonth() + 1;
  308. var day = e.getDate() < 10 ? '0' + e.getDate() : e.getDate();
  309. var time = year + '/' + month + '/' + day;
  310. return time;
  311. },
  312. // 表格数据
  313. async histprydatas() {
  314. //表格历史数据
  315. const res = await this.$myRequest({
  316. url: '/api/api_gateway?method=wheat.wheat.wheat_data_list',
  317. data: {
  318. device_id: this.eqinfo.device_id,
  319. page: this.page,
  320. begin: this.begintime,
  321. end: this.end,
  322. },
  323. });
  324. this.pagesum = Math.ceil(res.nums / 10) || 1;
  325. if (this.pagesum > 0) {
  326. var dat = res.sta;
  327. this.historylistdata = [];
  328. for (var i = 0; i < dat.length; i++) {
  329. var item = eval('(' + dat[i] + ')');
  330. var obj = {};
  331. for (var i1 in item) {
  332. // if (i1 == "uploadTime") {
  333. // obj[i1] = this.formatTime(item[i1] * 1000);
  334. // } else {
  335. obj[i1] = item[i1];
  336. // }
  337. }
  338. this.historylistdata.push(obj);
  339. }
  340. } else {
  341. this.historylistdata = [];
  342. }
  343. },
  344. //获取折线图数据
  345. async getChartLine() {
  346. const res = await this.$myRequest({
  347. method: 'POST',
  348. url: '/api/api_gateway?method=wheat.wheat.wheat_data',
  349. data: {
  350. device_id: this.eqinfo.device_id,
  351. begin: this.begintime,
  352. end: this.end,
  353. },
  354. });
  355. this.dataloadingtf = false;
  356. var dat = res;
  357. if (dat.length) {
  358. var regroupData = []; //重组数据
  359. var kindArr = []; //通道数组
  360. var time = [];
  361. var xtitle = [];
  362. for (var i = 0; i < dat.length; i++) {
  363. var item = eval('(' + dat[i] + ')');
  364. console.log(item);
  365. var tim = parseInt(item['uploadTime']) * 1000;
  366. var times = new Date(tim);
  367. xtitle.unshift(
  368. times.getMonth() +
  369. 1 +
  370. '/' +
  371. times.getDate() +
  372. '-' +
  373. times.getHours() +
  374. ':' +
  375. times.getMinutes()
  376. );
  377. time.unshift(tim);
  378. for (var j in item) {
  379. var arr = '';
  380. if (j == 'id' || j == 'uploadTime') {
  381. continue;
  382. } else if (kindArr.indexOf(j) == '-1') {
  383. kindArr.push(j);
  384. regroupData.push({
  385. name: this.param[j],
  386. color: this.color[kindArr.length - 1],
  387. data: [],
  388. });
  389. // arr.push(tim);
  390. arr = parseFloat(item[j]);
  391. regroupData[kindArr.indexOf(j)].data.unshift(arr);
  392. } else {
  393. // arr.push(tim);
  394. // arr.push(parseFloat(item[j]));
  395. arr = parseFloat(item[j]);
  396. regroupData[kindArr.indexOf(j)].data.unshift(arr);
  397. }
  398. }
  399. }
  400. console.log(regroupData);
  401. // 分割折线图
  402. const regroupDataNum = Math.ceil(regroupData.length / 2);
  403. const options1 = regroupData.filter((v, i) => {
  404. return i < regroupDataNum;
  405. });
  406. const options2 = regroupData.filter((v, i) => {
  407. return i >= regroupDataNum;
  408. });
  409. console.log(options1, options1);
  410. this.showColumn('canvasColumnA', xtitle, options1);
  411. this.showColumn('canvasColumnB', xtitle, options2);
  412. this.canvastishiTF = true;
  413. } else {
  414. this.canvastishiTF = false;
  415. this.showColumn('canvasColumnA', xtitle, []);
  416. this.showColumn('canvasColumnB', xtitle, []);
  417. }
  418. },
  419. prev() {
  420. //上一页
  421. if (this.page > 1) {
  422. this.page--;
  423. this.histprydatas();
  424. }
  425. },
  426. next() {
  427. //下一页
  428. if (this.page < this.pagesum) {
  429. this.page++;
  430. this.histprydatas();
  431. }
  432. },
  433. clickLeft() {
  434. uni.navigateBack({
  435. delta: 1,
  436. });
  437. },
  438. showColumn(id, xtitle, xinfo) {
  439. console.log(id);
  440. var _self = this;
  441. const ctx = uni.createCanvasContext(id, this);
  442. if (id === 'canvasColumnA') {
  443. canvaColumnA = new uCharts({
  444. context: ctx,
  445. type: 'line',
  446. legend: {
  447. position: 'top',
  448. },
  449. fontSize: 11,
  450. background: '#FFFFFF',
  451. pixelRatio: 1,
  452. animation: true,
  453. dataLabel: false,
  454. categories: xtitle,
  455. series: xinfo,
  456. enableScroll: true, //开启图表拖拽功能
  457. xAxis: {
  458. disableGrid: true,
  459. type: 'grid',
  460. gridType: 'dash',
  461. itemCount: 4, //x轴单屏显示数据的数量,默认为5个
  462. scrollShow: true, //新增是否显示滚动条,默认false
  463. // scrollAlign: 'left', //滚动条初始位置
  464. scrollBackgroundColor: '#F7F7FF', //默认为 #EFEBEF
  465. scrollColor: '#DEE7F7', //默认为 #A6A6A6
  466. },
  467. yAxis: {},
  468. width: _self.cWidth * 1,
  469. height: _self.cHeight * 1,
  470. extra: {
  471. line: {
  472. type: 'curve',
  473. },
  474. },
  475. });
  476. } else if (id === 'canvasColumnB') {
  477. canvaColumnB = new uCharts({
  478. context: ctx,
  479. type: 'line',
  480. legend: {
  481. position: 'top',
  482. },
  483. fontSize: 11,
  484. background: '#FFFFFF',
  485. pixelRatio: 1,
  486. animation: true,
  487. dataLabel: false,
  488. categories: xtitle,
  489. series: xinfo,
  490. enableScroll: true, //开启图表拖拽功能
  491. xAxis: {
  492. disableGrid: true,
  493. type: 'grid',
  494. gridType: 'dash',
  495. itemCount: 4, //x轴单屏显示数据的数量,默认为5个
  496. scrollShow: true, //新增是否显示滚动条,默认false
  497. // scrollAlign: 'left', //滚动条初始位置
  498. scrollBackgroundColor: '#F7F7FF', //默认为 #EFEBEF
  499. scrollColor: '#DEE7F7', //默认为 #A6A6A6
  500. },
  501. yAxis: {},
  502. width: _self.cWidth * 1,
  503. height: _self.cHeight * 1,
  504. extra: {
  505. line: {
  506. type: 'curve',
  507. },
  508. },
  509. });
  510. }
  511. },
  512. touchLineA(e) {
  513. console.log(e);
  514. canvaColumnA.scrollStart(e);
  515. },
  516. moveLineA(e) {
  517. canvaColumnA.scroll(e);
  518. },
  519. touchEndLineA(e) {
  520. canvaColumnA.scrollEnd(e);
  521. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  522. canvaColumnA.showToolTip(e, {
  523. format: function (item, category) {
  524. return category + ' ' + item.name + ':' + item.data;
  525. },
  526. });
  527. },
  528. touchLineB(e) {
  529. console.log(e);
  530. canvaColumnB.scrollStart(e);
  531. },
  532. moveLineB(e) {
  533. canvaColumnB.scroll(e);
  534. },
  535. touchEndLineB(e) {
  536. canvaColumnB.scrollEnd(e);
  537. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  538. canvaColumnB.showToolTip(e, {
  539. format: function (item, category) {
  540. return category + ' ' + item.name + ':' + item.data;
  541. },
  542. });
  543. },
  544. },
  545. onLoad(option) {
  546. this.eqinfo = JSON.parse(option.shebei);
  547. this.basetype = this.eqinfo.type;
  548. this.cWidth = uni.upx2px(650);
  549. this.cHeight = uni.upx2px(500);
  550. this.device_id = option.id;
  551. this.end = parseInt(+new Date() / 1000);
  552. this.begintime = parseInt(this.end - 24 * 60 * 60);
  553. this.histprydatas();
  554. this.getChartLine();
  555. if (this.basetype == 11) {
  556. this.kongtf = this.$QueryPermission(251);
  557. this.datatf = this.$QueryPermission(221);
  558. } else if (this.basetype == 19) {
  559. this.kongtf = this.$QueryPermission(252);
  560. this.datatf = this.$QueryPermission(222);
  561. } else if (this.basetype == 20) {
  562. this.kongtf = this.$QueryPermission(253);
  563. this.datatf = this.$QueryPermission(223);
  564. } else if (this.basetype == 21) {
  565. this.kongtf = this.$QueryPermission(280);
  566. this.datatf = this.$QueryPermission(279);
  567. } else if (this.basetype == 26) {
  568. this.kongtf = this.$QueryPermission(344);
  569. this.datatf = this.$QueryPermission(343);
  570. }
  571. },
  572. };
  573. </script>
  574. <style lang="scss">
  575. .info {
  576. width: 100%;
  577. position: absolute;
  578. top: 44px;
  579. .info_item {
  580. width: 90%;
  581. margin: 0 auto;
  582. height: 240rpx;
  583. padding: 40rpx 50rpx;
  584. position: relative;
  585. box-sizing: border-box;
  586. .bgi {
  587. width: 100%;
  588. height: 100%;
  589. position: absolute;
  590. top: 0;
  591. left: 0;
  592. z-index: -1;
  593. }
  594. p {
  595. font-size: 24rpx;
  596. color: #ffffff;
  597. margin-bottom: 10rpx;
  598. .tishi {
  599. width: 30rpx;
  600. height: 30rpx;
  601. margin: 0rpx 0 0 20rpx;
  602. }
  603. }
  604. }
  605. }
  606. .control {
  607. width: 90%;
  608. position: absolute;
  609. top: 360rpx;
  610. left: 5%;
  611. display: flex;
  612. text-align: center;
  613. // padding: 0 30rpx;
  614. box-sizing: border-box;
  615. .control_item {
  616. width: 128rpx;
  617. height: 120rpx;
  618. width: 20%;
  619. image {
  620. width: 70rpx;
  621. height: 70rpx;
  622. }
  623. p {
  624. font-size: 24rpx;
  625. }
  626. }
  627. }
  628. .his_box {
  629. width: 100%;
  630. top: 270px;
  631. position: relative;
  632. }
  633. .selecttimes {
  634. width: 90%;
  635. box-shadow: 0 0 10rpx #bcb9ca;
  636. padding: 10rpx 20rpx;
  637. box-sizing: border-box;
  638. margin: 0 auto;
  639. font-size: 28rpx;
  640. .timesbox {
  641. display: flex;
  642. justify-content: space-around;
  643. image {
  644. width: 30rpx;
  645. height: 30rpx;
  646. margin-top: 6rpx;
  647. }
  648. .icon {
  649. color: #949494;
  650. text-align: right;
  651. margin-left: 30rpx;
  652. }
  653. }
  654. ::v-deep .u-calendar__action {
  655. display: flex;
  656. justify-content: space-around;
  657. .u-calendar__action__text {
  658. line-height: 25px;
  659. }
  660. }
  661. }
  662. .shuju_one {
  663. width: 90%;
  664. margin: 20px auto;
  665. box-shadow: 0 0 10rpx #bcb9ca;
  666. padding-top: 20rpx;
  667. height: 1000rpx;
  668. .canvastishi {
  669. font-size: 32rpx;
  670. position: absolute;
  671. top: 50%;
  672. left: 50%;
  673. margin-left: -64rpx;
  674. margin-top: -21rpx;
  675. .dataloading:after {
  676. overflow: hidden;
  677. display: inline-block;
  678. vertical-align: bottom;
  679. animation: ellipsis 2s infinite;
  680. content: '\2026';
  681. }
  682. @keyframes ellipsis {
  683. from {
  684. width: 2px;
  685. }
  686. to {
  687. width: 15px;
  688. }
  689. }
  690. }
  691. }
  692. .condition {
  693. display: flex;
  694. flex-wrap: wrap;
  695. width: 90%;
  696. box-shadow: 0 0 10rpx #bcb9ca;
  697. margin: 0 auto 30rpx;
  698. .scroll-X {
  699. width: 95%;
  700. margin: 20rpx auto;
  701. .tr {
  702. display: flex;
  703. overflow: hidden;
  704. .th,
  705. .td {
  706. display: inline-block;
  707. padding: 5rpx;
  708. width: 300rpx;
  709. text-align: center;
  710. height: 52rpx;
  711. line-height: 52rpx;
  712. border: 2rpx solid #f1f1f1;
  713. }
  714. }
  715. .tr:nth-child(2n-1) {
  716. background-color: #f5fff8;
  717. }
  718. .tr:first-child {
  719. background-color: #57c878;
  720. color: #fff;
  721. }
  722. }
  723. .pagenumber {
  724. display: flex;
  725. margin: 20rpx auto;
  726. button {
  727. width: 150rpx;
  728. height: 50rpx;
  729. line-height: 50rpx;
  730. font-size: 26rpx;
  731. text-align: center;
  732. background-color: #57c878;
  733. color: #ffffff;
  734. }
  735. .pagenumber_page {
  736. width: 100rpx;
  737. height: 50rpx;
  738. line-height: 50rpx;
  739. font-size: 26rpx;
  740. text-align: center;
  741. }
  742. }
  743. }
  744. </style>