diff --git a/docs/canvas-groups-source.md b/docs/canvas-groups-source.md index 357c90a..b8ce52a 100644 --- a/docs/canvas-groups-source.md +++ b/docs/canvas-groups-source.md @@ -169,3 +169,4 @@ budget_template_elements (元素表) + diff --git a/docs/payment-template-element-types.md b/docs/payment-template-element-types.md index bf80047..e0f6d27 100644 --- a/docs/payment-template-element-types.md +++ b/docs/payment-template-element-types.md @@ -236,3 +236,4 @@ + diff --git a/src/components/PlannedExpenditureTemplateReadonly.vue b/src/components/PlannedExpenditureTemplateReadonly.vue index 26ebf84..3f85d8a 100644 --- a/src/components/PlannedExpenditureTemplateReadonly.vue +++ b/src/components/PlannedExpenditureTemplateReadonly.vue @@ -319,3 +319,4 @@ const formatDefaultValue = (value) => { + diff --git a/src/utils/api.js b/src/utils/api.js index 728dad5..e92044f 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -364,6 +364,11 @@ export const oaFlowAPI = { return request.get(`/oa/flow/custom-model-fields/${customModelId}`) }, + // 根据 selection_model 获取选项数据 + getSelectionOptions: (selectionModel) => { + return request.get('/oa/flow/selection-options', { selection_model: selectionModel }) + }, + // 获取创建流程参数 getCreatePre: (customModelId, params) => { return request.get(`/oa/flow/create-pre/${customModelId}`, params) diff --git a/src/views/pre-approval/ProcessQuery.vue b/src/views/pre-approval/ProcessQuery.vue index b33a36d..6ea30a9 100644 --- a/src/views/pre-approval/ProcessQuery.vue +++ b/src/views/pre-approval/ProcessQuery.vue @@ -77,6 +77,50 @@ clearable /> + + + + @@ -104,23 +148,34 @@ :key="field.id" :prop="`data.${field.name}`" :label="field.label" - :min-width="getFieldWidth(field.type)" + :min-width="field.type === 'relation' ? 300 : getFieldWidth(field.type)" > - - -