|
|
|
@ -840,8 +840,7 @@ const onRedo = () => { |
|
|
|
|
const wenduCode = "float a;a=1000000*M*S/W;T+(1-exp(-t/a))*100+T0;if(T>=100){T=100;}"; |
|
|
|
|
const shiduCode = "float b;a=10000*S0/W1;R+(1-exp(-t1/b))*100+R0;if(R>=100){R=100;}"; |
|
|
|
|
const onSave = () => { |
|
|
|
|
setStepEvent(3, formatDate(new Date())); |
|
|
|
|
settingStore.activeStepIndex =4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// console.log(removeDuplicateEdges(formatEdges()), standardData); |
|
|
|
|
// return |
|
|
|
@ -854,6 +853,8 @@ const onSave = () => { |
|
|
|
|
if(settingStore.shiduCode != shiduCode){ |
|
|
|
|
return ElMessage.error("湿度代码编写错误"); |
|
|
|
|
} |
|
|
|
|
setStepEvent(3, formatDate(new Date())); |
|
|
|
|
settingStore.activeStepIndex =4 |
|
|
|
|
ElMessage.success("保存成功"); |
|
|
|
|
settingStore.setValue( true,'saveRoute'); |
|
|
|
|
localStorage.setItem('saveRoute',true) |
|
|
|
|