diff --git a/src/api/firegrid/index.ts b/src/api/firegrid/index.ts new file mode 100644 index 0000000..a6cc42d --- /dev/null +++ b/src/api/firegrid/index.ts @@ -0,0 +1,98 @@ +import { defHttp } from '@/utils/http/axios'; +import { + AddCheckPointParams, + GetCheckPointListParams, + DeleteCheckPointParams, + GetClockOnListParams, + GetStatisticsCountParams, + GetStatisticsParams, +} from './model/index'; + +enum Api { + AddCheckPoint = '/api/FireGrid/AddCheckPoint', + GetCheckPointList = '/api/FireGrid/GetCheckPointList', + DeleteCheckPoint = '/api/FireGrid/DeleteCheckPoint', + EditCheckPoint = '/api/FireGrid/EditCheckPoint', + GetSingleCheckPoint = '/api/FireGrid/GetSingleCheckPoint', + GetCheckInfoByPointId = '/api/FireGrid/GetCheckInfoByPointId', + GetCheckInfoByUserId = '/api/FireGrid/GetCheckInfoByUserId', + GetClockOnList = '/api/FireGrid/GetClockOnList', + GetStatisticsCount = '/api/FireGrid/GetStatisticsCount', + GetStatistics = '/api/FireGrid/GetStatistics', +} + +/** + * @description: 添加打卡点 + */ +export function addCheckPoint(params: AddCheckPointParams) { + return defHttp.post({ + url: Api.AddCheckPoint, + params, + }); +} + +/** + * @description: 获取打卡点列表 + */ +export function getCheckPointList(params: GetCheckPointListParams) { + return defHttp.get({ url: Api.GetCheckPointList, params }); +} + +/** + * @description: 删除打卡点 + */ +export function deleteCheckPoint(params: DeleteCheckPointParams) { + return defHttp.post({ + url: Api.DeleteCheckPoint, + params, + }); +} + +/** + * @description: 编辑打卡点 + */ +export function editCheckPoint(params: AddCheckPointParams) { + return defHttp.post({ + url: Api.EditCheckPoint, + params, + }); +} + +/** + * @description: 获取单个打卡点 + */ +export function getSingleCheckPoint(params: DeleteCheckPointParams) { + return defHttp.get({ url: Api.GetSingleCheckPoint, params }); +} +/** + * @description: 获取打卡记录 + */ +export function getCheckInfoByPointId(params: GetCheckPointListParams) { + return defHttp.get({ url: Api.GetCheckInfoByPointId, params }); +} +/** + * @description: 获取打卡信息 + */ +export function getCheckInfoByUserId(params: GetCheckPointListParams) { + return defHttp.get({ url: Api.GetCheckInfoByUserId, params }); +} +/** + * @description: 获取打卡记录列表 + */ +export function getClockOnList(params: GetClockOnListParams) { + return defHttp.get({ url: Api.GetClockOnList, params }); +} + +/** + * @description: 获取数据总览 + */ +export function getStatisticsCount(params: GetStatisticsCountParams) { + return defHttp.get({ url: Api.GetStatisticsCount, params }); +} + +/** + * @description: 获取数据列表 + */ +export function getStatistics(params: GetStatisticsParams) { + return defHttp.get({ url: Api.GetStatistics, params }); +} diff --git a/src/api/firegrid/model/index.ts b/src/api/firegrid/model/index.ts new file mode 100644 index 0000000..f154c3c --- /dev/null +++ b/src/api/firegrid/model/index.ts @@ -0,0 +1,43 @@ +/** + * @description: Login interface parameters + */ +export interface AddCheckPointParams { + id?: number; + lng: string; + lat: string; + pointName: string; + userId: any; + areaId: any; +} + +export interface GetCheckPointListParams { + pointName?: string; + id?: number; + page: number; + limit: number; +} + +export interface DeleteCheckPointParams { + id: number; +} + +export interface GetClockOnListParams { + userId?: number; + page: number; + limit: number; + beginTime?: string; + endTime?: string; +} + +export interface GetStatisticsCountParams { + areaid?: number; + begintime?: string; + endtime?: string; +} +export interface GetStatisticsParams { + areaid?: number; + begintime?: string; + endtime?: string; + page: number; + limit: number; +} diff --git a/src/assets/images/meshing/clockIn-bg.png b/src/assets/images/meshing/clockIn-bg.png new file mode 100644 index 0000000..539fc6c Binary files /dev/null and b/src/assets/images/meshing/clockIn-bg.png differ diff --git a/src/assets/images/meshing/punch-times.png b/src/assets/images/meshing/punch-times.png new file mode 100644 index 0000000..922b0d0 Binary files /dev/null and b/src/assets/images/meshing/punch-times.png differ diff --git a/src/assets/images/meshing/punch-track.png b/src/assets/images/meshing/punch-track.png new file mode 100644 index 0000000..0d79483 Binary files /dev/null and b/src/assets/images/meshing/punch-track.png differ diff --git a/src/assets/images/meshing/rangers-number.png b/src/assets/images/meshing/rangers-number.png new file mode 100644 index 0000000..0c0cd58 Binary files /dev/null and b/src/assets/images/meshing/rangers-number.png differ diff --git a/src/assets/images/meshing/significant-frequency.png b/src/assets/images/meshing/significant-frequency.png new file mode 100644 index 0000000..938cbde Binary files /dev/null and b/src/assets/images/meshing/significant-frequency.png differ diff --git a/src/router/routes/modules/datamaintenance.ts b/src/router/routes/modules/datamaintenance.ts deleted file mode 100644 index af6e186..0000000 --- a/src/router/routes/modules/datamaintenance.ts +++ /dev/null @@ -1,39 +0,0 @@ -import type { AppRouteModule } from '@/router/types'; - -import { LAYOUT } from '@/router/constant'; -import { t } from '@/hooks/web/useI18n'; - -const datamaintenance: AppRouteModule = { - path: '/datamaintenance', - name: 'DataMaintenance', - component: LAYOUT, - redirect: '/datamaintenance/home', - meta: { - orderNo: 10, - icon: 'ion:grid-outline', - title: '数据维护', - - }, - children: [ - { - path: '/datamaintenance/home', - name: 'dataMaintenancehome', - meta: { - title: '数据中心', - hideMenu: true, - }, - component: () => import('@/views/demo/datamaintenance/index.vue'), - }, - { - path: '/datamaintenance/datamanagement', - name: 'datamanagement', - meta: { - title: '数据中心', - hideMenu: true, - }, - component: () => import('@/views/demo/datamaintenance/datamanagement/index.vue'), - }, - ], -}; - -export default datamaintenance; diff --git a/src/views/demo/meshing/inspection/EditModal.vue b/src/views/demo/meshing/inspection/EditModal.vue new file mode 100644 index 0000000..75a6251 --- /dev/null +++ b/src/views/demo/meshing/inspection/EditModal.vue @@ -0,0 +1,118 @@ + + diff --git a/src/views/demo/meshing/inspection/InspectionModel.vue b/src/views/demo/meshing/inspection/InspectionModel.vue new file mode 100644 index 0000000..2210b32 --- /dev/null +++ b/src/views/demo/meshing/inspection/InspectionModel.vue @@ -0,0 +1,184 @@ + + + diff --git a/src/views/demo/meshing/inspection/LeftTable.vue b/src/views/demo/meshing/inspection/LeftTable.vue new file mode 100644 index 0000000..c79bb66 --- /dev/null +++ b/src/views/demo/meshing/inspection/LeftTable.vue @@ -0,0 +1,256 @@ + + + + diff --git a/src/views/demo/meshing/inspection/LeftView.vue b/src/views/demo/meshing/inspection/LeftView.vue new file mode 100644 index 0000000..a08622e --- /dev/null +++ b/src/views/demo/meshing/inspection/LeftView.vue @@ -0,0 +1,270 @@ + + + diff --git a/src/views/demo/meshing/inspection/Map.vue b/src/views/demo/meshing/inspection/Map.vue new file mode 100644 index 0000000..fa07a79 --- /dev/null +++ b/src/views/demo/meshing/inspection/Map.vue @@ -0,0 +1,444 @@ + + + + diff --git a/src/views/demo/meshing/inspection/PatrolTrackModel.vue b/src/views/demo/meshing/inspection/PatrolTrackModel.vue new file mode 100644 index 0000000..67a28e5 --- /dev/null +++ b/src/views/demo/meshing/inspection/PatrolTrackModel.vue @@ -0,0 +1,187 @@ + + + diff --git a/src/views/demo/meshing/inspection/StatisticsModel.vue b/src/views/demo/meshing/inspection/StatisticsModel.vue new file mode 100644 index 0000000..9e1a598 --- /dev/null +++ b/src/views/demo/meshing/inspection/StatisticsModel.vue @@ -0,0 +1,224 @@ + + + diff --git a/src/views/demo/meshing/inspection/data.ts b/src/views/demo/meshing/inspection/data.ts new file mode 100644 index 0000000..b414cee --- /dev/null +++ b/src/views/demo/meshing/inspection/data.ts @@ -0,0 +1,74 @@ +import { BasicColumn, FormSchema } from '@/components/Table'; + +export const columns: BasicColumn[] = [ + { + title: '所属班组', + dataIndex: 'areaName', + width: 200, + }, + { + title: '护林员', + dataIndex: 'name', + }, + { + title: '手机号码', + dataIndex: 'account', + }, + { + title: '打卡次数', + dataIndex: 'dakacishu', + }, + { + title: '巡检次数', + dataIndex: 'xunjian', + }, + { + title: '打卡点数量', + dataIndex: 'dakadian', + }, +]; + +export const InspectionColumns: BasicColumn[] = [ + { + title: '乡镇/村庄', + dataIndex: 'townName', + }, + { + title: '护林员姓名', + dataIndex: 'name', + }, + { + title: '在线状态', + dataIndex: 'state', + }, + { + title: '离线时长', + dataIndex: 'onLineTime', + }, +]; + +export const formSchema: FormSchema[] = [ + { + field: 'id', + label: 'id', + component: 'Input', + ifShow: false, + }, + { + field: 'pointName', + label: '打卡点名称', + component: 'Input', + }, + { + field: 'areaId', + label: '行政区划', + required: true, + slot: 'areaId', + }, + { + field: 'userId', + label: '责任人', + slot: 'userId', + required: true, + }, +]; diff --git a/src/views/demo/meshing/inspection/index.ts b/src/views/demo/meshing/inspection/index.ts new file mode 100644 index 0000000..4216847 --- /dev/null +++ b/src/views/demo/meshing/inspection/index.ts @@ -0,0 +1,7 @@ +export { default as LeftTable } from './LeftTable.vue'; +export { default as EditModal } from './EditModal.vue'; +export { default as StatisticsModel } from './StatisticsModel.vue'; +export { default as Map } from './Map.vue'; +export { default as PatrolTrackModel } from './PatrolTrackModel.vue'; +export { default as LeftView } from './LeftView.vue'; +export { default as InspectionModel } from './InspectionModel.vue'; diff --git a/src/views/demo/meshing/inspection/index.vue b/src/views/demo/meshing/inspection/index.vue new file mode 100644 index 0000000..ea08038 --- /dev/null +++ b/src/views/demo/meshing/inspection/index.vue @@ -0,0 +1,22 @@ + + + diff --git a/src/views/demo/page/result/fail/index.vue b/src/views/demo/page/result/fail/index.vue deleted file mode 100644 index 3e3e6e2..0000000 --- a/src/views/demo/page/result/fail/index.vue +++ /dev/null @@ -1,47 +0,0 @@ - - - diff --git a/src/views/demo/page/result/success/index.vue b/src/views/demo/page/result/success/index.vue deleted file mode 100644 index ec80e02..0000000 --- a/src/views/demo/page/result/success/index.vue +++ /dev/null @@ -1,51 +0,0 @@ - - -