perf: aotu import hooks
parent
fcd19e1371
commit
8c74e527a9
|
@ -32,7 +32,24 @@ export function createVitePlugins(VITE_APP_TITLE: string) {
|
||||||
PurgeIcons(),
|
PurgeIcons(),
|
||||||
vueSetupExtend(),
|
vueSetupExtend(),
|
||||||
AutoImport({
|
AutoImport({
|
||||||
imports: ['vue', 'vue-router'],
|
include: [
|
||||||
|
/\.[tj]sx?$/, // .ts, .tsx, .js, .jsx
|
||||||
|
/\.vue$/,
|
||||||
|
/\.vue\?vue/, // .vue
|
||||||
|
/\.md$/ // .md
|
||||||
|
],
|
||||||
|
imports: [
|
||||||
|
'vue',
|
||||||
|
'vue-router',
|
||||||
|
{
|
||||||
|
'@/hooks/web/useI18n': ['useI18n'],
|
||||||
|
'@/hooks/web/useXTable': ['useXTable'],
|
||||||
|
'@/hooks/web/useMessage': ['useMessage'],
|
||||||
|
'@/hooks/web/useVxeCrudSchemas': ['useVxeCrudSchemas'],
|
||||||
|
'@/utils/formRules': ['required'],
|
||||||
|
'@/utils/dict': ['DICT_TYPE']
|
||||||
|
}
|
||||||
|
],
|
||||||
dts: 'src/types/auto-imports.d.ts',
|
dts: 'src/types/auto-imports.d.ts',
|
||||||
resolvers: [ElementPlusResolver()],
|
resolvers: [ElementPlusResolver()],
|
||||||
eslintrc: {
|
eslintrc: {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "yudao-ui-admin-vue3",
|
"name": "yudao-ui-admin-vue3",
|
||||||
"version": "1.6.6-snapshot.1923",
|
"version": "1.6.6-snapshot.1925",
|
||||||
"description": "基于vue3、vite4、element-plus、typesScript",
|
"description": "基于vue3、vite4、element-plus、typesScript",
|
||||||
"author": "xingyu",
|
"author": "xingyu",
|
||||||
"private": false,
|
"private": false,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { propTypes } from '@/utils/propTypes'
|
import { propTypes } from '@/utils/propTypes'
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
||||||
const { getPrefixCls } = useDesign()
|
const { getPrefixCls } = useDesign()
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { propTypes } from '@/utils/propTypes'
|
import { propTypes } from '@/utils/propTypes'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import CopperModal from './CopperModal.vue'
|
import CopperModal from './CopperModal.vue'
|
||||||
|
|
|
@ -3,7 +3,6 @@ import pageError from '@/assets/svgs/404.svg'
|
||||||
import networkError from '@/assets/svgs/500.svg'
|
import networkError from '@/assets/svgs/500.svg'
|
||||||
import noPermission from '@/assets/svgs/403.svg'
|
import noPermission from '@/assets/svgs/403.svg'
|
||||||
import { propTypes } from '@/utils/propTypes'
|
import { propTypes } from '@/utils/propTypes'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
|
|
||||||
interface ErrorMap {
|
interface ErrorMap {
|
||||||
url: string
|
url: string
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import type { Slots } from 'vue'
|
import type { Slots } from 'vue'
|
||||||
import { getSlot } from '@/utils/tsxHelper'
|
import { getSlot } from '@/utils/tsxHelper'
|
||||||
import { PlaceholderMoel } from './types'
|
import { PlaceholderMoel } from './types'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { PropType } from 'vue'
|
import { PropType } from 'vue'
|
||||||
import { propTypes } from '@/utils/propTypes'
|
import { propTypes } from '@/utils/propTypes'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useForm } from '@/hooks/web/useForm'
|
import { useForm } from '@/hooks/web/useForm'
|
||||||
import { findIndex } from '@/utils'
|
import { findIndex } from '@/utils'
|
||||||
import { cloneDeep } from 'lodash-es'
|
import { cloneDeep } from 'lodash-es'
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="UploadFile">
|
<script setup lang="ts" name="UploadFile">
|
||||||
import { PropType } from 'vue'
|
import { PropType } from 'vue'
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { propTypes } from '@/utils/propTypes'
|
import { propTypes } from '@/utils/propTypes'
|
||||||
import { getAccessToken, getTenantId } from '@/utils/auth'
|
import { getAccessToken, getTenantId } from '@/utils/auth'
|
||||||
import type { UploadInstance, UploadUserFile, UploadProps, UploadRawFile } from 'element-plus'
|
import type { UploadInstance, UploadUserFile, UploadProps, UploadRawFile } from 'element-plus'
|
||||||
|
|
|
@ -52,8 +52,7 @@
|
||||||
|
|
||||||
<script setup lang="ts" name="UploadImg">
|
<script setup lang="ts" name="UploadImg">
|
||||||
import type { UploadProps } from 'element-plus'
|
import type { UploadProps } from 'element-plus'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { generateUUID } from '@/utils'
|
import { generateUUID } from '@/utils'
|
||||||
import { propTypes } from '@/utils/propTypes'
|
import { propTypes } from '@/utils/propTypes'
|
||||||
import { getAccessToken, getTenantId } from '@/utils/auth'
|
import { getAccessToken, getTenantId } from '@/utils/auth'
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
import { PropType, ref } from 'vue'
|
import { PropType, ref } from 'vue'
|
||||||
import { ElUpload, ElNotification, ElImageViewer } from 'element-plus'
|
import { ElUpload, ElNotification, ElImageViewer } from 'element-plus'
|
||||||
import type { UploadProps, UploadFile, UploadUserFile } from 'element-plus'
|
import type { UploadProps, UploadFile, UploadUserFile } from 'element-plus'
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { propTypes } from '@/utils/propTypes'
|
import { propTypes } from '@/utils/propTypes'
|
||||||
import { getAccessToken, getTenantId } from '@/utils/auth'
|
import { getAccessToken, getTenantId } from '@/utils/auth'
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,6 @@
|
||||||
* */
|
* */
|
||||||
import { VerifySlide, VerifyPoints } from './Verify'
|
import { VerifySlide, VerifyPoints } from './Verify'
|
||||||
import { computed, ref, toRefs, watchEffect } from 'vue'
|
import { computed, ref, toRefs, watchEffect } from 'vue'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Vue3Verify',
|
name: 'Vue3Verify',
|
||||||
|
|
|
@ -66,7 +66,6 @@ import { resetSize } from './../utils/util'
|
||||||
import { aesEncrypt } from './../utils/ase'
|
import { aesEncrypt } from './../utils/ase'
|
||||||
import { getCodeApi, reqCheckApi } from '@/api/login'
|
import { getCodeApi, reqCheckApi } from '@/api/login'
|
||||||
import { onMounted, reactive, ref, nextTick, toRefs, getCurrentInstance } from 'vue'
|
import { onMounted, reactive, ref, nextTick, toRefs, getCurrentInstance } from 'vue'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
//弹出式pop,固定fixed
|
//弹出式pop,固定fixed
|
||||||
|
|
|
@ -79,7 +79,6 @@
|
||||||
import { aesEncrypt } from './../utils/ase'
|
import { aesEncrypt } from './../utils/ase'
|
||||||
import { resetSize } from './../utils/util'
|
import { resetSize } from './../utils/util'
|
||||||
import { getCodeApi, reqCheckApi } from '@/api/login'
|
import { getCodeApi, reqCheckApi } from '@/api/login'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
captchaType: {
|
captchaType: {
|
||||||
|
|
|
@ -12,9 +12,8 @@ import { useAppStore } from '@/store/modules/app'
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
import { XTableProps } from './type'
|
import { XTableProps } from './type'
|
||||||
import { isBoolean, isFunction } from '@/utils/is'
|
import { isBoolean, isFunction } from '@/utils/is'
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import download from '@/utils/download'
|
import download from '@/utils/download'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const message = useMessage() // 消息弹窗
|
const message = useMessage() // 消息弹窗
|
||||||
|
|
|
@ -10,7 +10,7 @@ import qs from 'qs'
|
||||||
import { config } from '@/config/axios/config'
|
import { config } from '@/config/axios/config'
|
||||||
import { getAccessToken, getRefreshToken, getTenantId, removeToken, setToken } from '@/utils/auth'
|
import { getAccessToken, getRefreshToken, getTenantId, removeToken, setToken } from '@/utils/auth'
|
||||||
import errorCode from './errorCode'
|
import errorCode from './errorCode'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { resetRouter } from '@/router'
|
import { resetRouter } from '@/router'
|
||||||
import { useCache } from '@/hooks/web/useCache'
|
import { useCache } from '@/hooks/web/useCache'
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import type { App } from 'vue'
|
import type { App } from 'vue'
|
||||||
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
export function hasPermi(app: App<Element>) {
|
export function hasPermi(app: App<Element>) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import type { App } from 'vue'
|
import type { App } from 'vue'
|
||||||
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
export function hasRole(app: App<Element>) {
|
export function hasRole(app: App<Element>) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { AxiosPromise } from 'axios'
|
||||||
import { findIndex } from '@/utils'
|
import { findIndex } from '@/utils'
|
||||||
import { eachTree, treeMap, filter } from '@/utils/tree'
|
import { eachTree, treeMap, filter } from '@/utils/tree'
|
||||||
import { getBoolDictOptions, getDictOptions, getIntDictOptions } from '@/utils/dict'
|
import { getBoolDictOptions, getDictOptions, getIntDictOptions } from '@/utils/dict'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { FormSchema } from '@/types/form'
|
import { FormSchema } from '@/types/form'
|
||||||
import { TableColumn } from '@/types/table'
|
import { TableColumn } from '@/types/table'
|
||||||
import { DescriptionsSchema } from '@/types/descriptions'
|
import { DescriptionsSchema } from '@/types/descriptions'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import introJs from 'intro.js'
|
import introJs from 'intro.js'
|
||||||
import { IntroJs, Step, Options } from 'intro.js'
|
import { IntroJs, Step, Options } from 'intro.js'
|
||||||
import 'intro.js/introjs.css'
|
import 'intro.js/introjs.css'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
|
|
||||||
export const useIntro = (setps?: Step[], options?: Options) => {
|
export const useIntro = (setps?: Step[], options?: Options) => {
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { Table, TableExpose } from '@/components/Table'
|
||||||
import { ElMessage, ElMessageBox, ElTable } from 'element-plus'
|
import { ElMessage, ElMessageBox, ElTable } from 'element-plus'
|
||||||
import { computed, nextTick, reactive, ref, unref, watch } from 'vue'
|
import { computed, nextTick, reactive, ref, unref, watch } from 'vue'
|
||||||
import type { TableProps } from '@/components/Table/src/types'
|
import type { TableProps } from '@/components/Table/src/types'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { TableSetPropsType } from '@/types/table'
|
import { TableSetPropsType } from '@/types/table'
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import { watch, ref } from 'vue'
|
import { watch, ref } from 'vue'
|
||||||
import { isString } from '@/utils/is'
|
import { isString } from '@/utils/is'
|
||||||
import { useAppStoreWithOut } from '@/store/modules/app'
|
import { useAppStoreWithOut } from '@/store/modules/app'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
|
|
||||||
const appStore = useAppStoreWithOut()
|
const appStore = useAppStoreWithOut()
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
||||||
type Callback = (error?: string | Error | undefined) => void
|
type Callback = (error?: string | Error | undefined) => void
|
||||||
|
|
|
@ -6,7 +6,7 @@ import {
|
||||||
VxeTableDefines
|
VxeTableDefines
|
||||||
} from 'vxe-table'
|
} from 'vxe-table'
|
||||||
import { eachTree } from 'xe-utils'
|
import { eachTree } from 'xe-utils'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { getBoolDictOptions, getDictOptions, getIntDictOptions } from '@/utils/dict'
|
import { getBoolDictOptions, getDictOptions, getIntDictOptions } from '@/utils/dict'
|
||||||
import { FormSchema } from '@/types/form'
|
import { FormSchema } from '@/types/form'
|
||||||
import { VxeTableColumn } from '@/types/table'
|
import { VxeTableColumn } from '@/types/table'
|
||||||
|
|
|
@ -2,8 +2,7 @@ import { computed, nextTick, reactive } from 'vue'
|
||||||
import { SizeType, VxeGridProps, VxeTablePropTypes } from 'vxe-table'
|
import { SizeType, VxeGridProps, VxeTablePropTypes } from 'vxe-table'
|
||||||
import { useAppStore } from '@/store/modules/app'
|
import { useAppStore } from '@/store/modules/app'
|
||||||
import { VxeAllSchemas } from './useVxeCrudSchemas'
|
import { VxeAllSchemas } from './useVxeCrudSchemas'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import download from '@/utils/download'
|
import download from '@/utils/download'
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { usePermissionStore } from '@/store/modules/permission'
|
||||||
import { filterBreadcrumb } from './helper'
|
import { filterBreadcrumb } from './helper'
|
||||||
import { filter, treeToList } from '@/utils/tree'
|
import { filter, treeToList } from '@/utils/tree'
|
||||||
import type { RouteLocationNormalizedLoaded, RouteMeta } from 'vue-router'
|
import type { RouteLocationNormalizedLoaded, RouteMeta } from 'vue-router'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { Icon } from '@/components/Icon'
|
import { Icon } from '@/components/Icon'
|
||||||
import { useAppStore } from '@/store/modules/app'
|
import { useAppStore } from '@/store/modules/app'
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { PropType } from 'vue'
|
import { PropType } from 'vue'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
import type { RouteLocationNormalizedLoaded } from 'vue-router'
|
import type { RouteLocationNormalizedLoaded } from 'vue-router'
|
||||||
import { contextMenuSchema } from '@/types/contextMenu'
|
import { contextMenuSchema } from '@/types/contextMenu'
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import type { RouteMeta } from 'vue-router'
|
import type { RouteMeta } from 'vue-router'
|
||||||
import { Icon } from '@/components/Icon'
|
import { Icon } from '@/components/Icon'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
|
|
||||||
export const useRenderMenuTitle = () => {
|
export const useRenderMenuTitle = () => {
|
||||||
const renderMenuTitle = (meta: RouteMeta) => {
|
const renderMenuTitle = (meta: RouteMeta) => {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
import { useCssVar, useClipboard } from '@vueuse/core'
|
import { useCssVar, useClipboard } from '@vueuse/core'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { setCssVar } from '@/utils'
|
import { setCssVar } from '@/utils'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
import { useWatermark } from '@/hooks/web/useWatermark'
|
import { useWatermark } from '@/hooks/web/useWatermark'
|
||||||
import { useAppStore } from '@/store/modules/app'
|
import { useAppStore } from '@/store/modules/app'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useAppStore } from '@/store/modules/app'
|
import { useAppStore } from '@/store/modules/app'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { propTypes } from '@/utils/propTypes'
|
import { propTypes } from '@/utils/propTypes'
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
import { ElementPlusSize } from '@/types/elementPlus'
|
import { ElementPlusSize } from '@/types/elementPlus'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<script lang="tsx">
|
<script lang="tsx">
|
||||||
import { usePermissionStore } from '@/store/modules/permission'
|
import { usePermissionStore } from '@/store/modules/permission'
|
||||||
import { useAppStore } from '@/store/modules/app'
|
import { useAppStore } from '@/store/modules/app'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { ElScrollbar } from 'element-plus'
|
import { ElScrollbar } from 'element-plus'
|
||||||
import { Icon } from '@/components/Icon'
|
import { Icon } from '@/components/Icon'
|
||||||
import { Menu } from '@/layout/components/Menu'
|
import { Menu } from '@/layout/components/Menu'
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { RouteLocationNormalizedLoaded, RouterLinkProps } from 'vue-router'
|
||||||
import { usePermissionStore } from '@/store/modules/permission'
|
import { usePermissionStore } from '@/store/modules/permission'
|
||||||
import { useTagsViewStore } from '@/store/modules/tagsView'
|
import { useTagsViewStore } from '@/store/modules/tagsView'
|
||||||
import { useAppStore } from '@/store/modules/app'
|
import { useAppStore } from '@/store/modules/app'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { filterAffixTags } from './helper'
|
import { filterAffixTags } from './helper'
|
||||||
import { ContextMenu, ContextMenuExpose } from '@/layout/components/ContextMenu'
|
import { ContextMenu, ContextMenuExpose } from '@/layout/components/ContextMenu'
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ElMessageBox } from 'element-plus'
|
import { ElMessageBox } from 'element-plus'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
import avatarImg from '@/assets/imgs/avatar.gif'
|
import avatarImg from '@/assets/imgs/avatar.gif'
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { ElDatePicker } from 'element-plus'
|
import { ElDatePicker } from 'element-plus'
|
||||||
import { VXETable } from 'vxe-table'
|
import { VXETable } from 'vxe-table'
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { Layout } from '@/utils/routerHelper'
|
import { Layout } from '@/utils/routerHelper'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
/**
|
/**
|
||||||
* redirect: noredirect 当设置 noredirect 的时候该路由在面包屑导航中不可被点击
|
* redirect: noredirect 当设置 noredirect 的时候该路由在面包屑导航中不可被点击
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
// Generated by 'unplugin-auto-import'
|
// Generated by 'unplugin-auto-import'
|
||||||
export {}
|
export {}
|
||||||
declare global {
|
declare global {
|
||||||
|
const DICT_TYPE: typeof import('@/utils/dict')['DICT_TYPE']
|
||||||
const EffectScope: typeof import('vue')['EffectScope']
|
const EffectScope: typeof import('vue')['EffectScope']
|
||||||
const computed: typeof import('vue')['computed']
|
const computed: typeof import('vue')['computed']
|
||||||
const createApp: typeof import('vue')['createApp']
|
const createApp: typeof import('vue')['createApp']
|
||||||
|
@ -37,6 +38,7 @@ declare global {
|
||||||
const reactive: typeof import('vue')['reactive']
|
const reactive: typeof import('vue')['reactive']
|
||||||
const readonly: typeof import('vue')['readonly']
|
const readonly: typeof import('vue')['readonly']
|
||||||
const ref: typeof import('vue')['ref']
|
const ref: typeof import('vue')['ref']
|
||||||
|
const required: typeof import('@/utils/formRules')['required']
|
||||||
const resolveComponent: typeof import('vue')['resolveComponent']
|
const resolveComponent: typeof import('vue')['resolveComponent']
|
||||||
const resolveDirective: typeof import('vue')['resolveDirective']
|
const resolveDirective: typeof import('vue')['resolveDirective']
|
||||||
const shallowReactive: typeof import('vue')['shallowReactive']
|
const shallowReactive: typeof import('vue')['shallowReactive']
|
||||||
|
@ -50,10 +52,14 @@ declare global {
|
||||||
const useAttrs: typeof import('vue')['useAttrs']
|
const useAttrs: typeof import('vue')['useAttrs']
|
||||||
const useCssModule: typeof import('vue')['useCssModule']
|
const useCssModule: typeof import('vue')['useCssModule']
|
||||||
const useCssVars: typeof import('vue')['useCssVars']
|
const useCssVars: typeof import('vue')['useCssVars']
|
||||||
|
const useI18n: typeof import('@/hooks/web/useI18n')['useI18n']
|
||||||
const useLink: typeof import('vue-router')['useLink']
|
const useLink: typeof import('vue-router')['useLink']
|
||||||
|
const useMessage: typeof import('@/hooks/web/useMessage')['useMessage']
|
||||||
const useRoute: typeof import('vue-router')['useRoute']
|
const useRoute: typeof import('vue-router')['useRoute']
|
||||||
const useRouter: typeof import('vue-router')['useRouter']
|
const useRouter: typeof import('vue-router')['useRouter']
|
||||||
const useSlots: typeof import('vue')['useSlots']
|
const useSlots: typeof import('vue')['useSlots']
|
||||||
|
const useVxeCrudSchemas: typeof import('@/hooks/web/useVxeCrudSchemas')['useVxeCrudSchemas']
|
||||||
|
const useXTable: typeof import('@/hooks/web/useXTable')['useXTable']
|
||||||
const watch: typeof import('vue')['watch']
|
const watch: typeof import('vue')['watch']
|
||||||
const watchEffect: typeof import('vue')['watchEffect']
|
const watchEffect: typeof import('vue')['watchEffect']
|
||||||
const watchPostEffect: typeof import('vue')['watchPostEffect']
|
const watchPostEffect: typeof import('vue')['watchPostEffect']
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
||||||
// 必填项
|
// 必填项
|
||||||
|
|
|
@ -164,7 +164,7 @@
|
||||||
import { set } from 'lodash-es'
|
import { set } from 'lodash-es'
|
||||||
import { EChartsOption } from 'echarts'
|
import { EChartsOption } from 'echarts'
|
||||||
import { formatTime } from '@/utils'
|
import { formatTime } from '@/utils'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useUserStore } from '@/store/modules/user'
|
import { useUserStore } from '@/store/modules/user'
|
||||||
import { useWatermark } from '@/hooks/web/useWatermark'
|
import { useWatermark } from '@/hooks/web/useWatermark'
|
||||||
import avatarImg from '@/assets/imgs/avatar.gif'
|
import avatarImg from '@/assets/imgs/avatar.gif'
|
||||||
|
|
|
@ -143,7 +143,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { set } from 'lodash-es'
|
import { set } from 'lodash-es'
|
||||||
import { EChartsOption } from 'echarts'
|
import { EChartsOption } from 'echarts'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
import type { AnalysisTotalTypes } from './types'
|
import type { AnalysisTotalTypes } from './types'
|
||||||
import { pieOptions, barOptions, lineOptions } from './echarts-data'
|
import { pieOptions, barOptions, lineOptions } from './echarts-data'
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { EChartsOption } from 'echarts'
|
import { EChartsOption } from 'echarts'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { underlineToHump } from '@/utils'
|
import { underlineToHump } from '@/utils'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
import { useAppStore } from '@/store/modules/app'
|
import { useAppStore } from '@/store/modules/app'
|
||||||
import { ThemeSwitch } from '@/layout/components/ThemeSwitch'
|
import { ThemeSwitch } from '@/layout/components/ThemeSwitch'
|
||||||
|
|
|
@ -131,10 +131,9 @@
|
||||||
import { ElLoading } from 'element-plus'
|
import { ElLoading } from 'element-plus'
|
||||||
import LoginFormTitle from './LoginFormTitle.vue'
|
import LoginFormTitle from './LoginFormTitle.vue'
|
||||||
import type { RouteLocationNormalizedLoaded } from 'vue-router'
|
import type { RouteLocationNormalizedLoaded } from 'vue-router'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useIcon } from '@/hooks/web/useIcon'
|
import { useIcon } from '@/hooks/web/useIcon'
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { required } from '@/utils/formRules'
|
|
||||||
import * as authUtil from '@/utils/auth'
|
import * as authUtil from '@/utils/auth'
|
||||||
import { usePermissionStore } from '@/store/modules/permission'
|
import { usePermissionStore } from '@/store/modules/permission'
|
||||||
import * as LoginApi from '@/api/login'
|
import * as LoginApi from '@/api/login'
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
</h2>
|
</h2>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { LoginStateEnum, useLoginState } from './useLogin'
|
import { LoginStateEnum, useLoginState } from './useLogin'
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
|
@ -93,10 +93,9 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { RouteLocationNormalizedLoaded } from 'vue-router'
|
import type { RouteLocationNormalizedLoaded } from 'vue-router'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useIcon } from '@/hooks/web/useIcon'
|
import { useIcon } from '@/hooks/web/useIcon'
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { required } from '@/utils/formRules'
|
|
||||||
import { setTenantId, setToken } from '@/utils/auth'
|
import { setTenantId, setToken } from '@/utils/auth'
|
||||||
import { usePermissionStore } from '@/store/modules/permission'
|
import { usePermissionStore } from '@/store/modules/permission'
|
||||||
import { getTenantIdByNameApi, sendSmsCodeApi, smsLoginApi } from '@/api/login'
|
import { getTenantIdByNameApi, sendSmsCodeApi, smsLoginApi } from '@/api/login'
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import logoImg from '@/assets/imgs/logo.png'
|
import logoImg from '@/assets/imgs/logo.png'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import LoginFormTitle from './LoginFormTitle.vue'
|
import LoginFormTitle from './LoginFormTitle.vue'
|
||||||
import { useLoginState, LoginStateEnum } from './useLogin'
|
import { useLoginState, LoginStateEnum } from './useLogin'
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { FormRules } from 'element-plus'
|
import type { FormRules } from 'element-plus'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useForm } from '@/hooks/web/useForm'
|
import { useForm } from '@/hooks/web/useForm'
|
||||||
import { useValidator } from '@/hooks/web/useValidator'
|
import { useValidator } from '@/hooks/web/useValidator'
|
||||||
import LoginFormTitle from './LoginFormTitle.vue'
|
import LoginFormTitle from './LoginFormTitle.vue'
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="Profile">
|
<script setup lang="ts" name="Profile">
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { BasicInfo, ProfileUser, ResetPwd, UserSocial } from './components/'
|
import { BasicInfo, ProfileUser, ResetPwd, UserSocial } from './components/'
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { FormRules } from 'element-plus'
|
import type { FormRules } from 'element-plus'
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { FormSchema } from '@/types/form'
|
import { FormSchema } from '@/types/form'
|
||||||
import type { FormExpose } from '@/components/Form'
|
import type { FormExpose } from '@/components/Form'
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import UserAvatar from './UserAvatar.vue'
|
import UserAvatar from './UserAvatar.vue'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { getUserProfileApi, ProfileVO } from '@/api/system/user/profile'
|
import { getUserProfileApi, ProfileVO } from '@/api/system/user/profile'
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
|
@ -17,8 +17,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { FormRules, FormInstance } from 'element-plus'
|
import type { FormRules, FormInstance } from 'element-plus'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { InputPassword } from '@/components/InputPassword'
|
import { InputPassword } from '@/components/InputPassword'
|
||||||
import { updateUserPwdApi } from '@/api/system/user/profile'
|
import { updateUserPwdApi } from '@/api/system/user/profile'
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
</el-table>
|
</el-table>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { SystemUserSocialTypeEnum } from '@/utils/constants'
|
import { SystemUserSocialTypeEnum } from '@/utils/constants'
|
||||||
import { getUserProfileApi, ProfileVO } from '@/api/system/user/profile'
|
import { getUserProfileApi, ProfileVO } from '@/api/system/user/profile'
|
||||||
import { socialAuthRedirect, socialUnbind } from '@/api/system/user/socialUser'
|
import { socialAuthRedirect, socialUnbind } from '@/api/system/user/socialUser'
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { required } from '@/utils/formRules'
|
|
||||||
import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'
|
import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
// 表单校验
|
// 表单校验
|
||||||
|
|
|
@ -1,14 +1,13 @@
|
||||||
<script setup lang="ts" name="Form">
|
<script setup lang="ts" name="Form">
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import { ElMessage } from 'element-plus'
|
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
import { DICT_TYPE } from '@/utils/dict'
|
||||||
import { useTable } from '@/hooks/web/useTable'
|
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import type { FormExpose } from '@/components/Form'
|
import type { FormExpose } from '@/components/Form'
|
||||||
import type { FormVO } from '@/api/bpm/form/types'
|
import type { FormVO } from '@/api/bpm/form/types'
|
||||||
import { rules, allSchemas } from './form.data'
|
import { rules, allSchemas } from './form.data'
|
||||||
import * as FormApi from '@/api/bpm/form'
|
import * as FormApi from '@/api/bpm/form'
|
||||||
|
import { useTable } from '@/hooks/web/useTable'
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
const message = useMessage()
|
||||||
|
|
||||||
// ========== 列表相关 ==========
|
// ========== 列表相关 ==========
|
||||||
const { register, tableObject, methods } = useTable<FormVO>({
|
const { register, tableObject, methods } = useTable<FormVO>({
|
||||||
|
@ -56,10 +55,10 @@ const submitForm = async () => {
|
||||||
const data = unref(formRef)?.formModel as FormVO
|
const data = unref(formRef)?.formModel as FormVO
|
||||||
if (actionType.value === 'create') {
|
if (actionType.value === 'create') {
|
||||||
await FormApi.createFormApi(data)
|
await FormApi.createFormApi(data)
|
||||||
ElMessage.success(t('common.createSuccess'))
|
message.success(t('common.createSuccess'))
|
||||||
} else {
|
} else {
|
||||||
await FormApi.updateFormApi(data)
|
await FormApi.updateFormApi(data)
|
||||||
ElMessage.success(t('common.updateSuccess'))
|
message.success(t('common.updateSuccess'))
|
||||||
}
|
}
|
||||||
// 操作成功,重新加载列表
|
// 操作成功,重新加载列表
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { required } from '@/utils/formRules'
|
|
||||||
import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'
|
import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
// 表单校验
|
// 表单校验
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
<script setup lang="ts" name="Group">
|
<script setup lang="ts" name="Group">
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import { ElMessage } from 'element-plus'
|
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
import { DICT_TYPE } from '@/utils/dict'
|
||||||
import { useTable } from '@/hooks/web/useTable'
|
import { useTable } from '@/hooks/web/useTable'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import type { FormExpose } from '@/components/Form'
|
import type { FormExpose } from '@/components/Form'
|
||||||
import type { UserGroupVO } from '@/api/bpm/userGroup/types'
|
import type { UserGroupVO } from '@/api/bpm/userGroup/types'
|
||||||
import { rules, allSchemas } from './group.data'
|
import { rules, allSchemas } from './group.data'
|
||||||
|
@ -12,6 +10,7 @@ import { getListSimpleUsersApi } from '@/api/system/user'
|
||||||
import { UserVO } from '@/api/system/user'
|
import { UserVO } from '@/api/system/user'
|
||||||
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
const message = useMessage()
|
||||||
|
|
||||||
// ========== 列表相关 ==========
|
// ========== 列表相关 ==========
|
||||||
const { register, tableObject, methods } = useTable<UserGroupVO>({
|
const { register, tableObject, methods } = useTable<UserGroupVO>({
|
||||||
|
@ -66,10 +65,10 @@ const submitForm = async () => {
|
||||||
const data = unref(formRef)?.formModel as UserGroupVO
|
const data = unref(formRef)?.formModel as UserGroupVO
|
||||||
if (actionType.value === 'create') {
|
if (actionType.value === 'create') {
|
||||||
await UserGroupApi.createUserGroupApi(data)
|
await UserGroupApi.createUserGroupApi(data)
|
||||||
ElMessage.success(t('common.createSuccess'))
|
message.success(t('common.createSuccess'))
|
||||||
} else {
|
} else {
|
||||||
await UserGroupApi.updateUserGroupApi(data)
|
await UserGroupApi.updateUserGroupApi(data)
|
||||||
ElMessage.success(t('common.updateSuccess'))
|
message.success(t('common.updateSuccess'))
|
||||||
}
|
}
|
||||||
// 操作成功,重新加载列表
|
// 操作成功,重新加载列表
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
|
|
|
@ -2,14 +2,13 @@
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
import { DICT_TYPE } from '@/utils/dict'
|
||||||
import { useTable } from '@/hooks/web/useTable'
|
import { useTable } from '@/hooks/web/useTable'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import type { FormExpose } from '@/components/Form'
|
import type { FormExpose } from '@/components/Form'
|
||||||
import type { ModelVO } from '@/api/bpm/model/types'
|
import type { ModelVO } from '@/api/bpm/model/types'
|
||||||
import { rules, allSchemas } from './model.data'
|
import { rules, allSchemas } from './model.data'
|
||||||
import * as ModelApi from '@/api/bpm/model'
|
import * as ModelApi from '@/api/bpm/model'
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
const message = useMessage()
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
const message = useMessage()
|
||||||
|
|
||||||
// ========== 列表相关 ==========
|
// ========== 列表相关 ==========
|
||||||
const { register, tableObject, methods } = useTable<ModelVO>({
|
const { register, tableObject, methods } = useTable<ModelVO>({
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { required } from '@/utils/formRules'
|
|
||||||
import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'
|
import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
// 表单校验
|
// 表单校验
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
import { DICT_TYPE } from '@/utils/dict'
|
||||||
import { useTable } from '@/hooks/web/useTable'
|
import { useTable } from '@/hooks/web/useTable'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import type { ProcessInstanceVO } from '@/api/bpm/processInstance/types'
|
import type { ProcessInstanceVO } from '@/api/bpm/processInstance/types'
|
||||||
import { allSchemas } from './process.data'
|
import { allSchemas } from './process.data'
|
||||||
import * as ProcessInstanceApi from '@/api/bpm/processInstance'
|
import * as ProcessInstanceApi from '@/api/bpm/processInstance'
|
||||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
import { ElMessageBox } from 'element-plus'
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
const message = useMessage()
|
||||||
|
|
||||||
// ========== 列表相关 ==========
|
// ========== 列表相关 ==========
|
||||||
const { register, tableObject, methods } = useTable<ProcessInstanceVO>({
|
const { register, tableObject, methods } = useTable<ProcessInstanceVO>({
|
||||||
|
@ -31,7 +31,7 @@ const handleCancel = (row: ProcessInstanceVO) => {
|
||||||
inputErrorMessage: '取消原因不能为空'
|
inputErrorMessage: '取消原因不能为空'
|
||||||
}).then(async ({ value }) => {
|
}).then(async ({ value }) => {
|
||||||
await ProcessInstanceApi.cancelProcessInstanceApi(row.id, value)
|
await ProcessInstanceApi.cancelProcessInstanceApi(row.id, value)
|
||||||
ElMessage.success('取消成功')
|
message.success('取消成功')
|
||||||
getList()
|
getList()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'
|
import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
// CrudSchema
|
// CrudSchema
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'
|
import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
// CrudSchema
|
// CrudSchema
|
||||||
|
|
|
@ -2,11 +2,10 @@
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import duration from 'dayjs/plugin/duration'
|
import duration from 'dayjs/plugin/duration'
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
import { DICT_TYPE } from '@/utils/dict'
|
||||||
import { useTable } from '@/hooks/web/useTable'
|
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import type { TaskDoneVO } from '@/api/bpm/task/types'
|
import type { TaskDoneVO } from '@/api/bpm/task/types'
|
||||||
import { allSchemas } from './done.data'
|
import { allSchemas } from './done.data'
|
||||||
import * as TaskDoneApi from '@/api/bpm/task'
|
import * as TaskDoneApi from '@/api/bpm/task'
|
||||||
|
import { useTable } from '@/hooks/web/useTable'
|
||||||
dayjs.extend(duration)
|
dayjs.extend(duration)
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
const { push } = useRouter()
|
const { push } = useRouter()
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'
|
import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
|
||||||
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
|
|
||||||
|
|
||||||
// CrudSchema
|
// CrudSchema
|
||||||
const crudSchemas = reactive<VxeCrudSchema>({
|
const crudSchemas = reactive<VxeCrudSchema>({
|
||||||
|
|
|
@ -36,8 +36,6 @@
|
||||||
</XModal>
|
</XModal>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="ApiAccessLog">
|
<script setup lang="ts" name="ApiAccessLog">
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useXTable } from '@/hooks/web/useXTable'
|
|
||||||
import { allSchemas } from './apiAccessLog.data'
|
import { allSchemas } from './apiAccessLog.data'
|
||||||
import * as ApiAccessLogApi from '@/api/infra/apiAccessLog'
|
import * as ApiAccessLogApi from '@/api/infra/apiAccessLog'
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
|
||||||
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
|
|
||||||
|
|
||||||
// CrudSchema
|
// CrudSchema
|
||||||
const crudSchemas = reactive<VxeCrudSchema>({
|
const crudSchemas = reactive<VxeCrudSchema>({
|
||||||
|
|
|
@ -52,12 +52,9 @@
|
||||||
</XModal>
|
</XModal>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="ApiErrorLog">
|
<script setup lang="ts" name="ApiErrorLog">
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useXTable } from '@/hooks/web/useXTable'
|
|
||||||
import { allSchemas } from './apiErrorLog.data'
|
import { allSchemas } from './apiErrorLog.data'
|
||||||
import * as ApiErrorLogApi from '@/api/infra/apiErrorLog'
|
import * as ApiErrorLogApi from '@/api/infra/apiErrorLog'
|
||||||
import { InfraApiErrorLogProcessStatusEnum } from '@/utils/constants'
|
import { InfraApiErrorLogProcessStatusEnum } from '@/utils/constants'
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
const message = useMessage()
|
const message = useMessage()
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
</ContentWrap>
|
</ContentWrap>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { BasicInfoForm, CloumInfoForm } from './components'
|
import { BasicInfoForm, CloumInfoForm } from './components'
|
||||||
import { getCodegenTableApi, updateCodegenTableApi } from '@/api/infra/codegen'
|
import { getCodegenTableApi, updateCodegenTableApi } from '@/api/infra/codegen'
|
||||||
import { CodegenTableVO, CodegenColumnVO, CodegenUpdateReqVO } from '@/api/infra/codegen/types'
|
import { CodegenTableVO, CodegenColumnVO, CodegenUpdateReqVO } from '@/api/infra/codegen/types'
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
|
||||||
import { required } from '@/utils/formRules'
|
|
||||||
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
// 表单校验
|
// 表单校验
|
||||||
|
|
|
@ -2,14 +2,13 @@
|
||||||
<Form :rules="rules" @register="register" />
|
<Form :rules="rules" @register="register" />
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { PropType } from 'vue'
|
|
||||||
import { required } from '@/utils/formRules'
|
|
||||||
import { useForm } from '@/hooks/web/useForm'
|
import { useForm } from '@/hooks/web/useForm'
|
||||||
import { FormSchema } from '@/types/form'
|
import { FormSchema } from '@/types/form'
|
||||||
import { CodegenTableVO } from '@/api/infra/codegen/types'
|
import { CodegenTableVO } from '@/api/infra/codegen/types'
|
||||||
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
import { getIntDictOptions } from '@/utils/dict'
|
||||||
import { listSimpleMenusApi } from '@/api/system/menu'
|
import { listSimpleMenusApi } from '@/api/system/menu'
|
||||||
import { handleTree, defaultProps } from '@/utils/tree'
|
import { handleTree, defaultProps } from '@/utils/tree'
|
||||||
|
import { PropType } from 'vue'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
basicInfo: {
|
basicInfo: {
|
||||||
|
|
|
@ -49,8 +49,6 @@
|
||||||
</XModal>
|
</XModal>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { VxeTableInstance } from 'vxe-table'
|
import { VxeTableInstance } from 'vxe-table'
|
||||||
import type { DatabaseTableVO } from '@/api/infra/codegen/types'
|
import type { DatabaseTableVO } from '@/api/infra/codegen/types'
|
||||||
import { getSchemaTableListApi, createCodegenListApi } from '@/api/infra/codegen'
|
import { getSchemaTableListApi, createCodegenListApi } from '@/api/infra/codegen'
|
||||||
|
|
|
@ -31,8 +31,6 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useClipboard } from '@vueuse/core'
|
import { useClipboard } from '@vueuse/core'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { handleTree2 } from '@/utils/tree'
|
import { handleTree2 } from '@/utils/tree'
|
||||||
import { previewCodegenApi } from '@/api/infra/codegen'
|
import { previewCodegenApi } from '@/api/infra/codegen'
|
||||||
import { CodegenTableVO, CodegenPreviewVO } from '@/api/infra/codegen/types'
|
import { CodegenTableVO, CodegenPreviewVO } from '@/api/infra/codegen/types'
|
||||||
|
|
|
@ -57,9 +57,6 @@
|
||||||
<Preview ref="previewRef" />
|
<Preview ref="previewRef" />
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="Codegen">
|
<script setup lang="ts" name="Codegen">
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { useXTable } from '@/hooks/web/useXTable'
|
|
||||||
import download from '@/utils/download'
|
import download from '@/utils/download'
|
||||||
import * as CodegenApi from '@/api/infra/codegen'
|
import * as CodegenApi from '@/api/infra/codegen'
|
||||||
import { CodegenTableVO } from '@/api/infra/codegen/types'
|
import { CodegenTableVO } from '@/api/infra/codegen/types'
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
|
||||||
import { required } from '@/utils/formRules'
|
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
|
||||||
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
// 表单校验
|
// 表单校验
|
||||||
|
|
|
@ -84,9 +84,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="Config">
|
<script setup lang="ts" name="Config">
|
||||||
// 全局相关的 import
|
// 全局相关的 import
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { useXTable } from '@/hooks/web/useXTable'
|
|
||||||
import type { FormExpose } from '@/components/Form'
|
import type { FormExpose } from '@/components/Form'
|
||||||
// 业务相关的 import
|
// 业务相关的 import
|
||||||
import * as ConfigApi from '@/api/infra/config'
|
import * as ConfigApi from '@/api/infra/config'
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
import { required } from '@/utils/formRules'
|
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
|
|
||||||
// 国际化
|
// 国际化
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
// 表单校验
|
// 表单校验
|
||||||
|
|
|
@ -67,9 +67,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="DataSourceConfig">
|
<script setup lang="ts" name="DataSourceConfig">
|
||||||
// 全局相关的 import
|
// 全局相关的 import
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useXTable } from '@/hooks/web/useXTable'
|
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import type { FormExpose } from '@/components/Form'
|
import type { FormExpose } from '@/components/Form'
|
||||||
// 业务相关的 import
|
// 业务相关的 import
|
||||||
import * as DataSourceConfiggApi from '@/api/infra/dataSourceConfig'
|
import * as DataSourceConfiggApi from '@/api/infra/dataSourceConfig'
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="DbDoc">
|
<script setup lang="ts" name="DbDoc">
|
||||||
import download from '@/utils/download'
|
import download from '@/utils/download'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import * as DbDocApi from '@/api/infra/dbDoc'
|
import * as DbDocApi from '@/api/infra/dbDoc'
|
||||||
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
|
||||||
import { required } from '@/utils/formRules'
|
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
|
||||||
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
// 表单校验
|
// 表单校验
|
||||||
|
|
|
@ -160,9 +160,7 @@
|
||||||
<script setup lang="ts" name="FileConfig">
|
<script setup lang="ts" name="FileConfig">
|
||||||
// 全局相关的 import
|
// 全局相关的 import
|
||||||
import type { FormInstance } from 'element-plus'
|
import type { FormInstance } from 'element-plus'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { useXTable } from '@/hooks/web/useXTable'
|
|
||||||
// 业务相关的 import
|
// 业务相关的 import
|
||||||
import * as FileConfigApi from '@/api/infra/fileConfig'
|
import * as FileConfigApi from '@/api/infra/fileConfig'
|
||||||
import { rules, allSchemas } from './fileConfig.data'
|
import { rules, allSchemas } from './fileConfig.data'
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
|
||||||
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
// CrudSchema
|
// CrudSchema
|
||||||
|
|
|
@ -82,9 +82,6 @@
|
||||||
</XModal>
|
</XModal>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="FileList">
|
<script setup lang="ts" name="FileList">
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { useXTable } from '@/hooks/web/useXTable'
|
|
||||||
import type { UploadInstance, UploadRawFile } from 'element-plus'
|
import type { UploadInstance, UploadRawFile } from 'element-plus'
|
||||||
// 业务相关的 import
|
// 业务相关的 import
|
||||||
import { allSchemas } from './fileList.data'
|
import { allSchemas } from './fileList.data'
|
||||||
|
|
|
@ -49,8 +49,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="JobLog">
|
<script setup lang="ts" name="JobLog">
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useXTable } from '@/hooks/web/useXTable'
|
|
||||||
import * as JobLogApi from '@/api/infra/jobLog'
|
import * as JobLogApi from '@/api/infra/jobLog'
|
||||||
import { allSchemas } from './jobLog.data'
|
import { allSchemas } from './jobLog.data'
|
||||||
|
|
||||||
|
|
|
@ -129,9 +129,6 @@
|
||||||
</XModal>
|
</XModal>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="Job">
|
<script setup lang="ts" name="Job">
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { useXTable } from '@/hooks/web/useXTable'
|
|
||||||
import type { FormExpose } from '@/components/Form'
|
import type { FormExpose } from '@/components/Form'
|
||||||
import * as JobApi from '@/api/infra/job'
|
import * as JobApi from '@/api/infra/job'
|
||||||
import { rules, allSchemas } from './job.data'
|
import { rules, allSchemas } from './job.data'
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
|
||||||
import { required } from '@/utils/formRules'
|
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
// 表单校验
|
// 表单校验
|
||||||
export const rules = reactive({
|
export const rules = reactive({
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
|
|
||||||
// 国际化
|
// 国际化
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
// CrudSchema
|
// CrudSchema
|
||||||
|
|
|
@ -127,8 +127,7 @@
|
||||||
<script setup lang="ts" name="Redis">
|
<script setup lang="ts" name="Redis">
|
||||||
import * as echarts from 'echarts'
|
import * as echarts from 'echarts'
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
import { DICT_TYPE } from '@/utils/dict'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import * as RedisApi from '@/api/infra/redis'
|
import * as RedisApi from '@/api/infra/redis'
|
||||||
import { RedisKeyInfo, RedisMonitorInfoVO } from '@/api/infra/redis/types'
|
import { RedisKeyInfo, RedisMonitorInfoVO } from '@/api/infra/redis/types'
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
|
||||||
import { required } from '@/utils/formRules'
|
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
|
||||||
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
// 表单校验
|
// 表单校验
|
||||||
|
|
|
@ -76,9 +76,6 @@
|
||||||
</XModal>
|
</XModal>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="App">
|
<script setup lang="ts" name="App">
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { useXTable } from '@/hooks/web/useXTable'
|
|
||||||
import type { FormExpose } from '@/components/Form'
|
import type { FormExpose } from '@/components/Form'
|
||||||
import { rules, allSchemas } from './app.data'
|
import { rules, allSchemas } from './app.data'
|
||||||
import * as AppApi from '@/api/pay/app'
|
import * as AppApi from '@/api/pay/app'
|
||||||
|
|
|
@ -75,9 +75,6 @@
|
||||||
</XModal>
|
</XModal>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="Merchant">
|
<script setup lang="ts" name="Merchant">
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { useXTable } from '@/hooks/web/useXTable'
|
|
||||||
import type { FormExpose } from '@/components/Form'
|
import type { FormExpose } from '@/components/Form'
|
||||||
import { rules, allSchemas } from './merchant.data'
|
import { rules, allSchemas } from './merchant.data'
|
||||||
import * as MerchantApi from '@/api/pay/merchant'
|
import * as MerchantApi from '@/api/pay/merchant'
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
|
||||||
import { required } from '@/utils/formRules'
|
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
|
||||||
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
// 表单校验
|
// 表单校验
|
||||||
|
|
|
@ -42,8 +42,6 @@
|
||||||
</XModal>
|
</XModal>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="Order">
|
<script setup lang="ts" name="Order">
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useXTable } from '@/hooks/web/useXTable'
|
|
||||||
import { allSchemas } from './order.data'
|
import { allSchemas } from './order.data'
|
||||||
import * as OrderApi from '@/api/pay/order'
|
import * as OrderApi from '@/api/pay/order'
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
|
||||||
import { required } from '@/utils/formRules'
|
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
|
||||||
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
// 表单校验
|
// 表单校验
|
||||||
|
|
|
@ -34,8 +34,6 @@
|
||||||
</XModal>
|
</XModal>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="Refund">
|
<script setup lang="ts" name="Refund">
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useXTable } from '@/hooks/web/useXTable'
|
|
||||||
import { allSchemas } from './refund.data'
|
import { allSchemas } from './refund.data'
|
||||||
import * as RefundApi from '@/api/pay/refund'
|
import * as RefundApi from '@/api/pay/refund'
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
|
||||||
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
// CrudSchema
|
// CrudSchema
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
|
||||||
import { required } from '@/utils/formRules'
|
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
|
||||||
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
// 表单校验
|
// 表单校验
|
||||||
|
|
|
@ -76,9 +76,6 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="Dept">
|
<script setup lang="ts" name="Dept">
|
||||||
import { handleTree, defaultProps } from '@/utils/tree'
|
import { handleTree, defaultProps } from '@/utils/tree'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { useXTable } from '@/hooks/web/useXTable'
|
|
||||||
import type { FormExpose } from '@/components/Form'
|
import type { FormExpose } from '@/components/Form'
|
||||||
import { allSchemas, rules } from './dept.data'
|
import { allSchemas, rules } from './dept.data'
|
||||||
import * as DeptApi from '@/api/system/dept'
|
import * as DeptApi from '@/api/system/dept'
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
|
||||||
import { required } from '@/utils/formRules'
|
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
|
|
||||||
// 国际化
|
// 国际化
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
// 表单校验
|
// 表单校验
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
|
||||||
import { required } from '@/utils/formRules'
|
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
// 表单校验
|
// 表单校验
|
||||||
|
|
|
@ -122,9 +122,6 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="Dict">
|
<script setup lang="ts" name="Dict">
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { useMessage } from '@/hooks/web/useMessage'
|
|
||||||
import { useXTable } from '@/hooks/web/useXTable'
|
|
||||||
import { VxeTableEvents } from 'vxe-table'
|
import { VxeTableEvents } from 'vxe-table'
|
||||||
import type { FormExpose } from '@/components/Form'
|
import type { FormExpose } from '@/components/Form'
|
||||||
import * as DictTypeSchemas from './dict.type'
|
import * as DictTypeSchemas from './dict.type'
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
import { required } from '@/utils/formRules'
|
import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import { DICT_TYPE } from '@/utils/dict'
|
|
||||||
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
|
|
||||||
const { t } = useI18n() // 国际化
|
const { t } = useI18n() // 国际化
|
||||||
|
|
||||||
// 表单校验
|
// 表单校验
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue