refactor: 导入导出修改
This commit is contained in:
parent
0147bdbd08
commit
30fba61681
|
@ -3,8 +3,7 @@ import { Text } from '@/components/Text';
|
|||
import LaySidebarTopCollapse from '@/layout/components/lay-sidebar/components/SidebarTopCollapse.vue';
|
||||
import { useDataThemeChange } from '@/layout/hooks/useDataThemeChange';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { panes } from '@/views/account-settings/utils/columns';
|
||||
import { userInfos } from '@/views/account-settings/utils/hooks';
|
||||
import { panes, userInfos } from '@/views/account-settings/utils';
|
||||
import leftLine from '@iconify-icons/ri/arrow-left-s-line';
|
||||
import { deviceDetection, useGlobal } from '@pureadmin/utils';
|
||||
import { onBeforeMount, ref } from 'vue';
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { message } from '@/utils/message';
|
||||
import type { FormInstance } from 'element-plus';
|
||||
import ReCropperPreview from '@/components/CropperPreview';
|
||||
import { deviceDetection } from '@pureadmin/utils';
|
||||
import uploadLine from '@iconify-icons/ri/upload-line';
|
||||
import { rules } from '@/views/account-settings/utils/columns';
|
||||
import { cropperBlob, handleSubmitImage, isShow, onSearchByUserinfo, uploadAvatarSrc, userInfos } from '@/views/account-settings/utils/hooks';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { sexConstant } from '@/enums/baseConstant';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { useAdminUserStore } from '@/store/system/adminUser';
|
||||
import { message } from '@/utils/message';
|
||||
import { cropperBlob, handleSubmitImage, isShow, onSearchByUserinfo, rules, uploadAvatarSrc, userInfos } from '@/views/account-settings/utils';
|
||||
import uploadLine from '@iconify-icons/ri/upload-line';
|
||||
import { deviceDetection } from '@pureadmin/utils';
|
||||
import type { FormInstance } from 'element-plus';
|
||||
import { onMounted, ref } from 'vue';
|
||||
|
||||
const userInfoFormRef = ref<FormInstance>();
|
||||
const uploadRef = ref();
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, reactive } from 'vue';
|
||||
import { deviceDetection } from '@pureadmin/utils';
|
||||
import { PureTable } from '@pureadmin/table';
|
||||
import { columns } from '@/views/account-settings/utils/columns';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { useUserLoginLogStore } from '@/store/monitor/userLoginLog';
|
||||
import { columns } from '@/views/account-settings/utils';
|
||||
import { PureTable } from '@pureadmin/table';
|
||||
import { deviceDetection } from '@pureadmin/utils';
|
||||
import { onMounted, reactive } from 'vue';
|
||||
|
||||
const userLoginLogStore = useUserLoginLogStore();
|
||||
const userLoginLogs = reactive({
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './hooks';
|
||||
export * from './columns';
|
|
@ -1,8 +1,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { rules } from '@/views/configuration/emailTemplate/utils/columns';
|
||||
import { FormProps } from '@/views/configuration/emailTemplate/utils/types';
|
||||
import { FormProps, rules } from '@/views/configuration/emailTemplate/utils';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { useEmailTemplateStore } from '@/store/configuration/emailTemplate';
|
||||
import { usePublicHooks } from '@/views/hooks';
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { columns } from '@/views/configuration/emailTemplate/utils/columns';
|
||||
import { auth, columns, onAdd, onDelete, onDeleteBatch, onSearch, onUpdate, selectRows, viewTemplate } from '@/views/configuration/emailTemplate/utils';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import AddFill from '@iconify-icons/ri/add-circle-line';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import { onAdd, onDelete, onDeleteBatch, onSearch, onUpdate, selectRows, viewTemplate } from '@/views/configuration/emailTemplate/utils/hooks';
|
||||
import Delete from '@iconify-icons/ep/delete';
|
||||
import EditPen from '@iconify-icons/ep/edit-pen';
|
||||
import Refresh from '@iconify-icons/ep/refresh';
|
||||
|
@ -12,7 +11,6 @@ import { selectUserinfo } from '@/components/Table/Userinfo/columns';
|
|||
import { $t } from '@/plugins/i18n';
|
||||
import { useEmailTemplateStore } from '@/store/configuration/emailTemplate';
|
||||
import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
||||
import { auth } from '@/views/configuration/emailTemplate/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
import View from '@iconify-icons/ep/view';
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
||||
export * from './types';
|
|
@ -1,8 +1,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { rules } from '@/views/configuration/emailUsers/utils/columns';
|
||||
import { FormProps } from '@/views/configuration/emailUsers/utils/types';
|
||||
import { FormProps, rules } from '@/views/configuration/emailUsers/utils';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { usePublicHooks } from '@/views/hooks';
|
||||
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { columns } from '@/views/configuration/emailUsers/utils/columns';
|
||||
import { auth, columns, deleteIds, onAdd, onChangeDefault, onDelete, onDeleteBatch, onSearch, onUpdate, switchLoadMap } from '@/views/configuration/emailUsers/utils';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import AddFill from '@iconify-icons/ri/add-circle-line';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import { deleteIds, onAdd, onChangeDefault, onDelete, onDeleteBatch, onSearch, onUpdate, switchLoadMap } from '@/views/configuration/emailUsers/utils/hooks';
|
||||
import Delete from '@iconify-icons/ep/delete';
|
||||
import EditPen from '@iconify-icons/ep/edit-pen';
|
||||
import Refresh from '@iconify-icons/ep/refresh';
|
||||
|
@ -14,7 +13,6 @@ import { useEmailUsersStore } from '@/store/configuration/emailUsers';
|
|||
import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
||||
import { usePublicHooks } from '@/views/hooks';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { auth } from '@/views/configuration/emailUsers/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
import { enabledOrNotStatus } from '@/enums/baseConstant';
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
||||
export * from './types';
|
|
@ -1,11 +1,10 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { columns } from '@/views/configuration/menuIcon/utils/columns';
|
||||
import { auth, columns, deleteIds, onAdd, onDelete, onDeleteBatch, onSearch, onUpdate } from '@/views/configuration/menuIcon/utils';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
||||
import AddFill from '@iconify-icons/ri/add-circle-line';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import { deleteIds, onAdd, onDelete, onDeleteBatch, onSearch, onUpdate } from '@/views/configuration/menuIcon/utils/hooks';
|
||||
import Delete from '@iconify-icons/ep/delete';
|
||||
import EditPen from '@iconify-icons/ep/edit-pen';
|
||||
import Refresh from '@iconify-icons/ep/refresh';
|
||||
|
@ -13,7 +12,6 @@ import { selectUserinfo } from '@/components/Table/Userinfo/columns';
|
|||
import { $t } from '@/plugins/i18n';
|
||||
import { useMenuIconStore } from '@/store/configuration/menuIcon';
|
||||
import MenuIconSelectIconName from '@/views/configuration/menuIcon/menu-icon-select-icon-name.vue';
|
||||
import { auth } from '@/views/configuration/menuIcon/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
|
||||
const tableRef = ref();
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { rules } from '@/views/configuration/menuIcon/utils/columns';
|
||||
import { FormProps } from '@/views/configuration/menuIcon/utils/types';
|
||||
import { FormProps, rules } from '@/views/configuration/menuIcon/utils';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
||||
import MenuIconSelectIconName from '@/views/configuration/menuIcon/menu-icon-select-icon-name.vue';
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import { $t } from '@/plugins/i18n';
|
||||
import { ref } from 'vue';
|
||||
import LoadingSvg from '@/assets/svg/loading.svg';
|
||||
import { FormProps } from '@/views/configuration/menuIcon/utils/types';
|
||||
import { FormProps } from '@/views/configuration/menuIcon/utils';
|
||||
import { useMenuIconStore } from '@/store/configuration/menuIcon';
|
||||
|
||||
const props = withDefaults(defineProps<FormProps>(), {
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
||||
export * from './types';
|
|
@ -3,11 +3,9 @@ import { $t } from '@/plugins/i18n';
|
|||
import { onMounted, ref } from 'vue';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import ReCol from '@/components/MyCol';
|
||||
import { form, onSearch, submitForm } from '@/views/configuration/webConifg/utils/hooks';
|
||||
import { rules } from '@/views/configuration/webConifg/utils/columns';
|
||||
import { auth, form, onSearch, rules, submitForm } from '@/views/configuration/webConifg/utils';
|
||||
import { userI18nTypeStore } from '@/store/i18n/i18nType';
|
||||
import { usePublicHooks } from '@/views/hooks';
|
||||
import { auth } from '@/views/configuration/webConifg/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
|
||||
const ruleFormRef = ref<FormInstance>();
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
|
@ -1,8 +1,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { rules } from '@/views/i18n/i18n-setting/utils/columns';
|
||||
import { FormProps } from '@/views/i18n/i18n-setting/utils/types';
|
||||
import { FormProps, rules } from '@/views/i18n/i18n-setting/utils';
|
||||
import { userI18nTypeStore } from '@/store/i18n/i18nType';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
|
||||
|
|
|
@ -1,18 +1,16 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { userI18nStore } from '@/store/i18n/i18n';
|
||||
import { deleteIds, onAdd, onDelete, onDeleteBatch, onSearch, onUpdate } from '@/views/i18n/i18n-setting/utils/hooks';
|
||||
import { auth, columns, deleteIds, onAdd, onDelete, onDeleteBatch, onSearch, onUpdate } from '@/views/i18n/i18n-setting/utils';
|
||||
import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
||||
import AddFill from '@iconify-icons/ri/add-circle-line';
|
||||
import EditPen from '@iconify-icons/ep/edit-pen';
|
||||
import Delete from '@iconify-icons/ep/delete';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import { columns } from '@/views/i18n/i18n-setting/utils/columns';
|
||||
import Refresh from '@iconify-icons/ep/refresh';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { selectUserinfo } from '@/components/Table/Userinfo/columns';
|
||||
import { auth } from '@/views/i18n/i18n-setting/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
|
||||
const tableRef = ref();
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
||||
export * from './types';
|
|
@ -1,8 +1,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { rules } from '@/views/i18n/i18n-type-setting/utils/columns';
|
||||
import { FormProps } from '@/views/i18n/i18n-type-setting/utils/types';
|
||||
import { FormProps, rules } from '@/views/i18n/i18n-type-setting/utils';
|
||||
import { frameSureOptions } from '@/enums';
|
||||
import Segmented from '@/components/Segmented';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
|
|
|
@ -1,19 +1,17 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { columns } from '@/views/i18n/i18n-type-setting/utils/columns';
|
||||
import { auth, columns, onAdd, onDelete, onSearch, onUpdate } from '@/views/i18n/i18n-type-setting/utils';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
||||
import AddFill from '@iconify-icons/ri/add-circle-line';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import { userI18nTypeStore } from '@/store/i18n/i18nType';
|
||||
import { onAdd, onDelete, onSearch, onUpdate } from '@/views/i18n/i18n-type-setting/utils/hooks';
|
||||
import Delete from '@iconify-icons/ep/delete';
|
||||
import EditPen from '@iconify-icons/ep/edit-pen';
|
||||
import TableIsDefaultTag from '@/components/Table/TableIsDefaultTag.vue';
|
||||
import Refresh from '@iconify-icons/ep/refresh';
|
||||
import { selectUserinfo } from '@/components/Table/Userinfo/columns';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { auth } from '@/views/i18n/i18n-type-setting/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
|
||||
const tableRef = ref();
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
||||
export * from './types';
|
|
@ -1,5 +1,5 @@
|
|||
<script lang="ts" setup>
|
||||
import Motion from './utils/motion';
|
||||
import Motion from './utils';
|
||||
import { useNav } from '@/layout/hooks/useNav';
|
||||
import { useLayout } from '@/layout/hooks/useLayout';
|
||||
import bg from '@/assets/login/bg.png';
|
||||
|
@ -14,7 +14,7 @@ import Check from '@iconify-icons/ep/check';
|
|||
import LoginForm from '@/views/login/login-form.vue';
|
||||
import LoginEmail from '@/views/login/login-email.vue';
|
||||
import { userI18nTypeStore } from '@/store/i18n/i18nType';
|
||||
import { currentPage } from '@/views/login/utils/hooks';
|
||||
import { currentPage } from '@/views/login/utils';
|
||||
|
||||
const { initStorage } = useLayout();
|
||||
initStorage();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script lang="ts" setup>
|
||||
import { emailRules } from '@/views/login/utils/rule';
|
||||
import { currentPage, emailRules, onBack } from '@/views/login/utils';
|
||||
import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
||||
import User from '@iconify-icons/ri/user-3-fill';
|
||||
import Lock from '@iconify-icons/ri/lock-fill';
|
||||
|
@ -9,9 +9,8 @@ import { useI18n } from 'vue-i18n';
|
|||
import { useUserStore } from '@/store/system/user';
|
||||
import { message } from '@/utils/message';
|
||||
import { getTopMenu, initRouter } from '@/router/utils';
|
||||
import Motion from './utils/motion';
|
||||
import Motion from './utils';
|
||||
import { ElMessage, FormInstance } from 'element-plus';
|
||||
import { currentPage, onBack } from '@/views/login/utils/hooks';
|
||||
|
||||
const router = useRouter();
|
||||
const userStore = useUserStore();
|
||||
|
|
|
@ -8,10 +8,9 @@ import { useI18n } from 'vue-i18n';
|
|||
import { useUserStore } from '@/store/system/user';
|
||||
import { message } from '@/utils/message';
|
||||
import { getTopMenu, initRouter } from '@/router/utils';
|
||||
import Motion from './utils/motion';
|
||||
import Motion from './utils';
|
||||
import { ElMessage, FormInstance } from 'element-plus';
|
||||
import { currentPage } from '@/views/login/utils/hooks';
|
||||
import { formRules } from '@/views/login/utils/rule';
|
||||
import { currentPage, formRules } from '@/views/login/utils';
|
||||
|
||||
const router = useRouter();
|
||||
const userStore = useUserStore();
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export * from './motion';
|
||||
export * from './rule';
|
||||
export * from './hooks';
|
|
@ -12,7 +12,7 @@ const messageUserStore = useMessageUserStore();
|
|||
/** 获取消息详情 */
|
||||
const getMessageDetail = async () => {
|
||||
// 从路由中获取地址栏信息
|
||||
const messageId = route.params.messageId;
|
||||
const messageId = route.params.messageId.toString();
|
||||
|
||||
// 获取消息详情
|
||||
await messageUserStore.getMessageDetailById(messageId);
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { columns } from '@/views/message-management/message-detail/utils/columns';
|
||||
import { columns, markAsAllRead, markAsRead, onDelete, onSearch, selectIds } from '@/views/message-management/message-detail/utils';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import { markAsAllRead, markAsRead, onDelete, onSearch, selectIds } from '@/views/message-management/message-detail/utils/hooks';
|
||||
import Delete from '@iconify-icons/ep/delete';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { Message } from '@element-plus/icons-vue';
|
||||
|
|
|
@ -6,7 +6,7 @@ import { useDataThemeChange } from '@/layout/hooks/useDataThemeChange';
|
|||
import leftLine from '@iconify-icons/ri/arrow-left-s-line';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { useMessageTypeStore } from '@/store/message/messageType';
|
||||
import { onSearch } from '@/views/message-management/message-detail/utils/hooks';
|
||||
import { onSearch } from '@/views/message-management/message-detail/utils';
|
||||
|
||||
const isOpen = ref(!deviceDetection());
|
||||
const { $storage } = useGlobal<GlobalPropertiesApi>();
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export * from './columns';
|
||||
export * from './hooks';
|
||||
export * from './types';
|
|
@ -2,9 +2,8 @@
|
|||
import SplitPane from '@/components/SplitPane';
|
||||
import MessageEditorFrom from '@/views/message-management/message-editing/message-editor-from.vue';
|
||||
import RichEditor from '@/views/message-management/message-editing/rich-editor.vue';
|
||||
import { formState } from '@/views/message-management/message-editing/utils/hooks';
|
||||
import { formState, settingLR } from '@/views/message-management/message-editing/utils';
|
||||
import MarkdownEditor from '@/views/message-management/message-editing/markdown-editor.vue';
|
||||
import { settingLR } from '@/views/message-management/message-editing/utils/columns';
|
||||
import { onMounted } from 'vue';
|
||||
|
||||
/** 退出提醒 */
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import { MdEditor } from 'md-editor-v3';
|
||||
import 'md-editor-v3/lib/style.css';
|
||||
import { fetchUploadFile } from '@/api/v1/system/system';
|
||||
import { formState } from '@/views/message-management/message-editing/utils/hooks';
|
||||
import { formState } from '@/views/message-management/message-editing/utils';
|
||||
|
||||
/**
|
||||
* * 上传图片
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
<script lang="ts" setup>
|
||||
import { beforeUpload, coverUrl, formState, loading, onSearchUserinfo, onUpload, userDataList } from '@/views/message-management/message-editing/utils/hooks';
|
||||
import { auth, beforeUpload, coverUrl, formState, loading, messageLevel, onSearchUserinfo, onUpload, rules, userDataList } from '@/views/message-management/message-editing/utils';
|
||||
import { onMounted, ref, toRaw } from 'vue';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { messageLevel, rules } from '@/views/message-management/message-editing/utils/columns';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { editorTypeList } from '@/views/message-management/message-send/utils/columns';
|
||||
import { editorTypeList } from '@/views/message-management/message-send/utils';
|
||||
import LoadingSvg from '@/assets/svg/loading.svg';
|
||||
import { useMessageTypeStore } from '@/store/message/messageType';
|
||||
import { encode } from 'js-base64';
|
||||
|
@ -14,7 +13,6 @@ import { usePublicHooks } from '@/views/hooks';
|
|||
import { Plus } from '@element-plus/icons-vue';
|
||||
import ImageLoading from '@/components/Upload/ImageLoading.vue';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
import { auth } from '@/views/message-management/message-editing/utils/auth';
|
||||
|
||||
const formRef = ref();
|
||||
// 用户是否停用样式
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import { onBeforeUnmount, ref, shallowRef } from 'vue';
|
||||
// import '@wangeditor/editor/dist/css/style.css';
|
||||
import { Editor, Toolbar } from '@wangeditor/editor-for-vue';
|
||||
import { formState } from '@/views/message-management/message-editing/utils/hooks';
|
||||
import { formState } from '@/views/message-management/message-editing/utils';
|
||||
import { getToken } from '@/utils/auth';
|
||||
import { defaultConfig } from '@/api/service/config';
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
|
@ -1,21 +1,19 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { columns } from '@/views/message-management/message-received/utils/columns';
|
||||
import { auth, columns, onDeleteBatch, onSearch, selectIds, updateMarkMessageReceived } from '@/views/message-management/message-received/utils';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import { onDeleteBatch, onSearch, selectIds, updateMarkMessageReceived } from '@/views/message-management/message-received/utils/hooks';
|
||||
import Delete from '@iconify-icons/ep/delete';
|
||||
import Refresh from '@iconify-icons/ep/refresh';
|
||||
import { selectUserinfo } from '@/components/Table/Userinfo/columns';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { messageLevel } from '@/views/message-management/message-editing/utils/columns';
|
||||
import { messageLevel } from '@/views/message-management/message-editing/utils';
|
||||
import { isReadStatus } from '@/enums/baseConstant';
|
||||
import { useMessageReceivedStore } from '@/store/message/messageReceived';
|
||||
import { useMessageTypeStore } from '@/store/message/messageType';
|
||||
import { Message } from '@element-plus/icons-vue';
|
||||
import { auth } from '@/views/message-management/message-received/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
|
||||
const tableRef = ref();
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
|
@ -1,9 +1,8 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { columns } from '@/views/message-management/message-send/utils/columns';
|
||||
import { auth, columns, deleteIds, onDelete, onDeleteBatch, onSearch, onUpdate } from '@/views/message-management/message-send/utils';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import { deleteIds, onDelete, onDeleteBatch, onSearch, onUpdate } from '@/views/message-management/message-send/utils/hooks';
|
||||
import Delete from '@iconify-icons/ep/delete';
|
||||
import EditPen from '@iconify-icons/ep/edit-pen';
|
||||
import Refresh from '@iconify-icons/ep/refresh';
|
||||
|
@ -11,11 +10,10 @@ import { selectUserinfo } from '@/components/Table/Userinfo/columns';
|
|||
import { $t } from '@/plugins/i18n';
|
||||
import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { messageLevel } from '@/views/message-management/message-editing/utils/columns';
|
||||
import { messageLevel } from '@/views/message-management/message-editing/utils';
|
||||
import { isReadStatus } from '@/enums/baseConstant';
|
||||
import { useMessageSendStore } from '@/store/message/messageSend';
|
||||
import { useMessageTypeStore } from '@/store/message/messageType';
|
||||
import { auth } from '@/views/message-management/message-send/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
|
||||
const tableRef = ref();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import { MdEditor } from 'md-editor-v3';
|
||||
import 'md-editor-v3/lib/style.css';
|
||||
import { fetchUploadFile } from '@/api/v1/system/system';
|
||||
import { updateMessage } from '@/views/message-management/message-send/utils/hooks';
|
||||
import { updateMessage } from '@/views/message-management/message-send/utils';
|
||||
|
||||
/**
|
||||
* * 上传图片
|
||||
|
|
|
@ -1,19 +1,16 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { editorTypeList, rules } from '@/views/message-management/message-send/utils/columns';
|
||||
import { coverUrl, editorTypeList, loading, onSearchUserinfo, onUpload, rules, updateMessage, userDataList } from '@/views/message-management/message-send/utils';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { usePublicHooks } from '@/views/hooks';
|
||||
import { useMessageTypeStore } from '@/store/message/messageType';
|
||||
import LoadingSvg from '@/assets/svg/loading.svg';
|
||||
import { coverUrl, loading, onSearchUserinfo, onUpload, updateMessage, userDataList } from '@/views/message-management/message-send/utils/hooks';
|
||||
import { messageLevel, settingLR } from '@/views/message-management/message-editing/utils/columns';
|
||||
import { beforeUpload, messageLevel, settingLR } from '@/views/message-management/message-editing/utils';
|
||||
import { Plus } from '@element-plus/icons-vue';
|
||||
import { beforeUpload } from '@/views/message-management/message-editing/utils/hooks';
|
||||
import SplitPane from '@/components/SplitPane';
|
||||
import RichEditor from '@/views/message-management/message-send/rich-editor.vue';
|
||||
import MarkdownEditor from '@/views/message-management/message-send/markdown-editor.vue';
|
||||
import { imageLoading } from '@/enums/baseConstant';
|
||||
import ImageLoading from '@/components/Upload/ImageLoading.vue';
|
||||
|
||||
// 用户是否停用样式
|
||||
|
|
|
@ -3,7 +3,7 @@ import { onBeforeUnmount, ref, shallowRef } from 'vue';
|
|||
import '@wangeditor/editor/dist/css/style.css';
|
||||
import { Editor, Toolbar } from '@wangeditor/editor-for-vue';
|
||||
import { getToken } from '@/utils/auth';
|
||||
import { updateMessage } from '@/views/message-management/message-send/utils/hooks';
|
||||
import { updateMessage } from '@/views/message-management/message-send/utils';
|
||||
|
||||
const mode = 'default';
|
||||
// 编辑器实例,必须用 shallowRef
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
|
@ -1,10 +1,9 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { columns } from '@/views/message-management/message-type/utils/columns';
|
||||
import { auth, columns, deleteIds, onAdd, onDelete, onDeleteBatch, onSearch, onUpdate } from '@/views/message-management/message-type/utils';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import AddFill from '@iconify-icons/ri/add-circle-line';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import { deleteIds, onAdd, onDelete, onDeleteBatch, onSearch, onUpdate } from '@/views/message-management/message-type/utils/hooks';
|
||||
import Delete from '@iconify-icons/ep/delete';
|
||||
import EditPen from '@iconify-icons/ep/edit-pen';
|
||||
import Refresh from '@iconify-icons/ep/refresh';
|
||||
|
@ -15,7 +14,6 @@ import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
|||
import { FormInstance } from 'element-plus';
|
||||
import { enabledOrNotStatus } from '@/enums/baseConstant';
|
||||
import { usePublicHooks } from '@/views/hooks';
|
||||
import { auth } from '@/views/message-management/message-type/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
|
||||
const tableRef = ref();
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { rules } from '@/views/message-management/message-type/utils/columns';
|
||||
import { FormProps } from '@/views/message-management/message-type/utils/types';
|
||||
import { FormProps, rules } from '@/views/message-management/message-type/utils';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { usePublicHooks } from '@/views/hooks';
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
||||
export * from './types';
|
|
@ -1,9 +1,8 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { columns, state } from '@/views/monitor/schedulerExecuteLog/utils/columns';
|
||||
import { auth, columns, deleteIds, onDelete, onDeleteBatch, onSearch, onView, state } from '@/views/monitor/schedulerExecuteLog/utils';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import { deleteIds, onDelete, onDeleteBatch, onSearch, onView } from '@/views/monitor/schedulerExecuteLog/utils/hooks';
|
||||
import Delete from '@iconify-icons/ep/delete';
|
||||
import Refresh from '@iconify-icons/ep/refresh';
|
||||
import { selectUserinfo } from '@/components/Table/Userinfo/columns';
|
||||
|
@ -14,7 +13,6 @@ import { FormInstance } from 'element-plus';
|
|||
import View from '@iconify-icons/ep/view';
|
||||
import VueJsonPretty from 'vue-json-pretty';
|
||||
import 'vue-json-pretty/lib/styles.css';
|
||||
import { auth } from '@/views/monitor/schedulerExecuteLog/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
|
||||
const tableRef = ref();
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { rules, state } from '@/views/monitor/schedulerExecuteLog/utils/columns';
|
||||
import { FormProps } from '@/views/monitor/schedulerExecuteLog/utils/types';
|
||||
import { FormProps, rules, state } from '@/views/monitor/schedulerExecuteLog/utils';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import VueJsonPretty from 'vue-json-pretty';
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
||||
export * from './types';
|
|
@ -1,7 +1,6 @@
|
|||
<script lang="ts" setup>
|
||||
import SystemInfo from '@/views/monitor/server/component/system-info.vue';
|
||||
import { svg } from '@/views/monitor/server/utils/columns';
|
||||
import { info, loading } from '@/views/monitor/server/utils/hooks';
|
||||
import { info, loading, svg } from '@/views/monitor/server/utils';
|
||||
import SystemServer from '@/views/monitor/server/component/system-server.vue';
|
||||
import SystemCpu from '@/views/monitor/server/component/system-cpu.vue';
|
||||
import SystemJvmCpu from '@/views/monitor/server/component/system-jvm-cpu.vue';
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
export * from './columns';
|
||||
export * from './hooks';
|
|
@ -1,9 +1,8 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { columns } from '@/views/monitor/userLoginLog/utils/columns';
|
||||
import { auth, columns, deleteIds, onDelete, onDeleteBatch, onSearch, onView } from '@/views/monitor/userLoginLog/utils';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import { deleteIds, onDelete, onDeleteBatch, onSearch, onView } from '@/views/monitor/userLoginLog/utils/hooks';
|
||||
import Delete from '@iconify-icons/ep/delete';
|
||||
import View from '@iconify-icons/ep/view';
|
||||
import Refresh from '@iconify-icons/ep/refresh';
|
||||
|
@ -12,7 +11,6 @@ import { $t } from '@/plugins/i18n';
|
|||
import { useUserLoginLogStore } from '@/store/monitor/userLoginLog';
|
||||
import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { auth } from '@/views/monitor/userLoginLog/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
|
||||
const tableRef = ref();
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { rules } from '@/views/monitor/userLoginLog/utils/columns';
|
||||
import { FormProps } from '@/views/monitor/userLoginLog/utils/types';
|
||||
import { FormProps, rules } from '@/views/monitor/userLoginLog/utils';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
|
||||
const props = withDefaults(defineProps<FormProps>(), {
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
||||
export * from './types';
|
|
@ -1,10 +1,9 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { columns } from '@/views/scheduler/schedulers/utils/columns';
|
||||
import { auth, columns, onAdd, onDelete, onPause, onResume, onSearch, onUpdate } from '@/views/scheduler/schedulers/utils';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import AddFill from '@iconify-icons/ri/add-circle-line';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import { onAdd, onDelete, onPause, onResume, onSearch, onUpdate } from '@/views/scheduler/schedulers/utils/hooks';
|
||||
import Delete from '@iconify-icons/ep/delete';
|
||||
import EditPen from '@iconify-icons/ep/edit-pen';
|
||||
import Refresh from '@iconify-icons/ep/refresh';
|
||||
|
@ -13,7 +12,6 @@ import { $t } from '@/plugins/i18n';
|
|||
import { useSchedulersStore } from '@/store/scheduler/schedulers';
|
||||
import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { auth } from '@/views/scheduler/schedulers/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
|
||||
const tableRef = ref();
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { rules } from '@/views/scheduler/schedulers/utils/columns';
|
||||
import { FormProps } from '@/views/scheduler/schedulers/utils/types';
|
||||
import { FormProps, rules } from '@/views/scheduler/schedulers/utils';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { useSchedulersGroupStore } from '@/store/scheduler/schedulersGroup';
|
||||
import { useSchedulersStore } from '@/store/scheduler/schedulers';
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
||||
export * from './types';
|
|
@ -1,10 +1,9 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { columns } from '@/views/scheduler/schedulersGroup/utils/columns';
|
||||
import { auth, columns, deleteIds, onAdd, onDelete, onDeleteBatch, onSearch, onUpdate } from '@/views/scheduler/schedulersGroup/utils';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import AddFill from '@iconify-icons/ri/add-circle-line';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import { deleteIds, onAdd, onDelete, onDeleteBatch, onSearch, onUpdate } from '@/views/scheduler/schedulersGroup/utils/hooks';
|
||||
import Delete from '@iconify-icons/ep/delete';
|
||||
import EditPen from '@iconify-icons/ep/edit-pen';
|
||||
import Refresh from '@iconify-icons/ep/refresh';
|
||||
|
@ -13,7 +12,6 @@ import { $t } from '@/plugins/i18n';
|
|||
import { useSchedulersGroupStore } from '@/store/scheduler/schedulersGroup';
|
||||
import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { auth } from '@/views/scheduler/schedulersGroup/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
|
||||
const tableRef = ref();
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { rules } from '@/views/scheduler/schedulersGroup/utils/columns';
|
||||
import { FormProps } from '@/views/scheduler/schedulersGroup/utils/types';
|
||||
import { FormProps, rules } from '@/views/scheduler/schedulersGroup/utils';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
|
||||
const props = withDefaults(defineProps<FormProps>(), {
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
||||
export * from './types';
|
|
@ -1,13 +1,11 @@
|
|||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { isAddUserinfo, rules } from '@/views/system/adminUser/utils/columns';
|
||||
import { FormProps } from '@/views/system/adminUser/utils/types';
|
||||
import { deptList, FormProps, isAddUserinfo, rules } from '@/views/system/adminUser/utils';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import ReCol from '@/components/MyCol';
|
||||
import { sexConstant } from '@/enums/baseConstant';
|
||||
import { deptSelector } from '@/views/system/dept/utils/columns';
|
||||
import { deptList } from '@/views/system/adminUser/utils/hooks';
|
||||
import { deptSelector } from '@/views/system/dept/utils';
|
||||
import { usePublicHooks } from '@/views/hooks';
|
||||
|
||||
const props = withDefaults(defineProps<FormProps>(), {
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { columns } from '@/views/system/adminUser/utils/columns';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import AddFill from '@iconify-icons/ri/add-circle-line';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import {
|
||||
auth,
|
||||
columns,
|
||||
deleteIds,
|
||||
deptList,
|
||||
onAdd,
|
||||
|
@ -19,7 +17,10 @@ import {
|
|||
onUploadAvatar,
|
||||
switchLoadMap,
|
||||
updateUserStatus,
|
||||
} from '@/views/system/adminUser/utils/hooks';
|
||||
} from '@/views/system/adminUser/utils';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import AddFill from '@iconify-icons/ri/add-circle-line';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import Delete from '@iconify-icons/ep/delete';
|
||||
import EditPen from '@iconify-icons/ep/edit-pen';
|
||||
import Refresh from '@iconify-icons/ep/refresh';
|
||||
|
@ -38,7 +39,6 @@ import Airplane from '@/assets/svg/airplane.svg';
|
|||
import { useDeptStore } from '@/store/system/dept';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { usePublicHooks } from '@/views/hooks';
|
||||
import { auth } from '@/views/system/adminUser/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
|
||||
const adminUserStore = useAdminUserStore();
|
||||
|
|
|
@ -8,10 +8,8 @@ import ExpandIcon from '@/assets/svg/expand.svg?component';
|
|||
import UnExpandIcon from '@/assets/svg/unexpand.svg?component';
|
||||
import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
||||
import Reset from '@iconify-icons/ri/restart-line';
|
||||
import { Tree } from '@/views/system/adminUser/utils/types';
|
||||
import { buttonClass, defaultProps } from '@/views/system/adminUser/utils/columns';
|
||||
import { buttonClass, defaultProps, onSearch, Tree } from '@/views/system/adminUser/utils';
|
||||
import { useAdminUserStore } from '@/store/system/adminUser';
|
||||
import { onSearch } from '@/views/system/adminUser/utils/hooks';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
|
||||
defineProps({
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
||||
export * from './types';
|
|
@ -1,8 +1,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { deptSelector, rules } from '@/views/system/dept/utils/columns';
|
||||
import { FormProps } from '@/views/system/dept/utils/types';
|
||||
import { deptSelector, FormProps, rules } from '@/views/system/dept/utils';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { useDeptStore } from '@/store/system/dept';
|
||||
import { handleTree } from '@pureadmin/utils';
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
<script lang="ts" setup>
|
||||
import { computed, onMounted, ref } from 'vue';
|
||||
import { columns } from '@/views/system/dept/utils/columns';
|
||||
import { auth, columns, deleteIds, onAdd, onDelete, onDeleteBatch, onSearch, onUpdate } from '@/views/system/dept/utils';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import AddFill from '@iconify-icons/ri/add-circle-line';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import { deleteIds, onAdd, onDelete, onDeleteBatch, onSearch, onUpdate } from '@/views/system/dept/utils/hooks';
|
||||
import Delete from '@iconify-icons/ep/delete';
|
||||
import EditPen from '@iconify-icons/ep/edit-pen';
|
||||
import Refresh from '@iconify-icons/ep/refresh';
|
||||
|
@ -14,7 +13,6 @@ import { useDeptStore } from '@/store/system/dept';
|
|||
import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
||||
import { handleTree } from '@/utils/tree';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { auth } from '@/views/system/dept/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
|
||||
const tableRef = ref();
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
||||
export * from './types';
|
|
@ -1,8 +1,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { FormInstance, genFileId, UploadProps, UploadRawFile } from 'element-plus';
|
||||
import { addRules, uploadRules } from '@/views/system/files/utils/columns';
|
||||
import { FormProps } from '@/views/system/files/utils/types';
|
||||
import { addRules, FormProps, uploadRules } from '@/views/system/files/utils';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { useFilesStore } from '@/store/monitor/files';
|
||||
import { UploadFilled } from '@element-plus/icons-vue';
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { columns } from '@/views/system/files/utils/columns';
|
||||
import { auth, columns, onAdd, onDelete, onDeleteBatch, onDownload, onDownloadBatch, onSearch, onUpdate, selectRows } from '@/views/system/files/utils';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import AddFill from '@iconify-icons/ri/add-circle-line';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import { onAdd, onDelete, onDeleteBatch, onDownload, onDownloadBatch, onSearch, onUpdate, selectRows } from '@/views/system/files/utils/hooks';
|
||||
import Delete from '@iconify-icons/ep/delete';
|
||||
import Download from '@iconify-icons/ep/download';
|
||||
import EditPen from '@iconify-icons/ep/edit-pen';
|
||||
|
@ -14,7 +13,6 @@ import { $t } from '@/plugins/i18n';
|
|||
import { useFilesStore } from '@/store/monitor/files';
|
||||
import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { auth } from '@/views/system/files/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
|
||||
const tableRef = ref();
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
||||
export * from './types';
|
|
@ -9,7 +9,9 @@ import AddFill from '@iconify-icons/ri/add-circle-line';
|
|||
import {
|
||||
assignBatchRolesToRouter,
|
||||
assignRolesToRouter,
|
||||
auth,
|
||||
clearAllRolesSelect,
|
||||
columns,
|
||||
onAdd,
|
||||
onChangeMenuRank,
|
||||
onchangeVisible,
|
||||
|
@ -19,16 +21,14 @@ import {
|
|||
selectIds,
|
||||
switchLoadMap,
|
||||
tableRef,
|
||||
} from '@/views/system/menu/utils/hooks';
|
||||
} from '@/views/system/menu/utils';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import { columns } from '@/views/system/menu/utils/columns';
|
||||
import { userMenuStore } from '@/store/system/menu';
|
||||
import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
||||
import { selectUserinfo } from '@/components/Table/Userinfo/columns';
|
||||
import Upload from '@iconify-icons/ri/upload-line';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { usePublicHooks } from '@/views/hooks';
|
||||
import { auth } from '@/views/system/menu/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
|
||||
const formRef = ref();
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import ReCol from '@/components/MyCol';
|
||||
import { formRules } from '@/views/system/menu/utils/columns';
|
||||
import { FormProps, formRules } from '@/views/system/menu/utils';
|
||||
import IconSelect from '@/components/SelectIcon/Select.vue';
|
||||
import Segmented from '@/components/Segmented';
|
||||
import { menuTypeOptions } from '@/enums';
|
||||
import { FormProps } from '@/views/system/menu/utils/types';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
|
||||
const props = withDefaults(defineProps<FormProps>(), {
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
||||
export * from './types';
|
|
@ -1,10 +1,9 @@
|
|||
<script lang="ts" setup>
|
||||
import { computed, onMounted, ref } from 'vue';
|
||||
import { columns } from '@/views/system/power/utils/columns';
|
||||
import { auth, columns, onAdd, onDelete, onDeleteBatch, onSearch, onUpdate, onUpdateBatchParent, powerIds } from '@/views/system/power/utils';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import AddFill from '@iconify-icons/ri/add-circle-line';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import { onAdd, onDelete, onDeleteBatch, onSearch, onUpdate, onUpdateBatchParent, powerIds } from '@/views/system/power/utils/hooks';
|
||||
import Delete from '@iconify-icons/ep/delete';
|
||||
import EditPen from '@iconify-icons/ep/edit-pen';
|
||||
import Refresh from '@iconify-icons/ep/refresh';
|
||||
|
@ -14,7 +13,6 @@ import { usePowerStore } from '@/store/system/power';
|
|||
import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
||||
import { handleTree } from '@pureadmin/utils';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { auth } from '@/views/system/power/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
|
||||
const tableRef = ref();
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { powerCascadeProps, rules } from '@/views/system/power/utils/columns';
|
||||
import { FormProps } from '@/views/system/power/utils/types';
|
||||
import { FormProps, powerCascadeProps, rules } from '@/views/system/power/utils';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
import { handleTree } from '@pureadmin/utils';
|
||||
import { usePowerStore } from '@/store/system/power';
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
||||
export * from './types';
|
|
@ -1,12 +1,11 @@
|
|||
<script lang="ts" setup>
|
||||
import { iconClass } from '@/views/system/role/utils/columns';
|
||||
import { contentRef, currentRow, iconClass, onMenuPowerClick, powerTreeIsShow, powerTreeRef, tableRef } from '@/views/system/role/utils';
|
||||
import Close from '@iconify-icons/ep/close';
|
||||
import Check from '@iconify-icons/ep/check';
|
||||
import { computed, nextTick, onMounted, ref, watch } from 'vue';
|
||||
import { delay, getKeyList, handleTree, subBefore, useResizeObserver } from '@pureadmin/utils';
|
||||
import { contentRef, currentRow, onMenuPowerClick, powerTreeIsShow, powerTreeRef, tableRef } from '@/views/system/role/utils/hooks';
|
||||
import { usePowerStore } from '@/store/system/power';
|
||||
import { powerCascadeProps } from '@/views/system/power/utils/columns';
|
||||
import { powerCascadeProps } from '@/views/system/power/utils';
|
||||
import { useRoleStore } from '@/store/system/role';
|
||||
|
||||
const powerStore = usePowerStore();
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted } from 'vue';
|
||||
import { columns } from '@/views/system/role/utils/columns';
|
||||
import { auth, columns, contentRef, deleteIds, formRef, onAdd, onDelete, onDeleteBatch, onMenuPowerClick, onSearch, onUpdate, powerTreeIsShow, tableRef } from '@/views/system/role/utils';
|
||||
import PureTableBar from '@/components/TableBar/src/bar';
|
||||
import AddFill from '@iconify-icons/ri/add-circle-line';
|
||||
import PureTable from '@pureadmin/table';
|
||||
import { contentRef, deleteIds, formRef, onAdd, onDelete, onDeleteBatch, onMenuPowerClick, onSearch, onUpdate, powerTreeIsShow, tableRef } from '@/views/system/role/utils/hooks';
|
||||
import Delete from '@iconify-icons/ep/delete';
|
||||
import EditPen from '@iconify-icons/ep/edit-pen';
|
||||
import Refresh from '@iconify-icons/ep/refresh';
|
||||
|
@ -15,7 +14,6 @@ import { useRenderIcon } from '@/components/CommonIcon/src/hooks';
|
|||
import { deviceDetection } from '@pureadmin/utils';
|
||||
import Menu from '@iconify-icons/ep/menu';
|
||||
import AssignPowersToRole from '@/views/system/role/assign-powers-to-role.vue';
|
||||
import { auth } from '@/views/system/role/utils/auth';
|
||||
import { hasAuth } from '@/router/utils';
|
||||
|
||||
const roleStore = useRoleStore();
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import { FormInstance } from 'element-plus';
|
||||
import { rules } from '@/views/system/role/utils/columns';
|
||||
import { FormProps } from '@/views/system/role/utils/types';
|
||||
import { FormProps, rules } from '@/views/system/role/utils';
|
||||
import { $t } from '@/plugins/i18n';
|
||||
|
||||
const props = withDefaults(defineProps<FormProps>(), {
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export * from './columns';
|
||||
export * from './auth';
|
||||
export * from './hooks';
|
||||
export * from './types';
|
|
@ -1,12 +1,11 @@
|
|||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import ReCol from '@/components/MyCol';
|
||||
import { useDark } from './utils/utils';
|
||||
import { chartData, useDark } from './utils';
|
||||
import { ReNormalCountTo } from '@/components/CountTo';
|
||||
import ChartLine from '@/views/welcome/components/ChartLine.vue';
|
||||
import ChartRound from '@/views/welcome/components/ChartRound.vue';
|
||||
import { chartData } from './utils/data';
|
||||
import { getServerCommitList, getWebCommitList, serverCommitList, webCommitList } from '@/views/welcome/utils/hooks';
|
||||
import { getServerCommitList, getWebCommitList, serverCommitList, webCommitList } from '@/views/welcome/utils';
|
||||
import WebReadMe from '@/views/welcome/components/web-read-me.vue';
|
||||
import { TabsPaneContext } from 'element-plus';
|
||||
import ServerReadMe from '@/views/welcome/components/server-read-me.vue';
|
||||
|
@ -18,7 +17,7 @@ const activeName = ref('web');
|
|||
|
||||
// 修改tab名称
|
||||
const onTabClick = (tab: TabsPaneContext, _: Event) => {
|
||||
activeName.value = tab.paneName;
|
||||
activeName.value = tab.paneName.toString();
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export * from './data';
|
||||
export * from './utils';
|
||||
export * from './hooks';
|
Loading…
Reference in New Issue