refactor: 将枚举和常量从utils移动到constants
parent
d7d445617f
commit
37fba1474e
|
|
@ -12,6 +12,7 @@ export namespace AiImageApi {
|
|||
// AI 绘图
|
||||
export interface Image {
|
||||
id: number; // 编号
|
||||
userId: number;
|
||||
platform: string; // 平台
|
||||
model: string; // 模型
|
||||
prompt: string; // 提示词
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import type { AiWriteTypeEnum } from '@vben/constants';
|
||||
import type { PageParam, PageResult } from '@vben/request';
|
||||
import type { AiWriteTypeEnum } from '@vben/utils';
|
||||
|
||||
import { useAppConfig } from '@vben/hooks';
|
||||
import { fetchEventSource } from '@vben/request';
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ import type { IOParameter, SimpleFlowNode } from '../../consts';
|
|||
import { computed, onMounted, reactive, ref } from 'vue';
|
||||
|
||||
import { useVbenDrawer } from '@vben/common-ui';
|
||||
import { BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { BpmNodeTypeEnum } from '@vben/utils';
|
||||
|
||||
import {
|
||||
Button,
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ import type { CopyTaskFormType } from '../../helpers';
|
|||
import { computed, onMounted, reactive, ref } from 'vue';
|
||||
|
||||
import { useVbenDrawer } from '@vben/common-ui';
|
||||
import { BpmModelFormType, BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { BpmModelFormType, BpmNodeTypeEnum } from '@vben/utils';
|
||||
|
||||
import {
|
||||
Col,
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ import type { SimpleFlowNode } from '../../consts';
|
|||
import { reactive, ref } from 'vue';
|
||||
|
||||
import { useVbenDrawer } from '@vben/common-ui';
|
||||
import { BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { BpmNodeTypeEnum } from '@vben/utils';
|
||||
|
||||
import {
|
||||
Col,
|
||||
|
|
|
|||
|
|
@ -5,8 +5,9 @@ import type { Ref } from 'vue';
|
|||
|
||||
import { computed, inject, reactive, ref } from 'vue';
|
||||
|
||||
import { BpmModelFormType } from '@vben/constants';
|
||||
import { IconifyIcon, Plus, Trash2 } from '@vben/icons';
|
||||
import { BpmModelFormType, cloneDeep } from '@vben/utils';
|
||||
import { cloneDeep } from '@vben/utils';
|
||||
|
||||
import {
|
||||
Card,
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ import type { RouterSetting, SimpleFlowNode } from '../../consts';
|
|||
import { inject, ref } from 'vue';
|
||||
|
||||
import { useVbenDrawer } from '@vben/common-ui';
|
||||
import { BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { BpmNodeTypeEnum } from '@vben/utils';
|
||||
|
||||
import {
|
||||
Button,
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ import type { SystemUserApi } from '#/api/system/user';
|
|||
import { inject, ref } from 'vue';
|
||||
|
||||
import { useVbenDrawer } from '@vben/common-ui';
|
||||
import { BpmModelFormType, BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { BpmModelFormType, BpmNodeTypeEnum } from '@vben/utils';
|
||||
|
||||
import {
|
||||
Col,
|
||||
|
|
|
|||
|
|
@ -11,8 +11,9 @@ import type {
|
|||
import { computed, getCurrentInstance, onMounted, reactive, ref } from 'vue';
|
||||
|
||||
import { useVbenDrawer } from '@vben/common-ui';
|
||||
import { BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { BpmNodeTypeEnum, cloneDeep } from '@vben/utils';
|
||||
import { cloneDeep } from '@vben/utils';
|
||||
|
||||
import {
|
||||
Button,
|
||||
|
|
|
|||
|
|
@ -9,13 +9,13 @@ import type { UserTaskFormType } from '../../helpers';
|
|||
import { computed, nextTick, onMounted, reactive, ref } from 'vue';
|
||||
|
||||
import { useVbenDrawer } from '@vben/common-ui';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import {
|
||||
BpmModelFormType,
|
||||
BpmNodeTypeEnum,
|
||||
cloneDeep,
|
||||
ProcessVariableEnum,
|
||||
} from '@vben/utils';
|
||||
} from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { cloneDeep } from '@vben/utils';
|
||||
|
||||
import {
|
||||
Button,
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import type { SimpleFlowNode } from '../../consts';
|
|||
|
||||
import { inject, ref } from 'vue';
|
||||
|
||||
import { BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { BpmNodeTypeEnum } from '@vben/utils';
|
||||
|
||||
import { Input } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import type { SimpleFlowNode } from '../../consts';
|
|||
|
||||
import { inject, ref } from 'vue';
|
||||
|
||||
import { BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { BpmNodeTypeEnum } from '@vben/utils';
|
||||
|
||||
import { Input } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import type { SimpleFlowNode } from '../../consts';
|
|||
|
||||
import { inject, ref } from 'vue';
|
||||
|
||||
import { BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { BpmNodeTypeEnum } from '@vben/utils';
|
||||
|
||||
import { Input } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,9 @@ import type { SimpleFlowNode } from '../../consts';
|
|||
|
||||
import { getCurrentInstance, inject, nextTick, ref, watch } from 'vue';
|
||||
|
||||
import { BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import {
|
||||
BpmNodeTypeEnum,
|
||||
cloneDeep,
|
||||
buildShortUUID as generateUUID,
|
||||
} from '@vben/utils';
|
||||
import { cloneDeep, buildShortUUID as generateUUID } from '@vben/utils';
|
||||
|
||||
import { Button, Input } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,9 @@ import type { SimpleFlowNode } from '../../consts';
|
|||
|
||||
import { getCurrentInstance, inject, nextTick, ref, watch } from 'vue';
|
||||
|
||||
import { BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import {
|
||||
BpmNodeTypeEnum,
|
||||
cloneDeep,
|
||||
buildShortUUID as generateUUID,
|
||||
} from '@vben/utils';
|
||||
import { cloneDeep, buildShortUUID as generateUUID } from '@vben/utils';
|
||||
|
||||
import { Button, Input } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,9 @@ import type { SimpleFlowNode } from '../../consts';
|
|||
|
||||
import { inject, ref } from 'vue';
|
||||
|
||||
import { BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import {
|
||||
BpmNodeTypeEnum,
|
||||
cloneDeep,
|
||||
buildShortUUID as generateUUID,
|
||||
} from '@vben/utils';
|
||||
import { cloneDeep, buildShortUUID as generateUUID } from '@vben/utils';
|
||||
|
||||
import { message, Popover } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,9 @@ import type { SimpleFlowNode } from '../../consts';
|
|||
|
||||
import { inject, nextTick, ref, watch } from 'vue';
|
||||
|
||||
import { BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { BpmNodeTypeEnum, buildShortUUID as generateUUID } from '@vben/utils';
|
||||
import { buildShortUUID as generateUUID } from '@vben/utils';
|
||||
|
||||
import { Button, Input } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import type { SimpleFlowNode } from '../../consts';
|
|||
|
||||
import { inject, ref } from 'vue';
|
||||
|
||||
import { BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { BpmNodeTypeEnum } from '@vben/utils';
|
||||
|
||||
import { Input } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import type { SimpleFlowNode } from '../../consts';
|
|||
import { inject, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { BpmNodeTypeEnum } from '@vben/utils';
|
||||
|
||||
import { Input } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import type { SimpleFlowNode } from '../../consts';
|
|||
|
||||
import { inject, ref } from 'vue';
|
||||
|
||||
import { BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { BpmNodeTypeEnum } from '@vben/utils';
|
||||
|
||||
import { Input } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ import type { SimpleFlowNode } from '../../consts';
|
|||
import { inject, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { BpmNodeTypeEnum } from '@vben/utils';
|
||||
|
||||
import { Input } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import type { SimpleFlowNode } from '../consts';
|
||||
|
||||
import { BpmNodeTypeEnum } from '@vben/utils';
|
||||
import { BpmNodeTypeEnum } from '@vben/constants';
|
||||
|
||||
import { useWatchNode } from '../helpers';
|
||||
import ChildProcessNode from './nodes/child-process-node.vue';
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ import type { SystemUserApi } from '#/api/system/user';
|
|||
import { inject, onMounted, provide, ref, watch } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { BpmModelFormType, BpmNodeTypeEnum, handleTree } from '@vben/utils';
|
||||
import { BpmModelFormType, BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { handleTree } from '@vben/utils';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,9 @@ import type { SimpleFlowNode } from '../consts';
|
|||
|
||||
import { onMounted, provide, ref } from 'vue';
|
||||
|
||||
import { BpmNodeTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { BpmNodeTypeEnum, downloadFileFromBlob, isString } from '@vben/utils';
|
||||
import { downloadFileFromBlob, isString } from '@vben/utils';
|
||||
|
||||
import { Button, ButtonGroup, Modal, Row } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { BpmNodeTypeEnum, BpmTaskStatusEnum } from '@vben/utils';
|
||||
import { BpmNodeTypeEnum, BpmTaskStatusEnum } from '@vben/constants';
|
||||
|
||||
interface DictDataType {
|
||||
label: string;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import {
|
|||
BpmNodeTypeEnum,
|
||||
BpmTaskStatusEnum,
|
||||
ProcessVariableEnum,
|
||||
} from '@vben/utils';
|
||||
} from '@vben/constants';
|
||||
|
||||
import {
|
||||
ApproveMethodType,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
import type { DictItem } from '#/store';
|
||||
|
||||
import { DICT_TYPE, isObject } from '@vben/utils';
|
||||
import { isObject } from '@vben/utils';
|
||||
|
||||
import { useDictStore } from '#/store';
|
||||
|
||||
|
|
@ -183,9 +183,10 @@ export const deleteDictCache = (dictType: string): void => {
|
|||
|
||||
export {
|
||||
type ColorType,
|
||||
DICT_TYPE,
|
||||
type DictValueType,
|
||||
getDictLabel,
|
||||
getDictObj,
|
||||
getDictOptions,
|
||||
};
|
||||
|
||||
export { DICT_TYPE } from '@vben/constants';
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ export * from './dict';
|
|||
export * from './formCreate';
|
||||
export * from './rangePickerProps';
|
||||
export * from './routerHelper';
|
||||
export { CommonStatusEnum } from '@vben/utils';
|
||||
export { CommonStatusEnum } from '@vben/constants';
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@ import { computed, onMounted, ref } from 'vue';
|
|||
import { useRoute } from 'vue-router';
|
||||
|
||||
import { confirm } from '@vben/common-ui';
|
||||
import { getUrlValue, SystemUserSocialTypeEnum } from '@vben/utils';
|
||||
import { SystemUserSocialTypeEnum } from '@vben/constants';
|
||||
import { getUrlValue } from '@vben/utils';
|
||||
|
||||
import { Button, Card, Image, message } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { VbenFormSchema } from '#/adapter/form';
|
||||
|
||||
import { AiModelTypeEnum } from '@vben/utils';
|
||||
import { AiModelTypeEnum } from '@vben/constants';
|
||||
|
||||
import { getModelSimpleList } from '#/api/ai/model/model';
|
||||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ import type { AiImageApi } from '#/api/ai/image';
|
|||
import { onMounted, ref, toRefs, watch } from 'vue';
|
||||
|
||||
import { confirm } from '@vben/common-ui';
|
||||
import { AiImageStatusEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { AiImageStatusEnum } from '@vben/utils';
|
||||
|
||||
import { Button, Card, Image, message } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@ import { ref, toRefs, watch } from 'vue';
|
|||
import {
|
||||
AiPlatformEnum,
|
||||
Dall3StyleList,
|
||||
formatDate,
|
||||
StableDiffusionClipGuidancePresets,
|
||||
StableDiffusionSamplers,
|
||||
StableDiffusionStylePresets,
|
||||
} from '@vben/utils';
|
||||
} from '@vben/constants';
|
||||
import { formatDate } from '@vben/utils';
|
||||
|
||||
import { Image } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@ import { onMounted, onUnmounted, reactive, ref } from 'vue';
|
|||
import { useRouter } from 'vue-router';
|
||||
|
||||
import { confirm, useVbenDrawer } from '@vben/common-ui';
|
||||
import { AiImageStatusEnum, downloadFileFromImageUrl } from '@vben/utils';
|
||||
import { AiImageStatusEnum } from '@vben/constants';
|
||||
import { downloadFileFromImageUrl } from '@vben/utils';
|
||||
|
||||
import { useDebounceFn } from '@vueuse/core';
|
||||
import { Button, Card, message, Pagination } from 'ant-design-vue';
|
||||
|
|
|
|||
|
|
@ -6,7 +6,11 @@ import type { AiModelModelApi } from '#/api/ai/model/model';
|
|||
import { ref, watch } from 'vue';
|
||||
|
||||
import { confirm } from '@vben/common-ui';
|
||||
import { AiPlatformEnum, ImageHotWords, OtherPlatformEnum } from '@vben/utils';
|
||||
import {
|
||||
AiPlatformEnum,
|
||||
ImageHotWords,
|
||||
OtherPlatformEnum,
|
||||
} from '@vben/constants';
|
||||
|
||||
import { Button, InputNumber, Select, Space, Textarea } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!-- dall3 -->
|
||||
<script setup lang="ts">
|
||||
import type { ImageModel, ImageSize } from '@vben/utils';
|
||||
import type { ImageModel, ImageSize } from '@vben/constants';
|
||||
|
||||
import type { AiImageApi } from '#/api/ai/image';
|
||||
import type { AiModelModelApi } from '#/api/ai/model/model';
|
||||
|
|
@ -14,7 +14,7 @@ import {
|
|||
Dall3SizeList,
|
||||
Dall3StyleList,
|
||||
ImageHotWords,
|
||||
} from '@vben/utils';
|
||||
} from '@vben/constants';
|
||||
|
||||
import { Button, Image, message, Space, Textarea } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!-- dall3 -->
|
||||
<script setup lang="ts">
|
||||
import type { ImageModel, ImageSize } from '@vben/utils';
|
||||
import type { ImageModel, ImageSize } from '@vben/constants';
|
||||
|
||||
import type { AiImageApi } from '#/api/ai/image';
|
||||
import type { AiModelModelApi } from '#/api/ai/model/model';
|
||||
|
|
@ -15,7 +15,7 @@ import {
|
|||
MidjourneySizeList,
|
||||
MidjourneyVersions,
|
||||
NijiVersionList,
|
||||
} from '@vben/utils';
|
||||
} from '@vben/constants';
|
||||
|
||||
import {
|
||||
Button,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import {
|
|||
StableDiffusionClipGuidancePresets,
|
||||
StableDiffusionSamplers,
|
||||
StableDiffusionStylePresets,
|
||||
} from '@vben/utils';
|
||||
} from '@vben/constants';
|
||||
|
||||
import {
|
||||
Button,
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import type { AiModelModelApi } from '#/api/ai/model/model';
|
|||
import { nextTick, onMounted, ref } from 'vue';
|
||||
|
||||
import { Page } from '@vben/common-ui';
|
||||
import { AiModelTypeEnum, AiPlatformEnum } from '@vben/utils';
|
||||
import { AiModelTypeEnum, AiPlatformEnum } from '@vben/constants';
|
||||
|
||||
import { Segmented } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import type { SystemUserApi } from '#/api/system/user';
|
|||
import { onMounted, ref } from 'vue';
|
||||
|
||||
import { confirm, DocAlert, Page } from '@vben/common-ui';
|
||||
import { AiImageStatusEnum } from '@vben/utils';
|
||||
import { AiImageStatusEnum } from '@vben/constants';
|
||||
|
||||
import { Image, message, Switch } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import type { VbenFormSchema } from '#/adapter/form';
|
||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
|
||||
import { AiModelTypeEnum } from '@vben/utils';
|
||||
import { AiModelTypeEnum, CommonStatusEnum, DICT_TYPE } from '@vben/constants';
|
||||
|
||||
import { z } from '#/adapter/form';
|
||||
import { getModelSimpleList } from '#/api/ai/model/model';
|
||||
import { CommonStatusEnum, DICT_TYPE, getDictOptions } from '#/utils';
|
||||
import { getDictOptions } from '#/utils';
|
||||
/** 新增/修改的表单 */
|
||||
export function useFormSchema(): VbenFormSchema[] {
|
||||
return [
|
||||
|
|
|
|||
|
|
@ -1,16 +1,11 @@
|
|||
import type { VbenFormSchema } from '#/adapter/form';
|
||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
|
||||
import { AiModelTypeEnum } from '@vben/utils';
|
||||
import { AiModelTypeEnum, CommonStatusEnum, DICT_TYPE } from '@vben/constants';
|
||||
|
||||
import { z } from '#/adapter/form';
|
||||
import { getModelSimpleList } from '#/api/ai/model/model';
|
||||
import {
|
||||
CommonStatusEnum,
|
||||
DICT_TYPE,
|
||||
getDictOptions,
|
||||
getRangePickerDefaultProps,
|
||||
} from '#/utils';
|
||||
import { getDictOptions, getRangePickerDefaultProps } from '#/utils';
|
||||
/** 新增/修改的表单 */
|
||||
export function useFormSchema(): VbenFormSchema[] {
|
||||
return [
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import { useRoute } from 'vue-router';
|
|||
|
||||
import { useAccess } from '@vben/access';
|
||||
import { confirm, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { CommonStatusEnum } from '@vben/utils';
|
||||
import { CommonStatusEnum } from '@vben/constants';
|
||||
|
||||
import { message, Switch } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import type { AiMindmapApi } from '#/api/ai/mindmap';
|
|||
import { nextTick, onMounted, ref } from 'vue';
|
||||
|
||||
import { alert, Page } from '@vben/common-ui';
|
||||
import { MindMapContentExample } from '@vben/utils';
|
||||
import { MindMapContentExample } from '@vben/constants';
|
||||
|
||||
import { generateMindMap } from '#/api/ai/mindmap';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import { reactive, ref } from 'vue';
|
||||
|
||||
import { MindMapContentExample } from '@vben/utils';
|
||||
import { MindMapContentExample } from '@vben/constants';
|
||||
|
||||
import { Button, Textarea } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import type { VbenFormSchema } from '#/adapter/form';
|
||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
|
||||
import { AiModelTypeEnum } from '@vben/utils';
|
||||
import { AiModelTypeEnum } from '@vben/constants';
|
||||
|
||||
import { z } from '#/adapter/form';
|
||||
import { getSimpleKnowledgeList } from '#/api/ai/knowledge/knowledge';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import type { VbenFormSchema } from '#/adapter/form';
|
||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
|
||||
import { AiModelTypeEnum } from '@vben/utils';
|
||||
import { AiModelTypeEnum } from '@vben/constants';
|
||||
|
||||
import { z } from '#/adapter/form';
|
||||
import { getApiKeySimpleList } from '#/api/ai/model/apiKey';
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import type { SystemUserApi } from '#/api/system/user';
|
|||
import { onMounted, ref } from 'vue';
|
||||
|
||||
import { confirm, DocAlert, Page } from '@vben/common-ui';
|
||||
import { AiMusicStatusEnum } from '@vben/utils';
|
||||
import { AiMusicStatusEnum } from '@vben/constants';
|
||||
|
||||
import { Button, message, Switch } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@ import { onBeforeUnmount, onMounted, provide, ref } from 'vue';
|
|||
import { useRoute, useRouter } from 'vue-router';
|
||||
|
||||
import { confirm, Page } from '@vben/common-ui';
|
||||
import { AiModelTypeEnum, CommonStatusEnum } from '@vben/constants';
|
||||
import { useTabs } from '@vben/hooks';
|
||||
import { ArrowLeft } from '@vben/icons';
|
||||
import { AiModelTypeEnum, CommonStatusEnum } from '@vben/utils';
|
||||
|
||||
import { Button, Card, message } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import type { AiWriteApi } from '#/api/ai/write';
|
|||
import { nextTick, ref } from 'vue';
|
||||
|
||||
import { alert, Page } from '@vben/common-ui';
|
||||
import { WriteExample } from '@vben/utils';
|
||||
import { WriteExample } from '@vben/constants';
|
||||
|
||||
import { writeStream } from '#/api/ai/write';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { onMounted } from 'vue';
|
|||
import { useRoute, useRouter } from 'vue-router';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { BpmModelFormType } from '@vben/utils';
|
||||
import { BpmModelFormType } from '@vben/constants';
|
||||
|
||||
import { Button, Tooltip } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -9,14 +9,14 @@ import { onBeforeUnmount, onMounted, provide, ref, watch } from 'vue';
|
|||
import { useRoute, useRouter } from 'vue-router';
|
||||
|
||||
import { confirm, Page } from '@vben/common-ui';
|
||||
import { useTabs } from '@vben/hooks';
|
||||
import { ArrowLeft } from '@vben/icons';
|
||||
import { useUserStore } from '@vben/stores';
|
||||
import {
|
||||
BpmAutoApproveType,
|
||||
BpmModelFormType,
|
||||
BpmModelType,
|
||||
} from '@vben/utils';
|
||||
} from '@vben/constants';
|
||||
import { useTabs } from '@vben/hooks';
|
||||
import { ArrowLeft } from '@vben/icons';
|
||||
import { useUserStore } from '@vben/stores';
|
||||
|
||||
import { Button, Card, message } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
<script setup lang="ts">
|
||||
import { computed, provide, ref, watch } from 'vue';
|
||||
|
||||
import { CircleHelp } from '@vben/icons';
|
||||
import {
|
||||
BpmAutoApproveType,
|
||||
BpmModelFormType,
|
||||
ProcessVariableEnum,
|
||||
} from '@vben/utils';
|
||||
} from '@vben/constants';
|
||||
import { CircleHelp } from '@vben/icons';
|
||||
|
||||
import {
|
||||
Checkbox,
|
||||
|
|
|
|||
|
|
@ -7,14 +7,10 @@ import { useRouter } from 'vue-router';
|
|||
|
||||
import { useAccess } from '@vben/access';
|
||||
import { confirm, EllipsisText, useVbenModal } from '@vben/common-ui';
|
||||
import { BpmModelFormType } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { useUserStore } from '@vben/stores';
|
||||
import {
|
||||
BpmModelFormType,
|
||||
cloneDeep,
|
||||
formatDateTime,
|
||||
isEqual,
|
||||
} from '@vben/utils';
|
||||
import { cloneDeep, formatDateTime, isEqual } from '@vben/utils';
|
||||
|
||||
import { useDebounceFn } from '@vueuse/core';
|
||||
import { useSortable } from '@vueuse/integrations/useSortable';
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import type { BpmProcessInstanceApi } from '#/api/bpm/processInstance';
|
|||
import { computed, onMounted, ref, watch } from 'vue';
|
||||
|
||||
import { confirm, Page, useVbenForm } from '@vben/common-ui';
|
||||
import { BpmCandidateStrategyEnum, BpmNodeIdEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { BpmCandidateStrategyEnum, BpmNodeIdEnum } from '@vben/utils';
|
||||
|
||||
import { Button, Card, message, Space } from 'ant-design-vue';
|
||||
import dayjs from 'dayjs';
|
||||
|
|
|
|||
|
|
@ -4,15 +4,15 @@ import type { BpmProcessInstanceApi } from '#/api/bpm/processInstance';
|
|||
|
||||
import { computed, nextTick, ref, watch } from 'vue';
|
||||
|
||||
import { useTabs } from '@vben/hooks';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import {
|
||||
BpmCandidateStrategyEnum,
|
||||
BpmFieldPermissionType,
|
||||
BpmModelFormType,
|
||||
BpmModelType,
|
||||
BpmNodeIdEnum,
|
||||
} from '@vben/utils';
|
||||
} from '@vben/constants';
|
||||
import { useTabs } from '@vben/hooks';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
|
||||
import formCreate from '@form-create/ant-design-vue';
|
||||
import { Button, Card, Col, message, Row, Space, Tabs } from 'ant-design-vue';
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ import {
|
|||
BpmModelFormType,
|
||||
BpmModelType,
|
||||
BpmTaskStatusEnum,
|
||||
formatDateTime,
|
||||
} from '@vben/utils';
|
||||
} from '@vben/constants';
|
||||
import { formatDateTime } from '@vben/utils';
|
||||
|
||||
import { Avatar, Card, Col, message, Row, TabPane, Tabs } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@ import { computed, nextTick, reactive, ref, watch } from 'vue';
|
|||
import { useRouter } from 'vue-router';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { useUserStore } from '@vben/stores';
|
||||
import {
|
||||
BpmCandidateStrategyEnum,
|
||||
BpmModelFormType,
|
||||
|
|
@ -17,9 +15,11 @@ import {
|
|||
BpmProcessInstanceStatus,
|
||||
BpmTaskOperationButtonTypeEnum,
|
||||
BpmTaskStatusEnum,
|
||||
isEmpty,
|
||||
OPERATION_BUTTON_NAME,
|
||||
} from '@vben/utils';
|
||||
} from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { useUserStore } from '@vben/stores';
|
||||
import { isEmpty } from '@vben/utils';
|
||||
|
||||
import FormCreate from '@form-create/ant-design-vue';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import type { SimpleFlowNode } from '#/components/simple-process-design';
|
|||
|
||||
import { ref, watch } from 'vue';
|
||||
|
||||
import { BpmNodeTypeEnum, BpmTaskStatusEnum } from '@vben/utils';
|
||||
import { BpmNodeTypeEnum, BpmTaskStatusEnum } from '@vben/constants';
|
||||
|
||||
import { SimpleProcessViewer } from '#/components/simple-process-design';
|
||||
|
||||
|
|
|
|||
|
|
@ -6,14 +6,13 @@ import { ref } from 'vue';
|
|||
import { useRouter } from 'vue-router';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import {
|
||||
BpmCandidateStrategyEnum,
|
||||
BpmNodeTypeEnum,
|
||||
BpmTaskStatusEnum,
|
||||
formatDateTime,
|
||||
isEmpty,
|
||||
} from '@vben/utils';
|
||||
} from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { formatDateTime, isEmpty } from '@vben/utils';
|
||||
|
||||
import { Avatar, Button, Image, Timeline, Tooltip } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import type { BpmTaskApi } from '#/api/bpm/task';
|
|||
import { h } from 'vue';
|
||||
|
||||
import { DocAlert, Page, prompt } from '@vben/common-ui';
|
||||
import { BpmProcessInstanceStatus, DICT_TYPE } from '@vben/utils';
|
||||
import { BpmProcessInstanceStatus, DICT_TYPE } from '@vben/constants';
|
||||
|
||||
import { Button, message, Textarea } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import type { BpmProcessInstanceApi } from '#/api/bpm/processInstance';
|
|||
import { h } from 'vue';
|
||||
|
||||
import { DocAlert, Page, prompt } from '@vben/common-ui';
|
||||
import { BpmProcessInstanceStatus } from '@vben/utils';
|
||||
import { BpmProcessInstanceStatus } from '@vben/constants';
|
||||
|
||||
import { message, Textarea } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@ import type { DescriptionItemSchema } from '#/components/description';
|
|||
|
||||
import { h } from 'vue';
|
||||
|
||||
import { DICT_TYPE, formatDateTime } from '@vben/utils';
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { formatDateTime } from '@vben/utils';
|
||||
|
||||
import { DictTag } from '#/components/dict-tag';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@ import type { DescriptionItemSchema } from '#/components/description';
|
|||
|
||||
import { h } from 'vue';
|
||||
|
||||
import { DICT_TYPE, formatDateTime } from '@vben/utils';
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { formatDateTime } from '@vben/utils';
|
||||
|
||||
import { DictTag } from '#/components/dict-tag';
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@ import type { VbenFormSchema } from '@vben/common-ui';
|
|||
|
||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
|
||||
import { DICT_TYPE, handleTree } from '@vben/utils';
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { handleTree } from '@vben/utils';
|
||||
|
||||
import { LimitConfType } from '#/api/crm/customer/limitConfig';
|
||||
import { getSimpleDeptList } from '#/api/system/dept';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@ import type { DescriptionItemSchema } from '#/components/description';
|
|||
|
||||
import { h } from 'vue';
|
||||
|
||||
import { DICT_TYPE, formatDateTime } from '@vben/utils';
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { formatDateTime } from '@vben/utils';
|
||||
|
||||
import { DictTag } from '#/components/dict-tag';
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { watch } from 'vue';
|
|||
import { useRouter } from 'vue-router';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { DICT_TYPE } from '@vben/utils';
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
|
||||
import { Button, message } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@ import type { DescriptionItemSchema } from '#/components/description';
|
|||
|
||||
import { h } from 'vue';
|
||||
|
||||
import { DICT_TYPE, erpPriceInputFormatter } from '@vben/utils';
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { erpPriceInputFormatter } from '@vben/utils';
|
||||
|
||||
import { DictTag } from '#/components/dict-tag';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@ import type { DescriptionItemSchema } from '#/components/description';
|
|||
|
||||
import { h } from 'vue';
|
||||
|
||||
import { DICT_TYPE, erpPriceInputFormatter, formatDateTime } from '@vben/utils';
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { erpPriceInputFormatter, formatDateTime } from '@vben/utils';
|
||||
|
||||
import { DictTag } from '#/components/dict-tag';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@ import type { DescriptionItemSchema } from '#/components/description';
|
|||
|
||||
import { h } from 'vue';
|
||||
|
||||
import { DICT_TYPE, erpPriceInputFormatter, formatDateTime } from '@vben/utils';
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { erpPriceInputFormatter, formatDateTime } from '@vben/utils';
|
||||
|
||||
import { DictTag } from '#/components/dict-tag';
|
||||
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ function handleUpdateStatus(
|
|||
duration: 0,
|
||||
key: 'action_process_msg',
|
||||
});
|
||||
updatePurchaseOrderStatus(row.id, status)
|
||||
updatePurchaseOrderStatus(row.id!, status)
|
||||
.then(() => {
|
||||
message.success({
|
||||
content: `${status === 20 ? '审批' : '反审批'}成功`,
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@ import type { DescriptionItemSchema } from '#/components/description';
|
|||
import { h } from 'vue';
|
||||
|
||||
import { JsonViewer } from '@vben/common-ui';
|
||||
import { formatDateTime, InfraApiErrorLogProcessStatusEnum } from '@vben/utils';
|
||||
import { InfraApiErrorLogProcessStatusEnum } from '@vben/constants';
|
||||
import { formatDateTime } from '@vben/utils';
|
||||
|
||||
import { Textarea } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,10 +3,8 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { InfraApiErrorLogApi } from '#/api/infra/api-error-log';
|
||||
|
||||
import { confirm, DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import {
|
||||
downloadFileFromBlobPart,
|
||||
InfraApiErrorLogProcessStatusEnum,
|
||||
} from '@vben/utils';
|
||||
import { InfraApiErrorLogProcessStatusEnum } from '@vben/constants';
|
||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||
|
||||
import { message } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@ import type { InfraCodegenApi } from '#/api/infra/codegen';
|
|||
|
||||
import { computed, ref, watch } from 'vue';
|
||||
|
||||
import { InfraCodegenTemplateTypeEnum, isEmpty } from '@vben/utils';
|
||||
import { InfraCodegenTemplateTypeEnum } from '@vben/constants';
|
||||
import { isEmpty } from '@vben/utils';
|
||||
|
||||
import { useVbenForm } from '#/adapter/form';
|
||||
import { getCodegenTableList } from '#/api/infra/codegen';
|
||||
|
|
|
|||
|
|
@ -6,11 +6,8 @@ import { ref } from 'vue';
|
|||
import { useRouter } from 'vue-router';
|
||||
|
||||
import { confirm, DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import {
|
||||
downloadFileFromBlobPart,
|
||||
InfraJobStatusEnum,
|
||||
isEmpty,
|
||||
} from '@vben/utils';
|
||||
import { InfraJobStatusEnum } from '@vben/constants';
|
||||
import { downloadFileFromBlobPart, isEmpty } from '@vben/utils';
|
||||
|
||||
import { message } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ import { onMounted, ref } from 'vue';
|
|||
import { useRoute, useRouter } from 'vue-router';
|
||||
|
||||
import { confirm, DocAlert, Page } from '@vben/common-ui';
|
||||
import { ProductSpuStatusEnum } from '@vben/constants';
|
||||
import {
|
||||
downloadFileFromBlobPart,
|
||||
fenToYuan,
|
||||
handleTree,
|
||||
ProductSpuStatusEnum,
|
||||
treeToString,
|
||||
} from '@vben/utils';
|
||||
|
||||
|
|
|
|||
|
|
@ -2,10 +2,9 @@ import type { MallCouponTemplateApi } from '#/api/mall/promotion/coupon/couponTe
|
|||
|
||||
import {
|
||||
CouponTemplateValidityTypeEnum,
|
||||
floatToFixed2,
|
||||
formatDate,
|
||||
PromotionDiscountTypeEnum,
|
||||
} from '@vben/utils';
|
||||
} from '@vben/constants';
|
||||
import { floatToFixed2, formatDate } from '@vben/utils';
|
||||
|
||||
// 格式化【优惠金额/折扣】
|
||||
export function discountFormat(row: MallCouponTemplateApi.CouponTemplate) {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@ import type { MallBrokerageUserApi } from '#/api/mall/trade/brokerage/user';
|
|||
import { ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { BrokerageRecordBizTypeEnum, fenToYuan } from '@vben/utils';
|
||||
import { BrokerageRecordBizTypeEnum } from '@vben/constants';
|
||||
import { fenToYuan } from '@vben/utils';
|
||||
|
||||
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import { getBrokerageRecordPage } from '#/api/mall/trade/brokerage/record';
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ import {
|
|||
BrokerageWithdrawStatusEnum,
|
||||
BrokerageWithdrawTypeEnum,
|
||||
DICT_TYPE,
|
||||
formatDateTime,
|
||||
} from '@vben/utils';
|
||||
} from '@vben/constants';
|
||||
import { formatDateTime } from '@vben/utils';
|
||||
|
||||
import { Input, message } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ import type { MallDeliveryPickUpStoreApi } from '#/api/mall/trade/delivery/pickU
|
|||
|
||||
import { ref } from 'vue';
|
||||
|
||||
import { DeliveryTypeEnum } from '@vben/utils';
|
||||
import { DeliveryTypeEnum, DICT_TYPE } from '@vben/constants';
|
||||
|
||||
import { getSimpleDeliveryPickUpStoreList } from '#/api/mall/trade/delivery/pickUpStore';
|
||||
import { DICT_TYPE, getRangePickerDefaultProps } from '#/utils';
|
||||
import { getRangePickerDefaultProps } from '#/utils';
|
||||
|
||||
const pickUpStoreList = ref<MallDeliveryPickUpStoreApi.PickUpStore[]>([]);
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@ import type { MallOrderApi } from '#/api/mall/trade/order';
|
|||
import { h, onMounted, ref } from 'vue';
|
||||
|
||||
import { Page, prompt } from '@vben/common-ui';
|
||||
import { DeliveryTypeEnum, fenToYuan, TradeOrderStatusEnum } from '@vben/utils';
|
||||
import { DeliveryTypeEnum, TradeOrderStatusEnum } from '@vben/constants';
|
||||
import { fenToYuan } from '@vben/utils';
|
||||
|
||||
import { Card, Input, message } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import type { MallDeliveryPickUpStoreApi } from '#/api/mall/trade/delivery/pickU
|
|||
|
||||
import { ref } from 'vue';
|
||||
|
||||
import { DeliveryTypeEnum } from '@vben/utils';
|
||||
import { DeliveryTypeEnum } from '@vben/constants';
|
||||
|
||||
import { getSimpleDeliveryExpressList } from '#/api/mall/trade/delivery/express';
|
||||
import { getSimpleDeliveryPickUpStoreList } from '#/api/mall/trade/delivery/pickUpStore';
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ import { DocAlert, Page, prompt, useVbenModal } from '@vben/common-ui';
|
|||
import {
|
||||
DeliveryTypeEnum,
|
||||
DICT_TYPE,
|
||||
fenToYuan,
|
||||
TradeOrderStatusEnum,
|
||||
} from '@vben/utils';
|
||||
} from '@vben/constants';
|
||||
import { fenToYuan } from '@vben/utils';
|
||||
|
||||
import { Image, List, Tag, Textarea } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
|||
import type { PayAppApi } from '#/api/pay/app';
|
||||
|
||||
import { confirm, DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { CommonStatusEnum, PayChannelEnum } from '@vben/utils';
|
||||
import { CommonStatusEnum, PayChannelEnum } from '@vben/constants';
|
||||
|
||||
import { message } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,14 +5,13 @@ import { onMounted, ref } from 'vue';
|
|||
import { useRoute, useRouter } from 'vue-router';
|
||||
|
||||
import { Page, useVbenModal } from '@vben/common-ui';
|
||||
import { useTabs } from '@vben/hooks';
|
||||
import {
|
||||
fenToYuan,
|
||||
formatDate,
|
||||
PayChannelEnum,
|
||||
PayDisplayModeEnum,
|
||||
PayOrderStatusEnum,
|
||||
} from '@vben/utils';
|
||||
} from '@vben/constants';
|
||||
import { useTabs } from '@vben/hooks';
|
||||
import { fenToYuan, formatDate } from '@vben/utils';
|
||||
|
||||
import {
|
||||
Button,
|
||||
|
|
|
|||
|
|
@ -6,8 +6,9 @@ import type { SystemMenuApi } from '#/api/system/menu';
|
|||
|
||||
import { h } from 'vue';
|
||||
|
||||
import { SystemMenuTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { handleTree, isHttpUrl, SystemMenuTypeEnum } from '@vben/utils';
|
||||
import { handleTree, isHttpUrl } from '@vben/utils';
|
||||
|
||||
import { z } from '#/adapter/form';
|
||||
import { getMenuList } from '#/api/system/menu';
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import type { SystemMenuApi } from '#/api/system/menu';
|
|||
import { ref } from 'vue';
|
||||
|
||||
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { SystemMenuTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { SystemMenuTypeEnum } from '@vben/utils';
|
||||
|
||||
import { message } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,16 +1,11 @@
|
|||
import type { VbenFormSchema } from '#/adapter/form';
|
||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
|
||||
import { UserTypeEnum } from '@vben/utils';
|
||||
import { CommonStatusEnum, UserTypeEnum } from '@vben/constants';
|
||||
|
||||
import { z } from '#/adapter/form';
|
||||
import { getSimpleUserList } from '#/api/system/user';
|
||||
import {
|
||||
CommonStatusEnum,
|
||||
DICT_TYPE,
|
||||
getDictOptions,
|
||||
getRangePickerDefaultProps,
|
||||
} from '#/utils';
|
||||
import { DICT_TYPE, getDictOptions, getRangePickerDefaultProps } from '#/utils';
|
||||
/** 新增/修改的表单 */
|
||||
export function useFormSchema(): VbenFormSchema[] {
|
||||
return [
|
||||
|
|
|
|||
|
|
@ -1,15 +1,10 @@
|
|||
import type { VbenFormSchema } from '#/adapter/form';
|
||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
|
||||
import { SystemDataScopeEnum } from '@vben/utils';
|
||||
import { CommonStatusEnum, SystemDataScopeEnum } from '@vben/constants';
|
||||
|
||||
import { z } from '#/adapter/form';
|
||||
import {
|
||||
CommonStatusEnum,
|
||||
DICT_TYPE,
|
||||
getDictOptions,
|
||||
getRangePickerDefaultProps,
|
||||
} from '#/utils';
|
||||
import { DICT_TYPE, getDictOptions, getRangePickerDefaultProps } from '#/utils';
|
||||
|
||||
/** 新增/修改的表单 */
|
||||
export function useFormSchema(): VbenFormSchema[] {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@ import type { SystemRoleApi } from '#/api/system/role';
|
|||
import { ref } from 'vue';
|
||||
|
||||
import { useVbenModal, VbenTree } from '@vben/common-ui';
|
||||
import { handleTree, SystemDataScopeEnum } from '@vben/utils';
|
||||
import { SystemDataScopeEnum } from '@vben/constants';
|
||||
import { handleTree } from '@vben/utils';
|
||||
|
||||
import { Checkbox, message } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@ import type { SystemRoleApi } from '#/api/system/role';
|
|||
import { ref } from 'vue';
|
||||
|
||||
import { useVbenModal, VbenTree } from '@vben/common-ui';
|
||||
import { handleTree, SystemMenuTypeEnum } from '@vben/utils';
|
||||
import { SystemMenuTypeEnum } from '@vben/constants';
|
||||
import { handleTree } from '@vben/utils';
|
||||
|
||||
import { Checkbox, message } from 'ant-design-vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import type { VbenFormSchema } from '#/adapter/form';
|
||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
|
||||
import { SystemUserSocialTypeEnum } from '@vben/utils';
|
||||
import { SystemUserSocialTypeEnum } from '@vben/constants';
|
||||
|
||||
import { z } from '#/adapter/form';
|
||||
import { CommonStatusEnum, DICT_TYPE, getDictOptions } from '#/utils';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import type { AiWriteTypeEnum } from '@vben/constants';
|
||||
import type { PageParam, PageResult } from '@vben/request';
|
||||
import type { AiWriteTypeEnum } from '@vben/utils';
|
||||
|
||||
import { useAppConfig } from '@vben/hooks';
|
||||
import { fetchEventSource } from '@vben/request';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
// TODO @芋艿:后续合并到 diy-editor 里,并不是通用的;
|
||||
import { computed } from 'vue';
|
||||
|
||||
import { PREDEFINE_COLORS } from '@vben/utils';
|
||||
import { PREDEFINE_COLORS } from '@vben/constants';
|
||||
|
||||
// 颜色输入框
|
||||
defineOptions({ name: 'ColorInput' });
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@ import type { MallCouponTemplateApi } from '#/api/mall/promotion/coupon/couponTe
|
|||
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
import { floatToFixed2, PromotionDiscountTypeEnum } from '@vben/utils';
|
||||
import { PromotionDiscountTypeEnum } from '@vben/constants';
|
||||
import { floatToFixed2 } from '@vben/utils';
|
||||
|
||||
// 优惠描述
|
||||
export const CouponDiscountDesc = defineComponent({
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@ import type { MallCouponTemplateApi } from '#/api/mall/promotion/coupon/couponTe
|
|||
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
import { floatToFixed2, PromotionDiscountTypeEnum } from '@vben/utils';
|
||||
import { PromotionDiscountTypeEnum } from '@vben/constants';
|
||||
import { floatToFixed2 } from '@vben/utils';
|
||||
|
||||
// 优惠值
|
||||
export const CouponDiscount = defineComponent({
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@ import type { MallCouponTemplateApi } from '#/api/mall/promotion/coupon/couponTe
|
|||
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
import { CouponTemplateValidityTypeEnum, formatDate } from '@vben/utils';
|
||||
import { CouponTemplateValidityTypeEnum } from '@vben/constants';
|
||||
import { formatDate } from '@vben/utils';
|
||||
|
||||
// 有效期
|
||||
export const CouponValidTerm = defineComponent({
|
||||
|
|
|
|||
|
|
@ -5,12 +5,12 @@ import type { MallCouponTemplateApi } from '#/api/mall/promotion/coupon/couponTe
|
|||
|
||||
import { ref, watch } from 'vue';
|
||||
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import {
|
||||
CouponTemplateTakeTypeEnum,
|
||||
floatToFixed2,
|
||||
PromotionDiscountTypeEnum,
|
||||
} from '@vben/utils';
|
||||
} from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { floatToFixed2 } from '@vben/utils';
|
||||
|
||||
import { useVModel } from '@vueuse/core';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import type { MallCombinationActivityApi } from '#/api/mall/promotion/combinatio
|
|||
|
||||
import { onMounted, ref } from 'vue';
|
||||
|
||||
import { CommonStatusEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { CommonStatusEnum } from '@vben/utils';
|
||||
|
||||
import { useVModel } from '@vueuse/core';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import type { MallSeckillActivityApi } from '#/api/mall/promotion/seckill/seckil
|
|||
|
||||
import { onMounted, ref } from 'vue';
|
||||
|
||||
import { CommonStatusEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { CommonStatusEnum } from '@vben/utils';
|
||||
|
||||
import { useVModel } from '@vueuse/core';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<script lang="ts" setup>
|
||||
import { PREDEFINE_COLORS } from '@vben/utils';
|
||||
import { PREDEFINE_COLORS } from '@vben/constants';
|
||||
|
||||
// TODO @芋艿:后续合并到 diy-editor 里,并不是通用的;
|
||||
import { useVModels } from '@vueuse/core';
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue