Commit 928d4a85 by yancanhua

feat: 数据提交修改

1 parent 4192f4a5
Pipeline #96 for 928d4a85 failed in 0 seconds
......@@ -45,9 +45,8 @@ function setSubmitData() {
const pushData = {
id: item.id,
valueText: item.value || '',
valueKey: item.value || '',
valueKey: '',
interactionType: item.interactionType,
remark: item.remark || '',
}
dataList.push(pushData);
} else if (dropdownList.includes(item.interactionType) && item.valueKey) {
......@@ -56,7 +55,6 @@ function setSubmitData() {
valueText: item.valueText || '',
valueKey: item.valueKey || '',
interactionType: item.interactionType,
remark: item.remark || '',
}
dataList.push(pushData);
} else if (item.interactionType == 'button_select') {
......@@ -68,7 +66,6 @@ function setSubmitData() {
valueText: valueList[i].valueText || '',
valueKey: valueList[i].valueKey || '',
interactionType: item.interactionType,
remark: item.remark || '',
valueSeq: i + 1,
}
dataList.push(pushData);
......@@ -81,16 +78,17 @@ function setSubmitData() {
const pushData = {
id: item.id,
valueText: valueList[i] || '',
valueKey: valueList[i] || '',
valueKey: '',
interactionType: item.interactionType,
remark: item.remark || '',
valueSeq: i + 1,
}
dataList.push(pushData);
}
}
}
returnData.push({ ...item, data: dataList });
if (dataList && dataList.length > 0) {
returnData.push({ nodeId: item.id, nodeName: item.nodeName, resultStatus: resultStatus.value ? 3 : 1, remark: '', data: dataList });
}
});
return returnData;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!