Detail.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665
  1. <template>
  2. <view class="contentike">
  3. <view class="fixed" style="color: #FFFDEF;">
  4. <cu-custom bgColor="bg-gradual-sisBlack" :isBack="true">
  5. <block slot="backText"><view style="height: 80rpx;line-height: 80rpx;color: silver;">返回</view></block>
  6. <block slot="content">
  7. <view style="color: silver;">{{ address }}</view>
  8. </block>
  9. </cu-custom>
  10. </view>
  11. <view class="threeTarget" v-show="targetdetail_visable.targetdetail_target">
  12. <view class="target">
  13. <view class="target_zi">指标</view>
  14. <view class="target_dianLiang">{{targetName}}</view>
  15. </view>
  16. <view class="target">
  17. <view style="font-size: 16px;margin-top: -7px;">数值</view>
  18. <view class="target_count">{{ targetdetail.targetdetail_target }}</view>
  19. </view>
  20. <view class="target">
  21. <view style="font-size: 16px;margin-top: -7px;">单位</view>
  22. <view class="target_danWei">{{targetUnit}}</view>
  23. </view>
  24. </view>
  25. <view class="qiun-charts">
  26. <view class="speedPowerDiagram">24小时指标曲线图</view>
  27. <canvas canvas-id="canvasLineA" id="canvasLineA" class="charts" @touchstart="touchLineA"></canvas>
  28. </view>
  29. <view class="qiun-columnCharts">
  30. <view class="sevenDayColunm">7天指标柱状图</view>
  31. <canvas canvas-id="canvasColumn" id="canvasColumn" class="charts" @touchstart="touchColumn"></canvas>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. import uCharts from '../../components/tools/u-charts/u-charts.js';
  37. import res from '../../common/data.json';
  38. var _self;
  39. var canvaLineA;
  40. var canvaColumn = null;
  41. export default {
  42. data() {
  43. let data = {
  44. targetName:"日发电量",
  45. targetUnit:"万kwh",
  46. pointKey:"MHSFCJSFW.NX_GD_MHSF_XX_XX_XXX_XXX_CI0087",
  47. targetdetail_visable: { targetdetail_target: true, targetdetail_curve: true, targetdetail_histogram: true},
  48. targetdetail: { targetdetail_target: '', targetdetail_curve: '', targetdetail_histogram: ''},
  49. socketTask_targetdetail_target:"",
  50. socketTask_targetdetail_curve:"",
  51. socketTask_targetdetail_histogram:"",
  52. cWidth: '',
  53. cHeight: '',
  54. pixelRatio: 1,
  55. serverData: '',
  56. address: '',
  57. }
  58. return data;
  59. },
  60. created: function() {
  61. this.address = this.getWindPowerStationNameToSessionStorage();
  62. this.windPowerStationId = uni.getStorageSync('windPowerStationId');
  63. this.targetdetail_target();
  64. this.targetdetail_curve();
  65. this.targetdetail_histogram();
  66. },
  67. onShow() {
  68. this.windPowerStationId = uni.getStorageSync('windPowerStationId');
  69. this.address = this.getWindPowerStationNameToSessionStorage();
  70. this.hideModals();
  71. },
  72. onLoad() {
  73. _self = this;
  74. this.cWidth = uni.upx2px(750);
  75. this.cHeight = uni.upx2px(400);
  76. this.getColumnServerData();
  77. this.getLineServerData();
  78. },
  79. onReady() {},
  80. computed:{
  81. backStageIp:function(){
  82. return this.$store.state.wholeSituationBackStageIp;
  83. }, backStagePort:function(){
  84. return this.$store.state.wholeSituationBackStagePort;
  85. },windpowerstationNameToId:function(){
  86. return this.$store.state.windpowerstationNameToId;
  87. }
  88. },
  89. methods: {
  90. targetInformation(pointKey,callTargetName,callTargetUnit){
  91. this.address = this.getWindPowerStationNameToSessionStorage();
  92. this.windPowerStationId = uni.getStorageSync('windPowerStationId');
  93. this.pointKey = pointKey;
  94. this.targetName = callTargetName;
  95. this.targetUnit = callTargetUnit;
  96. this.targetdetail_target();
  97. this.targetdetail_curve();
  98. this.targetdetail_histogram();
  99. },async targetdetail_target() {
  100. let ip;
  101. uni.request({
  102. url:'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/targetdetail_target?pointKey='+this.pointKey,
  103. success: (res) => {
  104. ip = res.data;
  105. }
  106. });
  107. let _this = this;
  108. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  109. this.socketTask_targetdetail_target = uni.connectSocket({
  110. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  111. url: 'ws://'+this.backStageIp+':'+this.backStagePort+'/websocket/pageNumber_8/functionNumber_1',
  112. success(data) {
  113. console.log('websocket连接成功');
  114. }
  115. });
  116. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  117. this.socketTask_targetdetail_target.onOpen(res => {
  118. console.log('WebSocket连接正常打开中...!');
  119. this.is_open_socket = true;
  120. // 注:只有连接正常打开中 ,才能正常收到消息
  121. this.socketTask_targetdetail_target.onMessage(res => {
  122. //console.log("收到服务器内容:" + res.data);
  123. _this.targetdetail.targetdetail_target =JSON.parse(res.data)[ip];
  124. //console.log(_this.targetdetail.targetdetail_target);
  125. });
  126. });
  127. // 这里仅是事件监听【如果socket关闭了会执行】
  128. this.socketTask_targetdetail_target.onClose(() => {
  129. uni.request({
  130. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_target?pointKey='+this.pointKey,
  131. success: (res) => {
  132. }
  133. });
  134. })
  135. },
  136. targetdetail_curve() {
  137. Date.prototype.Format = function(fmt) {
  138. var o = {
  139. "M+": this.getMonth() + 1, //月份
  140. "d+": this.getDate(), //日
  141. "h+": this.getHours(), //小时
  142. "m+": this.getMinutes(), //分
  143. "s+": this.getSeconds(), //秒
  144. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  145. "S": this.getMilliseconds() //毫秒
  146. };
  147. if(/(y+)/.test(fmt))
  148. fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  149. for(var k in o)
  150. if(new RegExp("(" + k + ")").test(fmt))
  151. fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  152. return fmt;
  153. };
  154. let ip;
  155. uni.request({
  156. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/targetdetail_curve?pointKey='+this.pointKey,
  157. success: (res) => {
  158. ip = res.data;
  159. }
  160. });
  161. let _this = this;
  162. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  163. this.socketTask_targetdetail_curve = uni.connectSocket({
  164. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  165. url: 'ws://'+this.backStageIp+':'+this.backStagePort+'/websocket/pageNumber_8/functionNumber_2',
  166. success(data) {
  167. console.log('websocket连接成功');
  168. }
  169. });
  170. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  171. this.socketTask_targetdetail_curve.onOpen(res => {
  172. console.log('WebSocket连接正常打开中...!');
  173. this.is_open_socket = true;
  174. // 注:只有连接正常打开中 ,才能正常收到消息
  175. this.socketTask_targetdetail_curve.onMessage(res => {
  176. //console.log("收到服务器内容:" + res.data);
  177. _this.targetdetail.targetdetail_curve = JSON.parse(res.data)[ip];
  178. let LineA = {
  179. categories: [
  180. ],
  181. series: [
  182. {
  183. name: '功率',
  184. data: [],
  185. color: '#4A80B1',
  186. textColor: '#FFFFFF',
  187. textSize: this.seriesTextSize,
  188. format: val => {
  189. return val + 'kwh';
  190. },
  191. index: 0,
  192. legendShape: 'circle'
  193. }
  194. ]
  195. };
  196. LineA.categories=[];
  197. LineA.series[0].data=[];
  198. LineA.series[0].name=this.targetName;
  199. for(var i=0;i<_this.targetdetail.targetdetail_curve.length;i++){
  200. _this.targetdetail.targetdetail_curve[i].pointTime = new Date(_this.targetdetail.targetdetail_curve[i].pointTime*1000).Format("hh");
  201. LineA.categories.push(_this.targetdetail.targetdetail_curve[i].pointTime);
  202. LineA.series[0].data.push(_this.targetdetail.targetdetail_curve[i].pointValueInDouble);
  203. }
  204. this.showLineA('canvasLineA', LineA);
  205. });
  206. });
  207. // 这里仅是事件监听【如果socket关闭了会执行】
  208. this.socketTask_targetdetail_curve.onClose(() => {
  209. uni.request({
  210. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_curve?pointKey='+this.pointKey,
  211. success: (res) => {
  212. }
  213. });
  214. })
  215. },
  216. targetdetail_histogram() {
  217. Date.prototype.Format = function(fmt) {
  218. var o = {
  219. "M+": this.getMonth() + 1, //月份
  220. "d+": this.getDate(), //日
  221. "h+": this.getHours(), //小时
  222. "m+": this.getMinutes(), //分
  223. "s+": this.getSeconds(), //秒
  224. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  225. "S": this.getMilliseconds() //毫秒
  226. };
  227. if(/(y+)/.test(fmt))
  228. fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  229. for(var k in o)
  230. if(new RegExp("(" + k + ")").test(fmt))
  231. fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  232. return fmt;
  233. };
  234. let ip;
  235. uni.request({
  236. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/targetdetail_histogram?pointKey='+this.pointKey,
  237. success: (res) => {
  238. ip = res.data;
  239. }
  240. });
  241. let _this = this;
  242. // 创建一个this.socketTask对象【发送、接收、关闭socket都由这个对象操作】
  243. this.socketTask_targetdetail_histogram = uni.connectSocket({
  244. // 【非常重要】必须确保你的服务器是成功的,如果是手机测试千万别使用ws://127.0.0.1:9099【特别容易犯的错误】
  245. url: 'ws://'+this.backStageIp+':'+this.backStagePort+'/websocket/pageNumber_8/functionNumber_3',
  246. success(data) {
  247. console.log('websocket连接成功');
  248. }
  249. });
  250. // 消息的发送和接收必须在正常连接打开中,才能发送或接收【否则会失败】
  251. this.socketTask_targetdetail_histogram.onOpen(res => {
  252. console.log('WebSocket连接正常打开中...!');
  253. this.is_open_socket = true;
  254. // 注:只有连接正常打开中 ,才能正常收到消息
  255. this.socketTask_targetdetail_histogram.onMessage(res => {
  256. //console.log("收到服务器内容:" + res.data);
  257. _this.targetdetail.targetdetail_histogram = JSON.parse(res.data)[ip];
  258. let Column = {
  259. "categories": ["04/11","04/12", "04/13", "04/14", "04/15", "04/16", "04/17"],
  260. "series": [{
  261. "name": "发电量",
  262. "data": [],
  263. "color": "#29C35A"
  264. }]
  265. };
  266. Column.categories=[];
  267. Column.series[0].data=[];
  268. Column.series[0].name=this.targetName;
  269. for(var i=0;i<_this.targetdetail.targetdetail_histogram.length;i++){
  270. _this.targetdetail.targetdetail_histogram[i].pointTime = new Date(_this.targetdetail.targetdetail_histogram[i].pointTime*1000).Format("MM/dd");
  271. Column.categories.push(_this.targetdetail.targetdetail_histogram[i].pointTime);
  272. Column.series[0].data.push(_this.targetdetail.targetdetail_histogram[i].pointValueInDouble);
  273. }
  274. //这里我后台返回的是数组,所以用等于,如果您后台返回的是单条数据,需要push进去
  275. _self.showColumn('canvasColumn', Column);
  276. });
  277. });
  278. // 这里仅是事件监听【如果socket关闭了会执行】
  279. this.socketTask_targetdetail_histogram.onClose(() => {
  280. uni.request({
  281. url: 'http://'+this.backStageIp+':'+this.backStagePort+'/targetdetail/close_targetdetail_histogram?pointKey='+this.pointKey,
  282. success: (res) => {
  283. }
  284. });
  285. });
  286. },pushWindPowerStationNameToSessionStorage(windpowerstationName) {
  287. uni.setStorageSync('windpowerstationName', windpowerstationName);
  288. //sessionStorage.setItem('windpowerstationName', windpowerstationName);
  289. //alert("v"+ sessionStorage.getItem("windpowerstationName"));
  290. //this.common.goback('/pages/index/Index');
  291. },
  292. getWindPowerStationNameToSessionStorage() {
  293. uni.getStorageSync('windpowerstationName');
  294. return uni.getStorageSync('windpowerstationName');
  295. },
  296. getLineServerData() {
  297. // 折线图
  298. let LineA = {
  299. categories: [
  300. ],
  301. series: [
  302. {
  303. name: '功率',
  304. data: [],
  305. color: '#4A80B1',
  306. textColor: '#FFFFFF',
  307. textSize: this.seriesTextSize,
  308. format: val => {
  309. return val + 'kwh';
  310. },
  311. index: 0,
  312. legendShape: 'circle'
  313. }
  314. ]
  315. };
  316. this.showLineA('canvasLineA', LineA);
  317. },
  318. showLineA(canvasId, chartData) {
  319. canvaLineA = new uCharts({
  320. $this: _self,
  321. canvasId: canvasId,
  322. type: 'line',
  323. fontSize: 11,
  324. legend: {
  325. show: true,
  326. position: 'top',
  327. float: 'right',
  328. fontColor: 'silver',
  329. itemGap: '4'
  330. },
  331. dataLabel: false,
  332. dataPointShape: false,
  333. background: '#FFFFFF',
  334. pixelRatio: _self.pixelRatio,
  335. categories: chartData.categories,
  336. series: chartData.series,
  337. animation: true,
  338. xAxis: {
  339. type: 'grid',
  340. gridColor: 'silver',
  341. fontColor: 'silver',
  342. gridType: 'solid',
  343. gridColor: '#2E2E2E',
  344. axisLineColor: '#2E2E2E',
  345. labelCount: '3'
  346. // itemCount:"3"
  347. },
  348. yAxis: {
  349. data: [
  350. {
  351. type: 'value',
  352. fontColor: 'silver',
  353. disabled: false, //y轴轴线
  354. min: 0,
  355. max: 40,
  356. position: 'left',
  357. axisLineColor: '#2E2E2E',
  358. title: ' 功率:(kw/h)',
  359. titleFontColor: 'silver'
  360. },
  361. {
  362. fontColor: 'silver',
  363. disabled: false, //y轴轴线
  364. min: 0,
  365. max: 40,
  366. position: 'right',
  367. axisLineColor: '#2E2E2E',
  368. title: '功率:(kwh)',
  369. titleFontColor: 'silver'
  370. }
  371. ],
  372. gridColor: '#2E2E2E',
  373. splitNumber: 4,
  374. gridType: 'solid',
  375. dashLength: 8,
  376. showTitle: 'true',
  377. format: val => {
  378. return val.toFixed(0) + '元';
  379. }
  380. },
  381. width: _self.cWidth * _self.pixelRatio,
  382. height: _self.cHeight * _self.pixelRatio,
  383. extra: {
  384. line: {
  385. type: 'line',
  386. width: '1'
  387. }
  388. }
  389. });
  390. },
  391. touchLineA(e) {
  392. canvaLineA.showToolTip(e, {
  393. format: function(item, category) {
  394. return category + ' ' + item.name + ':' + item.data;
  395. }
  396. });
  397. },
  398. moveLineA(e) {
  399. canvaLineA.scroll(e);
  400. },
  401. getColumnServerData() {
  402. let Column = {
  403. "categories": [],
  404. "series": [{
  405. "name": "发电量",
  406. "data": [],
  407. "color": "#29C35A"
  408. }]
  409. };
  410. //这里我后台返回的是数组,所以用等于,如果您后台返回的是单条数据,需要push进去
  411. _self.showColumn('canvasColumn', Column);
  412. },
  413. showColumn(canvasId, chartData) {
  414. canvaColumn = new uCharts({
  415. $this: _self,
  416. canvasId: canvasId,
  417. type: 'column',
  418. legend: {
  419. show: true,
  420. fontSize: 12,
  421. padding: 5,
  422. fontColor: 'silver',
  423. itemGap: '4',
  424. // margin:0,
  425. position: 'top',
  426. float: 'right'
  427. },
  428. fontSize: 11,
  429. background: '#242424',
  430. pixelRatio: _self.pixelRatio,
  431. animation: true,
  432. categories: chartData.categories,
  433. series: chartData.series,
  434. xAxis: {
  435. // disabled:true,
  436. rotateLabel: true,
  437. disableGrid: true,
  438. axisLineColor: '#2D2D2D',
  439. fontColor: '#ffffff'
  440. // gridColor:'#2D2D2D',
  441. },
  442. yAxis: {
  443. showTitle: true,
  444. // disableGrid:true,
  445. gridType: 'solid',
  446. dashLength: 8,
  447. gridColor: '#2D2D2D',
  448. splitNumber: 5,
  449. min: 0,
  450. max: 40,
  451. data: [
  452. {
  453. min: 0,
  454. max: 40,
  455. position: 'left',
  456. axisLine: false,
  457. fontColor: 'silver',
  458. // title: '7天功率柱状图',
  459. title: ' 功率:(kw/h)',
  460. titleFontColor: 'silver',
  461. // title: '功率(kw/h)',
  462. // titleFontColor: '#FFFFFF',
  463. titleFontSize: 11,
  464. format: val => {
  465. return val.toFixed(0) + '';
  466. }
  467. }
  468. ]
  469. },
  470. dataLabel: true,
  471. width: _self.cWidth * _self.pixelRatio,
  472. height: _self.cHeight * _self.pixelRatio,
  473. extra: {
  474. column: {
  475. type: 'group',
  476. // width: _self.cWidth * _self.pixelRatio * 0.45 / chartData.categories.length
  477. width: 12,
  478. lineStyle: {
  479. width: 5
  480. }
  481. }
  482. }
  483. });
  484. },
  485. goToIndex() {
  486. uni.switchTab({
  487. url: '/pages/index/Index'
  488. });
  489. },
  490. touchColumn(e) {
  491. canvaColumn.showToolTip(e, {
  492. format: function(item, category) {
  493. if (typeof item.data === 'object') {
  494. return category + ' ' + item.name + ':' + item.data.value;
  495. } else {
  496. return category + ' ' + item.name + ':' + item.data;
  497. }
  498. }
  499. });
  500. }
  501. }
  502. };
  503. </script>
  504. <style>
  505. @font-face {
  506. font-family: '方正兰亭细黑_GBK';
  507. src: url(../../static/方正兰亭细黑_GBK.TTF);
  508. }
  509. page {
  510. /* background-color: #FFFFFF; */
  511. font-family: '方正兰亭细黑_GBK';
  512. background-color: #1f1f1f;
  513. color: silver;
  514. font-size: 14px;
  515. }
  516. body {
  517. background: #1f1f1f;
  518. font-family: '方正兰亭细黑_GBK';
  519. font-size: 14px;
  520. color: silver;
  521. }
  522. .addressName {
  523. /* width: 100%; */
  524. /* background-color: white; */
  525. /* width: 126px; */
  526. height: 80rpx;
  527. line-height: 80rpx;
  528. margin-left: 40%;
  529. color: silver;
  530. font-size: 18px;
  531. }
  532. .target_dianLiang {
  533. margin-top: 15px;
  534. font-size: 16px;
  535. font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', STHeiti, 'Microsoft Yahei', Tahoma, Simsun, sans-serif;
  536. }
  537. .target_count {
  538. margin-top: 15px;
  539. font-size: 16px;
  540. font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', STHeiti, 'Microsoft Yahei', Tahoma, Simsun, sans-serif;
  541. }
  542. .target_danWei {
  543. margin-top: 15px;
  544. font-size: 16px;
  545. font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', STHeiti, 'Microsoft Yahei', Tahoma, Simsun, sans-serif;
  546. }
  547. .threeTarget {
  548. width: 100%;
  549. height: 120px;
  550. background-color: #242424;
  551. display: -webkit-flex;
  552. display: flex;
  553. justify-content: space-around;
  554. float: left;
  555. }
  556. .target {
  557. width: 28%;
  558. height: 78px;
  559. background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
  560. border-radius: 5px;
  561. float: left;
  562. margin-top: 20px;
  563. text-align: center;
  564. color: silver;
  565. padding-top: 20px;
  566. font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', STHeiti, 'Microsoft Yahei', Tahoma, Simsun, sans-serif;
  567. }
  568. .target_zi {
  569. font-size: 16px;
  570. text-align: center;
  571. margin-top: -7px;
  572. }
  573. .speedPowerDiagram {
  574. width: 100px;
  575. height: 30px;
  576. user-select: text;
  577. -webkit-user-select: text;
  578. -moz-user-select: text;
  579. -ms-user-select: text;
  580. color: silver;
  581. float: left;
  582. margin-top: 18px;
  583. margin-left: 9px;
  584. font-size: 11px;
  585. }
  586. .qiun-charts {
  587. width: 750upx;
  588. height: 400upx;
  589. margin-top: 140px;
  590. background-color: #242424;
  591. }
  592. .charts {
  593. width: 750upx;
  594. height: 400upx;
  595. }
  596. .qiun-columnCharts {
  597. width: 750upx;
  598. height: 400upx;
  599. margin-top: 20px;
  600. background-color: #242424;
  601. }
  602. .sevenDayColunm {
  603. width: 100px;
  604. height: 30px;
  605. user-select: text;
  606. -webkit-user-select: text;
  607. -moz-user-select: text;
  608. -ms-user-select: text;
  609. color: silver;
  610. float: left;
  611. margin-top: 18px;
  612. margin-left: 10px;
  613. font-size: 11px;
  614. }
  615. </style>