analyse.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845
  1. <template>
  2. <view class="anabox">
  3. <view class="timebox">
  4. <view class="schedulebox">
  5. <view class="schedule" @click="pickertfone=!pickertfone">
  6. <p class="schedule_value">{{yservalue}}</p>
  7. <!-- {{titletext[indexone]}} -->
  8. <p class="schedule_icon">
  9. <u-icon name="arrow-down"></u-icon>
  10. </p>
  11. </view>
  12. <u-picker v-model="pickertfone" mode="selector" @confirm="confirmFun" :default-selector="[yserindex]"
  13. :range="yearlist"></u-picker>
  14. <view class="schedule" @click="pickertfworm=!pickertfworm">
  15. <p class="schedule_value">{{wormvalue}}</p>
  16. <!-- {{titletext[indexone]}} -->
  17. <p class="schedule_icon">
  18. <u-icon name="arrow-down"></u-icon>
  19. </p>
  20. </view>
  21. <u-picker v-model="pickertfworm" mode="selector" @confirm="confirmFun2" :default-selector="[wormindex]"
  22. :range="wormlist"></u-picker>
  23. </view>
  24. <view class="wormtime">
  25. <view class="wormtime_item">
  26. <image src="../../../../static/images/cb/shijianqi.png" mode="" class="img"></image>
  27. <p>始见期</p>
  28. <p>{{timeobj.startTime}}</p>
  29. </view>
  30. <view class="wormtime_item">
  31. <image src="../../../../static/images/cb/gaofengqi.png" mode="" class="img"></image>
  32. <p>高峰期</p>
  33. <p>{{timeobj.highTime}}</p>
  34. <p>数量:{{timeobj.highNum}}头</p>
  35. </view>
  36. <view class="wormtime_item">
  37. <image src="../../../../static/images/cb/zhongjianqi.png" mode="" class="img"></image>
  38. <p>终见期</p>
  39. <p>{{timeobj.endTime}}</p>
  40. </view>
  41. </view>
  42. <view class="selecttimes" @click="tiemshow=!tiemshow">
  43. <view class="" style="line-height: 28px;">
  44. 时间选择器
  45. </view>
  46. <view class="timesbox">
  47. <!-- <image
  48. :src="'http://www.hnyfwlw.com:8006/bigdata_app'+'/image/prevention/1acfe2751c01d3786cdc49b83d7e505.png'"
  49. mode=""></image> -->
  50. <p>{{timetab(oldtime)}}</p>
  51. <p class="or">至</p>
  52. <p>{{timetab(newtime)}}</p>
  53. <!-- <u-icon name="rili" custom-prefix="custom-icon" class="icon"></u-icon> -->
  54. </view>
  55. <u-calendar v-model="tiemshow" mode="range" @change="tiemchange"></u-calendar>
  56. </view>
  57. <view class="tendency">
  58. <canvas canvas-id="canvasColumnA" id="canvasColumnA" class="charts" @touchstart="touchLineA($event)"
  59. @touchmove="moveLineA($event)" @touchend="touchEndLineA($event)" disable-scroll=true
  60. :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>
  61. </view>
  62. <view class="tendency">
  63. <canvas canvas-id="canvasRing" id="canvasRing" class="charts" @touchstart="touchRing"
  64. :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>
  65. </view>
  66. <view class="tendency_pro">
  67. <view class="" v-for="(item,index) in progresslist">
  68. <span>{{index+1}}、{{item.name}}</span>
  69. <u-line-progress :active-color="colorlist[index%6]"
  70. :percent="Number((item.data/pestsum*100).toFixed(2))" :show-percent="false"></u-line-progress>
  71. <span>{{Number((item.data/pestsum*100).toFixed(2))}}%</span>
  72. </view>
  73. </view>
  74. <view class="tablebox">
  75. <view class="top_text">
  76. <view :class="topindex==index?'title_text_color':'tltle_text'" v-for="(item,index) in toptext"
  77. :key="index" @click="changeindex(index)">
  78. <span class="title_item">
  79. {{item}}
  80. </span>
  81. </view>
  82. </view>
  83. <scroll-view scroll-top="0" scroll-x="true" class="scroll-X">
  84. <table class="table" v-if="topindex==0">
  85. <tr class="tr">
  86. <th class="th" v-for="(item,index) in thdata" :key="'a'+index">{{item}}</th>
  87. </tr>
  88. <tr class="tr" v-for="(items,indexs) in eqlistdata" :key="indexs">
  89. <td class="td">{{items.deviceId}}</td>
  90. <td class="td">{{items.deviceName}}</td>
  91. <td class="td" @click="wormdetails(items.pest_dict)">{{items.pestName}}</td>
  92. <td class="td">{{items.addtime|timeFormat()}}</td>
  93. <td class="td">{{items.location}}</td>
  94. <td class="td" @click="examine(items.indentify_photo)">查看</td>
  95. </tr>
  96. <tr class="tr" v-if="forbidden1">
  97. <td class="td" v-for="item in 6">暂无数据</td>
  98. </tr>
  99. </table>
  100. <table class="table2" v-else>
  101. <tr class="tr">
  102. <th class="th" v-for="(item,index) in thdata2" :key="'a'+index">{{item}}</th>
  103. </tr>
  104. <tr class="tr" v-for="(items,indexs) in eqlistdata" :key="indexs">
  105. <td class="td">{{items.pest_name}}</td>
  106. <td class="td">{{items.pest_num}}</td>
  107. <td class="td">{{items.addtime|timeFormat()}}</td>
  108. </tr>
  109. <tr class="tr" v-if="forbidden2">
  110. <td class="td" v-for="item in 6">暂无数据</td>
  111. </tr>
  112. </table>
  113. </scroll-view>
  114. <view class="pagenumber">
  115. <button @click="prev" :disabled=" page == 1 ">上一页</button>
  116. <view class="pagenumber_page">
  117. 第{{page}}页
  118. </view>
  119. <view class="pagenumber_page">
  120. 共 {{pagesum}} 页
  121. </view>
  122. <button @click="next" :disabled=" page == pagesum ">下一页</button>
  123. </view>
  124. </view>
  125. <u-modal v-model="show" :mask-close-able="true" title="24小时数据">
  126. <view class="modalbox">
  127. <p v-for="(item,key) in pest_dict">{{key}}--{{pest_dict[key]}}头</p>
  128. </view>
  129. </u-modal>
  130. </view>
  131. </view>
  132. </template>
  133. <script>
  134. import uCharts from '../../../../components/js_sdk/u-charts/u-charts/u-charts.js';
  135. var canvaColumnA = null;
  136. var canvasRing = null;
  137. export default {
  138. data() {
  139. return {
  140. d_id: "",
  141. oldtime: "",
  142. newtime: "",
  143. tiemshow: false,
  144. cWidth: '350',
  145. cHeight: '350',
  146. pixelRatio: 1,
  147. pickertfone: false,
  148. yservalue: "",
  149. yearlist: [],
  150. yserindex: "",
  151. pickertfworm: false,
  152. wormvalue: "",
  153. wormlist: [],
  154. wormindex: "",
  155. timeobj: {
  156. endTime: "",
  157. highNum: "",
  158. highTime: "",
  159. startTime: "",
  160. },
  161. progresslist: [],
  162. reslist: {
  163. char_data: {},
  164. at_ah_info: []
  165. },
  166. pestsum: 0,
  167. colorlist: ["rgb(24, 144, 255)", "rgb(47, 194, 91)", "rgb(250, 204, 20)", "rgb(240, 72, 100)",
  168. "rgb(133, 67, 224)", "rgb(144, 237, 125)"
  169. ],
  170. page: 1,
  171. pagesum: 1,
  172. eqlistdata: [],
  173. thdata: [
  174. "设备ID", "设备名称", "害虫名称", "上报时间", "设备位置", "图像"
  175. ],
  176. thdata2: [
  177. "害虫名称", "害虫数量", "上报时间"
  178. ],
  179. topindex: 0,
  180. toptext: ["图像溯源", "虫害基础数据"],
  181. forbidden1: false,
  182. forbidden2: false,
  183. show: false,
  184. pest_dict: {}
  185. }
  186. },
  187. methods: {
  188. getyear() {
  189. var Year = new Date().getFullYear();
  190. var num = Year - 2019;
  191. for (var i = 0; i < num + 1; i++) {
  192. this.yearlist.push(2019 + i);
  193. }
  194. this.yservalue = this.yearlist[this.yearlist.length - 1];
  195. this.yserindex = this.yearlist.length - 1
  196. this.getwormtime()
  197. },
  198. async getwormtime() {
  199. const res = await this.$myRequest({
  200. url: '/api/api_gateway?method=forecast.worm_lamp.pest_raise_info',
  201. data: {
  202. d_ids: this.d_id,
  203. identify_model: 'A',
  204. year: this.yservalue,
  205. }
  206. })
  207. console.log(res)
  208. this.wormlist = res.pest_list
  209. this.wormtimelist = res.pest_info
  210. this.wormvalue = this.wormlist[0]
  211. this.wormindex = 0
  212. if (this.wormvalue) {
  213. this.timeobj = this.wormtimelist[this.wormvalue]
  214. }
  215. this.$nextTick(() => {
  216. this.getwormline()
  217. if (this.topindex == 0) {
  218. this.gettabledata()
  219. } else if (this.topindex == 1) {
  220. this.gettabledata2()
  221. }
  222. }, 500)
  223. console.log(this.timeobj)
  224. },
  225. confirmFun(e) {
  226. console.log(e)
  227. this.yserindex = e[0]
  228. this.yservalue = this.yearlist[e[0]]
  229. this.getwormtime()
  230. },
  231. confirmFun2(e) {
  232. console.log(e)
  233. this.wormindex = e[0]
  234. this.wormvalue = this.wormlist[e[0]]
  235. this.timeobj = this.wormtimelist[this.wormvalue]
  236. this.setlineoption()
  237. },
  238. async getwormline() {
  239. const res = await this.$myRequest({
  240. url: '/api/api_gateway?method=forecast.worm_lamp.pest_statistics_char_new',
  241. data: {
  242. d_ids: this.d_id,
  243. identify_model: 'A',
  244. start_time: this.oldtime,
  245. end_time: this.newtime
  246. }
  247. })
  248. // console.log(res)
  249. this.reslist.char_data = res.char_data
  250. this.reslist.at_ah_info = res.at_ah_info
  251. var ringarr = []
  252. if (this.checkObj(res.pest_total)) {
  253. for (var key in res.pest_total) {
  254. var nameobj = {
  255. name: '',
  256. data: "",
  257. }
  258. // console.log(key)
  259. nameobj.name = key
  260. nameobj.data = res.pest_total[key]
  261. ringarr.push(nameobj)
  262. }
  263. }
  264. this.setlineoption()
  265. // this.showRing(ringarr)
  266. var num = 0
  267. for (var i = 0; i < ringarr.length - 5; i++) {
  268. console.log(ringarr[i].name)
  269. num += ringarr[i].data
  270. }
  271. this.pestsum = 0
  272. for (var i = 0; i < ringarr.length; i++) {
  273. this.pestsum += ringarr[i].data
  274. }
  275. var sumobj = {
  276. name: "其他",
  277. data: num,
  278. }
  279. var ringarr2 = ringarr.slice(ringarr.length - 5)
  280. ringarr2.unshift(sumobj)
  281. // console.log(ringarr2)
  282. this.showRing(ringarr2)
  283. console.log(ringarr)
  284. this.progresslist = ringarr
  285. },
  286. setlineoption() {
  287. var res = this.reslist
  288. var xtitle = []
  289. var obj = []
  290. if (res.at_ah_info.length != 0) {
  291. var aharr = []
  292. var atarr = []
  293. var pestArr = []
  294. let indentText = 0;
  295. for (var i = 0; i < res.at_ah_info.length; i++) {
  296. var times = new Date(res.at_ah_info[i].addtime * 1000)
  297. xtitle.push(times.getMonth() + 1 + "/" + times.getDate() + "-" + times.getHours() + ":" +
  298. times.getSeconds())
  299. atarr.push(res.at_ah_info[i].at == "" ? "0" : res.at_ah_info[i].at)
  300. aharr.push(res.at_ah_info[i].ah == "" ? "0" : res.at_ah_info[i].ah)
  301. if (this.checkObj(res.char_data) && res.char_data[this.wormvalue]) {
  302. if(res.char_data[this.wormvalue][i-indentText] && (res.char_data[this.wormvalue][i-indentText].addtime == res.at_ah_info[i].addtime)) {
  303. pestArr.push(res.char_data[this.wormvalue][i-indentText].sum)
  304. } else {
  305. indentText ++
  306. pestArr.push(null)
  307. }
  308. }
  309. }
  310. // console.log(this.wormvalue)
  311. // if (this.checkObj(res.char_data)) {
  312. // for (var key in res.char_data) {
  313. // if (this.wormvalue == key) {
  314. // var wormobj = {
  315. // name: key,
  316. // data: [],
  317. // }
  318. // for (var i = 0; i < res.char_data[key].length; i++) {
  319. // wormobj.data.push(res.char_data[key][i].ah == "" ? "0" : res.char_data[key][i].sum)
  320. // }
  321. // obj.push(wormobj)
  322. // }
  323. // }
  324. // }
  325. var atobj = {
  326. name: '温度',
  327. data: atarr,
  328. color: '#00E29D'
  329. }
  330. var ahobj = {
  331. name: '湿度',
  332. data: aharr,
  333. color: '#6CBBFF'
  334. }
  335. var pestObj = {
  336. name: this.wormvalue,
  337. data: pestArr,
  338. }
  339. obj.push(atobj)
  340. obj.push(ahobj)
  341. obj.push(pestObj)
  342. }
  343. this.showColumn("canvasColumnA", xtitle, obj)
  344. },
  345. checkObj(obj) {
  346. for (let i in obj) {
  347. return true;
  348. }
  349. return false;
  350. },
  351. tiemchange(e) {
  352. console.log(e)
  353. this.oldtime = +new Date(e.startDate) / 1000 - 8 * 60 * 60
  354. this.newtime = +new Date(e.endDate) / 1000 + 16 * 60 * 60 - 1
  355. // newtime: "",
  356. console.log(this.oldtime, this.newtime)
  357. this.page = 1
  358. this.getwormline()
  359. if (this.topindex == 0) {
  360. this.gettabledata()
  361. } else if (this.topindex == 1) {
  362. this.gettabledata2()
  363. }
  364. },
  365. timetab(e) {
  366. e = new Date(e * 1000)
  367. var year = e.getFullYear()
  368. var month = e.getMonth() + 1 < 10 ? "0" + (e.getMonth() + 1) : e.getMonth() + 1
  369. var day = e.getDate() < 10 ? "0" + e.getDate() : e.getDate()
  370. var time = year + "/" + month + "/" + day
  371. return time
  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: 5, //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. touchLineA(e) {
  410. console.log(e)
  411. canvaColumnA.scrollStart(e);
  412. },
  413. moveLineA(e) {
  414. canvaColumnA.scroll(e);
  415. },
  416. touchEndLineA(e) {
  417. canvaColumnA.scrollEnd(e);
  418. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  419. canvaColumnA.showToolTip(e, {
  420. format: function(item, category) {
  421. return category + ' ' + item.name + ':' + item.data
  422. }
  423. });
  424. },
  425. showRing(data) {
  426. var _self = this
  427. canvasRing = new uCharts({
  428. canvasId: "canvasRing",
  429. type: 'ring',
  430. fontSize: 11,
  431. legend: {
  432. show: true,
  433. },
  434. extra: {
  435. pie: {
  436. offsetAngle: -45,
  437. ringWidth: 40 * _self.pixelRatio,
  438. labelWidth: 15
  439. }
  440. },
  441. background: '#FFFFFF',
  442. pixelRatio: _self.pixelRatio,
  443. series: data,
  444. animation: true,
  445. width: _self.cWidth * _self.pixelRatio,
  446. height: _self.cHeight * _self.pixelRatio,
  447. disablePieStroke: true,
  448. dataLabel: true,
  449. });
  450. },
  451. touchRing(e) {
  452. canvasRing.showToolTip(e, {
  453. format: function(item) {
  454. return item.name + ':' + item.data
  455. }
  456. });
  457. },
  458. tap(e) {
  459. canvasgroup[e.target.id].touchLegend(e);
  460. canvasgroup[e.target.id].showToolTip(e);
  461. },
  462. async gettabledata() {
  463. const res = await this.$myRequest({
  464. url: '/api/api_gateway?method=forecast.worm_lamp.pest_image_source',
  465. data: {
  466. d_ids: this.d_id,
  467. identify_model: 'A',
  468. start_time: this.oldtime,
  469. end_time: this.newtime,
  470. page: this.page
  471. }
  472. })
  473. this.pagesum = Math.ceil(res.total_count / 10)
  474. this.eqlistdata = res.pest_image_data
  475. if (this.eqlistdata.length == 0) {
  476. this.forbidden1 = true
  477. } else {
  478. this.forbidden1 = false
  479. }
  480. console.log(res)
  481. },
  482. async gettabledata2() {
  483. const res = await this.$myRequest({
  484. url: '/api/api_gateway?method=forecast.worm_lamp.pest_base_data',
  485. data: {
  486. d_ids: this.d_id,
  487. identify_model: 'A',
  488. start_time: this.oldtime,
  489. end_time: this.newtime,
  490. page: this.page
  491. }
  492. })
  493. this.pagesum = Math.ceil(res.total_count / 10)
  494. this.eqlistdata = res.pest_image_data
  495. if (this.eqlistdata.length == 0) {
  496. this.forbidden2 = true
  497. } else {
  498. this.forbidden2 = false
  499. }
  500. console.log(res)
  501. },
  502. changeindex(e) {
  503. this.topindex = e
  504. this.page = 1
  505. if (e == 0) {
  506. this.gettabledata()
  507. } else if (e == 1) {
  508. this.gettabledata2()
  509. }
  510. },
  511. prev() {
  512. this.page--
  513. if (this.topindex == 0) {
  514. this.gettabledata()
  515. } else if (this.topindex == 1) {
  516. this.gettabledata2()
  517. }
  518. },
  519. next() {
  520. this.page++
  521. if (this.topindex == 0) {
  522. this.gettabledata()
  523. } else if (this.topindex == 1) {
  524. this.gettabledata2()
  525. }
  526. },
  527. wormdetails(data) {
  528. console.log(data)
  529. this.show = true
  530. this.pest_dict = data
  531. },
  532. examine(url) {
  533. var imgarr = [url]
  534. uni.previewImage({
  535. urls: imgarr,
  536. current: 0
  537. });
  538. },
  539. },
  540. onLoad(option) {
  541. this.d_id = option.d_id
  542. var date = +new Date() / 1000
  543. this.oldtime = Math.floor(date - 24 * 60 * 60)
  544. this.newtime = Math.floor(date)
  545. this.cWidth = uni.upx2px(650);
  546. this.cHeight = uni.upx2px(500);
  547. this.getyear()
  548. }
  549. }
  550. </script>
  551. <style lang="scss">
  552. .anabox {
  553. background-color: #f1f4ff;
  554. padding-top: 10px;
  555. }
  556. .selecttimes {
  557. // box-shadow: 0 0 10rpx #bcb9ca;
  558. // padding: 10rpx 20rpx;
  559. padding: 10px;
  560. box-sizing: border-box;
  561. margin: 10px auto 0;
  562. display: flex;
  563. background-color: #fff;
  564. width: 95%;
  565. .timesbox {
  566. display: flex;
  567. justify-content: space-around;
  568. width: 60%;
  569. margin-left: 10px;
  570. border: 1px solid #CCCCCC;
  571. padding: 5px;
  572. font-size: 12px;
  573. border-radius: 5px;
  574. image {
  575. width: 30rpx;
  576. height: 30rpx;
  577. margin-top: 6rpx;
  578. }
  579. .icon {
  580. color: #949494;
  581. text-align: right;
  582. margin-left: 30rpx;
  583. }
  584. }
  585. }
  586. .wormtime {
  587. width: 95%;
  588. padding: 10px;
  589. box-sizing: border-box;
  590. margin: 0 auto;
  591. // margin-top: 10px;
  592. display: flex;
  593. justify-content: space-around;
  594. background-color: #fff;
  595. .wormtime_item {
  596. width: 25%;
  597. margin-top: 10px;
  598. padding: 10px;
  599. .img {
  600. width: 50px;
  601. height: 50px;
  602. }
  603. p:nth-child(2) {
  604. font-size: 16px;
  605. font-weight: 700;
  606. }
  607. p:nth-child(3) {
  608. font-size: 12px;
  609. margin-top: 5px;
  610. }
  611. p:last-child {
  612. font-size: 12px;
  613. margin-top: 5px;
  614. }
  615. }
  616. .wormtime_item:first-child {
  617. background-color: #F9FAFE;
  618. }
  619. .wormtime_item:nth-child(2) {
  620. background-color: #FFFCF9;
  621. }
  622. .wormtime_item:last-child {
  623. background-color: #FCF8FF;
  624. }
  625. }
  626. .schedulebox {
  627. display: flex;
  628. padding: 10px 10px;
  629. box-sizing: border-box;
  630. width: 95%;
  631. // justify-content: space-around;
  632. margin: 0px auto;
  633. background-color: #fff;
  634. .schedule {
  635. display: flex;
  636. width: 240rpx;
  637. height: 50rpx;
  638. // border: 2rpx solid #F0F0F0;
  639. margin-right: 20rpx;
  640. background-color: #F9FAFC;
  641. border-radius: 25px;
  642. .schedule_value {
  643. width: 70%;
  644. text-align: center;
  645. line-height: 50rpx;
  646. font-size: 24rpx;
  647. }
  648. .schedule_icon {
  649. width: 30%;
  650. // background-color: #F2F2F2;
  651. text-align: center;
  652. line-height: 50rpx;
  653. /deep/.u-icon__icon {
  654. color: rgba(0, 0, 0, 0.3);
  655. }
  656. }
  657. }
  658. }
  659. .tendency {
  660. width: 95%;
  661. display: flex;
  662. justify-content: space-around;
  663. margin: 0 auto;
  664. background-color: #fff;
  665. }
  666. .tendency_pro {
  667. width: 95%;
  668. padding: 0 20px;
  669. box-sizing: border-box;
  670. height: 140px;
  671. overflow-y: auto;
  672. margin: 0 auto;
  673. background-color: #fff;
  674. span:first-child {
  675. display: inline-block;
  676. width: 100px;
  677. overflow: hidden; //溢出隐藏
  678. white-space: nowrap; //禁止换行
  679. text-overflow: ellipsis; //...
  680. }
  681. .u-progress {
  682. width: calc(100% - 150px);
  683. }
  684. span:last-child {
  685. display: inline-block;
  686. width: 30px;
  687. margin-left: 10px;
  688. }
  689. }
  690. .tablebox {
  691. display: flex;
  692. flex-wrap: wrap;
  693. width: 95%;
  694. margin: 10px auto 20px;
  695. // box-shadow: 0 0 10rpx #bcb9ca;
  696. background-color: #fff;
  697. .top_text {
  698. width: 100%;
  699. display: flex;
  700. height: 30px;
  701. line-height: 30px;
  702. .tltle_text {
  703. width: 30%;
  704. text-align: center;
  705. // border: 2rpx solid #F0F0F0;
  706. // text-align: center;
  707. // background-color: #F0F0F0;
  708. // color: #000;
  709. }
  710. .title_text_color {
  711. width: 30%;
  712. text-align: center;
  713. .title_item {
  714. border-bottom: 2px solid #64CC82;
  715. color: #64CC82;
  716. }
  717. // width: 50%;
  718. // border: 2rpx solid #64CC82;
  719. // background-color: #64CC82;
  720. // color: #fff;
  721. // text-align: center;
  722. }
  723. }
  724. .scroll-X {
  725. width: 95%;
  726. margin: 20rpx auto;
  727. .table {
  728. width: 1800rpx;
  729. .td:nth-child(3),
  730. .td:last-child {
  731. color: #37aed8;
  732. }
  733. }
  734. .tr {
  735. display: flex;
  736. overflow: hidden;
  737. .th,
  738. .td {
  739. display: inline-block;
  740. padding: 5rpx;
  741. text-align: center;
  742. height: 52rpx;
  743. line-height: 52rpx;
  744. width: 320rpx;
  745. }
  746. }
  747. .tr:nth-child(2n-1) {
  748. background-color: #f5fff8;
  749. }
  750. .tr:first-child {
  751. background-color: #57c878;
  752. color: #fff;
  753. }
  754. }
  755. .pagenumber {
  756. display: flex;
  757. margin: 20rpx auto;
  758. button {
  759. width: 150rpx;
  760. height: 50rpx;
  761. line-height: 50rpx;
  762. font-size: 26rpx;
  763. text-align: center;
  764. background-color: #57c878;
  765. color: #FFFFFF;
  766. }
  767. .pagenumber_page {
  768. width: 150rpx;
  769. height: 50rpx;
  770. line-height: 50rpx;
  771. font-size: 26rpx;
  772. text-align: center;
  773. }
  774. }
  775. }
  776. .modalbox {
  777. width: 100%;
  778. // display: flex;
  779. // flex-wrap: wrap;
  780. height: 120px;
  781. padding-left: 30px;
  782. margin-top: 10px;
  783. overflow-y: auto;
  784. p {
  785. // width: 50%;
  786. }
  787. }
  788. /deep/.u-calendar__action {
  789. display: flex;
  790. justify-content: space-around;
  791. .u-calendar__action__text {
  792. line-height: 25px;
  793. }
  794. }
  795. </style>