|
|
@ -50,6 +50,7 @@ const props = defineProps({ |
|
|
}); |
|
|
}); |
|
|
const formLoading = ref(false); //loading |
|
|
const formLoading = ref(false); //loading |
|
|
const flowLoading = ref(false); //loading |
|
|
const flowLoading = ref(false); //loading |
|
|
|
|
|
const aiConfigArea =ref(false) |
|
|
|
|
|
|
|
|
const flowFactor = reactive<conditionInfo[]>([]); //表单组件 |
|
|
const flowFactor = reactive<conditionInfo[]>([]); //表单组件 |
|
|
const flowMap = ref<any[]>(); //工作流 |
|
|
const flowMap = ref<any[]>(); //工作流 |
|
|
@ -92,11 +93,15 @@ const drawerOpenOrClose = computed({ |
|
|
|
|
|
|
|
|
const drawbox = computed({ |
|
|
const drawbox = computed({ |
|
|
get: () => { |
|
|
get: () => { |
|
|
// console.log("isFlowTable",isFlowTable.value) |
|
|
let extraW=0; |
|
|
|
|
|
if (aiConfigArea.value){ |
|
|
|
|
|
extraW=256 //ai 问答区域的宽度 |
|
|
|
|
|
} |
|
|
if (isFlowTable.value) { |
|
|
if (isFlowTable.value) { |
|
|
return 1300; |
|
|
return 1300+extraW; |
|
|
} |
|
|
} |
|
|
return props.drawerwith; |
|
|
|
|
|
|
|
|
return props.drawerwith+extraW; |
|
|
}, |
|
|
}, |
|
|
set: (val: number) => { |
|
|
set: (val: number) => { |
|
|
return val; |
|
|
return val; |
|
|
@ -109,7 +114,7 @@ const getTaskFormData = () => { |
|
|
flowLoading.value = true; |
|
|
flowLoading.value = true; |
|
|
echoTableFormPage({ id: props.versionid.toString() }) |
|
|
echoTableFormPage({ id: props.versionid.toString() }) |
|
|
.then(({ data }) => { |
|
|
.then(({ data }) => { |
|
|
// console.log("表单数据",data) |
|
|
//console.log("表单数据",data) |
|
|
if (data.tableFormPage.flowIsOpen == 1 && data.tableFormPage.flowkeystr != "0") { |
|
|
if (data.tableFormPage.flowIsOpen == 1 && data.tableFormPage.flowkeystr != "0") { |
|
|
isFlowTable.value = true; |
|
|
isFlowTable.value = true; |
|
|
} else { |
|
|
} else { |
|
|
@ -127,7 +132,7 @@ const getTaskFormData = () => { |
|
|
|
|
|
|
|
|
// console.log("tableFlow---echoTableFormPage---data.tableFormPage.mastesform",data.tableFormPage.mastesform) |
|
|
// console.log("tableFlow---echoTableFormPage---data.tableFormPage.mastesform",data.tableFormPage.mastesform) |
|
|
state.dict = string2json(data.tableFormPage.dict); |
|
|
state.dict = string2json(data.tableFormPage.dict); |
|
|
|
|
|
|
|
|
state.formData.powerstr = string2json(data.tableFormPage.powerstr); |
|
|
state.formData.powerstr = string2json(data.tableFormPage.powerstr); |
|
|
judgeSubmitCancel({ name: data.tableFormPage.mastesformjson }).then( |
|
|
judgeSubmitCancel({ name: data.tableFormPage.mastesformjson }).then( |
|
|
(datajud: any) => { |
|
|
(datajud: any) => { |
|
|
@ -138,6 +143,9 @@ const getTaskFormData = () => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
if(state.formData.aiConfig.length>0) |
|
|
|
|
|
aiConfigArea.value=true |
|
|
}) |
|
|
}) |
|
|
.finally(() => { |
|
|
.finally(() => { |
|
|
formLoading.value = false; |
|
|
formLoading.value = false; |
|
|
|