mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 22:29:19 +08:00
重构接口方法和对接账户管理接口
This commit is contained in:
+2
-2
@@ -31,8 +31,8 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, watch } from 'vue'
|
||||
import { Modal, Form, Input, message } from 'ant-design-vue'
|
||||
import { updateFileApi } from '#/api/media'
|
||||
import type { FileDTO, FileVO } from '#/api/media/types'
|
||||
import { updateFileApi } from '#/api/media/file'
|
||||
import type { FileDTO, FileVO } from '#/api/media/file/types'
|
||||
|
||||
defineOptions({ name: 'FileEditModal' })
|
||||
|
||||
|
||||
@@ -28,8 +28,8 @@ import {
|
||||
batchUploadFilesApi,
|
||||
deleteFileApi,
|
||||
getFilePageApi,
|
||||
} from '#/api/media';
|
||||
import type { FileVO, FileDTO } from '#/api/media/types';
|
||||
} from '#/api/media/file';
|
||||
import type { FileVO, FileDTO } from '#/api/media/file/types';
|
||||
import type { PageQueryDTO } from '#/types/common';
|
||||
|
||||
defineOptions({ name: 'FileRepository' });
|
||||
@@ -39,7 +39,6 @@ const loading = ref(false);
|
||||
const fileList = ref<FileVO.Info[]>([]);
|
||||
const total = ref(0);
|
||||
const current = ref(1);
|
||||
const pageSize = ref(20);
|
||||
const editModalVisible = ref(false);
|
||||
const currentFileData = ref<FileVO.Info | null>(null);
|
||||
const uploadLoading = ref(false);
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { Card, Image, Tag, Button, Space, Popconfirm } from 'ant-design-vue';
|
||||
import { createIconifyIcon } from '@vben/icons';
|
||||
import type { ImageVO } from '#/api/media/types';
|
||||
import type { ImageVO } from '#/api/media/image/types';
|
||||
|
||||
// 创建图标组件
|
||||
const DownloadIcon = createIconifyIcon('lucide:download');
|
||||
|
||||
+2
-2
@@ -31,8 +31,8 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, watch } from 'vue'
|
||||
import { Modal, Form, Input, message } from 'ant-design-vue'
|
||||
import { updateImageApi } from '#/api/media'
|
||||
import type { ImageDTO, ImageVO } from '#/api/media/types'
|
||||
import { updateImageApi } from '#/api/media/image'
|
||||
import type { ImageDTO, ImageVO } from '#/api/media/image/types'
|
||||
|
||||
defineOptions({ name: 'ImageEditModal' })
|
||||
|
||||
|
||||
+2
-2
@@ -101,8 +101,8 @@
|
||||
import { ref, watch } from 'vue'
|
||||
import { Form, Input, Select, Button, Space, Row, Col, Pagination, Upload, message } from 'ant-design-vue'
|
||||
import { createIconifyIcon } from '@vben/icons'
|
||||
import { getImagePageApi, uploadImageApi, batchUploadImagesApi } from '#/api/media'
|
||||
import type { ImageVO, ImageDTO } from '#/api/media/types'
|
||||
import { getImagePageApi, uploadImageApi, batchUploadImagesApi } from '#/api/media/image'
|
||||
import type { ImageVO, ImageDTO } from '#/api/media/image/types'
|
||||
import type { PageQueryDTO } from '#/types/common'
|
||||
import ImageCard from './ImageCard.vue'
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@ import {
|
||||
batchUploadImagesApi,
|
||||
deleteImageApi,
|
||||
getImagePageApi,
|
||||
} from '#/api/media';
|
||||
import type { ImageVO, ImageDTO } from '#/api/media/types';
|
||||
} from '#/api/media/image';
|
||||
import type { ImageVO, ImageDTO } from '#/api/media/image/types';
|
||||
import type { PageQueryDTO } from '#/types/common';
|
||||
import ImageEditModal from './components/ImageEditModal.vue';
|
||||
import ImageGridView from './components/ImageGridView.vue';
|
||||
|
||||
+1
-1
@@ -108,7 +108,7 @@ import {
|
||||
updateCompanyApi,
|
||||
type CompanyVO,
|
||||
type CompanyDTO
|
||||
} from '#/api/org';
|
||||
} from '#/api/org/company';
|
||||
|
||||
interface Emits {
|
||||
(e: 'success'): void;
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
getCompanyPageApi,
|
||||
type CompanyVO,
|
||||
type CompanyDTO
|
||||
} from '#/api/org';
|
||||
} from '#/api/org/company';
|
||||
import type { PageQueryDTO } from '#/types/common';
|
||||
import CompanyFormModal from './components/CompanyFormModal.vue';
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import {
|
||||
updateDepartmentApi,
|
||||
type DepartmentVO,
|
||||
type DepartmentDTO
|
||||
} from '#/api/org';
|
||||
} from '#/api/org/department';
|
||||
|
||||
interface Props {
|
||||
departmentList: DepartmentVO.DepartmentInfoVO[];
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ import {
|
||||
getDepartmentPageApi,
|
||||
type DepartmentVO,
|
||||
type DepartmentDTO
|
||||
} from '#/api/org';
|
||||
} from '#/api/org/department';
|
||||
import type { PageQueryDTO } from '#/types/common';
|
||||
import DepartmentModal from './components/DepartmentModal.vue';
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import {
|
||||
updatePositionApi,
|
||||
type PositionVO,
|
||||
type PositionDTO
|
||||
} from '#/api/org';
|
||||
} from '#/api/org/position';
|
||||
|
||||
interface Props {
|
||||
departmentOptions: Array<{ label: string; value: number }>;
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ import {
|
||||
getPositionPageApi,
|
||||
type PositionVO,
|
||||
type PositionDTO
|
||||
} from '#/api/org';
|
||||
} from '#/api/org/position';
|
||||
import type { PageQueryDTO } from '#/types/common';
|
||||
import PositionModal from './components/PositionModal.vue';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user