analyse.vue 20 KB

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