正式检测-预检测阶段错误码处理、频率、三项电压不平衡表头修改
This commit is contained in:
@@ -205,7 +205,7 @@ watch(() => formContent.chnNum, async (newVal, oldVal) => {
|
||||
scriptId: checkStore.scriptId,
|
||||
devId: deviceId,
|
||||
devNum: formContent.chnNum + '',
|
||||
scriptType:originScriptType,
|
||||
scriptType: originScriptType,
|
||||
code: parseInt(checkStore.planCode)
|
||||
})
|
||||
updateTreeFly(resTreeDataTemp, 4)
|
||||
@@ -361,7 +361,7 @@ const updateTableData = async () => {
|
||||
|
||||
let tempCheckList = []
|
||||
for (let [key, value] of resTableData.resultData) {
|
||||
let hum=formatHarmNum(key)
|
||||
let hum = formatHarmNum(key)
|
||||
tempCheckList.push({
|
||||
value: key,
|
||||
label: value.isData === 1 ? hum : value.isData === 4 ? `${hum}(/)` : `${hum}(不符合)`
|
||||
@@ -386,7 +386,7 @@ const updateTableData = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
const doCurrentCheckItemUpdate = (newVal: string)=>{
|
||||
const doCurrentCheckItemUpdate = (newVal: string) => {
|
||||
let resCheckResult: CheckData.ResCheckResult = resTableData.resultData.get(newVal)
|
||||
setCheckResultData(resCheckResult)
|
||||
|
||||
@@ -456,8 +456,8 @@ const close = () => {
|
||||
visible.value = false;
|
||||
};
|
||||
|
||||
const setCheckResultData = (data: CheckData.ResCheckResult|null) => {
|
||||
// console.log("检测结果", data);
|
||||
const setCheckResultData = (data: CheckData.ResCheckResult | null) => {
|
||||
// console.log("检测结果", data);
|
||||
let result: CheckData.CheckResult[] = []
|
||||
if (data == null || data == undefined) {
|
||||
Object.assign(checkResultData, [])
|
||||
@@ -543,7 +543,7 @@ const stringToFixed = (str: string): string => {
|
||||
let num = Number(str)
|
||||
if (isNaN(num)) {
|
||||
return '/'
|
||||
}else{
|
||||
} else {
|
||||
let result = num.toFixed(fixed)
|
||||
if (result === "-0.0000") {
|
||||
return result.replace(/-/g, "")
|
||||
@@ -564,7 +564,9 @@ const toMaxErrorStr = (oldMaxErroe: any, unit: any) => {
|
||||
let result = oldMaxErroe ?? '/'
|
||||
let idx = result.indexOf('~');
|
||||
if (idx > 0) {
|
||||
result = result.substring(0, idx) + unit + result.substring(idx, result.length) + unit;
|
||||
let left = result.substring(0, idx)
|
||||
let right = result.substring(idx, result.length)
|
||||
result = left + unit + right + unit;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -589,7 +591,7 @@ const getDefaultNode = (data: any[]) => {
|
||||
const toAngleLast = (data: any[]) => {
|
||||
let angleIndex = -1
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
if(data[i].value.toString().includes('相角')){
|
||||
if (data[i].value.toString().includes('相角')) {
|
||||
angleIndex = i
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user