perf: aotu imports

pull/2/head
xingyu 2023-01-18 12:14:58 +08:00
parent e2c7ea8a74
commit 85c4d1fb03
107 changed files with 50 additions and 265 deletions

View File

@ -21,6 +21,7 @@ const include = [
'vxe-table/es/style', 'vxe-table/es/style',
'web-storage-cache', 'web-storage-cache',
'element-plus', 'element-plus',
'element-plus/es',
'element-plus/es/locale/lang/zh-cn', 'element-plus/es/locale/lang/zh-cn',
'element-plus/es/locale/lang/en', 'element-plus/es/locale/lang/en',
'@iconify/iconify', '@iconify/iconify',

View File

@ -22,6 +22,16 @@ declare module '@vue/runtime-core' {
Echart: typeof import('./../components/Echart/src/Echart.vue')['default'] Echart: typeof import('./../components/Echart/src/Echart.vue')['default']
Editor: typeof import('./../components/Editor/src/Editor.vue')['default'] Editor: typeof import('./../components/Editor/src/Editor.vue')['default']
ElButton: typeof import('element-plus/es')['ElButton'] ElButton: typeof import('element-plus/es')['ElButton']
ElCard: typeof import('element-plus/es')['ElCard']
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCol: typeof import('element-plus/es')['ElCol']
ElDivider: typeof import('element-plus/es')['ElDivider']
ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElInput: typeof import('element-plus/es')['ElInput']
ElLink: typeof import('element-plus/es')['ElLink']
ElRow: typeof import('element-plus/es')['ElRow']
ElSkeleton: typeof import('element-plus/es')['ElSkeleton']
Error: typeof import('./../components/Error/src/Error.vue')['default'] Error: typeof import('./../components/Error/src/Error.vue')['default']
Form: typeof import('./../components/Form/src/Form.vue')['default'] Form: typeof import('./../components/Form/src/Form.vue')['default']
Highlight: typeof import('./../components/Highlight/src/Highlight.vue')['default'] Highlight: typeof import('./../components/Highlight/src/Highlight.vue')['default']

View File

@ -2,9 +2,6 @@
<Error type="403" @error-click="errorClick()" /> <Error type="403" @error-click="errorClick()" />
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { Error } from '@/components/Error'
import { useRouter } from 'vue-router'
const { push } = useRouter() const { push } = useRouter()
const errorClick = () => { const errorClick = () => {

View File

@ -2,9 +2,6 @@
<Error @error-click="errorClick()" /> <Error @error-click="errorClick()" />
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { Error } from '@/components/Error'
import { useRouter } from 'vue-router'
const { push } = useRouter() const { push } = useRouter()
const errorClick = () => { const errorClick = () => {

View File

@ -2,9 +2,6 @@
<Error type="500" @error-click="errorClick()" /> <Error type="500" @error-click="errorClick()" />
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { Error } from '@/components/Error'
import { useRouter } from 'vue-router'
const { push } = useRouter() const { push } = useRouter()
const errorClick = () => { const errorClick = () => {

View File

@ -161,17 +161,12 @@
</el-row> </el-row>
</template> </template>
<script setup lang="ts" name="Home"> <script setup lang="ts" name="Home">
import { ref, reactive } from 'vue'
import { set } from 'lodash-es' import { set } from 'lodash-es'
import { EChartsOption } from 'echarts' import { EChartsOption } from 'echarts'
import { ElRow, ElCol, ElSkeleton, ElCard, ElDivider, ElLink } from 'element-plus'
import { formatTime } from '@/utils' import { formatTime } from '@/utils'
import { useI18n } from '@/hooks/web/useI18n' 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 { Echart } from '@/components/Echart'
import { CountTo } from '@/components/CountTo'
import { Highlight } from '@/components/Highlight'
import avatarImg from '@/assets/imgs/avatar.gif' import avatarImg from '@/assets/imgs/avatar.gif'
import type { WorkplaceTotal, Project, Notice, Shortcut } from './types' import type { WorkplaceTotal, Project, Notice, Shortcut } from './types'
import { pieOptions, barOptions } from './echarts-data' import { pieOptions, barOptions } from './echarts-data'

View File

@ -141,14 +141,10 @@
</el-row> </el-row>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, reactive } from 'vue'
import { set } from 'lodash-es' import { set } from 'lodash-es'
import { EChartsOption } from 'echarts' import { EChartsOption } from 'echarts'
import { ElRow, ElCol, ElCard, ElSkeleton } from 'element-plus'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useDesign } from '@/hooks/web/useDesign' import { useDesign } from '@/hooks/web/useDesign'
import { Echart } from '@/components/Echart'
import { CountTo } from '@/components/CountTo'
import type { AnalysisTotalTypes } from './types' import type { AnalysisTotalTypes } from './types'
import { pieOptions, barOptions, lineOptions } from './echarts-data' import { pieOptions, barOptions, lineOptions } from './echarts-data'

View File

@ -128,27 +128,14 @@
</el-form> </el-form>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { reactive, ref, unref, onMounted, computed, watch } from 'vue' import { ElLoading } from 'element-plus'
import LoginFormTitle from './LoginFormTitle.vue' import LoginFormTitle from './LoginFormTitle.vue'
import {
ElForm,
ElFormItem,
ElInput,
ElCheckbox,
ElCol,
ElLink,
ElRow,
ElDivider,
ElLoading
} from 'element-plus'
import { useRouter } from 'vue-router'
import type { RouteLocationNormalizedLoaded } from 'vue-router' import type { RouteLocationNormalizedLoaded } from 'vue-router'
import { useI18n } from '@/hooks/web/useI18n' 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 { useMessage } from '@/hooks/web/useMessage'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import * as authUtil from '@/utils/auth' import * as authUtil from '@/utils/auth'
import { Verify } from '@/components/Verifition'
import { usePermissionStore } from '@/store/modules/permission' import { usePermissionStore } from '@/store/modules/permission'
import * as LoginApi from '@/api/login' import * as LoginApi from '@/api/login'
import { LoginStateEnum, useLoginState, useFormValid } from './useLogin' import { LoginStateEnum, useLoginState, useFormValid } from './useLogin'

View File

@ -4,7 +4,6 @@
</h2> </h2>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { computed, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { LoginStateEnum, useLoginState } from './useLogin' import { LoginStateEnum, useLoginState } from './useLogin'

View File

@ -92,9 +92,6 @@
</el-form> </el-form>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { reactive, ref, unref, watch, computed } from 'vue'
import { ElForm, ElFormItem, ElInput, ElRow, ElCol } from 'element-plus'
import { useRouter } from 'vue-router'
import type { RouteLocationNormalizedLoaded } from 'vue-router' import type { RouteLocationNormalizedLoaded } from 'vue-router'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useIcon } from '@/hooks/web/useIcon' import { useIcon } from '@/hooks/web/useIcon'

View File

@ -17,9 +17,6 @@
</el-row> </el-row>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { computed, unref } from 'vue'
import { ElRow, ElCol, ElCard, ElDivider } from 'element-plus'
import { Qrcode } from '@/components/Qrcode'
import logoImg from '@/assets/imgs/logo.png' import logoImg from '@/assets/imgs/logo.png'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import LoginFormTitle from './LoginFormTitle.vue' import LoginFormTitle from './LoginFormTitle.vue'

View File

@ -36,9 +36,7 @@
</Form> </Form>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { computed, reactive, ref, unref } from 'vue' import type { FormRules } from 'element-plus'
import { ElInput, FormRules } from 'element-plus'
import { Form } from '@/components/Form'
import { useI18n } from '@/hooks/web/useI18n' 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'

View File

@ -1,4 +1,4 @@
import { ref, computed, unref, Ref } from 'vue' import { Ref } from 'vue'
export enum LoginStateEnum { export enum LoginStateEnum {
LOGIN, LOGIN,

View File

@ -31,9 +31,7 @@
</div> </div>
</template> </template>
<script setup lang="ts" name="Profile"> <script setup lang="ts" name="Profile">
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { ElCard, ElTabs, ElTabPane } from 'element-plus'
import { BasicInfo, ProfileUser, ResetPwd, UserSocial } from './components/' import { BasicInfo, ProfileUser, ResetPwd, UserSocial } from './components/'
const { t } = useI18n() const { t } = useI18n()

View File

@ -16,7 +16,7 @@ import type { FormRules } from 'element-plus'
import { ElMessage, ElRadioGroup, ElRadio } from 'element-plus' import { ElMessage, ElRadioGroup, ElRadio } from 'element-plus'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { FormSchema } from '@/types/form' import { FormSchema } from '@/types/form'
import { FormExpose } from '@/components/Form' import type { FormExpose } from '@/components/Form'
import { import {
getUserProfileApi, getUserProfileApi,
updateUserProfileApi, updateUserProfileApi,

View File

@ -40,7 +40,6 @@
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { onMounted, ref } from 'vue'
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 { useI18n } from '@/hooks/web/useI18n'

View File

@ -16,14 +16,14 @@
</el-form> </el-form>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, reactive } from 'vue'
import { ElForm, ElFormItem, ElMessage } from 'element-plus'
import type { FormRules, FormInstance } from 'element-plus' import type { FormRules, FormInstance } from 'element-plus'
import { useI18n } from '@/hooks/web/useI18n' 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'
const { t } = useI18n() const { t } = useI18n()
const message = useMessage()
const formRef = ref<FormInstance>() const formRef = ref<FormInstance>()
const password = reactive({ const password = reactive({
oldPassword: '', oldPassword: '',
@ -58,7 +58,7 @@ const submit = (formEl: FormInstance | undefined) => {
formEl.validate(async (valid) => { formEl.validate(async (valid) => {
if (valid) { if (valid) {
await updateUserPwdApi(password.oldPassword, password.newPassword) await updateUserPwdApi(password.oldPassword, password.newPassword)
ElMessage.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
} }
}) })
} }

View File

@ -11,9 +11,7 @@
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { computed, ref } from 'vue'
import { propTypes } from '@/utils/propTypes' import { propTypes } from '@/utils/propTypes'
import { CropperAvatar } from '@/components/Cropper'
import { uploadAvatarApi } from '@/api/system/user/profile' import { uploadAvatarApi } from '@/api/system/user/profile'
const props = defineProps({ const props = defineProps({
img: propTypes.string.def('') img: propTypes.string.def('')

View File

@ -22,8 +22,6 @@
</el-table> </el-table>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { onMounted, ref } from 'vue'
import { ElTable, ElTableColumn } from 'element-plus'
import { useMessage } from '@/hooks/web/useMessage' 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'

View File

@ -2,9 +2,6 @@
<div></div> <div></div>
</template> </template>
<script setup lang="ts" name="Redirect"> <script setup lang="ts" name="Redirect">
import { unref } from 'vue'
import { useRouter } from 'vue-router'
const { currentRoute, replace } = useRouter() const { currentRoute, replace } = useRouter()
const { params, query } = unref(currentRoute) const { params, query } = unref(currentRoute)
const { path, _redirect_type = 'path' } = params const { path, _redirect_type = 'path' } = params

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas' import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'

View File

@ -1,11 +1,10 @@
<script setup lang="ts" name="Form"> <script setup lang="ts" name="Form">
import { ref, unref } from 'vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { ElMessage } from 'element-plus' 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 { useI18n } from '@/hooks/web/useI18n'
import { 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'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas' import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'

View File

@ -1,11 +1,10 @@
<script setup lang="ts" name="Group"> <script setup lang="ts" name="Group">
import { ref, unref, onMounted } from 'vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { ElMessage, ElSelect, ElOption } from 'element-plus' 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 { useI18n } from '@/hooks/web/useI18n'
import { 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'
import * as UserGroupApi from '@/api/bpm/userGroup' import * as UserGroupApi from '@/api/bpm/userGroup'

View File

@ -1,11 +1,9 @@
<script setup lang="ts" name="Model"> <script setup lang="ts" name="Model">
import { ref, unref } from 'vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { ElTableColumn, ElTag, ElSwitch } 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 { useI18n } from '@/hooks/web/useI18n'
import { 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'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas' import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas'

View File

@ -1,5 +1,4 @@
<script setup lang="ts" name="ProcessInstance"> <script setup lang="ts" name="ProcessInstance">
import { ref } from 'vue'
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'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' 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' import { DICT_TYPE } from '@/utils/dict'

View File

@ -7,7 +7,6 @@ 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 { useRouter } from 'vue-router'
dayjs.extend(duration) dayjs.extend(duration)
const { t } = useI18n() // const { t } = useI18n() //
const { push } = useRouter() const { push } = useRouter()

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' 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() // 国际化

View File

@ -5,7 +5,6 @@ import { useTable } from '@/hooks/web/useTable'
import type { TaskTodoVO } from '@/api/bpm/task/types' import type { TaskTodoVO } from '@/api/bpm/task/types'
import { allSchemas } from './done.data' import { allSchemas } from './done.data'
import * as TaskTodoApi from '@/api/bpm/task' import * as TaskTodoApi from '@/api/bpm/task'
import { useRouter } from 'vue-router'
const { push } = useRouter() const { push } = useRouter()
// ========== ========== // ========== ==========
const { register, tableObject, methods } = useTable<TaskTodoVO>({ const { register, tableObject, methods } = useTable<TaskTodoVO>({

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas' import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'

View File

@ -36,7 +36,6 @@
</XModal> </XModal>
</template> </template>
<script setup lang="ts" name="ApiAccessLog"> <script setup lang="ts" name="ApiAccessLog">
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { allSchemas } from './apiAccessLog.data' import { allSchemas } from './apiAccessLog.data'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas' import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'

View File

@ -52,7 +52,6 @@
</XModal> </XModal>
</template> </template>
<script setup lang="ts" name="ApiErrorLog"> <script setup lang="ts" name="ApiErrorLog">
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { allSchemas } from './apiErrorLog.data' import { allSchemas } from './apiErrorLog.data'

View File

@ -21,12 +21,9 @@
</ContentWrap> </ContentWrap>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, unref, onMounted } from 'vue'
import { useRouter, useRoute } from 'vue-router' import { useRouter, useRoute } from 'vue-router'
import { ElTabs, ElTabPane } from 'element-plus'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { ContentDetailWrap } from '@/components/ContentDetailWrap'
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'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas' import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'

View File

@ -2,10 +2,9 @@
<Form :rules="rules" @register="register" /> <Form :rules="rules" @register="register" />
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { onMounted, PropType, reactive, ref, watch } from 'vue' import { PropType } from 'vue'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { useForm } from '@/hooks/web/useForm' import { useForm } from '@/hooks/web/useForm'
import { Form } from '@/components/Form'
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 { DICT_TYPE, getIntDictOptions } from '@/utils/dict'

View File

@ -111,7 +111,7 @@
</vxe-table> </vxe-table>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { onMounted, PropType, ref } from 'vue' import { PropType } from 'vue'
import { DictTypeVO } from '@/api/system/dict/types' import { DictTypeVO } from '@/api/system/dict/types'
import { CodegenColumnVO } from '@/api/infra/codegen/types' import { CodegenColumnVO } from '@/api/infra/codegen/types'
import { listSimpleDictTypeApi } from '@/api/system/dict/dict.type' import { listSimpleDictTypeApi } from '@/api/system/dict/dict.type'

View File

@ -49,11 +49,9 @@
</XModal> </XModal>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { VxeTableInstance } from 'vxe-table' import { VxeTableInstance } from 'vxe-table'
import { ElForm, ElFormItem, ElInput, ElSelect, ElOption } from 'element-plus'
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'
import { getDataSourceConfigListApi, DataSourceConfigVO } from '@/api/infra/dataSourceConfig' import { getDataSourceConfigListApi, DataSourceConfigVO } from '@/api/infra/dataSourceConfig'

View File

@ -30,9 +30,6 @@
</XModal> </XModal>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { reactive, ref, unref } from 'vue'
import { useClipboard } from '@vueuse/core'
import { ElCard, ElTree, ElTabs, ElTabPane } from 'element-plus'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { handleTree2 } from '@/utils/tree' import { handleTree2 } from '@/utils/tree'

View File

@ -57,8 +57,6 @@
<Preview ref="previewRef" /> <Preview ref="previewRef" />
</template> </template>
<script setup lang="ts" name="Codegen"> <script setup lang="ts" name="Codegen">
import { ref } from 'vue'
import { useRouter } from 'vue-router'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'

View File

@ -84,11 +84,10 @@
</template> </template>
<script setup lang="ts" name="Config"> <script setup lang="ts" name="Config">
// import // import
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { 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'
import { rules, allSchemas } from './config.data' import { rules, allSchemas } from './config.data'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas' import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'

View File

@ -67,11 +67,10 @@
</template> </template>
<script setup lang="ts" name="DataSourceConfig"> <script setup lang="ts" name="DataSourceConfig">
// import // import
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { 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'
import { rules, allSchemas } from './dataSourceConfig.data' import { rules, allSchemas } from './dataSourceConfig.data'

View File

@ -25,10 +25,8 @@
</ContentWrap> </ContentWrap>
</template> </template>
<script setup lang="ts" name="DbDoc"> <script setup lang="ts" name="DbDoc">
import { onMounted, ref } from 'vue'
import download from '@/utils/download' import download from '@/utils/download'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { IFrame } from '@/components/IFrame'
import * as DbDocApi from '@/api/infra/dbDoc' import * as DbDocApi from '@/api/infra/dbDoc'
const { t } = useI18n() // const { t } = useI18n() //

View File

@ -4,9 +4,6 @@
</ContentWrap> </ContentWrap>
</template> </template>
<script setup lang="ts" name="Druid"> <script setup lang="ts" name="Druid">
import { ref } from 'vue'
import { IFrame } from '@/components/IFrame'
const BASE_URL = import.meta.env.VITE_BASE_URL const BASE_URL = import.meta.env.VITE_BASE_URL
const src = ref(BASE_URL + '/druid/index.html') const src = ref(BASE_URL + '/druid/index.html')
</script> </script>

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'

View File

@ -159,18 +159,7 @@
</template> </template>
<script setup lang="ts" name="FileConfig"> <script setup lang="ts" name="FileConfig">
// import // import
import { ref } from 'vue' import type { FormInstance } from 'element-plus'
import {
ElForm,
ElFormItem,
FormInstance,
ElSelect,
ElOption,
ElInput,
ElInputNumber,
ElRadio,
ElRadioGroup
} from 'element-plus'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas' import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化

View File

@ -82,16 +82,14 @@
</XModal> </XModal>
</template> </template>
<script setup lang="ts" name="FileList"> <script setup lang="ts" name="FileList">
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { ElUpload, ElImage, UploadInstance, UploadRawFile } from 'element-plus' import type { UploadInstance, UploadRawFile } from 'element-plus'
// import // import
import { allSchemas } from './fileList.data' import { allSchemas } from './fileList.data'
import * as FileApi from '@/api/infra/fileList' import * as FileApi from '@/api/infra/fileList'
import { getAccessToken, getTenantId } from '@/utils/auth' import { getAccessToken, getTenantId } from '@/utils/auth'
import { useClipboard } from '@vueuse/core'
const { t } = useI18n() // const { t } = useI18n() //
const message = useMessage() // const message = useMessage() //

View File

@ -48,7 +48,6 @@
</XModal> </XModal>
</template> </template>
<script setup lang="ts" name="JobLog"> <script setup lang="ts" name="JobLog">
import { ref } from 'vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'

View File

@ -129,14 +129,10 @@
</XModal> </XModal>
</template> </template>
<script setup lang="ts" name="Job"> <script setup lang="ts" name="Job">
import { ref, unref } from 'vue'
import { useRouter } from 'vue-router'
import { ElDropdown, ElDropdownMenu, ElDropdownItem } from 'element-plus'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { FormExpose } from '@/components/Form' import type { FormExpose } from '@/components/Form'
import { Crontab } from '@/components/Crontab'
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'
import { InfraJobStatusEnum } from '@/utils/constants' import { InfraJobStatusEnum } from '@/utils/constants'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas' import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'

View File

@ -125,17 +125,6 @@
</XModal> </XModal>
</template> </template>
<script setup lang="ts" name="Redis"> <script setup lang="ts" name="Redis">
import { onBeforeMount, ref } from 'vue'
import {
ElRow,
ElCard,
ElCol,
ElTable,
ElTableColumn,
ElScrollbar,
ElDescriptions,
ElDescriptionsItem
} from 'element-plus'
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 { useI18n } from '@/hooks/web/useI18n'

View File

@ -4,9 +4,6 @@
</ContentWrap> </ContentWrap>
</template> </template>
<script setup lang="ts" name="Server"> <script setup lang="ts" name="Server">
import { ref } from 'vue'
import { IFrame } from '@/components/IFrame'
const BASE_URL = import.meta.env.VITE_BASE_URL const BASE_URL = import.meta.env.VITE_BASE_URL
const src = ref(BASE_URL + '/admin/applications') const src = ref(BASE_URL + '/admin/applications')
</script> </script>

View File

@ -4,8 +4,5 @@
</ContentWrap> </ContentWrap>
</template> </template>
<script setup lang="ts" name="Skywalking"> <script setup lang="ts" name="Skywalking">
import { ref } from 'vue'
import { IFrame } from '@/components/IFrame'
const src = ref('http://skywalking.shop.iocoder.cn') const src = ref('http://skywalking.shop.iocoder.cn')
</script> </script>

View File

@ -4,9 +4,6 @@
</ContentWrap> </ContentWrap>
</template> </template>
<script setup lang="ts" name="Swagger"> <script setup lang="ts" name="Swagger">
import { ref } from 'vue'
import { IFrame } from '@/components/IFrame'
const BASE_URL = import.meta.env.VITE_BASE_URL const BASE_URL = import.meta.env.VITE_BASE_URL
const src = ref(BASE_URL + '/doc.html') const src = ref(BASE_URL + '/doc.html')
</script> </script>

View File

@ -56,9 +56,6 @@
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { computed, reactive, ref, watchEffect } from 'vue'
import { ElCard, ElInput, ElTag } from 'element-plus'
import { useWebSocket } from '@vueuse/core'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'

View File

@ -76,11 +76,10 @@
</XModal> </XModal>
</template> </template>
<script setup lang="ts" name="App"> <script setup lang="ts" name="App">
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { 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'

View File

@ -75,11 +75,10 @@
</XModal> </XModal>
</template> </template>
<script setup lang="ts" name="Merchant"> <script setup lang="ts" name="Merchant">
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { 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'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'

View File

@ -42,7 +42,6 @@
</XModal> </XModal>
</template> </template>
<script setup lang="ts" name="Order"> <script setup lang="ts" name="Order">
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { allSchemas } from './order.data' import { allSchemas } from './order.data'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'

View File

@ -34,7 +34,6 @@
</XModal> </XModal>
</template> </template>
<script setup lang="ts" name="Refund"> <script setup lang="ts" name="Refund">
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { allSchemas } from './refund.data' import { allSchemas } from './refund.data'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas' import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'

View File

@ -75,13 +75,11 @@
</XModal> </XModal>
</template> </template>
<script setup lang="ts" name="Dept"> <script setup lang="ts" name="Dept">
import { nextTick, onMounted, ref, unref } from 'vue'
import { ElSelect, ElTreeSelect, ElOption } from 'element-plus'
import { handleTree, defaultProps } from '@/utils/tree' import { handleTree, defaultProps } from '@/utils/tree'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { 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'
import { getListSimpleUsersApi, UserVO } from '@/api/system/user' import { getListSimpleUsersApi, UserVO } from '@/api/system/user'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'

View File

@ -122,13 +122,11 @@
</div> </div>
</template> </template>
<script setup lang="ts" name="Dict"> <script setup lang="ts" name="Dict">
import { ref, unref, reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { VxeTableEvents } from 'vxe-table' import { VxeTableEvents } from 'vxe-table'
import { FormExpose } from '@/components/Form' import type { FormExpose } from '@/components/Form'
import { ElInput, ElTag, ElCard } from 'element-plus'
import * as DictTypeSchemas from './dict.type' import * as DictTypeSchemas from './dict.type'
import * as DictDataSchemas from './dict.data' import * as DictDataSchemas from './dict.data'
import * as DictTypeApi from '@/api/system/dict/dict.type' import * as DictTypeApi from '@/api/system/dict/dict.type'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'

View File

@ -68,11 +68,10 @@
</template> </template>
<script setup lang="ts" name="ErrorCode"> <script setup lang="ts" name="ErrorCode">
// import // import
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { FormExpose } from '@/components/Form' import type { FormExpose } from '@/components/Form'
// import // import
import { rules, allSchemas } from './errorCode.data' import { rules, allSchemas } from './errorCode.data'
import * as ErrorCodeApi from '@/api/system/errorCode' import * as ErrorCodeApi from '@/api/system/errorCode'

View File

@ -29,7 +29,6 @@
</template> </template>
<script setup lang="ts" name="Loginlog"> <script setup lang="ts" name="Loginlog">
// import // import
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
// import // import

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas' import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'

View File

@ -176,24 +176,10 @@
</template> </template>
<script setup lang="ts" name="Menu"> <script setup lang="ts" name="Menu">
// import // import
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { import { FormInstance } from 'element-plus'
ElCol,
ElForm,
ElFormItem,
ElInput,
ElInputNumber,
ElTreeSelect,
ElRadio,
ElRadioGroup,
ElRadioButton,
FormInstance
} from 'element-plus'
import { Tooltip } from '@/components/Tooltip'
import { IconSelect } from '@/components/Icon'
// import // import
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { SystemMenuTypeEnum, CommonStatusEnum } from '@/utils/constants' import { SystemMenuTypeEnum, CommonStatusEnum } from '@/utils/constants'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'

View File

@ -72,15 +72,13 @@
</template> </template>
<script setup lang="ts" name="Notice"> <script setup lang="ts" name="Notice">
// import // import
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { FormExpose } from '@/components/Form' import type { FormExpose } from '@/components/Form'
// import // import
import * as NoticeApi from '@/api/system/notice' import * as NoticeApi from '@/api/system/notice'
import { rules, allSchemas } from './notice.data' import { rules, allSchemas } from './notice.data'
import { Editor } from '@/components/Editor'
const { t } = useI18n() // const { t } = useI18n() //
const message = useMessage() // const message = useMessage() //

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'

View File

@ -131,12 +131,10 @@
</template> </template>
<script setup lang="ts" name="Client"> <script setup lang="ts" name="Client">
// import // import
import { ref, unref } from 'vue'
import { ElTag } from 'element-plus'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { FormExpose } from '@/components/Form' import type { FormExpose } from '@/components/Form'
// import // import
import * as ClientApi from '@/api/system/oauth2/client' import * as ClientApi from '@/api/system/oauth2/client'
import { rules, allSchemas } from './client.data' import { rules, allSchemas } from './client.data'

View File

@ -25,7 +25,6 @@
</XModal> </XModal>
</template> </template>
<script setup lang="ts" name="Token"> <script setup lang="ts" name="Token">
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas' import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'

View File

@ -43,7 +43,6 @@
</template> </template>
<script setup lang="ts" name="OperateLog"> <script setup lang="ts" name="OperateLog">
// import // import
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
// import // import

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas' import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'

View File

@ -73,11 +73,10 @@
</template> </template>
<script setup lang="ts" name="Post"> <script setup lang="ts" name="Post">
// import // import
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { FormExpose } from '@/components/Form' import type { FormExpose } from '@/components/Form'
// import // import
import * as PostApi from '@/api/system/post' import * as PostApi from '@/api/system/post'
import { rules, allSchemas } from './post.data' import { rules, allSchemas } from './post.data'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'

View File

@ -148,18 +148,8 @@
</XModal> </XModal>
</template> </template>
<script setup lang="ts" name="Role"> <script setup lang="ts" name="Role">
import { onMounted, reactive, ref, unref } from 'vue' import type { ElTree } from 'element-plus'
import { import type { FormExpose } from '@/components/Form'
ElForm,
ElFormItem,
ElSelect,
ElOption,
ElTree,
ElCard,
ElSwitch,
ElTag
} from 'element-plus'
import { FormExpose } from '@/components/Form'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'

View File

@ -103,12 +103,10 @@
</XModal> </XModal>
</template> </template>
<script setup lang="ts" name="SensitiveWord"> <script setup lang="ts" name="SensitiveWord">
import { onMounted, ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { FormExpose } from '@/components/Form' import type { FormExpose } from '@/components/Form'
import { ElTag, ElSelect, ElOption } from 'element-plus'
import * as SensitiveWordApi from '@/api/system/sensitiveWord' import * as SensitiveWordApi from '@/api/system/sensitiveWord'
import { rules, allSchemas } from './sensitiveWord.data' import { rules, allSchemas } from './sensitiveWord.data'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'

View File

@ -69,11 +69,10 @@
</template> </template>
<script setup lang="ts" name="SmsChannel"> <script setup lang="ts" name="SmsChannel">
// import // import
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { FormExpose } from '@/components/Form' import type { FormExpose } from '@/components/Form'
// import // import
import * as SmsChannelApi from '@/api/system/sms/smsChannel' import * as SmsChannelApi from '@/api/system/sms/smsChannel'
import { rules, allSchemas } from './sms.channel.data' import { rules, allSchemas } from './sms.channel.data'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'

View File

@ -32,7 +32,6 @@
</template> </template>
<script setup lang="ts" name="SmsLog"> <script setup lang="ts" name="SmsLog">
// import // import
import { ref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { allSchemas } from './sms.log.data' import { allSchemas } from './sms.log.data'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'
import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas' import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas'

View File

@ -110,12 +110,10 @@
</template> </template>
<script setup lang="ts" name="SmsTemplate"> <script setup lang="ts" name="SmsTemplate">
// import // import
import { ref, unref } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { useMessage } from '@/hooks/web/useMessage' import { useMessage } from '@/hooks/web/useMessage'
import { useXTable } from '@/hooks/web/useXTable' import { useXTable } from '@/hooks/web/useXTable'
import { FormExpose } from '@/components/Form' import type { FormExpose } from '@/components/Form'
import { ElForm, ElFormItem, ElInput } from 'element-plus'
// import // import
import * as SmsTemplateApi from '@/api/system/sms/smsTemplate' import * as SmsTemplateApi from '@/api/system/sms/smsTemplate'
import { rules, allSchemas } from './sms.template.data' import { rules, allSchemas } from './sms.template.data'

View File

@ -1,4 +1,3 @@
import { reactive } from 'vue'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'
import { required } from '@/utils/formRules' import { required } from '@/utils/formRules'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'

Some files were not shown because too many files have changed in this diff Show More