diff --git a/.env.development b/.env.development index f38eac0..34795d4 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VITE_APP_TITLE = 后台管理系统 +VITE_APP_TITLE = 燃气作业感知系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/.env.development b/.env.development index f38eac0..34795d4 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VITE_APP_TITLE = 后台管理系统 +VITE_APP_TITLE = 燃气作业感知系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/.env.production b/.env.production index b436983..523da48 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ NODE_ENV = production # 页面标题 -VITE_APP_TITLE = 后台管理系统 +VITE_APP_TITLE = 燃气作业感知系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/.env.development b/.env.development index f38eac0..34795d4 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VITE_APP_TITLE = 后台管理系统 +VITE_APP_TITLE = 燃气作业感知系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/.env.production b/.env.production index b436983..523da48 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ NODE_ENV = production # 页面标题 -VITE_APP_TITLE = 后台管理系统 +VITE_APP_TITLE = 燃气作业感知系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/README.md b/README.md index d529f38..7a2a8e2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -

SmartMeteringFront

+

BJgasMeteringFront

-

计量管理系统

+

北燃四分(二期)后台管理系统

## 简要说明

diff --git a/.env.development b/.env.development index f38eac0..34795d4 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VITE_APP_TITLE = 后台管理系统 +VITE_APP_TITLE = 燃气作业感知系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/.env.production b/.env.production index b436983..523da48 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ NODE_ENV = production # 页面标题 -VITE_APP_TITLE = 后台管理系统 +VITE_APP_TITLE = 燃气作业感知系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/README.md b/README.md index d529f38..7a2a8e2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -

SmartMeteringFront

+

BJgasMeteringFront

-

计量管理系统

+

北燃四分(二期)后台管理系统

## 简要说明

diff --git a/src/api/device.ts b/src/api/device.ts new file mode 100644 index 0000000..106071e --- /dev/null +++ b/src/api/device.ts @@ -0,0 +1,38 @@ +/** + * 设备管理接口 + */ +import request from './index' +const prefix = 'device' + +// 设备列表 +export function getDeviceListPage(params: object) { + return request({ + url: `${prefix}/listPage`, + method: 'get', + params, + }) +} +// 更新设备 +export function updateDevice(data: object) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} +// 新增设备 +export function addDevice(data: object) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} +// 删除设备 +export function delDevice(data: object) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} diff --git a/.env.development b/.env.development index f38eac0..34795d4 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VITE_APP_TITLE = 后台管理系统 +VITE_APP_TITLE = 燃气作业感知系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/.env.production b/.env.production index b436983..523da48 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ NODE_ENV = production # 页面标题 -VITE_APP_TITLE = 后台管理系统 +VITE_APP_TITLE = 燃气作业感知系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/README.md b/README.md index d529f38..7a2a8e2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -

SmartMeteringFront

+

BJgasMeteringFront

-

计量管理系统

+

北燃四分(二期)后台管理系统

## 简要说明

diff --git a/src/api/device.ts b/src/api/device.ts new file mode 100644 index 0000000..106071e --- /dev/null +++ b/src/api/device.ts @@ -0,0 +1,38 @@ +/** + * 设备管理接口 + */ +import request from './index' +const prefix = 'device' + +// 设备列表 +export function getDeviceListPage(params: object) { + return request({ + url: `${prefix}/listPage`, + method: 'get', + params, + }) +} +// 更新设备 +export function updateDevice(data: object) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} +// 新增设备 +export function addDevice(data: object) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} +// 删除设备 +export function delDevice(data: object) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} diff --git a/src/layouts/components/Logo/index.vue b/src/layouts/components/Logo/index.vue index bdcd228..6c7f9e7 100644 --- a/src/layouts/components/Logo/index.vue +++ b/src/layouts/components/Logo/index.vue @@ -42,7 +42,7 @@ z-index: 1000; top: 0; width: inherit; - padding: 0 10px; + padding: 0 5px; display: flex; align-items: center; justify-content: center; diff --git a/.env.development b/.env.development index f38eac0..34795d4 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VITE_APP_TITLE = 后台管理系统 +VITE_APP_TITLE = 燃气作业感知系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/.env.production b/.env.production index b436983..523da48 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ NODE_ENV = production # 页面标题 -VITE_APP_TITLE = 后台管理系统 +VITE_APP_TITLE = 燃气作业感知系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/README.md b/README.md index d529f38..7a2a8e2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -

SmartMeteringFront

+

BJgasMeteringFront

-

计量管理系统

+

北燃四分(二期)后台管理系统

## 简要说明

diff --git a/src/api/device.ts b/src/api/device.ts new file mode 100644 index 0000000..106071e --- /dev/null +++ b/src/api/device.ts @@ -0,0 +1,38 @@ +/** + * 设备管理接口 + */ +import request from './index' +const prefix = 'device' + +// 设备列表 +export function getDeviceListPage(params: object) { + return request({ + url: `${prefix}/listPage`, + method: 'get', + params, + }) +} +// 更新设备 +export function updateDevice(data: object) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} +// 新增设备 +export function addDevice(data: object) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} +// 删除设备 +export function delDevice(data: object) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} diff --git a/src/layouts/components/Logo/index.vue b/src/layouts/components/Logo/index.vue index bdcd228..6c7f9e7 100644 --- a/src/layouts/components/Logo/index.vue +++ b/src/layouts/components/Logo/index.vue @@ -42,7 +42,7 @@ z-index: 1000; top: 0; width: inherit; - padding: 0 10px; + padding: 0 5px; display: flex; align-items: center; justify-content: center; diff --git a/src/router/modules/scene.ts b/src/router/modules/scene.ts index 65921ab..5e24ee8 100644 --- a/src/router/modules/scene.ts +++ b/src/router/modules/scene.ts @@ -26,6 +26,18 @@ activeMenu: '/scene', }, }, + { + path: 'sceneedit', + name: 'sceneedit', + component: () => import('@/views/scene/sceneEdit.vue'), + meta: { + title: '现场编辑', + auth: '/scene', + sidebar: false, + breadcrumb: true, + activeMenu: '/scene', + }, + }, ], }, ] diff --git a/.env.development b/.env.development index f38eac0..34795d4 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VITE_APP_TITLE = 后台管理系统 +VITE_APP_TITLE = 燃气作业感知系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/.env.production b/.env.production index b436983..523da48 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ NODE_ENV = production # 页面标题 -VITE_APP_TITLE = 后台管理系统 +VITE_APP_TITLE = 燃气作业感知系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/README.md b/README.md index d529f38..7a2a8e2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -

SmartMeteringFront

+

BJgasMeteringFront

-

计量管理系统

+

北燃四分(二期)后台管理系统

## 简要说明

diff --git a/src/api/device.ts b/src/api/device.ts new file mode 100644 index 0000000..106071e --- /dev/null +++ b/src/api/device.ts @@ -0,0 +1,38 @@ +/** + * 设备管理接口 + */ +import request from './index' +const prefix = 'device' + +// 设备列表 +export function getDeviceListPage(params: object) { + return request({ + url: `${prefix}/listPage`, + method: 'get', + params, + }) +} +// 更新设备 +export function updateDevice(data: object) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} +// 新增设备 +export function addDevice(data: object) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} +// 删除设备 +export function delDevice(data: object) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} diff --git a/src/layouts/components/Logo/index.vue b/src/layouts/components/Logo/index.vue index bdcd228..6c7f9e7 100644 --- a/src/layouts/components/Logo/index.vue +++ b/src/layouts/components/Logo/index.vue @@ -42,7 +42,7 @@ z-index: 1000; top: 0; width: inherit; - padding: 0 10px; + padding: 0 5px; display: flex; align-items: center; justify-content: center; diff --git a/src/router/modules/scene.ts b/src/router/modules/scene.ts index 65921ab..5e24ee8 100644 --- a/src/router/modules/scene.ts +++ b/src/router/modules/scene.ts @@ -26,6 +26,18 @@ activeMenu: '/scene', }, }, + { + path: 'sceneedit', + name: 'sceneedit', + component: () => import('@/views/scene/sceneEdit.vue'), + meta: { + title: '现场编辑', + auth: '/scene', + sidebar: false, + breadcrumb: true, + activeMenu: '/scene', + }, + }, ], }, ] diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 1e9238e..f68822d 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -19,11 +19,14 @@ - + diff --git a/.env.development b/.env.development index f38eac0..34795d4 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VITE_APP_TITLE = 后台管理系统 +VITE_APP_TITLE = 燃气作业感知系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/.env.production b/.env.production index b436983..523da48 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ NODE_ENV = production # 页面标题 -VITE_APP_TITLE = 后台管理系统 +VITE_APP_TITLE = 燃气作业感知系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://111.198.10.15:21409 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/README.md b/README.md index d529f38..7a2a8e2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -

SmartMeteringFront

+

BJgasMeteringFront

-

计量管理系统

+

北燃四分(二期)后台管理系统

## 简要说明

diff --git a/src/api/device.ts b/src/api/device.ts new file mode 100644 index 0000000..106071e --- /dev/null +++ b/src/api/device.ts @@ -0,0 +1,38 @@ +/** + * 设备管理接口 + */ +import request from './index' +const prefix = 'device' + +// 设备列表 +export function getDeviceListPage(params: object) { + return request({ + url: `${prefix}/listPage`, + method: 'get', + params, + }) +} +// 更新设备 +export function updateDevice(data: object) { + return request({ + url: `${prefix}/update`, + method: 'post', + data, + }) +} +// 新增设备 +export function addDevice(data: object) { + return request({ + url: `${prefix}/add`, + method: 'post', + data, + }) +} +// 删除设备 +export function delDevice(data: object) { + return request({ + url: `${prefix}/delete`, + method: 'post', + data, + }) +} diff --git a/src/layouts/components/Logo/index.vue b/src/layouts/components/Logo/index.vue index bdcd228..6c7f9e7 100644 --- a/src/layouts/components/Logo/index.vue +++ b/src/layouts/components/Logo/index.vue @@ -42,7 +42,7 @@ z-index: 1000; top: 0; width: inherit; - padding: 0 10px; + padding: 0 5px; display: flex; align-items: center; justify-content: center; diff --git a/src/router/modules/scene.ts b/src/router/modules/scene.ts index 65921ab..5e24ee8 100644 --- a/src/router/modules/scene.ts +++ b/src/router/modules/scene.ts @@ -26,6 +26,18 @@ activeMenu: '/scene', }, }, + { + path: 'sceneedit', + name: 'sceneedit', + component: () => import('@/views/scene/sceneEdit.vue'), + meta: { + title: '现场编辑', + auth: '/scene', + sidebar: false, + breadcrumb: true, + activeMenu: '/scene', + }, + }, ], }, ] diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 1e9238e..f68822d 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -19,11 +19,14 @@ - + diff --git a/src/views/dashboard/map/index.vue b/src/views/dashboard/map/index.vue index 2cae12f..1fa370b 100644 --- a/src/views/dashboard/map/index.vue +++ b/src/views/dashboard/map/index.vue @@ -9,8 +9,9 @@ window._AMapSecurityConfig = { securityJsCode: '56bf9671d4b3517d294caec4751889a1', // 后期需替换 } +// map.setCenter(position); // 地图实例 -const map = ref() +const map = shallowRef() // 用来画区域的 const polygon = ref() // 画图工具实例 @@ -125,6 +126,11 @@ onMounted(() => { initMap() }) +onBeforeUnmount(() => { + if (map.value) { + map.value.destroy() + } +})