|
|
|
@ -120,27 +120,35 @@ const autoPlay = (parentId, form, myTable2, myTable, cards=[]) => { |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
let formList = []; |
|
|
|
|
let tmpIndex = 100; |
|
|
|
|
// let tmpIndex = 100;
|
|
|
|
|
for(const key in myTable2) { |
|
|
|
|
const { prop, type } = myTable2[key] |
|
|
|
|
const { prop, type, subjectId='' } = myTable2[key] |
|
|
|
|
if(form[prop]){ |
|
|
|
|
formList.push({ "answerId": key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": form[prop], "operationIds": parentId + ',' + key, "type":type }) |
|
|
|
|
formList.push({ "answerId": key + '', "emptyOne": '' + subjectId, "emptyTwo": form[prop], "operationIds": parentId + ',' + key, "type":type }) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for(const key in myTable) { |
|
|
|
|
const { prop, type } = myTable[key] |
|
|
|
|
formList.push({ "answerId": key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": form[prop], "operationIds": parentId + ',' + key, "type":type }) |
|
|
|
|
const { prop, type, subjectId='' } = myTable[key] |
|
|
|
|
formList.push({ "answerId": key + '', "emptyOne": '' + subjectId, "emptyTwo": form[prop], "operationIds": parentId + ',' + key, "type":type }) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for(let i=0; i<cards.length; i++ ) { |
|
|
|
|
let myKey = '' |
|
|
|
|
let tmpJson = null |
|
|
|
|
let subjectId = '' |
|
|
|
|
for(const key in cards[i]) { |
|
|
|
|
const tmpJson = JSON.stringify(cards[i][key]) |
|
|
|
|
formList.push({ "answerId": key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": tmpJson, "operationIds": parentId + ',' + key, "type":5 }) |
|
|
|
|
if(key!=='subjectId') { |
|
|
|
|
myKey = key |
|
|
|
|
tmpJson = JSON.stringify(cards[i][key]) |
|
|
|
|
}else { |
|
|
|
|
subjectId = cards[i]['subjectId'] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
formList.push({ "answerId": myKey + '', "emptyOne": '' + subjectId, "emptyTwo": tmpJson, "operationIds": parentId + ',' + myKey, "type":5 }) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(formList) |
|
|
|
|
let params= { |
|
|
|
|
parentId, |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|