Merge branch 'paris_france_app' of http://1.95.131.171:3000/zzkj/smart_storage_app into paris_france_app

# Conflicts:
#	common/locales/homePage/ar.js
#	common/locales/homePage/de.js
#	common/locales/homePage/en.js
This commit is contained in:
huangjp
2026-03-26 21:00:53 +08:00
14 changed files with 2259 additions and 2116 deletions

View File

@ -99,6 +99,31 @@ export const formList = [
max: 30,
default: 0,
},
{
type: "Input",
label_zh: "读柴发的周期参数",
label_en: "Read the periodic parameters of the diesel generator",
label_hl: "Lees de periodeparameters van de dieselgenerator",
label_gr: "Lesen Sie die Periodenparameter des Dieselgenerators",
label_fr: "Lire les paramètres de période du générateur diesel",
label_es: "Leer los parámetros de período del generador diésel",
label_al: "اقرأ معلمات الفترة لمولد الديزل",
label_bl: "Przeczytaj parametry okresu generatora diesla",
place_zh: "请输入柴发的周期参数",
place_en: "Please enter the periodic parameters of the diesel generator",
place_hl: "Voer de periodeparameters van de dieselgenerator in",
place_gr: "Bitte geben Sie die Periodenparameter des Dieselgenerators ein",
place_fr: "Veuillez entrer les paramètres de période du générateur diesel",
place_es: "Por favor, introduzca los parámetros de período del generador diésel",
place_al: "الرجاء إدخال معلمات الفترة لمولد الديزل",
place_bl: "Proszę wprowadzić parametry okresu generatora diesla",
prop: "sys_45",
selectArr: [],
sort: 35,
min: 0,
max: 30,
default: 0,
},
{
type: "Input",
label_zh: "储能电表循环周期(单位:100毫秒)",
@ -223,6 +248,37 @@ export const formList = [
min: 0,
max: 30,
default: 0,
},
{
type: "Switch",
label_zh: "柴发开关机",
label_en: "Diesel Generator Start/Stop",
abel_hl: "Dieselgenerator Aan/Uit",
label_gr: "Dieselgenerator Ein/Aus",
label_fr: "Générateur diesel Marche/Arrêt",
label_es: "Generador diésel Encendido/Apagado",
label_al: "مولد ديزل تشغيل/إيقاف",
label_bl: "Generator diesla Włącz/Wyłącz",
value_zh: "",
value_en: "",
value_hl: "",
value_gr: "",
value_fr: "",
value_es: "",
value_al: "",
value_bl: "",
values_zh: "",
values_en: "",
values_hl: "",
values_gr: "",
values_fr: "",
values_es: "",
values_al: "",
values_bl: "",
prop: "sys_44",
selectArr: [], //[]
sort: 85,
default: 0,
},
{
type: "Select",
@ -267,8 +323,8 @@ export const formList = [
value: 1,
},
{
label_zh: "自身ems",
label_en: "oneself ems",
label_zh: "储能启机",
label_en: "estorge start",
label_hl: "zelf ems", //荷兰语
label_gr: "selbst ems", //德文
label_fr: "soi-même ems", //法文
@ -383,7 +439,7 @@ export const formList = [
default: 0,
},
{
type: "Select",
type: "Switch",
label_zh: "计划曲线充放电使能",
label_en: "Plan curve charge and discharge enable",
label_hl: "Plan curve laad- en ontlaadfunctie inschakelen", //荷兰语
@ -392,28 +448,24 @@ export const formList = [
label_es: "Activar carga y descarga de la curva de plan", //西班牙语
label_al: "تفعيل شحن وتفريغ منحنى الخطة", //阿拉伯语
label_bl: "Włącz ładowanie i rozładowanie krzywej planu", //波兰语
place_zh: "请选择",
place_en: "Please select",
place_hl: "Selecteer aub", //荷兰语
place_gr: "Bitte auswählen", //德文
place_fr: "Veuillez sélectionner", //法文
place_es: "Por favor, seleccione", //西班牙语
place_al: "الرجاء التحديد", //阿拉伯语
place_bl: "Proszę wybrać", //波兰语
value_zh: "",
value_en: "",
value_hl: "",
value_gr: "",
value_fr: "",
value_es: "",
value_al: "",
value_bl: "",
values_zh: "",
values_en: "",
values_hl: "",
values_gr: "",
values_fr: "",
values_es: "",
values_al: "",
values_bl: "",
prop: "sys_11",
selectArr: [
{
label_zh: "充放电使能",
label_en: "Charge and discharge enable",
label_hl: "Laad- en ontlaadfunctie inschakelen", //荷兰语
label_gr: "Laden und Entladen aktivieren", //德文
label_fr: "Activer la charge et la décharge", //法文
label_es: "Activar carga y descarga", //西班牙语
label_al: "تفعيل الشحن والتفريغ", //阿拉伯语
label_bl: "Włącz ładowanie i rozładowanie", //波兰语
value: 0,
},
],
selectArr: [],
sort: 110,
default: 0,
},
@ -594,7 +646,7 @@ export const formList = [
selectArr: [],
sort: 170,
min: 0,
max: 30,
max: 500,
default: 0,
},
{
@ -619,7 +671,7 @@ export const formList = [
selectArr: [],
sort: 180,
min: 0,
max: 30,
max: 50,
default: 0,
},
{
@ -644,7 +696,7 @@ export const formList = [
selectArr: [],
sort: 190,
min: 0,
max: 30,
max: 50,
default: 0,
},
{
@ -669,7 +721,7 @@ export const formList = [
selectArr: [],
sort: 200,
min: 0,
max: 30,
max: 50,
default: 0,
},
{
@ -694,7 +746,7 @@ export const formList = [
selectArr: [],
sort: 210,
min: 0,
max: 30,
max: 100,
default: 0,
},
{
@ -719,7 +771,7 @@ export const formList = [
selectArr: [],
sort: 220,
min: 0,
max: 30,
max: 1000,
default: 0,
},
{
@ -744,7 +796,7 @@ export const formList = [
selectArr: [],
sort: 230,
min: 0,
max: 30,
max: 120,
default: 0,
},
{
@ -769,7 +821,7 @@ export const formList = [
selectArr: [],
sort: 240,
min: 0,
max: 30,
max: 60,
default: 0,
},
{
@ -794,7 +846,7 @@ export const formList = [
selectArr: [],
sort: 250,
min: 0,
max: 30,
max: 100,
default: 0,
},
{
@ -819,7 +871,7 @@ export const formList = [
selectArr: [],
sort: 260,
min: 0,
max: 30,
max: 95,
default: 0,
},
{
@ -844,7 +896,7 @@ export const formList = [
selectArr: [],
sort: 270,
min: 0,
max: 30,
max: 90,
default: 0,
},
{
@ -944,7 +996,7 @@ export const formList = [
selectArr: [],
sort: 310,
min: 0,
max: 30,
max: 100,
default: 0,
},
{
@ -969,7 +1021,7 @@ export const formList = [
selectArr: [],
sort: 320,
min: 0,
max: 30,
max: 60,
default: 0,
},
{
@ -994,7 +1046,7 @@ export const formList = [
selectArr: [],
sort: 330,
min: 0,
max: 30,
max: 110,
default: 0,
},
{
@ -1184,7 +1236,7 @@ export const formList = [
selectArr: [],
sort: 380,
min: 0,
max: 30,
max: 100,
default: 0,
},
{
@ -1209,7 +1261,7 @@ export const formList = [
selectArr: [],
sort: 390,
min: 0,
max: 30,
max: 500,
default: 0,
},
{
@ -1292,7 +1344,7 @@ export const formList = [
},
{
type: "Input",
label_zh: "外部光伏充电比例系数(o.1)",
label_zh: "外部光伏充电比例系数(0.1)",
label_en: "External photovoltaic charging ratio coefficient (0.1)",
label_hl: "Externe fotovoltaïsche oplaadsverhoudingscoëfficiënt (0.1)", //荷兰语
label_gr: "Externer photovoltaischer Ladeverhältnis-Koeffizient (0.1)", //德文
@ -1312,7 +1364,7 @@ export const formList = [
selectArr: [],
sort: 420,
min: 0,
max: 30,
max: 100,
default: 0,
},
{
@ -1333,336 +1385,298 @@ export const formList = [
place_es: "Por favor, introduzca", //西班牙语
place_al: "الرجاء إدخال", //阿拉伯语
place_bl: "Wprowadź", //波兰语
prop: "sys_43",
prop: "sys_46",
selectArr: [],
sort: 430,
min: 0,
max: 30,
max: 110,
default: 0,
},
{
type: "Switch",
label_zh: "中自STS保存参数",
label_en: "Save STS Parameters",
label_hl: "STS parameters opslaan",
label_gr: "STS-Parameter speichern",
label_fr: "Enregistrer les paramètres STS",
label_es: "Guardar parámetros STS",
label_al: "حفظ معلمات STS",
label_bl: "Zapisz parametry STS",
value_zh: "",
value_en: "",
value_hl: "",
value_gr: "",
value_fr: "",
value_es: "",
value_al: "",
value_bl: "",
values_zh: "",
values_en: "",
values_hl: "",
values_gr: "",
values_fr: "",
values_es: "",
values_al: "",
values_bl: "",
prop: "sys_40",
selectArr: [],
sort: 431,
default: 0,
},
{
type: "Switch",
label_zh: "中自STS开关故障清除",
label_en: "Clear STS Switch Fault",
label_hl: "STS schakelaar fout wissen",
label_gr: "STS-Schalter Fehler löschen",
label_fr: "Effacer défaut commutateur STS",
label_es: "Borrar fallo del interruptor STS",
label_al: "مسح خطأ مفتاح STS",
label_bl: "Wyczyść błąd przełącznika STS",
value_zh: "",
value_en: "",
value_hl: "",
value_gr: "",
value_fr: "",
value_es: "",
value_al: "",
value_bl: "",
values_zh: "",
values_en: "",
values_hl: "",
values_gr: "",
values_fr: "",
values_es: "",
values_al: "",
values_bl: "",
prop: "sys_47",
selectArr: [],
sort: 432,
default: 0,
},
{
type: "Input",
label_zh: "备用参数1",
label_en: "Parameter 1",
label_hl: "Parameter 1", //荷兰语
label_gr: "Parameter 1", //德文
label_fr: "Paramètre 1", //法文
label_es: "Parámetro 1", //西班牙语
label_al: "معلمة 1", //阿拉伯语
label_bl: "Parametr 1", //波兰语
place_zh: "请输入", //中文
place_en: "Please enter",//英文
place_hl: "Voer in",//荷兰语
place_gr: "Geben Sie ein", //德文
place_fr: "Veuillez entrer", //法文
place_es: "Por favor, introduzca", //西班牙语
place_al: "الرجاء إدخال", //阿拉伯语
place_bl: "Wprowadź", //波兰语
prop: "Parameter_1",
label_zh: "中自STS电网欠压阈值(单位:0.1V)",
label_en: "STS Grid Undervoltage Threshold (Unit: 0.1V)",
label_hl: "STS net onderspanning drempel (Eenheid: 0.1V)",
label_gr: "STS Netz-Unterspannungsschwelle (Einheit: 0.1V)",
label_fr: "Seuil de sous-tension réseau STS (Unité: 0.1V)",
label_es: "Umbral de subtensión de red STS (Unidad: 0.1V)",
label_al: "حد انخفاض جهد الشبكة STS (الوحدة: 0.1V)",
label_bl: "Próg zaniżonego napięcia sieci STS (Jednostka: 0.1V)",
place_zh: "请输入",
place_en: "Please enter",
place_hl: "Voer in",
place_gr: "Geben Sie ein",
place_fr: "Veuillez entrer",
place_es: "Por favor, introduzca",
place_al: "الرجاء إدخال",
place_bl: "Wprowadź",
prop: "sys_48",
selectArr: [],
sort: 433,
min: 0,
max: 65535,
default: 0,
},
{
type: "Input",
label_zh: "中自STS电网过压阈值(单位:0.1V)",
label_en: "STS Grid Overvoltage Threshold (Unit: 0.1V)",
label_hl: "STS net overspanning drempel (Eenheid: 0.1V)",
label_gr: "STS Netz-Überspannungsschwelle (Einheit: 0.1V)",
label_fr: "Seuil de surtension réseau STS (Unité: 0.1V)",
label_es: "Umbral de sobretensión de red STS (Unidad: 0.1V)",
label_al: "حد ارتفاع جهد الشبكة STS (الوحدة: 0.1V)",
label_bl: "Próg podwyższonego napięcia sieci STS (Jednostka: 0.1V)",
place_zh: "请输入",
place_en: "Please enter",
place_hl: "Voer in",
place_gr: "Geben Sie ein",
place_fr: "Veuillez entrer",
place_es: "Por favor, introduzca",
place_al: "الرجاء إدخال",
place_bl: "Wprowadź",
prop: "sys_49",
selectArr: [],
sort: 434,
min: 0,
max: 65535,
default: 0,
},
{
type: "Input",
label_zh: "中自STS电网欠频阈值(单位:0.01Hz)",
label_en: "STS Grid Underfrequency Threshold (Unit: 0.01Hz)",
label_hl: "STS net onderfrequentie drempel (Eenheid: 0.01Hz)",
label_gr: "STS Netz-Unterfrequenzschwelle (Einheit: 0.01Hz)",
label_fr: "Seuil de sous-fréquence réseau STS (Unité: 0.01Hz)",
label_es: "Umbral de subfrecuencia de red STS (Unidad: 0.01Hz)",
label_al: "حد انخفاض تردد الشبكة STS (الوحدة: 0.01Hz)",
label_bl: "Próg zaniżonej częstotliwości sieci STS (Jednostka: 0.01Hz)",
place_zh: "请输入",
place_en: "Please enter",
place_hl: "Voer in",
place_gr: "Geben Sie ein",
place_fr: "Veuillez entrer",
place_es: "Por favor, introduzca",
place_al: "الرجاء إدخال",
place_bl: "Wprowadź",
prop: "sys_50",
selectArr: [],
sort: 435,
min: 0,
max: 65535,
default: 0,
},
{
type: "Input",
label_zh: "中自STS电网过频阈值(单位:0.01Hz)",
label_en: "STS Grid Overfrequency Threshold (Unit: 0.01Hz)",
label_hl: "STS net overfrequentie drempel (Eenheid: 0.01Hz)",
label_gr: "STS Netz-Überfrequenzschwelle (Einheit: 0.01Hz)",
label_fr: "Seuil de sur-fréquence réseau STS (Unité: 0.01Hz)",
label_es: "Umbral de sobrefrecuencia de red STS (Unidad: 0.01Hz)",
label_al: "حد ارتفاع تردد الشبكة STS (الوحدة: 0.01Hz)",
label_bl: "Próg podwyższonej częstotliwości sieci STS (Jednostka: 0.01Hz)",
place_zh: "请输入",
place_en: "Please enter",
place_hl: "Voer in",
place_gr: "Geben Sie ein",
place_fr: "Veuillez entrer",
place_es: "Por favor, introduzca",
place_al: "الرجاء إدخال",
place_bl: "Wprowadź",
prop: "sys_51",
selectArr: [],
sort: 436,
min: 0,
max: 65535,
default: 0,
},
{
type: "Input",
label_zh: "中自STS电网过流阈值(单位:0.01A)",
label_en: "STS Grid Overcurrent Threshold (Unit: 0.01A)",
label_hl: "STS net overstroom drempel (Eenheid: 0.01A)",
label_gr: "STS Netz-Überstromschwelle (Einheit: 0.01A)",
label_fr: "Seuil de surintensité réseau STS (Unité: 0.01A)",
label_es: "Umbral de sobrecorriente de red STS (Unidad: 0.01A)",
label_al: "حد ارتفاع تيار الشبكة STS (الوحدة: 0.01A)",
label_bl: "Próg nadprądowy sieci STS (Jednostka: 0.01A)",
place_zh: "请输入",
place_en: "Please enter",
place_hl: "Voer in",
place_gr: "Geben Sie ein",
place_fr: "Veuillez entrer",
place_es: "Por favor, introduzca",
place_al: "الرجاء إدخال",
place_bl: "Wprowadź",
prop: "sys_52",
selectArr: [],
sort: 437,
min: 0,
max: 65535,
default: 0,
},
{
type: "Input",
label_zh: "中自STS负载欠压阈值(单位:0.1V)",
label_en: "STS Load Undervoltage Threshold (Unit: 0.1V)",
label_hl: "STS belasting onderspanning drempel (Eenheid: 0.1V)",
label_gr: "STS Last-Unterspannungsschwelle (Einheit: 0.1V)",
label_fr: "Seuil de sous-tension charge STS (Unité: 0.1V)",
label_es: "Umbral de subtensión de carga STS (Unidad: 0.1V)",
label_al: "حد انخفاض جهد الحمل STS (الوحدة: 0.1V)",
label_bl: "Próg zaniżonego napięcia obciążenia STS (Jednostka: 0.1V)",
place_zh: "请输入",
place_en: "Please enter",
place_hl: "Voer in",
place_gr: "Geben Sie ein",
place_fr: "Veuillez entrer",
place_es: "Por favor, introduzca",
place_al: "الرجاء إدخال",
place_bl: "Wprowadź",
prop: "sys_53",
selectArr: [],
sort: 438,
min: 0,
max: 65535,
default: 0,
},
{
type: "Input",
label_zh: "中自STS相位差阈值(单位:0.1°)",
label_en: "STS Phase Difference Threshold (Unit: 0.1°)",
label_hl: "STS faseverschil drempel (Eenheid: 0.1°)",
label_gr: "STS Phasendifferenzschwelle (Einheit: 0.1°)",
label_fr: "Seuil de différence de phase STS (Unité: 0.1°)",
label_es: "Umbral de diferencia de fase STS (Unidad: 0.1°)",
label_al: "حد فرق الطور STS (الوحدة: 0.1°)",
label_bl: "Próg różnicy faz STS (Jednostka: 0.1°)",
place_zh: "请输入",
place_en: "Please enter",
place_hl: "Voer in",
place_gr: "Geben Sie ein",
place_fr: "Veuillez entrer",
place_es: "Por favor, introduzca",
place_al: "الرجاء إدخال",
place_bl: "Wprowadź",
prop: "sys_54",
selectArr: [],
sort: 439,
min: 0,
max: 65535,
default: 0,
},
{
type: "Input",
label_zh: "中自STS频率差阈值(单位:0.1Hz)",
label_en: "STS Frequency Difference Threshold (Unit: 0.1Hz)",
label_hl: "STS frequentieverschil drempel (Eenheid: 0.1Hz)",
label_gr: "STS Frequenzdifferenzschwelle (Einheit: 0.1Hz)",
label_fr: "Seuil de différence de fréquence STS (Unité: 0.1Hz)",
label_es: "Umbral de diferencia de frecuencia STS (Unidad: 0.1Hz)",
label_al: "حد فرق التردد STS (الوحدة: 0.1Hz)",
label_bl: "Próg różnicy częstotliwości STS (Jednostka: 0.1Hz)",
place_zh: "请输入",
place_en: "Please enter",
place_hl: "Voer in",
place_gr: "Geben Sie ein",
place_fr: "Veuillez entrer",
place_es: "Por favor, introduzca",
place_al: "الرجاء إدخال",
place_bl: "Wprowadź",
prop: "sys_55",
selectArr: [],
sort: 440,
min: 0,
max: 30,
max: 65535,
default: 0,
},
{
type: "Input",
label_zh: "备用参数2",
label_en: "Parameter 2",
label_hl: "Parameter 2", //荷兰语
label_gr: "Parameter 2", //德文
label_fr: "Paramètre 2", //法文
label_es: "Parámetro 2", //西班牙语
label_al: "معلمة 2", //阿拉伯语
label_bl: "Parametr 2", //波兰语
place_zh: "请输入", //中文
place_en: "Please enter",//英文
place_hl: "Voer in",//荷兰语
place_gr: "Geben Sie ein", //德文
place_fr: "Veuillez entrer", //法文
place_es: "Por favor, introduzca", //西班牙语
place_al: "الرجاء إدخال", //阿拉伯语
place_bl: "Wprowadź", //波兰语
prop: "Parameter_2",
label_zh: "中自STS电压系数阈值(单位:0.01)",
label_en: "STS Voltage Coefficient Threshold (Unit: 0.01)",
label_hl: "STS spanningscoëfficiënt drempel (Eenheid: 0.01)",
label_gr: "STS Spannungskoeffizientenschwelle (Einheit: 0.01)",
label_fr: "Seuil de coefficient de tension STS (Unité: 0.01)",
label_es: "Umbral de coeficiente de tensión STS (Unidad: 0.01)",
label_al: "حد معامل الجهد STS (الوحدة: 0.01)",
label_bl: "Próg współczynnika napięcia STS (Jednostka: 0.01)",
place_zh: "请输入",
place_en: "Please enter",
place_hl: "Voer in",
place_gr: "Geben Sie ein",
place_fr: "Veuillez entrer",
place_es: "Por favor, introduzca",
place_al: "الرجاء إدخال",
place_bl: "Wprowadź",
prop: "sys_56",
selectArr: [],
sort: 450,
sort: 441,
min: 0,
max: 30,
default: 0,
},
{
type: "Input",
label_zh: "备用参数3",
label_en: "Parameter 3",
label_hl: "Parameter 3", //荷兰语
label_gr: "Parameter 3", //德文
label_fr: "Paramètre 3", //法文
label_es: "Parámetro 3", //西班牙语
label_al: "معلمة 3", //阿拉伯语
label_bl: "Parametr 3", //波兰语
place_zh: "请输入", //中文
place_en: "Please enter",//英文
place_hl: "Voer in",//荷兰语
place_gr: "Geben Sie ein", //德文
place_fr: "Veuillez entrer", //法文
place_es: "Por favor, introduzca", //西班牙语
place_al: "الرجاء إدخال", //阿拉伯语
place_bl: "Wprowadź", //波兰语
prop: "Parameter_3",
selectArr: [],
sort: 460,
min: 0,
max: 30,
default: 0,
},
{
type: "Input",
label_zh: "备用参数4",
label_en: "Parameter 4",
label_hl: "Parameter 4", //荷兰语
label_gr: "Parameter 4", //德文
label_fr: "Paramètre 4", //法文
label_es: "Parámetro 4", //西班牙语
label_al: "معلمة 4", //阿拉伯语
label_bl: "Parametr 4", //波兰语
place_zh: "请输入", //中文
place_en: "Please enter",//英文
place_hl: "Voer in",//荷兰语
place_gr: "Geben Sie ein", //德文
place_fr: "Veuillez entrer", //法文
place_es: "Por favor, introduzca", //西班牙语
place_al: "الرجاء إدخال", //阿拉伯语
place_bl: "Wprowadź", //波兰语
prop: "Parameter_4",
selectArr: [],
sort: 470,
min: 0,
max: 30,
default: 0,
},
{
type: "Input",
label_zh: "备用参数5",
label_en: "Parameter 5",
label_hl: "Parameter 5", //荷兰语
label_gr: "Parameter 5", //德文
label_fr: "Paramètre 5", //法文
label_es: "Parámetro 5", //西班牙语
label_al: "معلمة 5", //阿拉伯语
label_bl: "Parametr 5", //波兰语
place_zh: "请输入", //中文
place_en: "Please enter",//英文
place_hl: "Voer in",//荷兰语
place_gr: "Geben Sie ein", //德文
place_fr: "Veuillez entrer", //法文
place_es: "Por favor, introduzca", //西班牙语
place_al: "الرجاء إدخال", //阿拉伯语
place_bl: "Wprowadź", //波兰语
prop: "Parameter_5",
selectArr: [],
sort: 480,
min: 0,
max: 30,
default: 0,
},
{
type: "Input",
label_zh: "备用参数6",
label_en: "Parameter 6",
label_hl: "Parameter 6", //荷兰语
label_gr: "Parameter 6", //德文
label_fr: "Paramètre 6", //法文
label_es: "Parámetro 6", //西班牙语
label_al: "معلمة 6", //阿拉伯语
label_bl: "Parametr 6", //波兰语
place_zh: "请输入", //中文
place_en: "Please enter",//英文
place_hl: "Voer in",//荷兰语
place_gr: "Geben Sie ein", //德文
place_fr: "Veuillez entrer", //法文
place_es: "Por favor, introduzca", //西班牙语
place_al: "الرجاء إدخال", //阿拉伯语
place_bl: "Wprowadź", //波兰语
prop: "Parameter_6",
selectArr: [],
sort: 490,
min: 0,
max: 30,
default: 0,
},
{
type: "Input",
label_zh: "备用参数7",
label_en: "Parameter 7",
label_hl: "Parameter 7", //荷兰语
label_gr: "Parameter 7", //德文
label_fr: "Paramètre 7", //法文
label_es: "Parámetro 7", //西班牙语
label_al: "معلمة 7", //阿拉伯语
label_bl: "Parametr 7", //波兰语
place_zh: "请输入", //中文
place_en: "Please enter",//英文
place_hl: "Voer in",//荷兰语
place_gr: "Geben Sie ein", //德文
place_fr: "Veuillez entrer", //法文
place_es: "Por favor, introduzca", //西班牙语
place_al: "الرجاء إدخال", //阿拉伯语
place_bl: "Wprowadź", //波兰语
prop: "Parameter_7",
selectArr: [],
sort: 500,
min: 0,
max: 30,
default: 0,
},
{
type: "Input",
label_zh: "备用参数8",
label_en: "Parameter 8",
label_hl: "Parameter 8", //荷兰语
label_gr: "Parameter 8", //德文
label_fr: "Paramètre 8", //法文
label_es: "Parámetro 8", //西班牙语
label_al: "معلمة 8", //阿拉伯语
label_bl: "Parametr 8", //波兰语
place_zh: "请输入", //中文
place_en: "Please enter",//英文
place_hl: "Voer in",//荷兰语
place_gr: "Geben Sie ein", //德文
place_fr: "Veuillez entrer", //法文
place_es: "Por favor, introduzca", //西班牙语
place_al: "الرجاء إدخال", //阿拉伯语
place_bl: "Wprowadź", //波兰语
prop: "Parameter_8",
selectArr: [],
sort: 510,
min: 0,
max: 30,
default: 0,
},
{
type: "Input",
label_zh: "备用参数9",
label_en: "Parameter 9",
label_hl: "Parameter 9", //荷兰语
label_gr: "Parameter 9", //德文
label_fr: "Paramètre 9", //法文
label_es: "Parámetro 9", //西班牙语
label_al: "معلمة 9", //阿拉伯语
label_bl: "Parametr 9", //波兰语
place_zh: "请输入", //中文
place_en: "Please enter",//英文
place_hl: "Voer in",//荷兰语
place_gr: "Geben Sie ein", //德文
place_fr: "Veuillez entrer", //法文
place_es: "Por favor, introduzca", //西班牙语
place_al: "الرجاء إدخال", //阿拉伯语
place_bl: "Wprowadź", //波兰语
prop: "Parameter_9",
selectArr: [],
sort: 520,
min: 0,
max: 30,
default: 0,
},
{
type: "Input",
label_zh: "备用参数10",
label_en: "Parameter 10",
label_hl: "Parameter 10", //荷兰语
label_gr: "Parameter 10", //德文
label_fr: "Paramètre 10", //法文
label_es: "Parámetro 10", //西班牙语
label_al: "معلمة 10", //阿拉伯语
label_bl: "Parametr 10", //波兰语
place_zh: "请输入", //中文
place_en: "Please enter",//英文
place_hl: "Voer in",//荷兰语
place_gr: "Geben Sie ein", //德文
place_fr: "Veuillez entrer", //法文
place_es: "Por favor, introduzca", //西班牙语
place_al: "الرجاء إدخال", //阿拉伯语
place_bl: "Wprowadź", //波兰语
prop: "Parameter_10",
selectArr: [],
sort: 530,
min: 0,
max: 30,
default: 0,
},
{
type: "Input",
label_zh: "备用参数11",
label_en: "Parameter 11",
label_hl: "Parameter 11", //荷兰语
label_gr: "Parameter 11", //德文
label_fr: "Paramètre 11", //法文
label_es: "Parámetro 11", //西班牙语
label_al: "معلمة 11", //阿拉伯语
label_bl: "Parametr 11", //波兰语
place_zh: "请输入", //中文
place_en: "Please enter",//英文
place_hl: "Voer in",//荷兰语
place_gr: "Geben Sie ein", //德文
place_fr: "Veuillez entrer", //法文
place_es: "Por favor, introduzca", //西班牙语
place_al: "الرجاء إدخال", //阿拉伯语
place_bl: "Wprowadź", //波兰语
prop: "Parameter_11",
selectArr: [],
sort: 540,
min: 0,
max: 30,
default: 0,
},
{
type: "Input",
label_zh: "备用参数12",
label_en: "Parameter 12",
label_hl: "Parameter 12", //荷兰语
label_gr: "Parameter 12", //德文
label_fr: "Paramètre 12", //法文
label_es: "Parámetro 12", //西班牙语
label_al: "معلمة 12", //阿拉伯语
label_bl: "Parametr 12", //波兰语
place_zh: "请输入", //中文
place_en: "Please enter",//英文
place_hl: "Voer in",//荷兰语
place_gr: "Geben Sie ein", //德文
place_fr: "Veuillez entrer", //法文
place_es: "Por favor, introduzca", //西班牙语
place_al: "الرجاء إدخال", //阿拉伯语
place_bl: "Wprowadź", //波兰语
prop: "Parameter_12",
selectArr: [],
sort: 550,
min: 0,
max: 30,
default: 0,
},
{
type: "Input",
label_zh: "备用参数13",
label_en: "Parameter 13",
label_hl: "Parameter 13", //荷兰语
label_gr: "Parameter 13", //德文
label_fr: "Paramètre 13", //法文
label_es: "Parámetro 13", //西班牙语
label_al: "معلمة 13", //阿拉伯语
label_bl: "Parametr 13", //波兰语
place_zh: "请输入", //中文
place_en: "Please enter",//英文
place_hl: "Voer in",//荷兰语
place_gr: "Geben Sie ein", //德文
place_fr: "Veuillez entrer", //法文
place_es: "Por favor, introduzca", //西班牙语
place_al: "الرجاء إدخال", //阿拉伯语
place_bl: "Wprowadź", //波兰语
prop: "Parameter_13",
selectArr: [],
sort: 560,
min: 0,
max: 30,
max: 65535,
default: 0,
},
{

View File

@ -176,7 +176,9 @@ const install = (Vue, vm) => {
getStationListByStatus: (params = {}) =>
vm.$u.post(config.adminPath + "/business/station/findListByStationStatus ", params),
getStationPostionData: (params = {}) =>
vm.$u.post(config.adminPath + "/business/dynamicConfig/pointListData", params)
vm.$u.post(config.adminPath + "/business/dynamicConfig/pointListData", params),
getStationPostionSn: (params = {}) =>
vm.$u.post(config.adminPath + "/business/point/getSN", params)
},
//设备

View File

@ -271,6 +271,7 @@ export default {
cancel: 'الغاء',
messageDetail: 'تفاصيل الرسالة',
operateSuccess: 'نجح العملية',
operateFail: 'فشل العملية',
messageReaded: 'تمت قراءة هذه الرسالة، لا داعي لتكرار الإجراء'
},
device: {
@ -519,6 +520,7 @@ export default {
selectPlanCurveTem: 'اختر قالب الجدول',
deliverErrorTip: 'تجاوز طاقة الشحن والتفريغ الطاقة المقدرة، يرجى التحقق من إعدادات منحنى الجدول الزمني!',
deliverTip: 'سواء تأكيد إصدار الأمر?'
policyTitle: 'إصدار الاستراتيجية'
}
}

View File

@ -272,6 +272,7 @@ export default {
cancel: 'Abbrechen',
messageDetail: 'Nachrichtendetails',
operateSuccess: 'Aktion erfolgreich',
operateFail: 'Aktion fehlgeschlagen',
messageReaded: 'Diese Nachricht wurde bereits gelesen, keine Wiederholung der Aktion erforderlich'
},
device: {
@ -556,5 +557,6 @@ export default {
selectPlanCurveTem: 'Planvorlage wählen',
deliverErrorTip: 'Lade-/Entladeleistung größer als Nennleistung, bitte überprüfen Sie die Plan-Kurven-Einstellungen!',
deliverTip: 'Befehlssendung wirklich bestätigen?'
policyTitle: 'Strategieübertragung'
}
};

View File

@ -257,6 +257,7 @@ export default {
sureRead: 'Confirm as read',
cancel: 'Cancel',
operateSuccess: 'Operation successful',
operateFail: 'Operation failed',
messageReaded: 'This message has been read. No need to repeat the'
},
device: {
@ -523,5 +524,6 @@ export default {
selectPlanCurveTem: 'Select schedule template',
deliverErrorTip: 'Charging/discharging power exceeds rated power. Please confirm the planned curve.',
deliverTip: 'Confirm command issuance?'
policyTitle: 'Strategy Issuance'
}
}

View File

@ -257,6 +257,7 @@ export default {
sureRead: 'Confirmar como leído',
cancel: 'Cancelar',
operateSuccess: 'Operación realizada con éxito',
operateFail: 'Operación fallida',
messageReaded: 'Este mensaje ya fue leído; no es necesario repetir la operación'
},
device: {
@ -479,6 +480,7 @@ export default {
confirmTime: 'Hora de confirmación'
},
policy: {
policyTitle: 'Estrategia de envío',
planCurve: 'Curva planificada',
planCurveTem: 'Plantilla programa',
IssueDevice: 'Equipo destino',

View File

@ -257,6 +257,7 @@ export default {
sureRead: 'Confirmer la lecture',
cancel: 'Annuler',
operateSuccess: 'Opération réussie',
operateFail: 'Opération échouée',
messageReaded: "La lecture du message a été effectuée. Aucune répétition n'est nécessaire !"
},
device: {
@ -479,6 +480,7 @@ export default {
confirmTime: 'Heure de confirmation'
},
policy: {
policyTitle: 'Stratégie de distribution',
planCurve: 'Courbe programmée',
planCurveTem: 'Modèle de planning',
IssueDevice: "Équipement cible",

View File

@ -271,6 +271,7 @@ export default {
cancel: 'Anuluj',
messageDetail: 'Szczegóły wiadomości',
operateSuccess: 'Operacja zakończona sukcesem',
operateFail: 'Operacja nie powiodła się',
messageReaded: 'Wiadomość została odczytana, nie ma potrzeby powtarzania akcji.'
},
device: {
@ -505,6 +506,7 @@ export default {
confirmTime: 'Czas potwierdzenia'
},
policy: {
policyTitle: 'Strategia dystrybucji',
planCurve: 'Krzywa planowania',
planCurveTem: 'Szablon harmonogramu',
IssueDevice: 'Urządzenie docelowe',

View File

@ -265,6 +265,7 @@ export default {
cancel: '取消',
messageDetail: '消息详情',
operateSuccess: '操作成功',
operateFail: '操作失败',
messageReaded: '该消息已读,无需重复操作'
},
device: {
@ -549,5 +550,6 @@ export default {
selectPlanCurveTem: '请选择计划曲线模板',
deliverErrorTip: '充放电功率大于额定功率,请确认计划曲线设置!',
deliverTip: '是否确定下发命令?',
policyTitle: '策略下发',
}
};

View File

@ -6,7 +6,7 @@ Vue.config.productionTip = false
App.mpType = 'app'
// 引入全局 uView 框架
import uView from 'uview-ui'
import uView from './uview-ui'
Vue.use(uView)
@ -18,7 +18,7 @@ let vuexStore = require('@/store/$u.mixin.js')
Vue.mixin(vuexStore)
// 引入 uView 对小程序分享的 mixin 封装
let mpShare = require('uview-ui/libs/mixin/mpShare.js')
let mpShare = require('./uview-ui/libs/mixin/mpShare.js')
Vue.mixin(mpShare)
// Vue i18n 国际化

View File

@ -97,6 +97,7 @@
"navigationStyle": "custom"
}
}
]
},

View File

@ -1,16 +1,30 @@
<template>
<view style="height: 100vh">
<view class="">
<u-navbar title="策略下发" :is-back="true" :background="background" :border-bottom="false"
:custom-back="toback">
<u-navbar
:title="$t('homePage.policy.policyTitle')"
:is-back="true"
title-color="#FFF"
:background="background"
:border-bottom="false"
:custom-back="toback"
>
</u-navbar>
</view>
<view class="policeForm">
<u-form ref="form" labelPosition="top">
<view class="" v-for="(item, index) in smallArr" :key="index">
<view class="" v-if="item.type == 'Input'">
<u-form-item :label="item[`label_${lang}`]" :prop="item.prop">
<u-input :min="item.min" :max="item.max" v-model.number="item.value" type="number"
:placeholder="item[`place_${lang}`]" @input="handleInput(item, $event)" />
<u-input
:key="'input_' + item.prop + '_' + item.inputKey"
:min="item.min"
:max="item.max"
:value="item.value"
type="number"
:placeholder="item[`place_${lang}`]"
@input="handleInput(item, $event)"
/>
</u-form-item>
</view>
<view class="" v-if="item.type == 'Switch'">
@ -18,117 +32,160 @@
<u-switch :size="40" v-model="item.value"></u-switch>
</u-form-item>
</view>
<view class="" v-if="item.type == 'Select'" @click="selectShow(item, index)">
<view class="" v-if="item.type == 'Select'">
<u-form-item :label="item[`label_${lang}`]" :prop="item.prop">
<view class="" v-show="false">
<u-input v-model="item.value" disabled @click="selectShow(item, index)" />
<u-input
v-model="item.value"
disabled
@click="selectShow(item, index)"
/>
</view>
<view class="">
<view class="select-value" @click.stop="selectShow(item, index)">
{{ item.selectLabel || $t("homePage.alarm.placeSelect") }}
</view>
<u-select :key="item.prop" @confirm="confirm($event, item)" v-model="item.isShow"
:list="getSelectList(item)"></u-select>
<u-select
:key="item.prop"
@confirm="confirm($event, item)"
v-model="item.isShow"
:list="getSelectList(item)"
></u-select>
</u-form-item>
</view>
</view>
</u-form>
<button @click="submitDevice" type="success" size="mini" style="
<button
@click="submitDevice"
type="success"
size="mini"
style="
background-color: #009458;
padding: 10rpx 0;
color: #fff;
margin-top: 40rpx;
width: 100%;
">
"
>
{{ $t("homePage.mine.submit") }}
</button>
</view>
<u-toast ref="uToast" />
</view>
</template>
<script>
import {
formList
} from "@/common/form.js";
import {
Langlist
} from "@/common/lang";
import { formList } from "@/common/form.js";
import { Langlist } from "@/common/lang";
import mqtt from "@/uni_modules/leliven-mqtt/index.js";
import pako from "pako";
export default {
data() {
return {
formList: formList,
background: {
backgroundColor: "#0EA17E",
},
lang: 'en',
mqttClient: null,
backData: {},
smallArr: [],
user: {
username: 'admin', // 设置用户名
password: 'zzkj@688737' // 设置密码
}
username: "admin", // 设置用户名
password: "zzkj@688737", // 设置密码
},
};
},
computed: {
language() {
return this.$store.state.vuex_language
lang() {
return (
Langlist.find((v) => v.value == this.$store.state.vuex_language).prop ||
"en"
);
},
currentStation() {
console.log(this.vuex_currentStation)
return this.vuex_currentStation;
},
},
onShow() {
this.initmqttClient()
onLoad() {
this.getSn();
},
methods: {
getSn() {
this.$u.api.station
.getStationPostionSn({
stationId: this.currentStation.id,
})
.then((res) => {
this.sn = res.data[0]?.sn;
this.initmqttClient();
});
},
initmqttClient() {
console.log(this.lang);
console.log(this.currentStation);
// 初始化客户端连接地址
// #ifdef H5
let mqttClient = mqtt.connect('ws://13.39.200.14:8083/mqtt', {
...this.user
})
let mqttClient = mqtt.connect("ws://1.95.170.86:8083/mqtt", {
...this.user,
});
// #endif
// #ifdef MP-WEIXIN||APP-PLUS
let mqttClient = mqtt.connect('wx://13.39.200.14:8083/mqtt', {
...this.user
})
let mqttClient = mqtt.connect("wx://1.95.170.86:8083/mqtt", {
...this.user,
});
// #endif
console.log(mqttClient,'888')
this.mqttClient = mqttClient
this.mqttClient = mqttClient;
// 连接MQ服务
mqttClient.on('connect', function(res) {
console.log('连接成功')
console.log(res)
mqttClient
.on("connect", (res) => {
console.log("连接成功");
// 订阅主题
mqttClient.subscribe('presence', function(err) {
mqttClient.subscribe(`1/ems/${this.sn}/control/response`, (err) => {
console.log(`1/app/${this.sn}/control/request`);
if (!err) {
// 订阅成功
mqttClient.publish('presence', 'hello mqtt')
mqttClient.publish(
`1/app/${this.sn}/control/request`,
JSON.stringify({
fun: "GET",
type: "WJ_Get_NewControlSystem",
content: 0,
}),
);
}
});
})
}).on('reconnect', function() {
console.log('重新连接')
}).on('error', function() {
console.log('连接失败')
}).on('end', function() {
console.log('连接End')
}).on('message', function(topic, message) {
// 收到MQ消息
console.log(message.toString())
.on("reconnect", function () {
console.log("重新连接");
})
.on("error", function () {
console.log("连接失败");
})
.on("end", function () {
console.log("连接End");
})
.on("message", (topic, message) => {
console.log(this.decodeGzipBase64(message.toString()), "111");
let data = this.decodeGzipBase64(message.toString());
if (data.content && data.content.params) {
this.control(data.content);
} else if (data.content == 1) {
this.$refs.uToast.show({
title: this.$t("homePage.mine.operateSuccess"),
type: "success",
});
} else {
uni.showToast({
title: this.$t("homePage.mine.operateFail"),
icon: "none",
});
}
});
},
decodeGzipBase64(base64Str) {
// 1. base64 → Uint8Array
const binaryStr = atob(base64Str);
@ -141,94 +198,134 @@
// 2. gunzip 解压
const decompressed = pako.ungzip(bytes, {
to: "string"
to: "string",
});
// 3. 转 JSON如果是 JSON
return JSON.parse(decompressed);
},
getSelectList(item) {
if (item.selectArr && item.selectArr.length > 0) {
return item.selectArr.map(option => ({
return item.selectArr.map((option) => ({
value: option.value.toString(),
label: option[`label_${this.lang}`] || option.label
}))
label: option[`label_${this.lang}`] || option.label,
}));
}
return []
return [];
},
control(NewControlSystemShow_data) {
this.formList.forEach(item => {
if (item.type == "Switch") {
item.value = NewControlSystemShow_data?.params[item.prop] ? true : false
} else {
item.value = NewControlSystemShow_data?.params[item.prop] || item.default
console.log(NewControlSystemShow_data, "123");
this.formList.forEach((item) => {
if (
item.type == "Switch" &&
NewControlSystemShow_data?.smallScreen?.includes(item.prop)
) {
this.$set(
item,
"value",
NewControlSystemShow_data?.params[item.prop] ? true : false,
);
}
if (item.type == 'Select') {
item.selectLabel = item.selectArr.find(v => v.value == item.value)?.[`label_${this.lang}`]
if (
item.type == "Input" &&
NewControlSystemShow_data?.smallScreen?.includes(item.prop)
) {
this.$set(
item,
"value",
NewControlSystemShow_data?.params[item.prop] ?? item.default,
);
}
item.isShow = false
})
this.backData = NewControlSystemShow_data
this.smallArr = this.formList.filter(v => NewControlSystemShow_data?.smallScreen.includes(v.prop))
if (
item.type == "Select" &&
NewControlSystemShow_data?.smallScreen?.includes(item.prop)
) {
const newValue =
NewControlSystemShow_data?.params[item.prop] ?? item.default;
this.$set(item, "value", newValue);
item.selectLabel = item.selectArr.find((v) => v.value == newValue)?.[
`label_${this.lang}`
];
}
this.$set(item, "isShow", false);
});
this.backData = NewControlSystemShow_data;
this.smallArr = this.formList.filter((v) =>
NewControlSystemShow_data?.smallScreen.includes(v.prop),
);
console.log(this.smallArr, "234");
},
confirm(val, item) {
if (val && val.length > 0) {
item.value = val[0].value
item.selectLabel = val[0].label
this.$set(item, "value", val[0].value);
this.$set(item, "selectLabel", val[0].label);
}
item.isShow = false
this.$set(item, "isShow", false);
},
handleInput(item, event) {
handleInput(item, value) {
try {
let inputValue = event.detail.value;
let iptval = String(inputValue).replace(/[^0-9.]/g, '');
const parts = iptval.split('.');
// u-input 组件 @input 事件直接传递 value 值,不是 event 对象
let iptval = String(value || "").replace(/[^0-9.]/g, "");
const parts = iptval.split(".");
if (parts.length > 2) {
iptval = parts[0] + '.' + parts.slice(1).join('');
iptval = parts[0] + "." + parts.slice(1).join("");
}
if (!iptval || iptval === '.') {
if (!iptval || iptval === ".") {
item.value = 0;
return;
}
let numVal = Number(iptval);
if (item.min !== undefined && item.min !== null) {
numVal = Math.max(numVal, item.min);
}
if (item.max !== undefined && item.max !== null) {
numVal = Math.min(numVal, item.max);
}
numVal = isNaN(numVal) ? 0 : numVal;
// 检查是否需要强制更新(值被限制)
let needForceUpdate = false;
if (item.min !== undefined && item.min !== null && numVal < item.min) {
numVal = item.min;
needForceUpdate = true;
}
if (item.max !== undefined && item.max !== null && numVal > item.max) {
numVal = item.max;
needForceUpdate = true;
}
item.value = numVal;
// 如果值被限制,强制重新渲染输入框
if (needForceUpdate) {
this.$set(item, "inputKey", (item.inputKey || 0) + 1);
}
} catch (error) {
console.log('handleInput方法错误:', error);
console.log("handleInput方法错误:", error);
}
},
toback() {
uni.navigateBack()
uni.navigateBack();
},
selectShow(val, index) {
val.isShow = true
console.log(123);
this.$set(val, "isShow", true);
},
submitDevice() {
let smallParam = this.smallArr.reduce((pre, cur) => {
pre[cur.prop] = cur.type == "Switch" ? cur.value ? 1 : 0 : cur.value
pre[cur.prop] = Number(pre[cur.prop])
return pre
}, {})
console.log(this.mqttClient)
this.mqttClient.publish('presence', JSON.stringify({
fun: 'SET',
type: 'WJ_Set_NewControlSystem',
pre[cur.prop] = cur.type == "Switch" ? (cur.value ? 1 : 0) : cur.value;
pre[cur.prop] = Number(pre[cur.prop]);
return pre;
}, {});
this.mqttClient.publish(
`1/app/${this.sn}/control/request`,
JSON.stringify({
fun: "SET",
type: "WJ_Set_NewControlSystem",
content: {
...this.backData,
params: {
...this.backData.params,
...smallParam
}
}
}))
...smallParam,
},
},
}),
);
},
},
};
@ -242,4 +339,10 @@
box-shadow: 0px 4rpx 16rpx rgba(0, 0, 0, 0.1);
border-radius: 8rpx;
}
.select-value {
padding: 16rpx 0;
color: #333;
min-height: 60rpx;
}
</style>

View File

@ -84,6 +84,8 @@
{{ $t('homePage.home.emsControl') }}
</button>
</view>
</view>
@ -165,6 +167,7 @@
return this.vuex_language
}
},
watch: {
currentStation: {
handler(val) {
@ -282,12 +285,18 @@
this.userId = this.vuex_user.userId
},
methods: {
toDeviceControl() {
console.log(123)
uni.navigateTo({
url:'/pages/home-page/policy-Config/index'
})
},
toStrategy(){
uni.navigateTo({
url:'/pages/home-page/strategy/index'
})
},
confirmTime(val) {
this.formInfo.effectiveTime = val.hour + ':' + val.minute
this.formInfo.planRefreshH = val.hour

View File

@ -1,4 +1,3 @@
import config from '@/common/config.js';
import Vue from 'vue'
import Vuex from 'vuex'
@ -14,7 +13,9 @@ try{
}
// 需要永久存储且下次APP启动需要取出的在state中的变量名
let saveStateKeys = ['vuex_user', 'vuex_token', 'vuex_remember', 'vuex_locale','vuex_isAgent','vuex_language','vuex_stationValue'];
let saveStateKeys = ['vuex_user', 'vuex_token', 'vuex_remember', 'vuex_locale', 'vuex_isAgent', 'vuex_language',
'vuex_stationValue'
];
// 保存变量到本地存储中
const saveLifeData = function(key, value) {
@ -53,8 +54,7 @@ const store = new Vuex.Store({
tabbar_current: 0,
vuex_stationValue: lifeData.vuex_stationValue ? lifeData.vuex_stationValue : '',
vuex_inverterFlag: lifeData.vuex_inverterFlag ? lifeData.vuex_inverterFlag : 0,
tabbarList: [
{
tabbarList: [{
"icon": "warning",
"text": "告警",
'name': 'Alarm'