analyse.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835
  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)" v-show="chartstf"
  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" v-show="chartstf"
  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" @confirm="modalconfirm" 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. chartstf:true
  186. }
  187. },
  188. watch:{
  189. pickertfone:function(e){
  190. console.log(e)
  191. this.chartstf = !e
  192. },
  193. tiemshow:function(e){
  194. this.chartstf = !e
  195. },
  196. pickertfworm:function(e){
  197. this.chartstf = !e
  198. },
  199. },
  200. methods: {
  201. getyear() {
  202. var Year = new Date().getFullYear();
  203. var num = Year - 2019;
  204. for (var i = 0; i < num + 1; i++) {
  205. this.yearlist.push(2019 + i);
  206. }
  207. this.yservalue = this.yearlist[this.yearlist.length - 1];
  208. this.yserindex = this.yearlist.length - 1
  209. this.getwormtime()
  210. },
  211. async getwormtime() {
  212. const res = await this.$myRequest({
  213. url: '/api/api_gateway?method=forecast.worm_lamp.pest_raise_info',
  214. data: {
  215. d_ids: this.d_id,
  216. identify_model: 'A',
  217. year: this.yservalue,
  218. }
  219. })
  220. console.log(res)
  221. this.wormlist = res.pest_list
  222. this.wormtimelist = res.pest_info
  223. this.wormvalue = this.wormlist[0]
  224. this.wormindex = 0
  225. if (this.wormvalue) {
  226. this.timeobj = this.wormtimelist[this.wormvalue]
  227. }
  228. console.log(this.timeobj)
  229. },
  230. confirmFun(e) {
  231. console.log(e)
  232. this.yserindex = e[0]
  233. this.yservalue = this.yearlist[e[0]]
  234. this.getwormtime()
  235. },
  236. confirmFun2(e) {
  237. console.log(e)
  238. this.wormindex = e[0]
  239. this.wormvalue = this.wormlist[e[0]]
  240. this.timeobj = this.wormtimelist[this.wormvalue]
  241. this.setlineoption()
  242. },
  243. async getwormline() {
  244. const res = await this.$myRequest({
  245. url: '/api/api_gateway?method=forecast.worm_lamp.pest_statistics_char_new',
  246. data: {
  247. d_ids: this.d_id,
  248. identify_model: 'A',
  249. start_time: this.oldtime,
  250. end_time: this.newtime
  251. }
  252. })
  253. // console.log(res)
  254. this.reslist.char_data = res.char_data
  255. this.reslist.at_ah_info = res.at_ah_info
  256. var ringarr = []
  257. if (this.checkObj(res.pest_total)) {
  258. for (var key in res.pest_total) {
  259. var nameobj = {
  260. name: '',
  261. data: "",
  262. }
  263. // console.log(key)
  264. nameobj.name = key
  265. nameobj.data = res.pest_total[key]
  266. ringarr.push(nameobj)
  267. }
  268. }
  269. this.setlineoption()
  270. // this.showRing(ringarr)
  271. var num = 0
  272. for (var i = 0; i < ringarr.length - 5; i++) {
  273. console.log(ringarr[i].name)
  274. num += ringarr[i].data
  275. }
  276. this.pestsum = 0
  277. for (var i = 0; i < ringarr.length; i++) {
  278. this.pestsum += ringarr[i].data
  279. }
  280. var sumobj = {
  281. name: "其他",
  282. data: num,
  283. }
  284. var ringarr2 = ringarr.slice(ringarr.length - 5)
  285. ringarr2.unshift(sumobj)
  286. // console.log(ringarr2)
  287. this.showRing(ringarr2)
  288. console.log(ringarr)
  289. this.progresslist = ringarr
  290. },
  291. setlineoption() {
  292. var res = this.reslist
  293. var xtitle = []
  294. var obj = []
  295. if (res.at_ah_info.length != 0) {
  296. var aharr = []
  297. var atarr = []
  298. for (var i = 0; i < res.at_ah_info.length; i++) {
  299. var times = new Date(res.at_ah_info[i].addtime * 1000)
  300. xtitle.push(times.getMonth() + 1 + "/" + times.getDate() + "-" + times.getHours() + ":" +
  301. times.getSeconds())
  302. atarr.push(res.at_ah_info[i].at == "" ? "0" : res.at_ah_info[i].at)
  303. aharr.push(res.at_ah_info[i].ah == "" ? "0" : res.at_ah_info[i].ah)
  304. }
  305. var atobj = {
  306. name: '温度',
  307. data: atarr,
  308. color: '#00E29D'
  309. }
  310. var ahobj = {
  311. name: '湿度',
  312. data: aharr,
  313. color: '#6CBBFF'
  314. }
  315. obj.push(atobj)
  316. obj.push(ahobj)
  317. }
  318. // console.log(this.wormvalue)
  319. if (this.checkObj(res.char_data)) {
  320. for (var key in res.char_data) {
  321. if (this.wormvalue == key) {
  322. var wormobj = {
  323. name: key,
  324. data: [],
  325. }
  326. for (var i = 0; i < res.char_data[key].length; i++) {
  327. wormobj.data.push(res.char_data[key][i].ah == "" ? "0" : res.char_data[key][i].sum)
  328. }
  329. obj.push(wormobj)
  330. }
  331. }
  332. }
  333. this.showColumn("canvasColumnA", xtitle, obj)
  334. },
  335. checkObj(obj) {
  336. for (let i in obj) {
  337. return true;
  338. }
  339. return false;
  340. },
  341. tiemchange(e) {
  342. console.log(e)
  343. this.oldtime = +new Date(e.startDate) / 1000 - 8 * 60 * 60
  344. this.newtime = +new Date(e.endDate) / 1000 + 16 * 60 * 60 - 1
  345. // newtime: "",
  346. console.log(this.oldtime, this.newtime)
  347. this.page = 1
  348. this.getwormline()
  349. if (this.topindex == 0) {
  350. this.gettabledata()
  351. } else if (this.topindex == 1) {
  352. this.gettabledata2()
  353. }
  354. },
  355. timetab(e) {
  356. e = new Date(e * 1000)
  357. var year = e.getFullYear()
  358. var month = e.getMonth() + 1 < 10 ? "0" + (e.getMonth() + 1) : e.getMonth() + 1
  359. var day = e.getDate() < 10 ? "0" + e.getDate() : e.getDate()
  360. var time = year + "/" + month + "/" + day
  361. return time
  362. },
  363. showColumn(id, xtitle, xinfo) {
  364. var _self = this
  365. canvaColumnA = new uCharts({
  366. canvasId: id,
  367. type: 'line',
  368. legend: {
  369. position: "top"
  370. },
  371. fontSize: 11,
  372. background: '#FFFFFF',
  373. pixelRatio: 1,
  374. animation: true,
  375. dataLabel: false,
  376. categories: xtitle,
  377. series: xinfo,
  378. enableScroll: true, //开启图表拖拽功能
  379. xAxis: {
  380. disableGrid: true,
  381. type: 'grid',
  382. gridType: 'dash',
  383. itemCount: 5, //x轴单屏显示数据的数量,默认为5个
  384. scrollShow: true, //新增是否显示滚动条,默认false
  385. // scrollAlign: 'left', //滚动条初始位置
  386. scrollBackgroundColor: '#F7F7FF', //默认为 #EFEBEF
  387. scrollColor: '#DEE7F7', //默认为 #A6A6A6
  388. },
  389. yAxis: {},
  390. width: _self.cWidth * 1,
  391. height: _self.cHeight * 1,
  392. extra: {
  393. line: {
  394. type: 'curve'
  395. }
  396. }
  397. });
  398. },
  399. touchLineA(e) {
  400. console.log(e)
  401. canvaColumnA.scrollStart(e);
  402. },
  403. moveLineA(e) {
  404. canvaColumnA.scroll(e);
  405. },
  406. touchEndLineA(e) {
  407. canvaColumnA.scrollEnd(e);
  408. //下面是toolTip事件,如果滚动后不需要显示,可不填写
  409. canvaColumnA.showToolTip(e, {
  410. format: function(item, category) {
  411. return category + ' ' + item.name + ':' + item.data
  412. }
  413. });
  414. },
  415. showRing(data) {
  416. var _self = this
  417. canvasRing = new uCharts({
  418. canvasId: "canvasRing",
  419. type: 'ring',
  420. fontSize: 11,
  421. legend: {
  422. show: true,
  423. },
  424. extra: {
  425. pie: {
  426. offsetAngle: -45,
  427. ringWidth: 40 * _self.pixelRatio,
  428. labelWidth: 15
  429. }
  430. },
  431. background: '#FFFFFF',
  432. pixelRatio: _self.pixelRatio,
  433. series: data,
  434. animation: true,
  435. width: _self.cWidth * _self.pixelRatio,
  436. height: _self.cHeight * _self.pixelRatio,
  437. disablePieStroke: true,
  438. dataLabel: true,
  439. });
  440. },
  441. touchRing(e) {
  442. canvasRing.showToolTip(e, {
  443. format: function(item) {
  444. return item.name + ':' + item.data
  445. }
  446. });
  447. },
  448. tap(e) {
  449. canvasgroup[e.target.id].touchLegend(e);
  450. canvasgroup[e.target.id].showToolTip(e);
  451. },
  452. async gettabledata() {
  453. const res = await this.$myRequest({
  454. url: '/api/api_gateway?method=forecast.worm_lamp.pest_image_source',
  455. data: {
  456. d_ids: this.d_id,
  457. identify_model: 'A',
  458. start_time: this.oldtime,
  459. end_time: this.newtime,
  460. page: this.page
  461. }
  462. })
  463. this.pagesum = Math.ceil(res.total_count / 10)
  464. this.eqlistdata = res.pest_image_data
  465. if (this.eqlistdata.length == 0) {
  466. this.forbidden1 = true
  467. } else {
  468. this.forbidden1 = false
  469. }
  470. console.log(res)
  471. },
  472. async gettabledata2() {
  473. const res = await this.$myRequest({
  474. url: '/api/api_gateway?method=forecast.worm_lamp.pest_base_data',
  475. data: {
  476. d_ids: this.d_id,
  477. identify_model: 'A',
  478. start_time: this.oldtime,
  479. end_time: this.newtime,
  480. page: this.page
  481. }
  482. })
  483. this.pagesum = Math.ceil(res.total_count / 10)
  484. this.eqlistdata = res.pest_image_data
  485. if (this.eqlistdata.length == 0) {
  486. this.forbidden2 = true
  487. } else {
  488. this.forbidden2 = false
  489. }
  490. console.log(res)
  491. },
  492. changeindex(e) {
  493. this.topindex = e
  494. this.page = 1
  495. if (e == 0) {
  496. this.gettabledata()
  497. } else if (e == 1) {
  498. this.gettabledata2()
  499. }
  500. },
  501. prev() {
  502. this.page--
  503. if (this.topindex == 0) {
  504. this.gettabledata()
  505. } else if (this.topindex == 1) {
  506. this.gettabledata2()
  507. }
  508. },
  509. next() {
  510. this.page++
  511. if (this.topindex == 0) {
  512. this.gettabledata()
  513. } else if (this.topindex == 1) {
  514. this.gettabledata2()
  515. }
  516. },
  517. wormdetails(data) {
  518. console.log(data)
  519. this.show = true
  520. this.pest_dict = data
  521. },
  522. modalconfirm(){
  523. this.pest_dict = {}
  524. },
  525. examine(url) {
  526. var imgarr = [url]
  527. uni.previewImage({
  528. urls: imgarr,
  529. current: 0
  530. });
  531. },
  532. },
  533. onLoad(option) {
  534. this.d_id = option.d_id
  535. var date = +new Date() / 1000
  536. this.oldtime = Math.floor(date - 24 * 60 * 60)
  537. this.newtime = Math.floor(date)
  538. this.cWidth = uni.upx2px(650);
  539. this.cHeight = uni.upx2px(500);
  540. this.getyear()
  541. this.$nextTick(() => {
  542. this.getwormline()
  543. if (this.topindex == 0) {
  544. this.gettabledata()
  545. } else if (this.topindex == 1) {
  546. this.gettabledata2()
  547. }
  548. }, 500)
  549. }
  550. }
  551. </script>
  552. <style lang="scss">
  553. .anabox {
  554. background-color: #f1f4ff;
  555. padding-top: 10px;
  556. }
  557. .selecttimes {
  558. // box-shadow: 0 0 10rpx #bcb9ca;
  559. // padding: 10rpx 20rpx;
  560. padding: 10px;
  561. box-sizing: border-box;
  562. margin: 10px auto 0;
  563. display: flex;
  564. background-color: #fff;
  565. width: 95%;
  566. .timesbox {
  567. display: flex;
  568. justify-content: space-around;
  569. width: 60%;
  570. margin-left: 10px;
  571. border: 1px solid #CCCCCC;
  572. padding: 5px;
  573. font-size: 12px;
  574. border-radius: 5px;
  575. image {
  576. width: 30rpx;
  577. height: 30rpx;
  578. margin-top: 6rpx;
  579. }
  580. .icon {
  581. color: #949494;
  582. text-align: right;
  583. margin-left: 30rpx;
  584. }
  585. }
  586. }
  587. .wormtime {
  588. width: 95%;
  589. padding: 10px;
  590. box-sizing: border-box;
  591. margin: 0 auto;
  592. // margin-top: 10px;
  593. display: flex;
  594. justify-content: space-around;
  595. background-color: #fff;
  596. .wormtime_item {
  597. width: 25%;
  598. margin-top: 10px;
  599. padding: 10px;
  600. .img {
  601. width: 50px;
  602. height: 50px;
  603. }
  604. p:nth-child(2) {
  605. font-size: 16px;
  606. font-weight: 700;
  607. }
  608. p:nth-child(3) {
  609. font-size: 12px;
  610. margin-top: 5px;
  611. }
  612. p:last-child {
  613. font-size: 12px;
  614. margin-top: 5px;
  615. }
  616. }
  617. .wormtime_item:first-child {
  618. background-color: #F9FAFE;
  619. }
  620. .wormtime_item:nth-child(2) {
  621. background-color: #FFFCF9;
  622. }
  623. .wormtime_item:last-child {
  624. background-color: #FCF8FF;
  625. }
  626. }
  627. .schedulebox {
  628. display: flex;
  629. padding: 10px 10px;
  630. box-sizing: border-box;
  631. width: 95%;
  632. // justify-content: space-around;
  633. margin: 0px auto;
  634. background-color: #fff;
  635. .schedule {
  636. display: flex;
  637. width: 240rpx;
  638. height: 50rpx;
  639. // border: 2rpx solid #F0F0F0;
  640. margin-right: 20rpx;
  641. background-color: #F9FAFC;
  642. border-radius: 25px;
  643. .schedule_value {
  644. width: 70%;
  645. text-align: center;
  646. line-height: 50rpx;
  647. font-size: 24rpx;
  648. }
  649. .schedule_icon {
  650. width: 30%;
  651. // background-color: #F2F2F2;
  652. text-align: center;
  653. line-height: 50rpx;
  654. /deep/.u-icon__icon{
  655. color: rgba(0,0,0,0.3);
  656. }
  657. }
  658. }
  659. }
  660. .tendency {
  661. width: 95%;
  662. display: flex;
  663. justify-content: space-around;
  664. margin: 0 auto;
  665. background-color: #fff;
  666. }
  667. .tendency_pro {
  668. width: 95%;
  669. padding: 0 20px;
  670. box-sizing: border-box;
  671. height: 140px;
  672. overflow-y: auto;
  673. margin: 0 auto;
  674. background-color: #fff;
  675. span:first-child {
  676. display: inline-block;
  677. width: 100px;
  678. overflow: hidden; //溢出隐藏
  679. white-space: nowrap; //禁止换行
  680. text-overflow: ellipsis; //...
  681. }
  682. /deep/.u-progress {
  683. width: calc(100% - 150px) !important;
  684. }
  685. span:last-child {
  686. display: inline-block;
  687. width: 30px;
  688. margin-left: 10px;
  689. }
  690. }
  691. .tablebox {
  692. display: flex;
  693. flex-wrap: wrap;
  694. width: 95%;
  695. margin: 10px auto 20px;
  696. // box-shadow: 0 0 10rpx #bcb9ca;
  697. background-color: #fff;
  698. .top_text {
  699. width: 100%;
  700. display: flex;
  701. height: 30px;
  702. line-height: 30px;
  703. .tltle_text {
  704. width: 30%;
  705. text-align: center;
  706. // border: 2rpx solid #F0F0F0;
  707. // text-align: center;
  708. // background-color: #F0F0F0;
  709. // color: #000;
  710. }
  711. .title_text_color {
  712. width: 30%;
  713. text-align: center;
  714. .title_item{
  715. border-bottom: 2px solid #64CC82;
  716. color: #64CC82;
  717. }
  718. // width: 50%;
  719. // border: 2rpx solid #64CC82;
  720. // background-color: #64CC82;
  721. // color: #fff;
  722. // text-align: center;
  723. }
  724. }
  725. .scroll-X {
  726. width: 95%;
  727. margin: 20rpx auto;
  728. .table {
  729. width: 1800rpx;
  730. .td:nth-child(3),
  731. .td:last-child {
  732. color: #37aed8;
  733. }
  734. }
  735. .tr {
  736. display: flex;
  737. overflow: hidden;
  738. .th,
  739. .td {
  740. display: inline-block;
  741. padding: 5rpx;
  742. text-align: center;
  743. height: 52rpx;
  744. line-height: 52rpx;
  745. width: 320rpx;
  746. }
  747. }
  748. .tr:nth-child(2n-1) {
  749. background-color: #f5fff8;
  750. }
  751. .tr:first-child {
  752. background-color: #57c878;
  753. color: #fff;
  754. }
  755. }
  756. .pagenumber {
  757. display: flex;
  758. margin: 20rpx auto;
  759. button {
  760. width: 150rpx;
  761. height: 50rpx;
  762. line-height: 50rpx;
  763. font-size: 26rpx;
  764. text-align: center;
  765. background-color: #57c878;
  766. color: #FFFFFF;
  767. }
  768. .pagenumber_page {
  769. width: 150rpx;
  770. height: 50rpx;
  771. line-height: 50rpx;
  772. font-size: 26rpx;
  773. text-align: center;
  774. }
  775. }
  776. }
  777. .modalbox {
  778. width: 100%;
  779. // display: flex;
  780. // flex-wrap: wrap;
  781. height: 120px;
  782. padding-left: 30px;
  783. margin-top: 10px;
  784. overflow-y: auto;
  785. p {
  786. // width: 50%;
  787. }
  788. }
  789. /deep/.u-calendar__action {
  790. display: flex;
  791. justify-content: space-around;
  792. .u-calendar__action__text {
  793. line-height: 25px;
  794. }
  795. }
  796. </style>