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:
parent
84eae18c5c
commit
7c9411dcfe
@ -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) => {
|
export const changeWorkflowNoticeService = (api, t, cm, compile, input, setData, params, filter, user) => {
|
||||||
api
|
api
|
||||||
.request({
|
.request({
|
||||||
url: 'approvalCarbonCopy:list',
|
url: 'approvalCarbonCopy:listCentralized',
|
||||||
params: {
|
params: {
|
||||||
pageSize: 9999,
|
pageSize: 9999,
|
||||||
filter: { ...params, ...filter },
|
filter: { ...params, ...filter },
|
||||||
|
@ -32,7 +32,11 @@ export const SchemaAddBlock = ({ value, onChange }) => {
|
|||||||
'x-initializer': 'ApprovalApplyAddBlockButton',
|
'x-initializer': 'ApprovalApplyAddBlockButton',
|
||||||
properties: {},
|
properties: {},
|
||||||
};
|
};
|
||||||
return await api.resource('uiSchemas').insert({ values }), onChange(name), values;
|
|
||||||
|
await api.resource('uiSchemas').insert({ values });
|
||||||
|
onChange(name);
|
||||||
|
|
||||||
|
return values;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (loading) {
|
if (loading) {
|
||||||
@ -40,7 +44,7 @@ export const SchemaAddBlock = ({ value, onChange }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SchemaComponentProvider components={components} designable={!workflow.executed}>
|
<SchemaComponentProvider components={components} designable={true}>
|
||||||
<SchemaComponent
|
<SchemaComponent
|
||||||
memoized={true}
|
memoized={true}
|
||||||
components={{
|
components={{
|
||||||
@ -55,7 +59,7 @@ export const SchemaAddBlock = ({ value, onChange }) => {
|
|||||||
useFormBlockProps,
|
useFormBlockProps,
|
||||||
useActionResubmit,
|
useActionResubmit,
|
||||||
}}
|
}}
|
||||||
schema={data}
|
schema={data as any}
|
||||||
/>
|
/>
|
||||||
</SchemaComponentProvider>
|
</SchemaComponentProvider>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user