Browse Source

表单:表单A4尺寸

lwx_v27
han2015 3 weeks ago
parent
commit
b6fbe0aea4
  1. 2
      src/components/DesignForm/public/form/aiassist.vue
  2. 4
      src/components/DesignForm/public/form/form.vue
  3. 15
      src/views/sysworkflow/lowcodepage/pageFlow/appTableFlow.vue
  4. 16
      src/views/sysworkflow/lowcodepage/pageFlow/tableFlow.vue

2
src/components/DesignForm/public/form/aiassist.vue

@ -39,7 +39,7 @@ defineExpose({onSendParamToAI})
async function onSendParamToAI(arr:Array<{ uuids: string[]; params: { [key: string]: any } }>){
interact_msg.value=[]
for (let ele of arr){
interact_msg.value.unshift({ask:true,think:"", content:"AI正在分析。。。"})
//interact_msg.value.unshift({ask:true,think:"", content:"AI"})
for (let uid of ele.uuids){
await doRequest(userid,uid,ele.params)
}

4
src/components/DesignForm/public/form/form.vue

@ -2195,6 +2195,7 @@ const webPage = computed({
return newVal;
},
});
//
</script>
<template>
<div v-if="webPage" class="webBox">
@ -2221,6 +2222,7 @@ const webPage = computed({
<slot></slot>
</el-form>
</div>
<div
v-else
v-loading="loading"
@ -2243,6 +2245,7 @@ const webPage = computed({
'detail-form': type === 3 || type === 4 || type === 1,
}"
>
<FormGroup
:tableinfo="formData.form"
:numrun="numrun"
@ -2255,6 +2258,7 @@ const webPage = computed({
<slot></slot>
</el-form>
</div>
</template>
<style lang="scss" scoped>

15
src/views/sysworkflow/lowcodepage/pageFlow/appTableFlow.vue

@ -58,6 +58,7 @@ const props = defineProps({
});
const formLoading = ref(false); //loading
const flowLoading = ref(false); //loading
const aiConfigArea =ref(false)
const flowFactor = reactive<conditionInfo[]>([]); //
const flowMap = ref<any[]>(); //
@ -99,11 +100,15 @@ const drawerOpenOrClose = computed({
const drawbox = computed({
get: () => {
// console.log("isFlowTable",isFlowTable.value)
let extraW=0;
if (aiConfigArea.value){
extraW=256 //ai
}
if (isFlowTable.value) {
return 1300;
return 1300+extraW;
}
return props.drawerwith;
return props.drawerwith+extraW;
},
set: (val: number) => {
return val;
@ -143,6 +148,10 @@ const getTaskFormData = () => {
}
}
);
if(state.formData.aiConfig.length>0)
aiConfigArea.value=true
})
.finally(() => {
formLoading.value = false;

16
src/views/sysworkflow/lowcodepage/pageFlow/tableFlow.vue

@ -50,6 +50,7 @@ const props = defineProps({
});
const formLoading = ref(false); //loading
const flowLoading = ref(false); //loading
const aiConfigArea =ref(false)
const flowFactor = reactive<conditionInfo[]>([]); //
const flowMap = ref<any[]>(); //
@ -92,11 +93,15 @@ const drawerOpenOrClose = computed({
const drawbox = computed({
get: () => {
// console.log("isFlowTable",isFlowTable.value)
let extraW=0;
if (aiConfigArea.value){
extraW=256 //ai
}
if (isFlowTable.value) {
return 1300;
return 1300+extraW;
}
return props.drawerwith;
return props.drawerwith+extraW;
},
set: (val: number) => {
return val;
@ -109,7 +114,7 @@ const getTaskFormData = () => {
flowLoading.value = true;
echoTableFormPage({ id: props.versionid.toString() })
.then(({ data }) => {
// console.log("",data)
//console.log("",data)
if (data.tableFormPage.flowIsOpen == 1 && data.tableFormPage.flowkeystr != "0") {
isFlowTable.value = true;
} else {
@ -138,6 +143,9 @@ const getTaskFormData = () => {
}
}
);
if(state.formData.aiConfig.length>0)
aiConfigArea.value=true
})
.finally(() => {
formLoading.value = false;

Loading…
Cancel
Save