添加一键重算功能

This commit is contained in:
GGJ
2025-02-27 16:24:13 +08:00
parent c7e5ee0862
commit 30382fb34d
4 changed files with 77 additions and 43 deletions

View File

@@ -1,3 +1,5 @@
import { log } from 'console'
let scriptForm: any = {
subType: '', //tabcode
ffreq: 50, //频率
@@ -191,16 +193,6 @@ let scriptForm: any = {
]
}
// 追加谐波
function getScriptForm() {
for (let i = 2; i < 51; i++) {
scriptForm.channelList.forEach(item => {
item.harmList.push({
harm: i, //谐波次数
famp: 0, //谐波含有率
fphase: 0 // 谐波相角
})
})
}
}
// getScriptForm()
export default scriptForm