This commit is contained in:
sjl
2025-01-13 22:42:14 +08:00
parent b584142f5e
commit 5199ee2db0
8 changed files with 31 additions and 32 deletions

View File

@@ -194,7 +194,7 @@ const handleNodeClick = async (data: any) => {
};
watch(() => formContent.chnNum, async (newVal, oldVal) => {
console.log("通道号", newVal);
// console.log("通道号", newVal);
if (newVal) {
// 发起请求,查询该测试项的检测结果
@@ -217,7 +217,7 @@ watch(() => formContent.chnNum, async (newVal, oldVal) => {
})
watch(currentHarmNum, (newVal, oldVal) => {
console.log("谐波次数", newVal);
// console.log("谐波次数", newVal);
if (newVal !== '-1') {
let resCheckResult: CheckData.ResCheckResult = resTableData.resultData.get(newVal.toString())
setCheckResultData(resCheckResult)
@@ -233,7 +233,7 @@ watch(currentHarmNum, (newVal, oldVal) => {
})
watch(currentCheckItem, (newVal, oldVal) => {
console.log("当前检测项", newVal);
// console.log("当前检测项", newVal);
if (newVal) {
let key = newVal.toString() === 'Voltage' ? '电压幅值' : '持续时间'
let resCheckResult: CheckData.ResCheckResult = resTableData.resultData.get(key)
@@ -277,9 +277,9 @@ const defaultOperate = () => {
}
const updateTableData = async () => {
console.log("左侧树被选中的叶子节点checkIndex", checkIndex.value);
// console.log("左侧树被选中的叶子节点checkIndex", checkIndex.value);
if (checkIndex.value) {
console.log("更新表格数据");
// console.log("更新表格数据");
// 发起请求,查询该测试项的检测结果
const {data} = await getTableData({
scriptType,
@@ -415,7 +415,7 @@ const close = () => {
};
const setCheckResultData = (data: CheckData.ResCheckResult) => {
console.log("检测结果", data);
// console.log("检测结果", data);
let result: CheckData.CheckResult[] = []
if (data.dataA != null && data.dataB != null && data.dataC != null) {
result.push({
@@ -466,7 +466,7 @@ const formatHarmNum = (num: string) => {
}
const setRawData = (data: CheckData.RawDataItem[]) => {
console.log("原始数据", data)
// console.log("原始数据", data)
data.forEach((item: CheckData.RawDataItem) => {
item.dataA = item.dataA == null || item.dataA == undefined ? '/' : Number(item.dataA).toFixed(fixed).replace(/-/g, "")
item.dataB = item.dataB == null || item.dataB == undefined ? '/' : Number(item.dataB).toFixed(fixed).replace(/-/g, "")