12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379 |
- <template>
- <view>
- <!--导航栏-->
- <view @tap="closeFrame">
- <cu-custom bgColor="bg-gradual-sisBlack" :isBack="true">
- <block slot="backText">
- <view style="height: 80rpx;line-height: 80rpx;color: silver;" >返回</view>
- </block>
- <block slot="content">
- <view style="color: silver;">手环历史曲线</view>
- </block>
- </cu-custom>
- </view>
-
-
- <!-- 曲线图 -->
- <view class="line">
- <!-- 第一排 -->
- <view class="line_One">
- <!-- 心跳 -->
- <view class="line_One_X">
- <div class="font">心跳频率</div>
- <div class="date">{{dataInformation.XTPLTime}}</div>
- <view class="lineChart" @tap="common.navTo('/components/bracelet/raceletDetails/heartbeatDetails?unit=次/分钟&name=心跳频率&color=#A1B95B&braceletCurve_XTPL_Details='+braceletCurve_XTPL_Details+'&dataInformation='+dataInformation.XTPL)">
- <view class="qiun-charts">
- <canvas canvas-id="canvasLineA" id="canvasLineA" class="charts" @touchstart="touchLineA"></canvas>
- </view>
- </view>
- <div class="digital">{{dataInformation.XTPL}}</div>
- <div class="unit">次/分钟</div>
- </view>
- <!-- 步数 -->
- <view class="line_One_B">
- <view>
- <div class="font">步数</div>
- <div class="date">{{dataInformation.BSTime}}</div>
- <view class="lineChart" @tap="common.navTo('/components/bracelet/raceletDetails/heartbeatDetails?unit=步&name=步数&color=#DDA9B8&braceletCurve_XTPL_Details='+braceletCurve_BS_Details+'&dataInformation='+dataInformation.BS)">
- <view class="qiun-charts">
- <canvas canvas-id="canvasLineB" id="canvasLineB" class="charts" @touchstart="touchLineB"></canvas>
- </view>
- </view>
- <div class="digital">{{dataInformation.BS}}</div>
- <div class="unit">步</div>
- </view>
- </view>
- <!-- clear -->
- <view class="clear"></view>
- </view>
- <!-- 第二排 -->
- <view class="line_Two">
- <!-- 收缩血压 -->
- <view class="line_T_S">
- <div class="font">收缩血压</div>
- <div class="date">{{dataInformation.SSXYTime}}</div>
- <view class="lineChart" @tap="common.navTo('/components/bracelet/raceletDetails/heartbeatDetails?unit=BP&name=收缩血压&color=#AF8DD1&braceletCurve_XTPL_Details='+braceletCurve_SSXY_Details+'&dataInformation='+dataInformation.SSXY)"> <!-- @tap="closeFrame" -->
- <view class="qiun-charts">
- <canvas canvas-id="canvasLineC" id="canvasLineC" class="charts" @touchstart="touchLineC"></canvas>
- </view>
- </view>
- <div class="digital">{{dataInformation.SSXY}}</div>
- <div class="unit">BP</div>
- </view>
- <!-- 舒张血压 -->
- <view class="line_T_Z">
- <div class="font">舒张血压</div>
- <div class="date">{{dataInformation.SZXYTime}}</div>
- <view class="lineChart" @tap="common.navTo('/components/bracelet/raceletDetails/heartbeatDetails?unit=BP&name=舒张血压&color=#6593B6&braceletCurve_XTPL_Details='+braceletCurve_SZXY_Details+'&dataInformation='+dataInformation.SZXY)"> <!-- @tap="closeFrame" -->
- <view class="qiun-charts">
- <canvas canvas-id="canvasLineD" id="canvasLineD" class="charts" @touchstart="touchLineD"></canvas>
- </view>
- </view>
- <div class="digital">{{dataInformation.SZXY}}</div>
- <div class="unit">BP</div>
- </view>
- <view class="clear"></view>
- </view>
- <!-- 第三行 -->
- <view class="line_Three">
- <!-- 疲劳度 -->
- <view class="line_T_P">
- <div class="font">疲劳度</div>
- <div class="date">{{dataInformation.PLDTime}}</div>
- <view class="lineChart" @tap="common.navTo('/components/bracelet/raceletDetails/heartbeatDetails?unit=%&name=心跳频率&color=#8EDADD&braceletCurve_XTPL_Details='+braceletCurve_PLD_Details+'&dataInformation='+dataInformation.PLD)">
- <view class="qiun-charts">
- <canvas canvas-id="canvasLineE" id="canvasLineE" class="charts" @touchstart="touchLineE"></canvas>
- </view>
- </view>
- <div class="digital">{{dataInformation.PLD}}</div>
- <div class="unit">%</div>
- </view>
- <!-- 血氧浓度 -->
- <view class="line_T_X">
- <div class="font">血氧浓度</div>
- <div class="date">{{dataInformation.XYNDTime}}</div>
- <view class="lineChart" @tap="common.navTo('/components/bracelet/raceletDetails/heartbeatDetails?unit=ml/%&name=血氧浓度&color=#E49066&braceletCurve_XTPL_Details='+braceletCurve_XYND_Details+'&dataInformation='+dataInformation.XYND)">
- <view class="qiun-charts">
- <canvas canvas-id="canvasLineF" id="canvasLineF" class="charts" @touchstart="touchLineF"></canvas>
- </view>
- </view>
- <div class="digital">{{dataInformation.XYND}}</div>
- <div class="unit">ml/%</div>
- </view>
- </view>
-
- <!-- 清除浮动 -->
- <view class="clear"></view>
- </view>
- <!-- <view class="line_1">
- <view class="lineChart" @tap="closeFrame">
- <view class="qiun-charts">
- <view class="speedPowerDiagram">疲劳度</view>
- <canvas canvas-id="canvasLineA" id="canvasLineA" class="charts" @touchstart="touchLineA"></canvas>
- </view>
- </view>
- </view> -->
- </view>
-
- </template>
- <script>
- import uCharts from '../tools/u-charts/u-charts.js';
-
- var _self;
- var canvaLineA = null;
- var canvaLineB = null;
- var canvaLineC = null;
- var canvaLineD = null;
- var canvaLineE = null;
- var canvaLineF = null;
- var canvaColumn = null;
- import res from '../../common/data.json';
- export default {
- data: function(){
-
- return {
- deviceName:'Y1-A0BC',
- deviceNamePld:"Y1-A0BC_PLD",
- deviceNameBs:"Y1-A0BC_BS",
- deviceNameSsxy:"Y1-A0BC_SSXY",
- deviceNameXtpl:"Y1-A0BC_XTPL",
- deviceNameXynd:"Y1-A0BC_XYND",
- deviceNameSzxy:"Y1-A0BC_SZXY",
- braceletCurve:{},
- braceletCurve_SSXY:[],
- braceletCurve_PLD:[],
- braceletCurve_SZXY:[],
- braceletCurve_XTPL:[],
- braceletCurve_XTPL_Details:[],
- braceletCurve_SSXY_Details:[],
- braceletCurve_PLD_Details:[],
- braceletCurve_SZXY_Details:[],
- braceletCurve_BS_Details:[],
- braceletCurve_XYND_Details:[],
- braceletCurve_BS:[],
- braceletCurve_XYND:[],
- gl:[],
- fs:[],
- llgl:[],
- ycgl:[],
- rfdl:[],
- timeRound:[],
- windStationName: '',
- isFrameShow: false,
- count: 0,
- cWidth: '',
- cHeight: '',
- pixelRatio: 1,
- serverData: '',
- sanJiao: 'sanJiaoDown',
- XT_Num:[],
- XT_Data:[],
- dataInformation:{
- XYNDTime:'',
- XTPL:'',
- PLD:'',
- BS:'',
- SSXY:'',
- SZXY:'',
- XYND:'',
- XTPLTime:'',
- PLDTime:'',
- BSTime:'',
- SSXYTime:'',
- SZXYTime:''
- },
- }
- },
- onLoad(option) {
- this.braceletCurve = JSON.parse(option.braceletCurve);
- this.getServerData_A();
- this.getServerData_B();
- this.getServerData_C();
- this.getServerData_D();
- this.getServerData_E();
- this.getServerData_F();
- this.getDateForInformation();
- this.cWidth = uni.upx2px(300);
- this.cHeight = uni.upx2px(200);
- },
- onShow:function(){
- this.getServerData_A();
- this.getServerData_B();
- this.getServerData_C();
- this.getServerData_D();
- this.getServerData_E();
- this.getServerData_F();
- },
-
- computed:{
-
- /* targetName_pld:function(){
- return this.deviceName+"_PLD";
- },
- targetName_bs:function(){
- return this.deviceName+"_BS";
- },
- targetName_xtpl:function(){
- return this.deviceName+"_XTPL";
- },
- targetName_ssxy:function(){
- return this.deviceName+"_SSXY";
- },
- targetName_szxy:function(){
- return this.deviceName+"_SZXY";
- },
- targetName_xynd:function(){
- return this.deviceName+"_XYND";
- }, */
-
- backStageIp:function(){
- return this.$store.state.wholeSituationBackStageIp;
- }, backStagePort:function(){
- return this.$store.state.wholeSituationBackStagePort;
- },windpowerstationNameToId:function(){
- return this.$store.state.windpowerstationNameToId;
- }
- },
- mounted() {
- document.querySelector('body').setAttribute('style', 'background-color:#242424');
- },
- methods: {
- closeFrame: function() {
- this.count = this.count + 1;
- if (this.isFrameShow) {
- this.isFrameShow = false;
- this.sanJiao = 'sanJiaoDown';
- }
- },
- getDateForInformation(){
- let _this = this;
-
- Date.prototype.Format = function(fmt) {
- var o = {
- 'M+': this.getMonth() + 1, //月份
- 'd+': this.getDate(), //日
- 'h+': this.getHours(), //小时
- 'm+': this.getMinutes(), //分
- 's+': this.getSeconds(), //秒
- 'q+': Math.floor((this.getMonth() + 3) / 3), //季度
- S: this.getMilliseconds() //毫秒
- };
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length));
- for (var k in o)
- if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[
- k]).substr(('' + o[k]).length));
- return fmt;
- };
-
- /* _this.braceletCurve_PLD = _this.braceletCurve[_this.deviceNamePld];
- _this.braceletCurve_SSXY = _this.braceletCurve[_this.deviceNameSsxy];
- _this.braceletCurve_SZXY = _this.braceletCurve[_this.deviceNameSzxy];
- _this.braceletCurve_XYND = _this.braceletCurve[_this.deviceNameXynd];
- _this.braceletCurve_XTPL = _this.braceletCurve[_this.deviceNameXtpl];
- _this.braceletCurve_BS = _this.braceletCurve[_this.deviceNameBs]; */
-
-
-
-
- for(let i=_this.braceletCurve_XTPL.length-1;i<_this.braceletCurve_XTPL.length;i++){
-
- if(i == _this.braceletCurve_XTPL.length-1){
- _this.dataInformation.XTPL = _this.braceletCurve_XTPL[i].value;
- _this.dataInformation.XTPLTime = new Date(_this.braceletCurve_XTPL[i].ts).Format('MM/dd');
- }
-
- }
- for(let i=_this.braceletCurve_PLD.length-1;i<_this.braceletCurve_PLD.length;i++){
-
- if(i == _this.braceletCurve_PLD.length-1){
- _this.dataInformation.PLD = _this.braceletCurve_PLD[i].value;
- _this.dataInformation.PLDTime = new Date(_this.braceletCurve_PLD[i].ts).Format('MM/dd');
- }
-
- }
- for(let i=_this.braceletCurve_BS.length-1;i<_this.braceletCurve_BS.length;i++){
-
- if(i == _this.braceletCurve_BS.length-1){
- _this.dataInformation.BS = Math.round(_this.braceletCurve_BS[i].value);
- _this.dataInformation.BSTime = new Date(_this.braceletCurve_BS[i].ts).Format('MM/dd');
- }
-
- }
- for(let i=_this.braceletCurve_SSXY.length-1;i<_this.braceletCurve_SSXY.length;i++){
-
- if(i == _this.braceletCurve_SSXY.length-1){
- _this.dataInformation.SSXY = Math.round(_this.braceletCurve_SSXY[i].value);
- _this.dataInformation.SSXYTime = new Date(_this.braceletCurve_SSXY[i].ts).Format('MM/dd');
- }
-
- }
- for(let i=_this.braceletCurve_SZXY.length-1;i<_this.braceletCurve_SZXY.length;i++){
-
- if(i == _this.braceletCurve_SZXY.length-1){
- _this.dataInformation.SZXY = Math.round(_this.braceletCurve_SZXY[i].value);
- _this.dataInformation.SZXYTime = new Date(_this.braceletCurve_SZXY[i].ts).Format('MM/dd');
- }
-
- }
- for(let i=_this.braceletCurve_XYND.length-1;i<_this.braceletCurve_XYND.length;i++){
-
- if(i == _this.braceletCurve_XYND.length-1){
- _this.dataInformation.XYND = _this.braceletCurve_XYND[i].value;
- _this.dataInformation.XYNDTime = new Date(_this.braceletCurve_XYND[i].ts).Format('MM/dd');
- }
-
- }
-
- },
-
-
- getServerData_F() {
- // 折线图
- let LineF = {
- categories: [
- ' 17:26',
- '18:56',
- '19:56',
- '20:56',
- '21:56',
- '22:56',
- '23:56',
- '00:56',
- '01:56',
- '02:56',
- '03:56',
- '04:56',
- '05:56',
- '06:56',
- '07:56',
- '08:56',
- '09:56',
- '10:56',
- '11:56',
- '12:56',
- '13:56',
- '14:56',
- '15:56',
- '16:56',
- '17:56 '
- ],
- series: [{
- name: '血氧浓度',
- data: [
- ],
- color: '#E49066',
- textColor: '#FFFFFF',
- textSize: this.seriesTextSize,
- /* format: val => {
- return val + 'kwh';
- }, */
- index: 0,/*
- legendShape: 'circle' */
- },
- ]
- };
-
-
- let _this = this;
- LineF.categories = [];
- LineF.series[0].data = [];
-
-
-
- _this.braceletCurve_XYND = _this.braceletCurve[_this.deviceNameXynd];
- _this.braceletCurve_XYND_Details = JSON.stringify(_this.braceletCurve_XYND);
-
- for(let i=_this.braceletCurve_XYND.length-7;i<_this.braceletCurve_XYND.length;i++){
- LineF.categories.push(i);
- LineF.series[0].data.push(_this.braceletCurve_XYND[i].value);
- }
-
-
- this.showLineF('canvasLineF', LineF);
- },
-
-
- getServerData_E() {
- // 折线图
- let LineE = {
- categories: [
- ' 17:26',
- '18:56',
- '19:56',
- '20:56',
- '21:56',
- '22:56',
- '23:56',
- '00:56',
- '01:56',
- '02:56',
- '03:56',
- '04:56',
- '05:56',
- '06:56',
- '07:56',
- '08:56',
- '09:56',
- '10:56',
- '11:56',
- '12:56',
- '13:56',
- '14:56',
- '15:56',
- '16:56',
- '17:56 '
- ],
- series: [{
- pointShape:'diamond',
- name: '疲劳度',
- data: [
- ],
- color: '#8EDADD',
- textColor: '#FFFFFF',
- textSize: this.seriesTextSize,
- /* format: val => {
- return val + 'kwh';
- }, */
- index: 0,/*
- legendShape: 'circle' */
- },
- ]
- };
-
-
- let _this = this;
- LineE.categories = [];
- LineE.series[0].data = [];
-
-
-
- _this.braceletCurve_PLD = _this.braceletCurve[_this.deviceNamePld];
- _this.braceletCurve_PLD_Details = JSON.stringify(_this.braceletCurve_PLD);
-
- for(let i=_this.braceletCurve_PLD.length-7;i<_this.braceletCurve_PLD.length;i++){
- LineE.categories.push(i);
- LineE.series[0].data.push(_this.braceletCurve_PLD[i].value);
- }
-
-
- this.showLineE('canvasLineE', LineE);
- },
-
-
- getServerData_D() {
- // 折线图
- let LineD = {
- categories: [
- ' 17:26',
- '18:56',
- '19:56',
- '20:56',
- '21:56',
- '22:56',
- '23:56',
- '00:56',
- '01:56',
- '02:56',
- '03:56',
- '04:56',
- '05:56',
- '06:56',
- '07:56',
- '08:56',
- '09:56',
- '10:56',
- '11:56',
- '12:56',
- '13:56',
- '14:56',
- '15:56',
- '16:56',
- '17:56 '
- ],
- series: [{
- pointShape:'rect',
- name: '舒张血压',
- data: [
- ],
- color: '#6593B6',
- textColor: '#FFFFFF',
- textSize: this.seriesTextSize,
- /* format: val => {
- return val + 'kwh';
- }, */
- index: 0,/*
- legendShape: 'circle' */
- },
- ]
- };
-
-
- let _this = this;
- LineD.categories = [];
- LineD.series[0].data = [];
-
-
-
- _this.braceletCurve_SZXY = _this.braceletCurve[_this.deviceNameSzxy];
- _this.braceletCurve_SZXY_Details = JSON.stringify(_this.braceletCurve_SZXY);
-
- for(let i=_this.braceletCurve_SZXY.length-7;i<_this.braceletCurve_SZXY.length;i++){
- LineD.categories.push(i);
- LineD.series[0].data.push(_this.braceletCurve_SZXY[i].value);
- }
-
-
- this.showLineD('canvasLineD', LineD);
- },
-
- getServerData_C() {
- // 折线图
- let LineC = {
- categories: [
- ' 17:26',
- '18:56',
- '19:56',
- '20:56',
- '21:56',
- '22:56',
- '23:56',
- '00:56',
- '01:56',
- '02:56',
- '03:56',
- '04:56',
- '05:56',
- '06:56',
- '07:56',
- '08:56',
- '09:56',
- '10:56',
- '11:56',
- '12:56',
- '13:56',
- '14:56',
- '15:56',
- '16:56',
- '17:56 '
- ],
- series: [{
- pointShape:'triangle',
- name: '收缩血压',
- data: [
- ],
- color: '#AF8DD1',
- textColor: '#FFFFFF',
- textSize: this.seriesTextSize,
- /* format: val => {
- return val + 'kwh';
- }, */
- index: 0,/*
- legendShape: 'circle' */
- },
- ]
- };
-
-
- let _this = this;
- LineC.categories = [];
- LineC.series[0].data = [];
-
-
-
- _this.braceletCurve_SSXY = _this.braceletCurve[_this.deviceNameSsxy];
- _this.braceletCurve_SSXY_Details = JSON.stringify(_this.braceletCurve_SSXY);
-
- for(let i=_this.braceletCurve_SSXY.length-7;i<_this.braceletCurve_SSXY.length;i++){
- LineC.categories.push(i);
- LineC.series[0].data.push(_this.braceletCurve_SSXY[i].value);
- }
-
- _this.XT_Num = LineC.categories;
- _this.XT_Data = LineC.series[0].data;
- this.showLineC('canvasLineC', LineC);
- },
-
- getServerData_B() {
- // 折线图
- let LineB = {
- categories: [
- ' 17:26',
- '18:56',
- '19:56',
- '20:56',
- '21:56',
- '22:56',
- '23:56',
- '00:56',
- '01:56',
- '02:56',
- '03:56',
- '04:56',
- '05:56',
- '06:56',
- '07:56',
- '08:56',
- '09:56',
- '10:56',
- '11:56',
- '12:56',
- '13:56',
- '14:56',
- '15:56',
- '16:56',
- '17:56 '
- ],
- legend:[{
- show:true,
- disableLegend:false,
- }],
- series: [{
- name: '步数',
- data: [
- ],
- color: '#DDA9B8',
- textColor: '#FFFFFF',
- textSize: this.seriesTextSize,
- /* format: val => {
- return val + 'kwh';
- }, */
- index: 0,/*
- legendShape: 'circle' */
- },
- ]
- };
-
-
- let _this = this;
- LineB.categories = [];
- LineB.series[0].data = [];
-
-
-
- _this.braceletCurve_BS = _this.braceletCurve[_this.deviceNameBs];
- _this.braceletCurve_BS_Details = JSON.stringify(_this.braceletCurve_BS);
-
- for(let i=_this.braceletCurve_BS.length-7;i<_this.braceletCurve_BS.length;i++){
- LineB.categories.push(i);
- LineB.series[0].data.push(_this.braceletCurve_BS[i].value);
- }
-
-
- this.showLineB('canvasLineB', LineB);
- },
-
- getServerData_A() {
- // 折线图
- let LineA = {
- categories: [
- ' 17:26',
- '18:56',
- '19:56',
- '20:56',
- '21:56',
- '22:56',
- '23:56',
- '00:56',
- '01:56',
- '02:56',
- '03:56',
- '04:56',
- '05:56',
- '06:56',
- '07:56',
- '08:56',
- '09:56',
- '10:56',
- '11:56',
- '12:56',
- '13:56',
- '14:56',
- '15:56',
- '16:56',
- '17:56 '
- ],
- legend:[{
- show:true,
- }],
- series: [{
- pointShape:'diamond',
- name: '心跳频率',
- disableLegend:false,
- data: [{
- value:6,
- }
-
- ],
- color: '#A1B95B',
- textColor: '#bdbdbd',
- textSize: this.seriesTextSize,
- /* format: val => {
- return val + 'kwh';
- }, */
- index: 0,/*
- legendShape: 'circle' */
- },
- ]
- };
-
-
- let _this = this;
- LineA.categories = [];
- LineA.series[0].data = [];
-
- _this.braceletCurve_XTPL = _this.braceletCurve[_this.deviceNameXtpl];
-
- _this.braceletCurve_XTPL_Details = JSON.stringify(_this.braceletCurve_XTPL);
-
-
- for(let i=_this.braceletCurve_XTPL.length-7;i<_this.braceletCurve_XTPL.length;i++){
- LineA.categories.push(i);
- LineA.series[0].data.push(_this.braceletCurve_XTPL[i].value);
- /* if(i == _this.braceletCurve_XTPL.length){
- _this.XTPL = _this.braceletCurve_XTPL[i].value;
- } */
- }
-
-
- this.showLineA('canvasLineA', LineA);
- },
-
- showLineF(canvasId, chartData) {
- var _self = this;
- canvaLineF = new uCharts({
- $this: _self,
- canvasId: canvasId,
- type: 'line',
-
- fontSize: 11,
- legend: {
- show: false,
- position: 'top',
- float: 'left',
- fontColor: '',
- itemGap: '4',
- itemWidth: '3',
- fontSize:'13'
- },
- dataLabel: false,
- dataPointShape: false,
- background: '#FFFFFF',
- pixelRatio: _self.pixelRatio,
- categories: chartData.categories,
- series: chartData.series,
- animation: false,
- xAxis: {
- disableGrid:true,
- axisLine:false,
- type: 'grid',
- disabled: true,
- gridColor: 'silver',
- fontColor: 'silver',
- gridType: 'solid',
- gridColor: '#ececec',
- axisLineColor: '#ececec',
- labelCount: '3',
- itemCount:'3',
-
- },
- yAxis: {
- disableGrid:true,
- data: [{
- type: 'value',
- fontColor: 'silver',
- disabled: true, //y轴轴线
- min: 0,
- max: 30,
- position: 'left',
- axisLineColor: '#ececec',
- title: '',
- titleFontColor: 'silver'
- }
- ],
- gridColor: '#ececec',
- splitNumber: 3,
- gridType: 'solid',
- dashLength: 8,
- showTitle: 'true',
- /* format: val => {
- return val.toFixed(0) + '元';
- } */
- },
- width: _self.cWidth * _self.pixelRatio ,
- height: _self.cHeight * _self.pixelRatio ,
- extra: {
- line: {
- type: 'line',
- width: '1'
- }
- }
- });
- },
-
-
- showLineE(canvasId, chartData) {
- var _self = this;
- canvaLineE = new uCharts({
- $this: _self,
- canvasId: canvasId,
- type: 'line',
-
- fontSize: 11,
- legend: {
- show: false,
- position: 'top',
- float: 'left',
- fontColor: 'silver',
- itemGap: '4',
- itemWidth: '3',
- fontSize:'13'
- },
- dataLabel: true,
- dataPointShape: false,
- dataLabel:false,
- background: '#FFFFFF',
- pixelRatio: _self.pixelRatio,
- categories: chartData.categories,
- series: chartData.series,
- animation: false,
- xAxis: {
- disableGrid:true,
- axisLine:false,
- type: 'grid',
- disabled: true,
- gridColor: 'silver',
- fontColor: 'silver',
- gridType: 'solid',
- gridColor: '#ececec',
- axisLineColor: '#ececec',
- labelCount: '3',
- itemCount:'3',
- },
- yAxis: {
- disableGrid:true,
- data: [{
- type: 'value',
- fontColor: 'silver',
- disabled: true, //y轴轴线
- min: 0,
- max: 30,
- position: 'left',
- axisLineColor: '#ececec',
- title: '',
- titleFontColor: 'silver'
- }
- ],
- gridColor: '#ececec',
- splitNumber: 3,
- gridType: 'solid',
- dashLength: 8,
- showTitle: 'true',
- /* format: val => {
- return val.toFixed(0) + '元';
- } */
- },
- width: _self.cWidth * _self.pixelRatio ,
- height: _self.cHeight * _self.pixelRatio ,
- extra: {
- line: {
- type: 'line',
- width: '1'
- }
- }
- });
- },
-
- showLineC(canvasId, chartData) {
- var _self = this;
- canvaLineC = new uCharts({
- $this: _self,
- canvasId: canvasId,
- type: 'line',
-
- fontSize: 11,
- legend: {
- show: false,
- position: 'top',
- float: 'left',
- fontColor: 'silver',
- itemGap: '4',
- itemWidth: '3',
- fontSize:'13'
- },
- dataLabel: true,
- dataPointShape: false,
- dataLabel:false,
- background: '#FFFFFF',
- pixelRatio: _self.pixelRatio,
- categories: chartData.categories,
- series: chartData.series,
- animation: false,
- xAxis: {
- disableGrid:true,
- axisLine:false,
- type: 'grid',
- disabled: true,
- gridColor: 'silver',
- fontColor: 'silver',
- gridType: 'solid',
- gridColor: '#ececec',
- axisLineColor: '#ececec',
- labelCount: '3',
- itemCount:'3',
- },
- yAxis: {
- disableGrid:true,
- data: [{
- type: 'value',
- fontColor: 'silver',
- disabled: true, //y轴轴线
- min: 0,
- max: 30,
- position: 'left',
- axisLineColor: '#ececec',
- title: '',
- titleFontColor: 'silver'
- }
- ],
- gridColor: '#ececec',
- splitNumber: 3,
- gridType: 'solid',
- dashLength: 8,
- showTitle: 'true',
- /* format: val => {
- return val.toFixed(0) + '元';
- } */
- },
- width: _self.cWidth * _self.pixelRatio ,
- height: _self.cHeight * _self.pixelRatio ,
- extra: {
- line: {
- type: 'line',
- width: '1'
- }
- }
- });
- },
-
- showLineD(canvasId, chartData) {
- var _self = this;
- canvaLineD = new uCharts({
- $this: _self,
- canvasId: canvasId,
- type: 'line',
-
- fontSize: 11,
- legend: {
- show: false,
- position: 'top',
- float: 'left',
- fontColor: 'silver',
- itemGap: '4',
- itemWidth: '3',
- fontSize:'13'
- },
- dataLabel: true,
- dataPointShape: false,
- dataLabel:false,
- background: '#FFFFFF',
- pixelRatio: _self.pixelRatio,
- categories: chartData.categories,
- series: chartData.series,
- animation: false,
- xAxis: {
- disableGrid:true,
- axisLine:false,
- type: 'grid',
- disabled: true,
- gridColor: 'silver',
- fontColor: 'silver',
- gridType: 'solid',
- gridColor: '#ececec',
- axisLineColor: '#ececec',
- labelCount: '3',
- itemCount:'3',
- },
- yAxis: {
- disableGrid:true,
- data: [{
- type: 'value',
- fontColor: 'silver',
- disabled: true, //y轴轴线
- min: 0,
- max: 30,
- position: 'left',
- axisLineColor: '#ececec',
- title: '',
- titleFontColor: 'silver'
- }
- ],
- gridColor: '#ececec',
- splitNumber: 3,
- gridType: 'solid',
- dashLength: 8,
- showTitle: 'true',
- /* format: val => {
- return val.toFixed(0) + '元';
- } */
- },
- width: _self.cWidth * _self.pixelRatio ,
- height: _self.cHeight * _self.pixelRatio ,
- extra: {
- line: {
- type: 'line',
- width: '1'
- }
- }
- });
- },
-
- showLineA(canvasId, chartData) {
- var _self = this;
- canvaLineA = new uCharts({
- $this: _self,
- canvasId: canvasId,
- type: 'line',
- dataPointShapeType:'hollow',
- fontSize: 11,
- legend: {
- show: false,
- position: 'top',
- float: 'left',
- fontColor: 'silver',
- itemGap: '4',
- itemWidth: '3',
- fontSize:'13'
- },
- dataPointShape: false,
- dataLabel:false,
- background: '#FFFFFF',
- pixelRatio: _self.pixelRatio,
- categories: chartData.categories,
- series: chartData.series,
- animation: false,
- xAxis: {
- disableGrid:true,
- axisLine:false,
- type: 'grid',
- disabled: true,
- gridColor: 'silver',
- fontColor: 'silver',
- gridType: 'solid',
- gridColor: '#ececec',
- axisLineColor: '#ececec',
- labelCount: '3',
- itemCount:'3',
- },
- yAxis: {
- disableGrid:true,
- data: [{
- type: 'value',
- fontColor: 'silver',
- disabled: true, //y轴轴线
- min: 0,
- max: 30,
- position: 'left',
- axisLineColor: '#ececec',
- title: '',
- titleFontColor: 'silver'
- }
- ],
- gridColor: '#ececec',
- splitNumber: 3,
- gridType: 'solid',
- dashLength: 8,
- showTitle: 'true',
- /* format: val => {
- return val.toFixed(0) + '元';
- } */
- },
- width: _self.cWidth * _self.pixelRatio ,
- height: _self.cHeight * _self.pixelRatio ,
- extra: {
- line: {
- type: 'line',
- width: '1'
- }
- }
- });
- },
-
- showLineB(canvasId, chartData) {
- var _self = this;
- canvaLineB = new uCharts({
- $this: _self,
- canvasId: canvasId,
- type: 'line',
-
- fontSize: 11,
- legend: {
- show: false,
- position: 'top',
- float: 'left',
- fontColor: '#4D4DFF',
- itemGap: '4',
- itemWidth: '3',
- fontSize:'13'
- },
- dataLabel: true,
- dataPointShape: false, /* 图例标点 */
- dataLabel:false,
- background: '#FFFFFF',
- pixelRatio: _self.pixelRatio,
- categories: chartData.categories,
- series: chartData.series,
- animation: false,
- xAxis: {
- disableGrid:true,
- axisLine:false,
- type: 'grid',
- disabled: true,
- gridColor: 'silver',
- fontColor: 'silver',
- gridType: 'solid',
- gridColor: '#ececec',
- axisLineColor: '#ececec',
- labelCount: '3',
- itemCount:'3',
- },
- yAxis: {
- disableGrid:true,
- data: [{
- type: 'value',
- fontColor: 'silver',
- disabled: true, //y轴轴线
- min: 0,
- max: 30,
- position: 'left',
- axisLineColor: '#ececec',
- title: '',
- titleFontColor: 'silver'
- }
- ],
- gridColor: '#ececec',
- splitNumber: 3,
- gridType: 'solid',
- dashLength: 8,
- showTitle: 'true',
- /* format: val => {
- return val.toFixed(0) + '元';
- } */
- },
- width: _self.cWidth * _self.pixelRatio ,
- height: _self.cHeight * _self.pixelRatio ,
- extra: {
- line: {
- type: 'line',
- width: '1'
- }
- }
- });
- },
-
- touchLineF(e) {
- canvaLineF.showToolTip(e, {
- format: function(item, category) {
- return category + ' ' + item.name + ':' + item.data;
- }
- });
- },
-
- touchLineE(e) {
- canvaLineE.showToolTip(e, {
- format: function(item, category) {
- return category + ' ' + item.name + ':' + item.data;
- }
- });
- },
-
- touchLineD(e) {
- canvaLineD.showToolTip(e, {
- format: function(item, category) {
- return category + ' ' + item.name + ':' + item.data;
- }
- });
- },
-
- touchLineC(e) {
- canvaLineC.showToolTip(e, {
- format: function(item, category) {
- return category + ' ' + item.name + ':' + item.data;
- }
- });
- },
-
- touchLineA(e) {
- canvaLineA.showToolTip(e, {
- format: function(item, category) {
- return category + ' ' + item.name + ':' + item.data;
- }
- });
- },
-
- touchLineB(e) {
- canvaLineB.showToolTip(e, {
- format: function(item, category) {
- return category + ' ' + item.name + ':' + item.data;
- }
- });
- },
-
- moveLineA(e) {
- canvaLineA.scroll(e);
- },
-
- moveLineB(e) {
- canvaLineB.scroll(e);
- },
-
- moveLineC(e) {
- canvaLineC.scroll(e);
- },
-
- moveLineD(e) {
- canvaLineD.scroll(e);
- },
-
- moveLineE(e) {
- canvaLineD.scroll(e);
- }
- }
-
- }
- </script>
- <style>
- body {
- font-family: '方正兰亭细黑_GBK';
- font-size: 20px;
- color: silver;
- background: #000;
- }
-
- @font-face {
- font-family: '方正兰亭细黑_GBK';
- src: url(../../static/fzltxh.TTF);
- }
-
- page {
- background-color: #1f1f1f;
- font-family: '方正兰亭细黑_GBK';
- overflow-x: hidden;
- }
- .speedPowerDiagram {
- width: 100px;
- height: 30px;
- user-select: text;
- -webkit-user-select: text;
- -moz-user-select: text;
- -ms-user-select: text;
- color: silver;
- float: left;
- margin-top: 18px;
- margin-left: 9px;
- font-size: 11px;
- }
-
- /* .qiun-charts {
- width: 300upx;
- height: 200upx;
- } */
- .charts {
- position: absolute;
- top: 13%;
- left: 1.5%;
- /* width: 300upx;
- height: 200upx; */
- height: 48%;
- width: 97%;
- margin-top: 13%;
- }
- .line{
- /* background-color: #f9f9f9; */
-
- position: absolute;
- width: 100%;
- height: 620px;
- background-color: #242424;
- padding-top: 2%;
- color: #BDBDBD;
- }
- .line_One{/*
- margin: auto; */
- width: 100%;
- height: 200px;
- background-color: #242424;
- margin-top: 10px;
- float: left;
- }
- .line_Two,.line_Three{/*
- margin: auto; */
- width: 100%;
- height: 200px;
- background-color: #242424;
- /* margin-top: 10px; */
- float: left;
- }
- .line_One_X,.line_T_P,.line_T_S{/*
- margin: auto; */
- position: relative;
- float: left;
- width: 42%;
- height: 186px;
- /* background-color: #ececec; */
- background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
- border-radius: 8%;
- margin-left: 6%;
- margin-top: 2%;
- }
- .line_One_B,.line_T_Z,.line_T_X{/*
- margin: auto; */
- position: relative;
- float: right;
- width: 42%;
- height: 186px;
- background: -webkit-linear-gradient(top, rgba(159, 131, 111, 0.1) 0%, rgba(193, 94, 21, 0.2) 100%);
- border-radius: 8%;
- margin-right: 6%;
- margin-top: 2%;
- }
- /* .line_T_S{
- float: left;
- width: 100px;
- height: 150px;
- background-color: #ececec;
- border-radius: 20%;
- margin-left: 8%;
- margin-top: 5%;
- } */
- .clear{
- clear: both;
- }
- .font{
- position: absolute;
- font-size: 16px;
- font-weight: 1000;
- top: 10%;
- left: 8%;
- }
- .date{
- position: absolute;
- top: 22%;
- left: 8%;
- }
- .digital{
- font-size: 39px;
- font-weight: 900;
- position: absolute;
- top: 70%;
- left: 8%;
- }
- .unit{
- font-size: 16px;
- position: absolute;
- top: 80%;
- left: 63%;
- }
- </style>
|