Sfoglia il codice sorgente

refactor(节点抽屉): 统一参数描述字段名称为textParamX

将paramXDesc字段统一重命名为textParamX,保持参数描述字段命名一致性
zhanghaijun 8 mesi fa
parent
commit
9dcd68851a

+ 10 - 10
src/components/business/EasyProcess/node/fault_drawer.vue

@@ -153,11 +153,11 @@
         param3Type: String(faultNode?.param3Type || '2'),
         param4Type: String(faultNode?.param4Type || '2'),
         param5Type: String(faultNode?.param5Type || '2'),
-        param1Desc: faultNode?.param1Desc || '',
-        param2Desc: faultNode?.param2Desc || '',
-        param3Desc: faultNode?.param3Desc || '',
-        param4Desc: faultNode?.param4Desc || '',
-        param5Desc: faultNode?.param5Desc || ''
+        param1Desc: faultNode?.textParam1 || '',
+        param2Desc: faultNode?.textParam2 || '',
+        param3Desc: faultNode?.textParam3 || '',
+        param4Desc: faultNode?.textParam4 || '',
+        param5Desc: faultNode?.textParam5 || ''
       })
     })
   })
@@ -179,11 +179,11 @@
         param3Type: Number(values?.param3Type ?? '2'),
         param4Type: Number(values?.param4Type ?? '2'),
         param5Type: Number(values?.param5Type ?? '2'),
-        param1Desc: values?.param1Desc ?? '',
-        param2Desc: values?.param2Desc ?? '',
-        param3Desc: values?.param3Desc ?? '',
-        param4Desc: values?.param4Desc ?? '',
-        param5Desc: values?.param5Desc ?? ''
+        textParam1: values?.param1Desc ?? '',
+        textParam2: values?.param2Desc ?? '',
+        textParam3: values?.param3Desc ?? '',
+        textParam4: values?.param4Desc ?? '',
+        textParam5: values?.param5Desc ?? ''
       }
     }
   })

+ 10 - 10
src/components/business/EasyProcess/node/operation_drawer.vue

@@ -202,11 +202,11 @@
         param3Type: String(operationNode?.param3Type || '2'),
         param4Type: String(operationNode?.param4Type || '2'),
         param5Type: String(operationNode?.param5Type || '2'),
-        param1Desc: operationNode?.param1Desc || '',
-        param2Desc: operationNode?.param2Desc || '',
-        param3Desc: operationNode?.param3Desc || '',
-        param4Desc: operationNode?.param4Desc || '',
-        param5Desc: operationNode?.param5Desc || '',
+        param1Desc: operationNode?.textParam1 || '',
+        param2Desc: operationNode?.textParam2 || '',
+        param3Desc: operationNode?.textParam3 || '',
+        param4Desc: operationNode?.textParam4 || '',
+        param5Desc: operationNode?.textParam5 || '',
         score: Number(operationNode?.score || 0),
         deduction: Number(operationNode?.deduction || 0),
         subjectiveEvaluation: String(operationNode?.subjectiveEvaluation || '0')
@@ -234,11 +234,11 @@
         param3Type: Number(values?.param3Type ?? '2'),
         param4Type: Number(values?.param4Type ?? '2'),
         param5Type: Number(values?.param5Type ?? '2'),
-        param1Desc: values?.param1Desc ?? '',
-        param2Desc: values?.param2Desc ?? '',
-        param3Desc: values?.param3Desc ?? '',
-        param4Desc: values?.param4Desc ?? '',
-        param5Desc: values?.param5Desc ?? '',
+        textParam1: values?.param1Desc ?? '',
+        textParam2: values?.param2Desc ?? '',
+        textParam3: values?.param3Desc ?? '',
+        textParam4: values?.param4Desc ?? '',
+        textParam5: values?.param5Desc ?? '',
         score: Number(values?.score ?? '0'),
         deduction: Number(values?.deduction ?? '0'),
         subjectiveEvaluation: Number(values?.subjectiveEvaluation ?? '0')