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