refactor: 已经不需要disabled
This commit is contained in:
parent
04becaf3ab
commit
807e6b5f27
@ -12,7 +12,7 @@ defineOptions({ name: 'FlowDesigner' });
|
|||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const definitionId = route.query.definitionId as string;
|
const definitionId = route.query.definitionId as string;
|
||||||
const disabled = route.query.disabled === 'true';
|
// const disabled = route.query.disabled === 'true';
|
||||||
|
|
||||||
const { clientId } = useAppConfig(import.meta.env, import.meta.env.PROD);
|
const { clientId } = useAppConfig(import.meta.env, import.meta.env.PROD);
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ const params = {
|
|||||||
Authorization: `Bearer ${accessStore.accessToken}`,
|
Authorization: `Bearer ${accessStore.accessToken}`,
|
||||||
id: definitionId,
|
id: definitionId,
|
||||||
clientid: clientId,
|
clientid: clientId,
|
||||||
onlyDesignShow: disabled,
|
onlyDesignShow: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -119,6 +119,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
optionType: 'button',
|
optionType: 'button',
|
||||||
buttonStyle: 'solid',
|
buttonStyle: 'solid',
|
||||||
},
|
},
|
||||||
|
defaultValue: 'CLASSICS',
|
||||||
rules: 'selectRequired',
|
rules: 'selectRequired',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -150,12 +150,12 @@ const router = useRouter();
|
|||||||
/**
|
/**
|
||||||
* 流程设计/预览
|
* 流程设计/预览
|
||||||
* @param row row
|
* @param row row
|
||||||
* @param disabled true为预览,false为设计
|
* @param _disabled true为预览,false为设计
|
||||||
*/
|
*/
|
||||||
function handleDesign(row: any, disabled: boolean) {
|
function handleDesign(row: any, _disabled: boolean) {
|
||||||
router.push({
|
router.push({
|
||||||
path: '/workflow/design/index',
|
path: '/workflow/design/index',
|
||||||
query: { definitionId: row.id, disabled: String(disabled) },
|
query: { definitionId: row.id },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user