analyse.vue 20 KB

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