diff --git a/components.d.ts b/components.d.ts index 6bb038e..65dc85f 100644 --- a/components.d.ts +++ b/components.d.ts @@ -7,10 +7,8 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { - 2: typeof import('./src/components/alarm copy 2.vue')['default'] Alarm: typeof import('./src/components/alarm.vue')['default'] BatchImp: typeof import('./src/components/batch-imp.vue')['default'] - copy: typeof import('./src/components/alarm copy.vue')['default'] Countup: typeof import('./src/components/countup.vue')['default'] DeviceInfo: typeof import('./src/components/deviceInfo.vue')['default'] ElAvatar: typeof import('element-plus/es')['ElAvatar'] @@ -45,13 +43,12 @@ declare module '@vue/runtime-core' { ElTable: typeof import('element-plus/es')['ElTable'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTag: typeof import('element-plus/es')['ElTag'] - ElTooltip: typeof import('element-plus/es')['ElTooltip'] ElUpload: typeof import('element-plus/es')['ElUpload'] Header: typeof import('./src/components/header.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] Sidebar: typeof import('./src/components/sidebar.vue')['default'] - StudentInfo: typeof import('./src/components/studentInfo.vue')['default'] + SvgIcon: typeof import('./src/components/SvgIcon.vue')['default'] TableCustom: typeof import('./src/components/table-custom.vue')['default'] TableDetail: typeof import('./src/components/table-detail.vue')['default'] TableEdit: typeof import('./src/components/table-edit.vue')['default'] diff --git a/index.html b/index.html index 0af416d..691bfc2 100644 --- a/index.html +++ b/index.html @@ -7,11 +7,12 @@ 智能手铐管理系统 + + src="https://webapi.amap.com/maps?v=1.4.15&key=e1e6dde852b57c61bacdcf1af21a3d9a&plugin=AMap.MouseTool&plugin=AMap.PolygonEditor&plugin=AMap.PolyEditor&plugin=AMap.CircleEditor&plugin=AMap.MoveAnimation&plugin=AMap.PlaceSearch&plugin=AMap.AutoComplete&plugin=AMap.MoveAnimation"> diff --git a/package.json b/package.json index 4b62b65..4958852 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "vue-manage-system", + "name": "yak_handcuffs", "version": "5.5.0", "private": true, "scripts": { diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..f16de14 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/logo.jpg b/public/logo.jpg new file mode 100644 index 0000000..bb4680c Binary files /dev/null and b/public/logo.jpg differ diff --git a/public/template.xlsx b/public/template.xlsx deleted file mode 100644 index 5d17cf7..0000000 Binary files a/public/template.xlsx and /dev/null differ diff --git a/screenshots/wms1.png b/screenshots/wms1.png deleted file mode 100644 index 9203348..0000000 Binary files a/screenshots/wms1.png and /dev/null differ diff --git a/screenshots/wms3.png b/screenshots/wms3.png deleted file mode 100644 index 86b96aa..0000000 Binary files a/screenshots/wms3.png and /dev/null differ diff --git a/src/api/index.d.ts b/src/api/index.d.ts index 44a4ea7..57ec275 100644 --- a/src/api/index.d.ts +++ b/src/api/index.d.ts @@ -9,6 +9,11 @@ export interface IpagingRes { pages: number records: T[] } +export interface TRoleList { + id: number + name: string + createTime: string +} export namespace TLogin { export interface Ireq { @@ -149,4 +154,58 @@ export namespace TDevice { createTime: string } +} + + + +export namespace TOrg { + export interface IAdd { + name: string; + rails: string; + parentId: string; + } + export interface IListReq extends Ipaging { + name?: number; + } + export interface Idel { + id: number; + } + export interface IOrgRecordRes { + id: number + name: string + parentId: number + status: number + updateUser: string + updateTime: string + creatUser: string + createTime: string + } +} + +export interface TStatisticsDevice { + addCount: number + deviceTotal: number + onlineCount: number + warnCount: number +} + +export interface statisticsContentReq { + type: string + startDate: string + endDate: string +} + +export interface statisticsContentRes { + sosCount: number + railCount: number + destroyCount: number + batteryCount: number + heartRateCount: number + bloodOxygenCount: number + tempCount: number + times: any[], + sosArr: any[], + railArr: any[], + destroyArr: any[], + healthArr: any[], } \ No newline at end of file diff --git a/src/api/index.ts b/src/api/index.ts index 522e6f0..af6d75f 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1,5 +1,5 @@ import request from '../utils/request'; -import { TLogin, TAccount, IpagingRes, TDevice } from "./index.d"; +import { TLogin, TAccount, IpagingRes, TDevice, TOrg, TRoleList, TStatisticsDevice, statisticsContentReq, statisticsContentRes } from "./index.d"; export const fetchLogin = (p: TLogin.Ireq): Promise => { return request({ @@ -9,6 +9,15 @@ export const fetchLogin = (p: TLogin.Ireq): Promise => { }); }; +// 批量导入账号样例 +export const exportDemoAccount = (): Promise => { + return request({ + url: '/v1/web/upload/exportDemo/account', + method: 'get', + responseType: 'blob' + }); +}; + export const fetchData = () => { return request({ @@ -139,3 +148,62 @@ export const warningRecord = (p: TDevice.IRecordReq): Promise => { + return request({ + url: '/v1/web/org/add', + method: 'post', + data: p + }); +}; +// 修改机构 +export const orgModify = (p: TOrg.IAdd): Promise => { + return request({ + url: '/v1/web/org/modify', + method: 'post', + data: p + }); +}; +// 机构列表 +export const orgList = (p?: TOrg.IListReq): Promise> => { + return request({ + url: '/v1/web/org/list', + method: 'get', + params: p + }); +}; + +// 删除机构 +export const orgDelete = (p?: TOrg.Idel): Promise => { + return request({ + url: '/v1/web/org/delete', + method: 'post', + data: p + }); +}; + +// 获取角色列表 +export const roleList = (): Promise => { + return request({ + url: '/v1/web/account/role/list', + method: 'get', + }); +}; + +// 设备在线统计 +export const statisticsDevice = (): Promise => { + return request({ + url: '/v1/web/statistics/device', + method: 'get', + }); +}; + +// 内容数据 +export const statisticsContent = (p: statisticsContentReq): Promise => { + return request({ + url: '/v1/web/statistics/content', + method: 'post', + data: p + }); +}; diff --git a/src/assets/img/m1.png b/src/assets/img/m1.png new file mode 100644 index 0000000..efd1cee Binary files /dev/null and b/src/assets/img/m1.png differ diff --git a/src/assets/img/m1_a.png b/src/assets/img/m1_a.png new file mode 100644 index 0000000..ea8a657 Binary files /dev/null and b/src/assets/img/m1_a.png differ diff --git a/src/assets/img/m2.png b/src/assets/img/m2.png new file mode 100644 index 0000000..828f244 Binary files /dev/null and b/src/assets/img/m2.png differ diff --git a/src/assets/img/m2_a.png b/src/assets/img/m2_a.png new file mode 100644 index 0000000..0dd98ad Binary files /dev/null and b/src/assets/img/m2_a.png differ diff --git a/src/assets/img/m3.png b/src/assets/img/m3.png new file mode 100644 index 0000000..6e4076b Binary files /dev/null and b/src/assets/img/m3.png differ diff --git a/src/assets/img/m3_a.png b/src/assets/img/m3_a.png new file mode 100644 index 0000000..0023b29 Binary files /dev/null and b/src/assets/img/m3_a.png differ diff --git a/src/assets/img/m4.png b/src/assets/img/m4.png new file mode 100644 index 0000000..2af3a44 Binary files /dev/null and b/src/assets/img/m4.png differ diff --git a/src/assets/img/m4_a.png b/src/assets/img/m4_a.png new file mode 100644 index 0000000..d777a84 Binary files /dev/null and b/src/assets/img/m4_a.png differ diff --git a/src/components/batch-imp.vue b/src/components/batch-imp.vue index eff6470..f36fc7b 100644 --- a/src/components/batch-imp.vue +++ b/src/components/batch-imp.vue @@ -1,18 +1,12 @@