mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 05:09:19 +08:00
refactor: 调整api和页面组件位置
This commit is contained in:
+3
-3
@@ -1,9 +1,9 @@
|
||||
<script lang="ts" setup>
|
||||
import type { CompanyVO } from '#/api/organization/company/types';
|
||||
import type { CompanyVO } from '#/api/company/types';
|
||||
import type {
|
||||
SuperAccountDTO,
|
||||
SuperAccountVO,
|
||||
} from '#/api/organization/account-super';
|
||||
} from '#/api/sys/account';
|
||||
|
||||
import { computed, ref, watch } from 'vue';
|
||||
|
||||
@@ -14,7 +14,7 @@ import { Form, Input, message, Select } from 'ant-design-vue';
|
||||
import {
|
||||
super_createAccountApi,
|
||||
super_updateAccountApi,
|
||||
} from '#/api/organization/account-super';
|
||||
} from '#/api/sys/account';
|
||||
|
||||
interface Emits {
|
||||
(e: 'success'): void;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<script lang="ts" setup>
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
import type { CompanyVO } from '#/api/organization/company/types';
|
||||
import type { CompanyVO } from '#/api/company/types';
|
||||
import type {
|
||||
SuperAccountDTO,
|
||||
SuperAccountVO,
|
||||
} from '#/api/organization/account-super';
|
||||
} from '#/api/sys/account';
|
||||
import type { PageQueryDTO } from '#/types/common';
|
||||
|
||||
import { computed, onMounted, ref, watch } from 'vue';
|
||||
@@ -28,11 +28,11 @@ import {
|
||||
} from 'ant-design-vue';
|
||||
|
||||
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import { getCompanyPageApi } from '#/api/organization/company';
|
||||
import { getCompanyPageApi } from '#/api/company';
|
||||
import {
|
||||
super_deleteAccountApi,
|
||||
super_getAccountPageApi,
|
||||
} from '#/api/organization/account-super';
|
||||
} from '#/api/sys/account';
|
||||
|
||||
import SuperAccountFormModal from './components/SuperAccountFormModal.vue';
|
||||
import {
|
||||
|
||||
+6
-6
@@ -1,7 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
import type { AccountDTO, AccountVO } from '#/api/organization/account';
|
||||
import type { DepartmentVO } from '#/api/organization/department';
|
||||
import type { PositionVO } from '#/api/organization/position';
|
||||
import type { AccountDTO, AccountVO } from '#/api/company/account';
|
||||
import type { DepartmentVO } from '#/api/org/department';
|
||||
import type { PositionVO } from '#/api/org/position';
|
||||
import type { PageQueryDTO } from '#/types/common';
|
||||
|
||||
import { computed, ref, watch } from 'vue';
|
||||
@@ -13,9 +13,9 @@ import { Cascader, Form, Input, message, Select } from 'ant-design-vue';
|
||||
import {
|
||||
admin_createAccountApi,
|
||||
admin_updateAccountApi,
|
||||
} from '#/api/organization/account';
|
||||
import { getDepartmentTreeApi } from '#/api/organization/department';
|
||||
import { getPositionPageApi } from '#/api/organization/position';
|
||||
} from '#/api/company/account';
|
||||
import { getDepartmentTreeApi } from '#/api/org/department';
|
||||
import { getPositionPageApi } from '#/api/org/position';
|
||||
|
||||
interface Emits {
|
||||
(e: 'success'): void;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts" setup>
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
import type { AccountDTO, AccountVO } from '#/api/organization/account';
|
||||
import type { AccountDTO, AccountVO } from '#/api/company/account';
|
||||
import type { PageQueryDTO } from '#/types/common';
|
||||
|
||||
import { computed, ref } from 'vue';
|
||||
@@ -14,7 +14,7 @@ import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import {
|
||||
admin_deleteAccountApi,
|
||||
admin_getAccountPageApi,
|
||||
} from '#/api/organization/account';
|
||||
} from '#/api/company/account';
|
||||
|
||||
import AccountFormModal from './components/AccountFormModal.vue';
|
||||
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import type { CompanyDTO, CompanyVO } from '#/api/organization/company';
|
||||
import type { CompanyDTO, CompanyVO } from '#/api/company';
|
||||
|
||||
import { computed, onUnmounted, ref } from 'vue';
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
createCompanyApi,
|
||||
updateCompanyApi,
|
||||
uploadCompanyLogoApi,
|
||||
} from '#/api/organization/company';
|
||||
} from '#/api/company';
|
||||
|
||||
interface Emits {
|
||||
(e: 'success'): void;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts" setup>
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
import type { CompanyDTO, CompanyVO } from '#/api/organization/company';
|
||||
import type { CompanyDTO, CompanyVO } from '#/api/company';
|
||||
import type { PageQueryDTO } from '#/types/common';
|
||||
|
||||
import { computed, ref } from 'vue';
|
||||
@@ -14,7 +14,7 @@ import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import {
|
||||
deleteCompanyApi,
|
||||
getCompanyPageApi,
|
||||
} from '#/api/organization/company';
|
||||
} from '#/api/company';
|
||||
import CompanyMenuDrawer from '#/components/CompanyMenuDrawer.vue';
|
||||
import CompanyPermissionDrawer from '#/components/CompanyPermissionDrawer.vue';
|
||||
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import type { DepartmentVO } from '#/api/organization/department';
|
||||
import type { DepartmentVO } from '#/api/org/department';
|
||||
|
||||
import { computed, ref } from 'vue';
|
||||
|
||||
@@ -10,7 +10,7 @@ import { Form, Input, message, Select, Switch } from 'ant-design-vue';
|
||||
import {
|
||||
createDepartmentApi,
|
||||
updateDepartmentApi,
|
||||
} from '#/api/organization/department';
|
||||
} from '#/api/org/department';
|
||||
|
||||
interface Props {
|
||||
departmentList: DepartmentVO.DepartmentInfoVO[];
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
import type {
|
||||
DepartmentDTO,
|
||||
DepartmentVO,
|
||||
} from '#/api/organization/department';
|
||||
} from '#/api/org/department';
|
||||
import type { PageQueryDTO } from '#/types/common';
|
||||
|
||||
import { computed, ref } from 'vue';
|
||||
@@ -17,7 +17,7 @@ import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import {
|
||||
deleteDepartmentApi,
|
||||
getDepartmentPageApi,
|
||||
} from '#/api/organization/department';
|
||||
} from '#/api/org/department';
|
||||
|
||||
import DepartmentModal from './components/DepartmentModal.vue';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import type { PositionVO } from '#/api/organization/position/types';
|
||||
import type { PermissionVO } from '#/api/system/permission/types';
|
||||
import type { PositionVO } from '#/api/org/position/types';
|
||||
import type { PermissionVO } from '#/api/sys/permission/types';
|
||||
|
||||
import { computed, onMounted, ref } from 'vue';
|
||||
|
||||
@@ -18,14 +18,14 @@ import {
|
||||
Tag,
|
||||
} from 'ant-design-vue';
|
||||
|
||||
import { getPositionPageApi } from '#/api/organization/position';
|
||||
import { getPositionPageApi } from '#/api/org/position';
|
||||
import {
|
||||
batchUpdatePositionPermissionsApi,
|
||||
getPositionPermissionIdsApi,
|
||||
} from '#/api/organization/position-permission-assign/apis';
|
||||
import { getCompanyVisiblePermissionTreeApi } from '#/api/system/permission';
|
||||
} from '#/api/org/position/permission-assign/apis';
|
||||
import { getCompanyVisiblePermissionTreeApi } from '#/api/sys/permission';
|
||||
|
||||
import TreeNodeContent from '#/views/system/company-permission-manage/components/TreeNodeContent.vue';
|
||||
import TreeNodeContent from '#/views/company/permission/components/TreeNodeContent.vue';
|
||||
|
||||
defineOptions({ name: 'PositionPermissionAssignPage' });
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import type { PositionVO } from '#/api/organization/position';
|
||||
import type { PositionVO } from '#/api/org/position';
|
||||
|
||||
import { computed, ref } from 'vue';
|
||||
|
||||
@@ -10,7 +10,7 @@ import { Form, Input, message, Select, Switch } from 'ant-design-vue';
|
||||
import {
|
||||
createPositionApi,
|
||||
updatePositionApi,
|
||||
} from '#/api/organization/position';
|
||||
} from '#/api/org/position';
|
||||
|
||||
interface Props {
|
||||
departmentOptions: Array<{ label: string; value: number }>;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts" setup>
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
import type { PositionDTO, PositionVO } from '#/api/organization/position';
|
||||
import type { PositionDTO, PositionVO } from '#/api/org/position';
|
||||
import type { PageQueryDTO } from '#/types/common';
|
||||
|
||||
import { computed, ref } from 'vue';
|
||||
@@ -14,7 +14,7 @@ import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import {
|
||||
deletePositionApi,
|
||||
getPositionPageApi,
|
||||
} from '#/api/organization/position';
|
||||
} from '#/api/org/position';
|
||||
|
||||
import PositionModal from './components/PositionModal.vue';
|
||||
|
||||
|
||||
+5
-5
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import type { CompanyMenuVO } from '#/api/organization/company-menu/types';
|
||||
import type { PositionVO } from '#/api/organization/position/types';
|
||||
import type { CompanyMenuVO } from '#/api/company/menu/types';
|
||||
import type { PositionVO } from '#/api/org/position/types';
|
||||
|
||||
import { computed, onMounted, ref } from 'vue';
|
||||
|
||||
@@ -18,12 +18,12 @@ import {
|
||||
Tree,
|
||||
} from 'ant-design-vue';
|
||||
|
||||
import { getCompanyMenuTreeApi } from '#/api/organization/company-menu';
|
||||
import { getPositionPageApi } from '#/api/organization/position';
|
||||
import { getCompanyMenuTreeApi } from '#/api/company/menu';
|
||||
import { getPositionPageApi } from '#/api/org/position';
|
||||
import {
|
||||
batchUpdatePositionMenusApi,
|
||||
getPositionMenuIdsApi,
|
||||
} from '#/api/organization/position-permission';
|
||||
} from '#/api/org/position/permission';
|
||||
|
||||
defineOptions({
|
||||
name: 'PositionPermissionPage',
|
||||
Reference in New Issue
Block a user