style(用户组管理): 用户组管理文件结构调整
This commit is contained in:
parent
6b8df3cadd
commit
fafcb8bdf7
|
@ -8,3 +8,4 @@ coverage
|
||||||
package-lock.json
|
package-lock.json
|
||||||
pnpm-lock.yaml
|
pnpm-lock.yaml
|
||||||
yarn.lock
|
yarn.lock
|
||||||
|
.vscode
|
|
@ -1,7 +1,7 @@
|
||||||
import MSR from '@/api/http/index';
|
import MSR from '@/api/http/index';
|
||||||
import { updateUserGroupU, getUserGroupU, addUserGroupU, deleteUserGroupU } from '@/api/requrls/system/usergroup';
|
import { updateUserGroupU, getUserGroupU, addUserGroupU, deleteUserGroupU } from '@/api/requrls/system/usergroup';
|
||||||
// import { QueryParams, CommonList } from '@/models/common';
|
// import { QueryParams, CommonList } from '@/models/common';
|
||||||
import { UserGroupItem } from '@/components/bussiness/usergroup/type';
|
import { UserGroupItem } from '@/models/system/usergroup';
|
||||||
|
|
||||||
export function updateOrAddUserGroup(data: Partial<UserGroupItem>) {
|
export function updateOrAddUserGroup(data: Partial<UserGroupItem>) {
|
||||||
return MSR.post<UserGroupItem>({
|
return MSR.post<UserGroupItem>({
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useI18n } from '@/hooks/useI18n';
|
import { useI18n } from '@/hooks/useI18n';
|
||||||
import { reactive, ref, watchEffect } from 'vue';
|
import { reactive, ref, watchEffect } from 'vue';
|
||||||
import { UserGroupItem } from './type';
|
import { UserGroupItem } from '@/models/system/usergroup';
|
||||||
import type { FormInstance, ValidatedError } from '@arco-design/web-vue';
|
import type { FormInstance, ValidatedError } from '@arco-design/web-vue';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
|
@ -40,7 +40,7 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useI18n } from '@/hooks/useI18n';
|
import { useI18n } from '@/hooks/useI18n';
|
||||||
import { reactive, ref, watchEffect, onUnmounted } from 'vue';
|
import { reactive, ref, watchEffect, onUnmounted } from 'vue';
|
||||||
import { UserOption } from './type';
|
import { UserOption } from '@/models/system/usergroup';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
|
@ -60,7 +60,7 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, onMounted } from 'vue';
|
import { ref, onMounted } from 'vue';
|
||||||
import { useI18n } from '@/hooks/useI18n';
|
import { useI18n } from '@/hooks/useI18n';
|
||||||
import { CustomMoreActionItem, PopVisibleItem, RenameType, UserGroupItem } from './type';
|
import { CustomMoreActionItem, PopVisibleItem, RenameType, UserGroupItem } from '@/models/system/usergroup';
|
||||||
import MsTableMoreAction from '@/components/pure/ms-table-more-action/index.vue';
|
import MsTableMoreAction from '@/components/pure/ms-table-more-action/index.vue';
|
||||||
import { ActionsItem } from '@/components/pure/ms-table-more-action/types';
|
import { ActionsItem } from '@/components/pure/ms-table-more-action/types';
|
||||||
import AddUserModal from './addUserModal.vue';
|
import AddUserModal from './addUserModal.vue';
|
|
@ -30,7 +30,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useI18n } from '@/hooks/useI18n';
|
import { useI18n } from '@/hooks/useI18n';
|
||||||
import { watchEffect, reactive, ref, computed, onUnmounted } from 'vue';
|
import { watchEffect, reactive, ref, computed, onUnmounted } from 'vue';
|
||||||
import { CustomMoreActionItem, RenameType, UserGroupItem } from './type';
|
import { CustomMoreActionItem, RenameType, UserGroupItem } from '@/models/system/usergroup';
|
||||||
import { ValidatedError } from '@arco-design/web-vue';
|
import { ValidatedError } from '@arco-design/web-vue';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
|
@ -29,10 +29,10 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { useI18n } from '@/hooks/useI18n';
|
import { useI18n } from '@/hooks/useI18n';
|
||||||
import UserGroupLeft from '@/components/bussiness/usergroup/index.vue';
|
|
||||||
import useUserGroupStore from '@/store/modules/system/usergroup';
|
import useUserGroupStore from '@/store/modules/system/usergroup';
|
||||||
import UserTable from '@/components/bussiness/usergroup/userTable.vue';
|
import UserGroupLeft from './components/index.vue';
|
||||||
import AuthTable from '@/components/bussiness/usergroup/authTable.vue';
|
import UserTable from './components/userTable.vue';
|
||||||
|
import AuthTable from './components/authTable.vue';
|
||||||
|
|
||||||
const currentTable = ref('auth');
|
const currentTable = ref('auth');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue