123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377 |
- <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;
- 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>
|