fix(approval): add designer for approval trigger && fix(approval-mobile)-change carboncopy listcenter (#1420)

Co-authored-by: sealday <zhanglin@daoyoucloud.com>
Reviewed-on: daoyoucloud/tachybase#1420
Co-authored-by: bai.zixv <bai.zixv@foxmail.com>
Co-committed-by: bai.zixv <bai.zixv@foxmail.com>
This commit is contained in:
bai.zixv 2024-08-01 17:52:03 +08:00 committed by sealday
parent 84eae18c5c
commit 7c9411dcfe
2 changed files with 8 additions and 4 deletions

View File

@ -197,7 +197,7 @@ const changeUsersJobsService = (api, t, cm, compile, input, setData, params, fil
export const changeWorkflowNoticeService = (api, t, cm, compile, input, setData, params, filter, user) => {
api
.request({
url: 'approvalCarbonCopy:list',
url: 'approvalCarbonCopy:listCentralized',
params: {
pageSize: 9999,
filter: { ...params, ...filter },

View File

@ -32,7 +32,11 @@ export const SchemaAddBlock = ({ value, onChange }) => {
'x-initializer': 'ApprovalApplyAddBlockButton',
properties: {},
};
return await api.resource('uiSchemas').insert({ values }), onChange(name), values;
await api.resource('uiSchemas').insert({ values });
onChange(name);
return values;
});
if (loading) {
@ -40,7 +44,7 @@ export const SchemaAddBlock = ({ value, onChange }) => {
}
return (
<SchemaComponentProvider components={components} designable={!workflow.executed}>
<SchemaComponentProvider components={components} designable={true}>
<SchemaComponent
memoized={true}
components={{
@ -55,7 +59,7 @@ export const SchemaAddBlock = ({ value, onChange }) => {
useFormBlockProps,
useActionResubmit,
}}
schema={data}
schema={data as any}
/>
</SchemaComponentProvider>
);