diff --git a/src/api/achievement/index.ts b/src/api/achievement/index.ts new file mode 100644 index 0000000..41a380a --- /dev/null +++ b/src/api/achievement/index.ts @@ -0,0 +1,19 @@ +import { defHttp } from '@/utils/http/axios'; +import { AccountListGetResultModel, AccountListItem, AccountParams } from './model/index'; + +enum Api { + loadTableListData = '/api/InAiShp/Load', //shp列表数据 + loadTifTableListData = '/api/InsTif/Load', //tif影像列表数据 +} + +/** + * @description: Get sample options value + */ + +export const loadTableListData = (params: AccountParams) => + defHttp.get({ url: Api.loadTableListData, params }); + +export const loadTifTableListData = (params: AccountParams) => + defHttp.get({ url: Api.loadTifTableListData, params }); + + \ No newline at end of file diff --git a/src/api/achievement/model/index.ts b/src/api/achievement/model/index.ts new file mode 100644 index 0000000..c3638c5 --- /dev/null +++ b/src/api/achievement/model/index.ts @@ -0,0 +1,22 @@ +import { BasicFetchResult } from '@/api/model/baseModel'; + +export interface AccountListItem { + databaseLinkId: string; + dbName: string; + dbAlias: string; + dbType: number; + serverAddress: string; + dbConnection: string; + description: string; +} +/** + * @description: Request list return value + */ +export interface AccountParams { + id?: string; + keyword?: string; + page?: string; + limit?: string; +}; + +export type AccountListGetResultModel = BasicFetchResult; diff --git a/src/views/demo/achievementmanage/index.data.ts b/src/views/demo/achievementmanage/index.data.ts new file mode 100644 index 0000000..97db9c8 --- /dev/null +++ b/src/views/demo/achievementmanage/index.data.ts @@ -0,0 +1,52 @@ +import { BasicColumn, FormSchema } from '@/components/Table'; + +// 图形化建表table +export const achievementColumns: BasicColumn[] = [ + { + title: 'shp名称', + dataIndex: 'shpName', + }, + { + title: 'shp路径', + dataIndex: 'shpPath', + }, + { + title: 'shp包含图斑数量', + dataIndex: 'shpCount', + }, + { + title: '日期', + dataIndex: 'shpDate', + ifShow: false, + }, + { + title: '地块名称', + dataIndex: 'plotName', + }, + { + title: '面积(平方米)', + dataIndex: 'areaNum', + }, + { + title: '地区id', + dataIndex: 'areaId', + ifShow: false, + }, + { + title: '地区', + dataIndex: 'areaName', + }, + { + title: '创建时间', + dataIndex: 'createTime', + }, +]; +// 图形化建表-搜索 +export const searchFormSchema: FormSchema[] = [ + { + field: 'Name', + label: '名称', + component: 'Input', + colProps: { span: 8 }, + }, +]; diff --git a/src/views/demo/achievementmanage/index.vue b/src/views/demo/achievementmanage/index.vue new file mode 100644 index 0000000..6005014 --- /dev/null +++ b/src/views/demo/achievementmanage/index.vue @@ -0,0 +1,122 @@ + + + diff --git a/src/views/demo/achievementmanage/modal/index.vue b/src/views/demo/achievementmanage/modal/index.vue new file mode 100644 index 0000000..f6b3a28 --- /dev/null +++ b/src/views/demo/achievementmanage/modal/index.vue @@ -0,0 +1,87 @@ + + + + diff --git a/src/views/demo/achievementmanage/modal/modal.data.ts b/src/views/demo/achievementmanage/modal/modal.data.ts new file mode 100644 index 0000000..38ea238 --- /dev/null +++ b/src/views/demo/achievementmanage/modal/modal.data.ts @@ -0,0 +1,65 @@ +import { BasicColumn } from '@/components/Table'; + +export const columns: BasicColumn[] = [ + { + title: 'shp名称', + dataIndex: 'shpName', + key: 'shpName', + }, + { + title: 'shp路径', + dataIndex: 'shpPath', + key: 'shpPath', + }, + { + title: 'shp包含图斑数量', + dataIndex: 'shpCount', + key: 'shpCount', + }, + { + title: '日期', + dataIndex: 'shpDate', + key: 'shpDate', + }, + { + title: '地块名称', + dataIndex: 'plotName', + key: 'plotName', + }, + { + title: '面积(平方米)', + dataIndex: 'areaNum', + key: 'areaNum', + }, + { + title: '地区id', + dataIndex: 'areaId', + ifShow: false, + key: 'areaId', + }, + { + title: '地区', + dataIndex: 'areaName', + key: 'areaName', + }, + { + title: '创建时间', + dataIndex: 'createTime', + key: 'createTime', + }, + { + title: '最后一次修改时间', + dataIndex: 'updateTime', + key: 'updateTime', + }, + { + title: '备注', + dataIndex: 'remark', + key: 'remark', + }, + { + title: '操作', + dataIndex: 'action', + key: 'action', + }, +]; diff --git a/src/views/demo/tifdatamanage/index.data.ts b/src/views/demo/tifdatamanage/index.data.ts new file mode 100644 index 0000000..80de6fc --- /dev/null +++ b/src/views/demo/tifdatamanage/index.data.ts @@ -0,0 +1,48 @@ +import { BasicColumn, FormSchema } from '@/components/Table'; + +// 图形化建表table +export const achievementColumns: BasicColumn[] = [ + { + title: '影像名称', + dataIndex: 'tifName', + }, + { + title: '影像路径', + dataIndex: 'tifPath', + }, + { + title: '日期', + dataIndex: 'tifDate', + ifShow: false, + }, + { + title: '地块名称', + dataIndex: 'plotName', + }, + { + title: '面积(平方米)', + dataIndex: 'areaNum', + }, + { + title: '地区id', + dataIndex: 'areaId', + ifShow: false, + }, + { + title: '地区', + dataIndex: 'areaName', + }, + { + title: '创建时间', + dataIndex: 'createTime', + }, +]; +// 图形化建表-搜索 +export const searchFormSchema: FormSchema[] = [ + { + field: 'key', + label: '关键字', + component: 'Input', + colProps: { span: 8 }, + }, +]; diff --git a/src/views/demo/tifdatamanage/index.vue b/src/views/demo/tifdatamanage/index.vue new file mode 100644 index 0000000..5f7223e --- /dev/null +++ b/src/views/demo/tifdatamanage/index.vue @@ -0,0 +1,122 @@ + + + diff --git a/src/views/demo/tifdatamanage/modal/index.vue b/src/views/demo/tifdatamanage/modal/index.vue new file mode 100644 index 0000000..f3e91c6 --- /dev/null +++ b/src/views/demo/tifdatamanage/modal/index.vue @@ -0,0 +1,84 @@ + + + + diff --git a/src/views/demo/tifdatamanage/modal/modal.data.ts b/src/views/demo/tifdatamanage/modal/modal.data.ts new file mode 100644 index 0000000..8940f2c --- /dev/null +++ b/src/views/demo/tifdatamanage/modal/modal.data.ts @@ -0,0 +1,60 @@ +import { BasicColumn } from '@/components/Table'; + +export const columns: BasicColumn[] = [ + { + title: '影像名称', + dataIndex: 'tifName', + key: 'tifName', + }, + { + title: '影像路径', + dataIndex: 'tifPath', + key: 'tifPath', + }, + { + title: '日期', + dataIndex: 'tifDate', + key: 'tifDate', + }, + { + title: '地块名称', + dataIndex: 'plotName', + key: 'plotName', + }, + { + title: '面积(平方米)', + dataIndex: 'areaNum', + key: 'areaNum', + }, + { + title: '地区id', + dataIndex: 'areaId', + ifShow: false, + key: 'areaId', + }, + { + title: '地区', + dataIndex: 'areaName', + key: 'areaName', + }, + { + title: '创建时间', + dataIndex: 'createTime', + key: 'createTime', + }, + { + title: '最后一次修改时间', + dataIndex: 'updateTime', + key: 'updateTime', + }, + { + title: '备注', + dataIndex: 'remark', + key: 'remark', + }, + { + title: '操作', + dataIndex: 'action', + key: 'action', + }, +];