feat:【antd】【bpm】将 simple-model-design 迁移到 bpm components 下。
This commit is contained in:
@@ -12,12 +12,12 @@ import {
|
|||||||
Switch,
|
Switch,
|
||||||
} from 'ant-design-vue';
|
} from 'ant-design-vue';
|
||||||
|
|
||||||
import { convertTimeUnit } from '#/components/simple-process-design/components/nodes-config/utils';
|
import { convertTimeUnit } from '#/views/bpm/components/simple-process-design/components/nodes-config/utils';
|
||||||
import {
|
import {
|
||||||
TIME_UNIT_TYPES,
|
TIME_UNIT_TYPES,
|
||||||
TIMEOUT_HANDLER_TYPES,
|
TIMEOUT_HANDLER_TYPES,
|
||||||
TimeUnitType,
|
TimeUnitType,
|
||||||
} from '#/components/simple-process-design/consts';
|
} from '#/views/bpm/components/simple-process-design/consts';
|
||||||
|
|
||||||
defineOptions({ name: 'ElementCustomConfig4BoundaryEventTimer' });
|
defineOptions({ name: 'ElementCustomConfig4BoundaryEventTimer' });
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
-->
|
-->
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { SystemUserApi } from '#/api/system/user';
|
import type { SystemUserApi } from '#/api/system/user';
|
||||||
import type { ButtonSetting } from '#/components/simple-process-design/consts';
|
import type { ButtonSetting } from '#/views/bpm/components/simple-process-design/consts';
|
||||||
|
|
||||||
import { inject, nextTick, onMounted, ref, toRaw, watch } from 'vue';
|
import { inject, nextTick, onMounted, ref, toRaw, watch } from 'vue';
|
||||||
|
|
||||||
@@ -38,8 +38,8 @@ import {
|
|||||||
OPERATION_BUTTON_NAME,
|
OPERATION_BUTTON_NAME,
|
||||||
REJECT_HANDLER_TYPES,
|
REJECT_HANDLER_TYPES,
|
||||||
RejectHandlerType,
|
RejectHandlerType,
|
||||||
} from '#/components/simple-process-design/consts';
|
} from '#/views/bpm/components/simple-process-design/consts';
|
||||||
import { useFormFieldsPermission } from '#/components/simple-process-design/helpers';
|
import { useFormFieldsPermission } from '#/views/bpm/components/simple-process-design/helpers';
|
||||||
|
|
||||||
defineOptions({ name: 'ElementCustomConfig4UserTask' });
|
defineOptions({ name: 'ElementCustomConfig4UserTask' });
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
APPROVE_METHODS,
|
APPROVE_METHODS,
|
||||||
ApproveMethodType,
|
ApproveMethodType,
|
||||||
} from '#/components/simple-process-design/consts';
|
} from '#/views/bpm/components/simple-process-design/consts';
|
||||||
|
|
||||||
defineOptions({ name: 'ElementMultiInstance' });
|
defineOptions({ name: 'ElementMultiInstance' });
|
||||||
|
|
||||||
|
|||||||
@@ -40,8 +40,8 @@ import {
|
|||||||
CandidateStrategy,
|
CandidateStrategy,
|
||||||
FieldPermissionType,
|
FieldPermissionType,
|
||||||
MULTI_LEVEL_DEPT,
|
MULTI_LEVEL_DEPT,
|
||||||
} from '#/components/simple-process-design/consts';
|
} from '#/views/bpm/components/simple-process-design/consts';
|
||||||
import { useFormFieldsPermission } from '#/components/simple-process-design/helpers';
|
import { useFormFieldsPermission } from '#/views/bpm/components/simple-process-design/helpers';
|
||||||
|
|
||||||
import ProcessExpressionDialog from './ProcessExpressionDialog.vue';
|
import ProcessExpressionDialog from './ProcessExpressionDialog.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// TODO @jason:要不要新建 bpm/components,然后迁移过去?
|
|
||||||
import './styles/simple-process-designer.scss';
|
import './styles/simple-process-designer.scss';
|
||||||
|
|
||||||
export { default as HttpRequestSetting } from './components/nodes-config/modules/http-request-setting.vue';
|
export { default as HttpRequestSetting } from './components/nodes-config/modules/http-request-setting.vue';
|
||||||
|
Before Width: | Height: | Size: 192 B After Width: | Height: | Size: 192 B |
@@ -30,7 +30,7 @@ import * as FormApi from '#/api/bpm/form';
|
|||||||
import {
|
import {
|
||||||
HttpRequestSetting,
|
HttpRequestSetting,
|
||||||
parseFormFields,
|
parseFormFields,
|
||||||
} from '#/components/simple-process-design';
|
} from '#/views/bpm/components/simple-process-design';
|
||||||
|
|
||||||
const modelData = defineModel<any>();
|
const modelData = defineModel<any>();
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { ref } from 'vue';
|
|||||||
|
|
||||||
import { ContentWrap } from '@vben/common-ui';
|
import { ContentWrap } from '@vben/common-ui';
|
||||||
|
|
||||||
import { SimpleProcessDesigner } from '#/components/simple-process-design';
|
import { SimpleProcessDesigner } from '#/views/bpm/components/simple-process-design';
|
||||||
|
|
||||||
defineOptions({ name: 'SimpleModelDesign' });
|
defineOptions({ name: 'SimpleModelDesign' });
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { SimpleFlowNode } from '#/components/simple-process-design';
|
import type { SimpleFlowNode } from '#/views/bpm/components/simple-process-design';
|
||||||
|
|
||||||
import { ref, watch } from 'vue';
|
import { ref, watch } from 'vue';
|
||||||
|
|
||||||
import { BpmNodeTypeEnum, BpmTaskStatusEnum } from '@vben/constants';
|
import { BpmNodeTypeEnum, BpmTaskStatusEnum } from '@vben/constants';
|
||||||
|
|
||||||
import { SimpleProcessViewer } from '#/components/simple-process-design';
|
import { SimpleProcessViewer } from '#/views/bpm/components/simple-process-design';
|
||||||
|
|
||||||
defineOptions({ name: 'BpmProcessInstanceSimpleViewer' });
|
defineOptions({ name: 'BpmProcessInstanceSimpleViewer' });
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import {
|
|||||||
cancelProcessInstanceByAdmin,
|
cancelProcessInstanceByAdmin,
|
||||||
getProcessInstanceManagerPage,
|
getProcessInstanceManagerPage,
|
||||||
} from '#/api/bpm/processInstance';
|
} from '#/api/bpm/processInstance';
|
||||||
import { parseFormFields } from '#/components/simple-process-design';
|
import { parseFormFields } from '#/views/bpm/components/simple-process-design';
|
||||||
|
|
||||||
import { useGridColumns, useGridFormSchema } from './data';
|
import { useGridColumns, useGridFormSchema } from './data';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user