|
|
@@ -1,8 +1,8 @@
|
|
1
|
1
|
<template>
|
|
2
|
2
|
<view class="content">
|
|
3
|
3
|
<view class="top">
|
|
4
|
|
- <image class="top_logo" src="../../static/logo1.png" mode=""></image>
|
|
5
|
|
- <image class="tite" src="../../static/tite1.png" mode=""></image>
|
|
|
4
|
+ <image class="top_logo" src="../../static/logo.png" mode=""></image>
|
|
|
5
|
+ <image class="tite" :src="$t('MainTitle')" mode=""></image>
|
|
6
|
6
|
<!-- <view class="tite">
|
|
7
|
7
|
</view> -->
|
|
8
|
8
|
<view class="time">
|
|
|
@@ -70,7 +70,7 @@
|
|
70
|
70
|
<view class="parameter_right">
|
|
71
|
71
|
<view class="parameter_righttop">
|
|
72
|
72
|
<view class="parameter_1">
|
|
73
|
|
- <!-- <view class="parameter_2">
|
|
|
73
|
+ <view class="parameter_2">
|
|
74
|
74
|
<view class="parameter_3">
|
|
75
|
75
|
<view class="parameter_4">
|
|
76
|
76
|
<image src="../../static/y8.png" mode=""
|
|
|
@@ -103,7 +103,7 @@
|
|
103
|
103
|
|
|
104
|
104
|
</view>
|
|
105
|
105
|
|
|
106
|
|
- </view> -->
|
|
|
106
|
+ </view>
|
|
107
|
107
|
<view class="parameter_SOC">
|
|
108
|
108
|
<image src="../../static/SOC.png" mode=""></image>
|
|
109
|
109
|
<view class="parameter_SOCright">
|
|
|
@@ -535,7 +535,7 @@
|
|
535
|
535
|
</view>
|
|
536
|
536
|
|
|
537
|
537
|
|
|
538
|
|
- <!-- <view class="parameter_zheng31111" @click="onpower"> -->
|
|
|
538
|
+
|
|
539
|
539
|
<view class="parameter_zheng31111">
|
|
540
|
540
|
<view class="parameter_zheng31" @click="onpower" v-if="uidatasdata.SysControl_RunCmd==1">
|
|
541
|
541
|
<view class="parameter_zheng34" v-if="$t('power')=='功率'">
|
|
|
@@ -600,7 +600,7 @@
|
|
600
|
600
|
<uni-popup-dialog
|
|
601
|
601
|
:mode="modeinput"
|
|
602
|
602
|
:placeholder="$t('powergiven') + '(0~80kW)'"
|
|
603
|
|
- v-model="value"
|
|
|
603
|
+ v-model="ACcurrentoutputchoice"
|
|
604
|
604
|
:focus="false"
|
|
605
|
605
|
:type="successtype"
|
|
606
|
606
|
:cancelText="$t('CancelReturn')"
|
|
|
@@ -613,57 +613,7 @@
|
|
613
|
613
|
</uni-popup-dialog>
|
|
614
|
614
|
</uni-popup>
|
|
615
|
615
|
|
|
616
|
|
- <uni-popup ref="alertDialog1">
|
|
617
|
|
- <view class="unipopup">
|
|
618
|
|
- <view class="unipopup1">
|
|
619
|
|
- <view>
|
|
620
|
|
-
|
|
621
|
|
- </view>
|
|
622
|
|
- <image @click="unipopupclose" class="unipopup1image" src="../../static/Icons2X.png" mode=""></image>
|
|
623
|
|
- </view>
|
|
624
|
|
-
|
|
625
|
|
- <!-- ACcurrentoutputTA1
|
|
626
|
|
- <!-- ACcurrentoutputTA2 -->
|
|
627
|
|
- <view class="unipopup2">
|
|
628
|
|
- <image class="unipopup2image1" src="../../static/ACin.png" mode=""></image>
|
|
629
|
|
- <view class="unipopup21">
|
|
630
|
|
- <view class="unipopup21image">
|
|
631
|
|
- <image class="unipopup2image41" v-if="ACcurrentoutputchoice==20" src="../../static/20kw1l.png" mode=""></image>
|
|
632
|
|
- <image class="unipopup2image41" v-else src="../../static/20kw1.png" mode="" @click="clickACcurrentoutput(20)"></image>
|
|
633
|
|
- <image class="unipopup2image4" v-if="ACcurrentoutputchoice==40" src="../../static/40kw1l.png" mode=""></image>
|
|
634
|
|
- <image class="unipopup2image4" v-else src="../../static/40kw1.png" mode="" @click="clickACcurrentoutput(40)"></image>
|
|
635
|
|
- </view>
|
|
636
|
|
- <view class="unipopup22image">
|
|
637
|
|
- <image class="unipopup2image41" v-if="ACcurrentoutputchoice==60" src="../../static/60kwl.png" mode=""></image>
|
|
638
|
|
- <image class="unipopup2image41" v-else src="../../static/60kw.png" mode="" @click="clickACcurrentoutput(60)"></image>
|
|
639
|
|
- <image class="unipopup2image4" v-if="ACcurrentoutputchoice==80" src="../../static/80kwl.png" mode=""></image>
|
|
640
|
|
- <image class="unipopup2image4" v-else src="../../static/80kw.png" mode="" @click="clickACcurrentoutput(80)"></image>
|
|
641
|
|
- </view>
|
|
642
|
|
- </view>
|
|
643
|
|
- </view>
|
|
644
|
|
- <!-- <view v-else>
|
|
645
|
|
- <view class="unipopup2">
|
|
646
|
|
- <image class="unipopup2image1" src="../../static/ACin.png" mode=""></image>
|
|
647
|
|
- <image class="unipopup2image2" v-if="ACcurrentoutputchoice==20" src="../../static/20kwl.png" mode=""></image>
|
|
648
|
|
- <image class="unipopup2image2" v-else src="../../static/20kw.png" mode="" @click="clickACcurrentoutput(20)"></image>
|
|
649
|
|
- <image class="unipopup2image3" v-if="ACcurrentoutputchoice==40" src="../../static/40kwl.png" mode=""></image>
|
|
650
|
|
- <image class="unipopup2image3" v-else src="../../static/40kw.png" mode="" @click="clickACcurrentoutput(40)"></image>
|
|
651
|
|
- </view>
|
|
652
|
|
- <view v-else class="unipopup2">
|
|
653
|
|
- 没有检测到功率
|
|
654
|
|
- </view>
|
|
655
|
|
- </view> -->
|
|
656
|
|
-
|
|
657
|
|
- <view class="unipopup3">
|
|
658
|
|
- <view class="unipopup311" @click="unipopupclose">
|
|
659
|
|
- <image class="unipopup31" src="../../static/qx.png" mode=""></image>
|
|
660
|
|
- </view>
|
|
661
|
|
- <view class="unipopup311" @click="onunipopup">
|
|
662
|
|
- <image class="unipopup32" src="../../static/qd.png" mode=""></image>
|
|
663
|
|
- </view>
|
|
664
|
|
- </view>
|
|
665
|
|
- </view>
|
|
666
|
|
- </uni-popup>
|
|
|
616
|
+
|
|
667
|
617
|
<uni-popup ref="message" type="message">
|
|
668
|
618
|
<uni-popup-message type="error" :message="messageText" :duration="3000"></uni-popup-message>
|
|
669
|
619
|
</uni-popup>
|
|
|
@@ -703,7 +653,7 @@
|
|
703
|
653
|
faultsdata: [],
|
|
704
|
654
|
SysFaultState:true,
|
|
705
|
655
|
currentDate:'',
|
|
706
|
|
- ACcurrentoutputchoice:0,
|
|
|
656
|
+ ACcurrentoutputchoice:'',
|
|
707
|
657
|
}
|
|
708
|
658
|
},
|
|
709
|
659
|
onLoad() {
|
|
|
@@ -820,81 +770,44 @@ this.content = this.$t('popUpContent');
|
|
820
|
770
|
this.content =this.$t('popUpContentStop');
|
|
821
|
771
|
this.$refs.alertDialog.open()
|
|
822
|
772
|
},
|
|
823
|
|
- // AC补电功率取消按钮
|
|
824
|
|
- unipopupclose(){
|
|
825
|
|
- this.ACcurrentoutputchoice =0
|
|
826
|
|
- this.$refs.alertDialog1.close()
|
|
827
|
|
- },
|
|
828
|
|
- onunipopup(){
|
|
829
|
|
- console.log(1111);
|
|
830
|
|
- let data = {
|
|
831
|
|
- id: "e612195b-cf9e-418b-9e2d-0fbae9b03ffa",
|
|
832
|
|
- issaveinitvalue: false,
|
|
833
|
|
- value: this.ACcurrentoutputchoice+''
|
|
834
|
|
- }
|
|
835
|
|
- console.log(data);
|
|
836
|
|
- control(data).then(res => {
|
|
837
|
|
- console.log(res);
|
|
838
|
|
- if (res.status == 'ok') {
|
|
839
|
|
-
|
|
840
|
|
- this.ACcurrentoutputchoice =0
|
|
841
|
|
- this.$refs.alertDialog1.close()
|
|
842
|
|
- uni.showToast({
|
|
843
|
|
- title: this.$t('OperationSuccessful'),
|
|
844
|
|
- icon: 'none',
|
|
845
|
|
- duration: 2000, // 显示时长,单位为毫秒
|
|
846
|
|
- });
|
|
847
|
|
- } else {
|
|
848
|
|
- this.ACcurrentoutputchoice =0
|
|
849
|
|
- this.$refs.alertDialog1.close()
|
|
850
|
|
- uni.showToast({
|
|
851
|
|
- title: this.$t('operationFailed'),
|
|
852
|
|
- icon: 'none', // 使用 'none' 图标来表示失败
|
|
853
|
|
- duration: 2000, // 显示时长,单位为毫秒
|
|
854
|
|
- });
|
|
855
|
|
- }
|
|
856
|
|
- });
|
|
857
|
|
- },
|
|
858
|
|
-
|
|
859
|
|
-
|
|
|
773
|
+
|
|
860
|
774
|
onpower() {
|
|
861
|
|
- // this.modeinput = 'input'
|
|
862
|
|
- // this.title = this.$t('ACinputpowergiven');
|
|
863
|
|
- // this.confirmText = this.$t('confirm');
|
|
864
|
|
- // this.ACcurrentoutputchoice =this.$store.state.uidatasdata.
|
|
865
|
|
- this.$refs.alertDialog1.open()
|
|
|
775
|
+ this.modeinput = 'input'
|
|
|
776
|
+ this.title = this.$t('ACinputpowergiven');
|
|
|
777
|
+ this.confirmText = this.$t('confirm');
|
|
|
778
|
+ this.$refs.alertDialog.open()
|
|
|
779
|
+
|
|
866
|
780
|
},
|
|
867
|
781
|
|
|
868
|
782
|
// 确定
|
|
869
|
783
|
dialogConfirm() {
|
|
870
|
|
- let data = {}
|
|
871
|
|
- if (this.title == this.$t('ACinputpowergiven')) {
|
|
872
|
|
- data = {
|
|
873
|
|
- id: "e612195b-cf9e-418b-9e2d-0fbae9b03ffa",
|
|
874
|
|
- issaveinitvalue: false,
|
|
875
|
|
- value: this.value
|
|
876
|
|
- }
|
|
877
|
|
- } else {
|
|
878
|
|
- data = {
|
|
879
|
|
- id: "c35c4db0-113f-442a-9e26-728489265fdb",
|
|
880
|
|
- issaveinitvalue: false,
|
|
881
|
|
- value: this.content == this.$t('popUpContent') ? '1' : '0'
|
|
882
|
|
- }
|
|
|
784
|
+ console.log(this.content);
|
|
|
785
|
+ console.log(this.$t('popUpContent'));
|
|
|
786
|
+ if(this.content == this.$t('popUpContent')&&this.title != this.$t('ACinputpowergiven')){
|
|
|
787
|
+ let uidatasdata = this.$store.state.uidatasdata
|
|
|
788
|
+ if (uidatasdata.AC_Out_380V_125A_Status == 0 || uidatasdata.AC_Out_380V_63A_Status == 0 || uidatasdata
|
|
|
789
|
+ .AC_Out_220V_16A_Status == 0) {
|
|
|
790
|
+ this.messageText = this.$t('ACRechargeelectricitytext')
|
|
|
791
|
+ this.$refs.message.open()
|
|
|
792
|
+ return
|
|
|
793
|
+ }
|
|
|
794
|
+ let data = {
|
|
|
795
|
+ id: "c35c4db0-113f-442a-9e26-728489265fdb",
|
|
|
796
|
+ issaveinitvalue: false,
|
|
|
797
|
+ value: '1'
|
|
883
|
798
|
}
|
|
884
|
799
|
|
|
885
|
|
-
|
|
886
|
800
|
control(data).then(data => {
|
|
887
|
801
|
console.log(data);
|
|
888
|
802
|
if (data.status == 'ok') {
|
|
889
|
|
- if (this.title == this.$t('ACinputpowergiven')) {
|
|
890
|
|
- plus.navigator.hideSystemNavigation() //隐藏虚拟按键
|
|
891
|
|
- }
|
|
|
803
|
+
|
|
892
|
804
|
this.$refs.alertDialog.close()
|
|
893
|
805
|
uni.showToast({
|
|
894
|
806
|
title: this.$t('OperationSuccessful'),
|
|
895
|
807
|
icon: 'none',
|
|
896
|
808
|
duration: 2000, // 显示时长,单位为毫秒
|
|
897
|
809
|
});
|
|
|
810
|
+
|
|
898
|
811
|
// setTimeout(() => {
|
|
899
|
812
|
// this.$refs.alertDialog1.open()
|
|
900
|
813
|
// }, 1000);
|
|
|
@@ -908,6 +821,94 @@ this.content = this.$t('popUpContent');
|
|
908
|
821
|
});
|
|
909
|
822
|
}
|
|
910
|
823
|
});
|
|
|
824
|
+ }else if(this.title == this.$t('ACinputpowergiven')){
|
|
|
825
|
+ let data = {
|
|
|
826
|
+ id: "e612195b-cf9e-418b-9e2d-0fbae9b03ffa",
|
|
|
827
|
+ issaveinitvalue: false,
|
|
|
828
|
+ value: this.ACcurrentoutputchoice
|
|
|
829
|
+ }
|
|
|
830
|
+
|
|
|
831
|
+ control(data).then(data => {
|
|
|
832
|
+ console.log(data);
|
|
|
833
|
+ if (data.status == 'ok') {
|
|
|
834
|
+ plus.navigator.hideSystemNavigation() //隐藏虚拟按键
|
|
|
835
|
+ this.$refs.alertDialog.close()
|
|
|
836
|
+ uni.showToast({
|
|
|
837
|
+ title: this.$t('OperationSuccessful'),
|
|
|
838
|
+ icon: 'none',
|
|
|
839
|
+ duration: 2000, // 显示时长,单位为毫秒
|
|
|
840
|
+ });
|
|
|
841
|
+
|
|
|
842
|
+ } else {
|
|
|
843
|
+ this.$refs.alertDialog.close()
|
|
|
844
|
+ uni.showToast({
|
|
|
845
|
+ title: this.$t('operationFailed'),
|
|
|
846
|
+ icon: 'none', // 使用 'none' 图标来表示失败
|
|
|
847
|
+ duration: 2000, // 显示时长,单位为毫秒
|
|
|
848
|
+ });
|
|
|
849
|
+ }
|
|
|
850
|
+ });
|
|
|
851
|
+ }else{
|
|
|
852
|
+ // 下发功率0
|
|
|
853
|
+ let data = {
|
|
|
854
|
+ id: "e612195b-cf9e-418b-9e2d-0fbae9b03ffa",
|
|
|
855
|
+ issaveinitvalue: false,
|
|
|
856
|
+ value: '0'
|
|
|
857
|
+ }
|
|
|
858
|
+ console.log(data);
|
|
|
859
|
+ control(data).then(res => {
|
|
|
860
|
+ console.log(res);
|
|
|
861
|
+ if (res.status == 'ok') {
|
|
|
862
|
+ let info = {
|
|
|
863
|
+ id: "c35c4db0-113f-442a-9e26-728489265fdb",
|
|
|
864
|
+ issaveinitvalue: false,
|
|
|
865
|
+ value: '0'
|
|
|
866
|
+ }
|
|
|
867
|
+ control(info).then(ress => {
|
|
|
868
|
+ console.log(ress);
|
|
|
869
|
+ if (ress.status == 'ok') {
|
|
|
870
|
+
|
|
|
871
|
+ this.$refs.alertDialog.close()
|
|
|
872
|
+ uni.showToast({
|
|
|
873
|
+ title: this.$t('OperationSuccessful'),
|
|
|
874
|
+ icon: 'none',
|
|
|
875
|
+ duration: 2000, // 显示时长,单位为毫秒
|
|
|
876
|
+ });
|
|
|
877
|
+
|
|
|
878
|
+ // setTimeout(() => {
|
|
|
879
|
+ // this.$refs.alertDialog1.open()
|
|
|
880
|
+ // }, 1000);
|
|
|
881
|
+
|
|
|
882
|
+ } else {
|
|
|
883
|
+ this.$refs.alertDialog.close()
|
|
|
884
|
+ uni.showToast({
|
|
|
885
|
+ title: this.$t('operationFailed'),
|
|
|
886
|
+ icon: 'none', // 使用 'none' 图标来表示失败
|
|
|
887
|
+ duration: 2000, // 显示时长,单位为毫秒
|
|
|
888
|
+ });
|
|
|
889
|
+ }
|
|
|
890
|
+ });
|
|
|
891
|
+
|
|
|
892
|
+ } else {
|
|
|
893
|
+ this.$refs.alertDialog.close()
|
|
|
894
|
+ uni.showToast({
|
|
|
895
|
+ title: this.$t('operationFailed'),
|
|
|
896
|
+ icon: 'none', // 使用 'none' 图标来表示失败
|
|
|
897
|
+ duration: 2000, // 显示时长,单位为毫秒
|
|
|
898
|
+ });
|
|
|
899
|
+ }
|
|
|
900
|
+ });
|
|
|
901
|
+
|
|
|
902
|
+
|
|
|
903
|
+
|
|
|
904
|
+
|
|
|
905
|
+
|
|
|
906
|
+
|
|
|
907
|
+
|
|
|
908
|
+ }
|
|
|
909
|
+
|
|
|
910
|
+
|
|
|
911
|
+
|
|
911
|
912
|
|
|
912
|
913
|
},
|
|
913
|
914
|
dialogClose() {
|
|
|
@@ -921,10 +922,7 @@ this.content = this.$t('popUpContent');
|
|
921
|
922
|
console.log(e);
|
|
922
|
923
|
this.segmented = e;
|
|
923
|
924
|
},
|
|
924
|
|
- // AC补点弹窗
|
|
925
|
|
- clickACcurrentoutput(value){
|
|
926
|
|
- this.ACcurrentoutputchoice = value
|
|
927
|
|
- }
|
|
|
925
|
+
|
|
928
|
926
|
},
|
|
929
|
927
|
|
|
930
|
928
|
}
|
|
|
@@ -957,8 +955,8 @@ this.content = this.$t('popUpContent');
|
|
957
|
955
|
height: 56px;
|
|
958
|
956
|
}
|
|
959
|
957
|
.tite{
|
|
960
|
|
- width:166px;
|
|
961
|
|
- height: 50px;
|
|
|
958
|
+ width: 325px;
|
|
|
959
|
+ height: 50px;
|
|
962
|
960
|
|
|
963
|
961
|
}
|
|
964
|
962
|
.time{
|