wenhongquan 1 an în urmă
părinte
comite
4dfbfa577e

+ 63 - 0
src/api/archives/index.ts

@@ -0,0 +1,63 @@
+import request from '@/utils/request';
+import { AxiosPromise } from 'axios';
+import { ArchivesVO, ArchivesForm, ArchivesQuery } from '@/api/archives/types';
+
+/**
+ * 查询电子档案列表
+ * @param query
+ * @returns {*}
+ */
+
+export const listArchives = (query?: ArchivesQuery): AxiosPromise<ArchivesVO[]> => {
+  return request({
+    url: '/filemanager/archives/list',
+    method: 'get',
+    params: query
+  });
+};
+
+/**
+ * 查询电子档案详细
+ * @param id
+ */
+export const getArchives = (id: string | number): AxiosPromise<ArchivesVO> => {
+  return request({
+    url: '/filemanager/archives/' + id,
+    method: 'get'
+  });
+};
+
+/**
+ * 新增电子档案
+ * @param data
+ */
+export const addArchives = (data: ArchivesForm) => {
+  return request({
+    url: '/filemanager/archives',
+    method: 'post',
+    data: data
+  });
+};
+
+/**
+ * 修改电子档案
+ * @param data
+ */
+export const updateArchives = (data: ArchivesForm) => {
+  return request({
+    url: '/filemanager/archives',
+    method: 'put',
+    data: data
+  });
+};
+
+/**
+ * 删除电子档案
+ * @param id
+ */
+export const delArchives = (id: string | number | Array<string | number>) => {
+  return request({
+    url: '/filemanager/archives/' + id,
+    method: 'delete'
+  });
+};

+ 201 - 0
src/api/archives/types.ts

@@ -0,0 +1,201 @@
+export interface ArchivesVO {
+  /**
+   * 编号
+   */
+  id: string | number;
+
+  /**
+   * 区域
+   */
+  area: string;
+
+  /**
+   * 丘权号
+   */
+  qiuquan: string;
+
+  /**
+   * 建设单位(或申请单位)
+   */
+  buildUnit: string;
+
+  /**
+   * 地址(公安门牌)
+   */
+  addr: string;
+
+  /**
+   * 小区名称
+   */
+  community: string;
+
+  /**
+   * 成果(建档)日期
+   */
+  achievementDate: string;
+
+  /**
+   * 保管期限
+   */
+  savePeriod: string;
+
+  /**
+   * 备注
+   */
+  remark: string;
+
+  /**
+   * 电子档编号
+   */
+  ecode: string;
+
+  /**
+   * 存档位置
+   */
+  saveAddr: string;
+
+  /**
+   * 扩展1
+   */
+  ext1: string;
+
+  /**
+   * 扩展2
+   */
+  ext2: string;
+
+}
+
+export interface ArchivesForm extends BaseEntity {
+  /**
+   * 编号
+   */
+  id?: string | number;
+
+  /**
+   * 区域
+   */
+  area?: string;
+
+  /**
+   * 丘权号
+   */
+  qiuquan?: string;
+
+  /**
+   * 建设单位(或申请单位)
+   */
+  buildUnit?: string;
+
+  /**
+   * 地址(公安门牌)
+   */
+  addr?: string;
+
+  /**
+   * 小区名称
+   */
+  community?: string;
+
+  /**
+   * 成果(建档)日期
+   */
+  achievementDate?: string;
+
+  /**
+   * 保管期限
+   */
+  savePeriod?: string;
+
+  /**
+   * 备注
+   */
+  remark?: string;
+
+  /**
+   * 电子档编号
+   */
+  ecode?: string;
+
+  /**
+   * 存档位置
+   */
+  saveAddr?: string;
+
+  /**
+   * 扩展1
+   */
+  ext1?: string;
+
+  /**
+   * 扩展2
+   */
+  ext2?: string;
+
+}
+
+export interface ArchivesQuery extends PageQuery {
+
+  /**
+   * 区域
+   */
+  area?: string;
+
+  /**
+   * 丘权号
+   */
+  qiuquan?: string;
+
+  /**
+   * 建设单位(或申请单位)
+   */
+  buildUnit?: string;
+
+  /**
+   * 地址(公安门牌)
+   */
+  addr?: string;
+
+  /**
+   * 小区名称
+   */
+  community?: string;
+
+  /**
+   * 成果(建档)日期
+   */
+  achievementDate?: string;
+
+  /**
+   * 保管期限
+   */
+  savePeriod?: string;
+
+  /**
+   * 电子档编号
+   */
+  ecode?: string;
+
+  /**
+   * 存档位置
+   */
+  saveAddr?: string;
+
+  /**
+   * 扩展1
+   */
+  ext1?: string;
+
+  /**
+   * 扩展2
+   */
+  ext2?: string;
+
+    /**
+     * 日期范围参数
+     */
+    params?: any;
+}
+
+
+

+ 4 - 3
src/router/index.ts

@@ -69,9 +69,10 @@ export const constantRoutes: RouteOption[] = [
     children: [
       {
         path: '/index',
-        component: () => import('@/views/index.vue'),
-        name: 'Index',
-        meta: { title: '首页', icon: 'dashboard', affix: true }
+        redirect: '/project/list'
+        // component: () => import('@/views/index.vue'),
+        // name: 'Index',
+        // meta: { title: '首页', icon: 'dashboard', affix: true }
       }
     ]
   },

+ 11 - 0
src/views/project/list/index.vue

@@ -0,0 +1,11 @@
+<template>
+  <div>sds</div>
+</template>
+
+<script lang="ts" setup>
+import { ref } from 'vue'
+</script>
+
+<style type="scss" scoped>
+
+</style>