Browse Source

子表结合关联表单预填充---效果实现

qin_s3
liwenxuan 1 month ago
parent
commit
28c292bff8
  1. 4
      src/api/DesignForm/type.ts
  2. 1
      src/components/DesignForm/app/index.vue
  3. 8
      src/views/sysworkflow/lowcodepage/pageFlow/newTableFlow.vue

4
src/api/DesignForm/type.ts

@ -158,9 +158,9 @@ export interface nodeFlow extends enableVersionId{
export interface conditionInfo{
factorid:string;
type:number;
isCheckbox?:boolean;
isCheckbox?:boolean|string;
answers?:string[];
oneanswer?:string;
oneanswer?:any;
customFields?:customFieldsInfo[];
nodeUserList?:nodeUserInfo[];

1
src/components/DesignForm/app/index.vue

@ -50,6 +50,7 @@ import FormPageCont from "@/components/DesignForm/tableListPage/formPageCont.vue
import NewFormPageCont from "@/components/DesignForm/tableListPage/newFormPageCont.vue";
import NewTableFlow from "@/views/sysworkflow/lowcodepage/pageFlow/newTableFlow.vue";
import TableFlow from "@/views/sysworkflow/lowcodepage/pageFlow/tableFlow.vue";

8
src/views/sysworkflow/lowcodepage/pageFlow/newTableFlow.vue

@ -467,10 +467,10 @@ const changeKeyVal = (key: any, val: any, type: any, attribute: any) => {
item.type = 3;
if (type == "checkbox") {
item.isCheckbox = true;
item.answers = val.map(String);
item.answers = val?val.map(String):[];
} else {
item.isCheckbox = false;
item.oneanswer = val.toString();
item.oneanswer = val?val.toString():"";
}
if (notAsA_BasisForJudgment.indexOf(type) === -1) {
isUpdateFlowChart = true;
@ -483,14 +483,14 @@ const changeKeyVal = (key: any, val: any, type: any, attribute: any) => {
factorid: key,
type: 3,
isCheckbox: true,
answers: val.map(String),
answers: val?val.map(String):"",
});
} else {
flowFactor.push({
factorid: key,
type: 3,
isCheckbox: false,
oneanswer: val.toString(),
oneanswer: val?val.toString():"",
});
}
isUpdateFlowChart = true;

Loading…
Cancel
Save