analyse.vue 20 KB

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