diff --git a/src/api/system/overview.js b/src/api/system/overview.js deleted file mode 100644 index bca50cc..0000000 --- a/src/api/system/overview.js +++ /dev/null @@ -1,109 +0,0 @@ -import request from '@/utils/request' -import qs from "qs" -import Vue from 'vue' - -// 路灯状态统计 -export function getLampStatus() { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampStatus', - method: 'get' - }) -} - -// 路灯总览列表 -export function getLampList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampList', - method: 'get', - params - }) -} - -// 路灯详情 -export function getlampDetail(lampId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampDetail', - method: 'get', - params: { - lampId: lampId - } - }) -} - -// 回路列表 -export function getCircuitList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/circuitList', - method: 'get', - params - }) -} - -// 灯箱列表 -export function getLampBoxList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxList', - method: 'get', - params - }) -} -// 灯箱详情 -export function getLampBoxDetail(lampBoxId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxDetail', - method: 'get', - params: { - lampBoxId: lampBoxId - } - }) -} - -// 报警总览列表 -export function getAlarmList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmList', - method: 'get', - params - }) -} - -// 报警详情 -export function getAlarmDetail(alarmId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmDetail', - method: 'get', - params: { - alarmId: alarmId - } - }) -} - -// 路灯控制 -export function lampControl(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampControl', - method: 'post', - params, - paramsSerializer: params => { - return qs.stringify(params, { indices: false }) - } - }) -} diff --git a/src/api/system/overview.js b/src/api/system/overview.js deleted file mode 100644 index bca50cc..0000000 --- a/src/api/system/overview.js +++ /dev/null @@ -1,109 +0,0 @@ -import request from '@/utils/request' -import qs from "qs" -import Vue from 'vue' - -// 路灯状态统计 -export function getLampStatus() { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampStatus', - method: 'get' - }) -} - -// 路灯总览列表 -export function getLampList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampList', - method: 'get', - params - }) -} - -// 路灯详情 -export function getlampDetail(lampId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampDetail', - method: 'get', - params: { - lampId: lampId - } - }) -} - -// 回路列表 -export function getCircuitList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/circuitList', - method: 'get', - params - }) -} - -// 灯箱列表 -export function getLampBoxList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxList', - method: 'get', - params - }) -} -// 灯箱详情 -export function getLampBoxDetail(lampBoxId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxDetail', - method: 'get', - params: { - lampBoxId: lampBoxId - } - }) -} - -// 报警总览列表 -export function getAlarmList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmList', - method: 'get', - params - }) -} - -// 报警详情 -export function getAlarmDetail(alarmId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmDetail', - method: 'get', - params: { - alarmId: alarmId - } - }) -} - -// 路灯控制 -export function lampControl(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampControl', - method: 'post', - params, - paramsSerializer: params => { - return qs.stringify(params, { indices: false }) - } - }) -} diff --git a/src/api/system/rule.js b/src/api/system/rule.js deleted file mode 100644 index 76c6b2d..0000000 --- a/src/api/system/rule.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * 人员管理接口 - */ -import request from '@/utils/request' -// import qs from 'qs' - -// 获取当前报警列表 -export function getRuleList() { - return request({ - url: 'rule/listPage', - method: 'get' - }) -} -export function getContentList(params) { - return request({ - url: 'maintain/contentByType', - method: 'get', - params: { - type: params - } - }) -} -// 批量导出报警 -export function batchExportAlarm(params) { - return request({ - url: 'person/batchExport', - method: 'get', - timeout: 120000, - params, - responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob - }) -} - -// 编辑 -export function editRecord(params) { - return request({ - url: 'maintain/update', - method: 'post', - params - }) -} -// 新增 -export function addRecord(params) { - return request({ - url: 'maintain/add', - method: 'post', - params - }) -} -// 删除 -export function delRecord(id) { - return request({ - url: 'maintain/delete', - method: 'post', - params: { - id: id - } - }) -} diff --git a/src/api/system/overview.js b/src/api/system/overview.js deleted file mode 100644 index bca50cc..0000000 --- a/src/api/system/overview.js +++ /dev/null @@ -1,109 +0,0 @@ -import request from '@/utils/request' -import qs from "qs" -import Vue from 'vue' - -// 路灯状态统计 -export function getLampStatus() { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampStatus', - method: 'get' - }) -} - -// 路灯总览列表 -export function getLampList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampList', - method: 'get', - params - }) -} - -// 路灯详情 -export function getlampDetail(lampId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampDetail', - method: 'get', - params: { - lampId: lampId - } - }) -} - -// 回路列表 -export function getCircuitList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/circuitList', - method: 'get', - params - }) -} - -// 灯箱列表 -export function getLampBoxList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxList', - method: 'get', - params - }) -} -// 灯箱详情 -export function getLampBoxDetail(lampBoxId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxDetail', - method: 'get', - params: { - lampBoxId: lampBoxId - } - }) -} - -// 报警总览列表 -export function getAlarmList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmList', - method: 'get', - params - }) -} - -// 报警详情 -export function getAlarmDetail(alarmId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmDetail', - method: 'get', - params: { - alarmId: alarmId - } - }) -} - -// 路灯控制 -export function lampControl(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampControl', - method: 'post', - params, - paramsSerializer: params => { - return qs.stringify(params, { indices: false }) - } - }) -} diff --git a/src/api/system/rule.js b/src/api/system/rule.js deleted file mode 100644 index 76c6b2d..0000000 --- a/src/api/system/rule.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * 人员管理接口 - */ -import request from '@/utils/request' -// import qs from 'qs' - -// 获取当前报警列表 -export function getRuleList() { - return request({ - url: 'rule/listPage', - method: 'get' - }) -} -export function getContentList(params) { - return request({ - url: 'maintain/contentByType', - method: 'get', - params: { - type: params - } - }) -} -// 批量导出报警 -export function batchExportAlarm(params) { - return request({ - url: 'person/batchExport', - method: 'get', - timeout: 120000, - params, - responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob - }) -} - -// 编辑 -export function editRecord(params) { - return request({ - url: 'maintain/update', - method: 'post', - params - }) -} -// 新增 -export function addRecord(params) { - return request({ - url: 'maintain/add', - method: 'post', - params - }) -} -// 删除 -export function delRecord(id) { - return request({ - url: 'maintain/delete', - method: 'post', - params: { - id: id - } - }) -} diff --git a/src/router/modules/example.js b/src/router/modules/example.js deleted file mode 100644 index 9076d50..0000000 --- a/src/router/modules/example.js +++ /dev/null @@ -1,21 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const exampleRouters = [{ - path: 'example', - component: Layout, - redirect: '/exampleTable', - name: 'Example', - alwaysShow: true, - meta: { - title: '示例', - icon: 'icon-config' // 图标 - }, - children: [ - { - path: '/exampleTable', - name: 'ExampleTable', - component: () => import('@/views/example/tableExample'), - meta: { title: '表格示例', icon: '' } - } - ] -}] diff --git a/src/api/system/overview.js b/src/api/system/overview.js deleted file mode 100644 index bca50cc..0000000 --- a/src/api/system/overview.js +++ /dev/null @@ -1,109 +0,0 @@ -import request from '@/utils/request' -import qs from "qs" -import Vue from 'vue' - -// 路灯状态统计 -export function getLampStatus() { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampStatus', - method: 'get' - }) -} - -// 路灯总览列表 -export function getLampList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampList', - method: 'get', - params - }) -} - -// 路灯详情 -export function getlampDetail(lampId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampDetail', - method: 'get', - params: { - lampId: lampId - } - }) -} - -// 回路列表 -export function getCircuitList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/circuitList', - method: 'get', - params - }) -} - -// 灯箱列表 -export function getLampBoxList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxList', - method: 'get', - params - }) -} -// 灯箱详情 -export function getLampBoxDetail(lampBoxId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxDetail', - method: 'get', - params: { - lampBoxId: lampBoxId - } - }) -} - -// 报警总览列表 -export function getAlarmList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmList', - method: 'get', - params - }) -} - -// 报警详情 -export function getAlarmDetail(alarmId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmDetail', - method: 'get', - params: { - alarmId: alarmId - } - }) -} - -// 路灯控制 -export function lampControl(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampControl', - method: 'post', - params, - paramsSerializer: params => { - return qs.stringify(params, { indices: false }) - } - }) -} diff --git a/src/api/system/rule.js b/src/api/system/rule.js deleted file mode 100644 index 76c6b2d..0000000 --- a/src/api/system/rule.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * 人员管理接口 - */ -import request from '@/utils/request' -// import qs from 'qs' - -// 获取当前报警列表 -export function getRuleList() { - return request({ - url: 'rule/listPage', - method: 'get' - }) -} -export function getContentList(params) { - return request({ - url: 'maintain/contentByType', - method: 'get', - params: { - type: params - } - }) -} -// 批量导出报警 -export function batchExportAlarm(params) { - return request({ - url: 'person/batchExport', - method: 'get', - timeout: 120000, - params, - responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob - }) -} - -// 编辑 -export function editRecord(params) { - return request({ - url: 'maintain/update', - method: 'post', - params - }) -} -// 新增 -export function addRecord(params) { - return request({ - url: 'maintain/add', - method: 'post', - params - }) -} -// 删除 -export function delRecord(id) { - return request({ - url: 'maintain/delete', - method: 'post', - params: { - id: id - } - }) -} diff --git a/src/router/modules/example.js b/src/router/modules/example.js deleted file mode 100644 index 9076d50..0000000 --- a/src/router/modules/example.js +++ /dev/null @@ -1,21 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const exampleRouters = [{ - path: 'example', - component: Layout, - redirect: '/exampleTable', - name: 'Example', - alwaysShow: true, - meta: { - title: '示例', - icon: 'icon-config' // 图标 - }, - children: [ - { - path: '/exampleTable', - name: 'ExampleTable', - component: () => import('@/views/example/tableExample'), - meta: { title: '表格示例', icon: '' } - } - ] -}] diff --git a/src/router/modules/rule.js b/src/router/modules/rule.js deleted file mode 100644 index 50d0992..0000000 --- a/src/router/modules/rule.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const ruleRouters = [ - { - path: 'rule', - component: Layout, - redirect: '/rule', - name: 'Rule', - meta: { - title: '规章制度', - icon: 'icon-config', // 图标 - permission: ['/rule']// 权限名称 - }, - children: [ - { - path: '/rule', - name: 'Rule', - component: () => import('@/views/rule/listRule'), - meta: { title: '规章制度', icon: 'function', permission: ['/rule'] } - } - ] - } -] diff --git a/src/api/system/overview.js b/src/api/system/overview.js deleted file mode 100644 index bca50cc..0000000 --- a/src/api/system/overview.js +++ /dev/null @@ -1,109 +0,0 @@ -import request from '@/utils/request' -import qs from "qs" -import Vue from 'vue' - -// 路灯状态统计 -export function getLampStatus() { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampStatus', - method: 'get' - }) -} - -// 路灯总览列表 -export function getLampList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampList', - method: 'get', - params - }) -} - -// 路灯详情 -export function getlampDetail(lampId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampDetail', - method: 'get', - params: { - lampId: lampId - } - }) -} - -// 回路列表 -export function getCircuitList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/circuitList', - method: 'get', - params - }) -} - -// 灯箱列表 -export function getLampBoxList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxList', - method: 'get', - params - }) -} -// 灯箱详情 -export function getLampBoxDetail(lampBoxId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxDetail', - method: 'get', - params: { - lampBoxId: lampBoxId - } - }) -} - -// 报警总览列表 -export function getAlarmList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmList', - method: 'get', - params - }) -} - -// 报警详情 -export function getAlarmDetail(alarmId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmDetail', - method: 'get', - params: { - alarmId: alarmId - } - }) -} - -// 路灯控制 -export function lampControl(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampControl', - method: 'post', - params, - paramsSerializer: params => { - return qs.stringify(params, { indices: false }) - } - }) -} diff --git a/src/api/system/rule.js b/src/api/system/rule.js deleted file mode 100644 index 76c6b2d..0000000 --- a/src/api/system/rule.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * 人员管理接口 - */ -import request from '@/utils/request' -// import qs from 'qs' - -// 获取当前报警列表 -export function getRuleList() { - return request({ - url: 'rule/listPage', - method: 'get' - }) -} -export function getContentList(params) { - return request({ - url: 'maintain/contentByType', - method: 'get', - params: { - type: params - } - }) -} -// 批量导出报警 -export function batchExportAlarm(params) { - return request({ - url: 'person/batchExport', - method: 'get', - timeout: 120000, - params, - responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob - }) -} - -// 编辑 -export function editRecord(params) { - return request({ - url: 'maintain/update', - method: 'post', - params - }) -} -// 新增 -export function addRecord(params) { - return request({ - url: 'maintain/add', - method: 'post', - params - }) -} -// 删除 -export function delRecord(id) { - return request({ - url: 'maintain/delete', - method: 'post', - params: { - id: id - } - }) -} diff --git a/src/router/modules/example.js b/src/router/modules/example.js deleted file mode 100644 index 9076d50..0000000 --- a/src/router/modules/example.js +++ /dev/null @@ -1,21 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const exampleRouters = [{ - path: 'example', - component: Layout, - redirect: '/exampleTable', - name: 'Example', - alwaysShow: true, - meta: { - title: '示例', - icon: 'icon-config' // 图标 - }, - children: [ - { - path: '/exampleTable', - name: 'ExampleTable', - component: () => import('@/views/example/tableExample'), - meta: { title: '表格示例', icon: '' } - } - ] -}] diff --git a/src/router/modules/rule.js b/src/router/modules/rule.js deleted file mode 100644 index 50d0992..0000000 --- a/src/router/modules/rule.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const ruleRouters = [ - { - path: 'rule', - component: Layout, - redirect: '/rule', - name: 'Rule', - meta: { - title: '规章制度', - icon: 'icon-config', // 图标 - permission: ['/rule']// 权限名称 - }, - children: [ - { - path: '/rule', - name: 'Rule', - component: () => import('@/views/rule/listRule'), - meta: { title: '规章制度', icon: 'function', permission: ['/rule'] } - } - ] - } -] diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue deleted file mode 100644 index c5cc0e7..0000000 --- a/src/views/dashboard/index.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - - - diff --git a/src/api/system/overview.js b/src/api/system/overview.js deleted file mode 100644 index bca50cc..0000000 --- a/src/api/system/overview.js +++ /dev/null @@ -1,109 +0,0 @@ -import request from '@/utils/request' -import qs from "qs" -import Vue from 'vue' - -// 路灯状态统计 -export function getLampStatus() { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampStatus', - method: 'get' - }) -} - -// 路灯总览列表 -export function getLampList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampList', - method: 'get', - params - }) -} - -// 路灯详情 -export function getlampDetail(lampId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampDetail', - method: 'get', - params: { - lampId: lampId - } - }) -} - -// 回路列表 -export function getCircuitList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/circuitList', - method: 'get', - params - }) -} - -// 灯箱列表 -export function getLampBoxList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxList', - method: 'get', - params - }) -} -// 灯箱详情 -export function getLampBoxDetail(lampBoxId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxDetail', - method: 'get', - params: { - lampBoxId: lampBoxId - } - }) -} - -// 报警总览列表 -export function getAlarmList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmList', - method: 'get', - params - }) -} - -// 报警详情 -export function getAlarmDetail(alarmId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmDetail', - method: 'get', - params: { - alarmId: alarmId - } - }) -} - -// 路灯控制 -export function lampControl(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampControl', - method: 'post', - params, - paramsSerializer: params => { - return qs.stringify(params, { indices: false }) - } - }) -} diff --git a/src/api/system/rule.js b/src/api/system/rule.js deleted file mode 100644 index 76c6b2d..0000000 --- a/src/api/system/rule.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * 人员管理接口 - */ -import request from '@/utils/request' -// import qs from 'qs' - -// 获取当前报警列表 -export function getRuleList() { - return request({ - url: 'rule/listPage', - method: 'get' - }) -} -export function getContentList(params) { - return request({ - url: 'maintain/contentByType', - method: 'get', - params: { - type: params - } - }) -} -// 批量导出报警 -export function batchExportAlarm(params) { - return request({ - url: 'person/batchExport', - method: 'get', - timeout: 120000, - params, - responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob - }) -} - -// 编辑 -export function editRecord(params) { - return request({ - url: 'maintain/update', - method: 'post', - params - }) -} -// 新增 -export function addRecord(params) { - return request({ - url: 'maintain/add', - method: 'post', - params - }) -} -// 删除 -export function delRecord(id) { - return request({ - url: 'maintain/delete', - method: 'post', - params: { - id: id - } - }) -} diff --git a/src/router/modules/example.js b/src/router/modules/example.js deleted file mode 100644 index 9076d50..0000000 --- a/src/router/modules/example.js +++ /dev/null @@ -1,21 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const exampleRouters = [{ - path: 'example', - component: Layout, - redirect: '/exampleTable', - name: 'Example', - alwaysShow: true, - meta: { - title: '示例', - icon: 'icon-config' // 图标 - }, - children: [ - { - path: '/exampleTable', - name: 'ExampleTable', - component: () => import('@/views/example/tableExample'), - meta: { title: '表格示例', icon: '' } - } - ] -}] diff --git a/src/router/modules/rule.js b/src/router/modules/rule.js deleted file mode 100644 index 50d0992..0000000 --- a/src/router/modules/rule.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const ruleRouters = [ - { - path: 'rule', - component: Layout, - redirect: '/rule', - name: 'Rule', - meta: { - title: '规章制度', - icon: 'icon-config', // 图标 - permission: ['/rule']// 权限名称 - }, - children: [ - { - path: '/rule', - name: 'Rule', - component: () => import('@/views/rule/listRule'), - meta: { title: '规章制度', icon: 'function', permission: ['/rule'] } - } - ] - } -] diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue deleted file mode 100644 index c5cc0e7..0000000 --- a/src/views/dashboard/index.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - - - diff --git a/src/views/example/tableExample.vue b/src/views/example/tableExample.vue deleted file mode 100644 index 2d54fad..0000000 --- a/src/views/example/tableExample.vue +++ /dev/null @@ -1,196 +0,0 @@ - - - - - diff --git a/src/api/system/overview.js b/src/api/system/overview.js deleted file mode 100644 index bca50cc..0000000 --- a/src/api/system/overview.js +++ /dev/null @@ -1,109 +0,0 @@ -import request from '@/utils/request' -import qs from "qs" -import Vue from 'vue' - -// 路灯状态统计 -export function getLampStatus() { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampStatus', - method: 'get' - }) -} - -// 路灯总览列表 -export function getLampList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampList', - method: 'get', - params - }) -} - -// 路灯详情 -export function getlampDetail(lampId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampDetail', - method: 'get', - params: { - lampId: lampId - } - }) -} - -// 回路列表 -export function getCircuitList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/circuitList', - method: 'get', - params - }) -} - -// 灯箱列表 -export function getLampBoxList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxList', - method: 'get', - params - }) -} -// 灯箱详情 -export function getLampBoxDetail(lampBoxId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxDetail', - method: 'get', - params: { - lampBoxId: lampBoxId - } - }) -} - -// 报警总览列表 -export function getAlarmList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmList', - method: 'get', - params - }) -} - -// 报警详情 -export function getAlarmDetail(alarmId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmDetail', - method: 'get', - params: { - alarmId: alarmId - } - }) -} - -// 路灯控制 -export function lampControl(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampControl', - method: 'post', - params, - paramsSerializer: params => { - return qs.stringify(params, { indices: false }) - } - }) -} diff --git a/src/api/system/rule.js b/src/api/system/rule.js deleted file mode 100644 index 76c6b2d..0000000 --- a/src/api/system/rule.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * 人员管理接口 - */ -import request from '@/utils/request' -// import qs from 'qs' - -// 获取当前报警列表 -export function getRuleList() { - return request({ - url: 'rule/listPage', - method: 'get' - }) -} -export function getContentList(params) { - return request({ - url: 'maintain/contentByType', - method: 'get', - params: { - type: params - } - }) -} -// 批量导出报警 -export function batchExportAlarm(params) { - return request({ - url: 'person/batchExport', - method: 'get', - timeout: 120000, - params, - responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob - }) -} - -// 编辑 -export function editRecord(params) { - return request({ - url: 'maintain/update', - method: 'post', - params - }) -} -// 新增 -export function addRecord(params) { - return request({ - url: 'maintain/add', - method: 'post', - params - }) -} -// 删除 -export function delRecord(id) { - return request({ - url: 'maintain/delete', - method: 'post', - params: { - id: id - } - }) -} diff --git a/src/router/modules/example.js b/src/router/modules/example.js deleted file mode 100644 index 9076d50..0000000 --- a/src/router/modules/example.js +++ /dev/null @@ -1,21 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const exampleRouters = [{ - path: 'example', - component: Layout, - redirect: '/exampleTable', - name: 'Example', - alwaysShow: true, - meta: { - title: '示例', - icon: 'icon-config' // 图标 - }, - children: [ - { - path: '/exampleTable', - name: 'ExampleTable', - component: () => import('@/views/example/tableExample'), - meta: { title: '表格示例', icon: '' } - } - ] -}] diff --git a/src/router/modules/rule.js b/src/router/modules/rule.js deleted file mode 100644 index 50d0992..0000000 --- a/src/router/modules/rule.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const ruleRouters = [ - { - path: 'rule', - component: Layout, - redirect: '/rule', - name: 'Rule', - meta: { - title: '规章制度', - icon: 'icon-config', // 图标 - permission: ['/rule']// 权限名称 - }, - children: [ - { - path: '/rule', - name: 'Rule', - component: () => import('@/views/rule/listRule'), - meta: { title: '规章制度', icon: 'function', permission: ['/rule'] } - } - ] - } -] diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue deleted file mode 100644 index c5cc0e7..0000000 --- a/src/views/dashboard/index.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - - - diff --git a/src/views/example/tableExample.vue b/src/views/example/tableExample.vue deleted file mode 100644 index 2d54fad..0000000 --- a/src/views/example/tableExample.vue +++ /dev/null @@ -1,196 +0,0 @@ - - - - - diff --git a/src/views/order/editOrder.vue b/src/views/order/editOrder.vue deleted file mode 100644 index 4a5fd8a..0000000 --- a/src/views/order/editOrder.vue +++ /dev/null @@ -1,319 +0,0 @@ - - - - - diff --git a/src/api/system/overview.js b/src/api/system/overview.js deleted file mode 100644 index bca50cc..0000000 --- a/src/api/system/overview.js +++ /dev/null @@ -1,109 +0,0 @@ -import request from '@/utils/request' -import qs from "qs" -import Vue from 'vue' - -// 路灯状态统计 -export function getLampStatus() { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampStatus', - method: 'get' - }) -} - -// 路灯总览列表 -export function getLampList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampList', - method: 'get', - params - }) -} - -// 路灯详情 -export function getlampDetail(lampId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampDetail', - method: 'get', - params: { - lampId: lampId - } - }) -} - -// 回路列表 -export function getCircuitList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/circuitList', - method: 'get', - params - }) -} - -// 灯箱列表 -export function getLampBoxList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxList', - method: 'get', - params - }) -} -// 灯箱详情 -export function getLampBoxDetail(lampBoxId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxDetail', - method: 'get', - params: { - lampBoxId: lampBoxId - } - }) -} - -// 报警总览列表 -export function getAlarmList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmList', - method: 'get', - params - }) -} - -// 报警详情 -export function getAlarmDetail(alarmId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmDetail', - method: 'get', - params: { - alarmId: alarmId - } - }) -} - -// 路灯控制 -export function lampControl(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampControl', - method: 'post', - params, - paramsSerializer: params => { - return qs.stringify(params, { indices: false }) - } - }) -} diff --git a/src/api/system/rule.js b/src/api/system/rule.js deleted file mode 100644 index 76c6b2d..0000000 --- a/src/api/system/rule.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * 人员管理接口 - */ -import request from '@/utils/request' -// import qs from 'qs' - -// 获取当前报警列表 -export function getRuleList() { - return request({ - url: 'rule/listPage', - method: 'get' - }) -} -export function getContentList(params) { - return request({ - url: 'maintain/contentByType', - method: 'get', - params: { - type: params - } - }) -} -// 批量导出报警 -export function batchExportAlarm(params) { - return request({ - url: 'person/batchExport', - method: 'get', - timeout: 120000, - params, - responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob - }) -} - -// 编辑 -export function editRecord(params) { - return request({ - url: 'maintain/update', - method: 'post', - params - }) -} -// 新增 -export function addRecord(params) { - return request({ - url: 'maintain/add', - method: 'post', - params - }) -} -// 删除 -export function delRecord(id) { - return request({ - url: 'maintain/delete', - method: 'post', - params: { - id: id - } - }) -} diff --git a/src/router/modules/example.js b/src/router/modules/example.js deleted file mode 100644 index 9076d50..0000000 --- a/src/router/modules/example.js +++ /dev/null @@ -1,21 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const exampleRouters = [{ - path: 'example', - component: Layout, - redirect: '/exampleTable', - name: 'Example', - alwaysShow: true, - meta: { - title: '示例', - icon: 'icon-config' // 图标 - }, - children: [ - { - path: '/exampleTable', - name: 'ExampleTable', - component: () => import('@/views/example/tableExample'), - meta: { title: '表格示例', icon: '' } - } - ] -}] diff --git a/src/router/modules/rule.js b/src/router/modules/rule.js deleted file mode 100644 index 50d0992..0000000 --- a/src/router/modules/rule.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const ruleRouters = [ - { - path: 'rule', - component: Layout, - redirect: '/rule', - name: 'Rule', - meta: { - title: '规章制度', - icon: 'icon-config', // 图标 - permission: ['/rule']// 权限名称 - }, - children: [ - { - path: '/rule', - name: 'Rule', - component: () => import('@/views/rule/listRule'), - meta: { title: '规章制度', icon: 'function', permission: ['/rule'] } - } - ] - } -] diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue deleted file mode 100644 index c5cc0e7..0000000 --- a/src/views/dashboard/index.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - - - diff --git a/src/views/example/tableExample.vue b/src/views/example/tableExample.vue deleted file mode 100644 index 2d54fad..0000000 --- a/src/views/example/tableExample.vue +++ /dev/null @@ -1,196 +0,0 @@ - - - - - diff --git a/src/views/order/editOrder.vue b/src/views/order/editOrder.vue deleted file mode 100644 index 4a5fd8a..0000000 --- a/src/views/order/editOrder.vue +++ /dev/null @@ -1,319 +0,0 @@ - - - - - diff --git a/src/views/overview/lampTabPane.vue b/src/views/overview/lampTabPane.vue deleted file mode 100644 index a29618c..0000000 --- a/src/views/overview/lampTabPane.vue +++ /dev/null @@ -1,197 +0,0 @@ - - - - - diff --git a/src/api/system/overview.js b/src/api/system/overview.js deleted file mode 100644 index bca50cc..0000000 --- a/src/api/system/overview.js +++ /dev/null @@ -1,109 +0,0 @@ -import request from '@/utils/request' -import qs from "qs" -import Vue from 'vue' - -// 路灯状态统计 -export function getLampStatus() { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampStatus', - method: 'get' - }) -} - -// 路灯总览列表 -export function getLampList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampList', - method: 'get', - params - }) -} - -// 路灯详情 -export function getlampDetail(lampId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampDetail', - method: 'get', - params: { - lampId: lampId - } - }) -} - -// 回路列表 -export function getCircuitList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/circuitList', - method: 'get', - params - }) -} - -// 灯箱列表 -export function getLampBoxList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxList', - method: 'get', - params - }) -} -// 灯箱详情 -export function getLampBoxDetail(lampBoxId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxDetail', - method: 'get', - params: { - lampBoxId: lampBoxId - } - }) -} - -// 报警总览列表 -export function getAlarmList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmList', - method: 'get', - params - }) -} - -// 报警详情 -export function getAlarmDetail(alarmId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmDetail', - method: 'get', - params: { - alarmId: alarmId - } - }) -} - -// 路灯控制 -export function lampControl(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampControl', - method: 'post', - params, - paramsSerializer: params => { - return qs.stringify(params, { indices: false }) - } - }) -} diff --git a/src/api/system/rule.js b/src/api/system/rule.js deleted file mode 100644 index 76c6b2d..0000000 --- a/src/api/system/rule.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * 人员管理接口 - */ -import request from '@/utils/request' -// import qs from 'qs' - -// 获取当前报警列表 -export function getRuleList() { - return request({ - url: 'rule/listPage', - method: 'get' - }) -} -export function getContentList(params) { - return request({ - url: 'maintain/contentByType', - method: 'get', - params: { - type: params - } - }) -} -// 批量导出报警 -export function batchExportAlarm(params) { - return request({ - url: 'person/batchExport', - method: 'get', - timeout: 120000, - params, - responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob - }) -} - -// 编辑 -export function editRecord(params) { - return request({ - url: 'maintain/update', - method: 'post', - params - }) -} -// 新增 -export function addRecord(params) { - return request({ - url: 'maintain/add', - method: 'post', - params - }) -} -// 删除 -export function delRecord(id) { - return request({ - url: 'maintain/delete', - method: 'post', - params: { - id: id - } - }) -} diff --git a/src/router/modules/example.js b/src/router/modules/example.js deleted file mode 100644 index 9076d50..0000000 --- a/src/router/modules/example.js +++ /dev/null @@ -1,21 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const exampleRouters = [{ - path: 'example', - component: Layout, - redirect: '/exampleTable', - name: 'Example', - alwaysShow: true, - meta: { - title: '示例', - icon: 'icon-config' // 图标 - }, - children: [ - { - path: '/exampleTable', - name: 'ExampleTable', - component: () => import('@/views/example/tableExample'), - meta: { title: '表格示例', icon: '' } - } - ] -}] diff --git a/src/router/modules/rule.js b/src/router/modules/rule.js deleted file mode 100644 index 50d0992..0000000 --- a/src/router/modules/rule.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const ruleRouters = [ - { - path: 'rule', - component: Layout, - redirect: '/rule', - name: 'Rule', - meta: { - title: '规章制度', - icon: 'icon-config', // 图标 - permission: ['/rule']// 权限名称 - }, - children: [ - { - path: '/rule', - name: 'Rule', - component: () => import('@/views/rule/listRule'), - meta: { title: '规章制度', icon: 'function', permission: ['/rule'] } - } - ] - } -] diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue deleted file mode 100644 index c5cc0e7..0000000 --- a/src/views/dashboard/index.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - - - diff --git a/src/views/example/tableExample.vue b/src/views/example/tableExample.vue deleted file mode 100644 index 2d54fad..0000000 --- a/src/views/example/tableExample.vue +++ /dev/null @@ -1,196 +0,0 @@ - - - - - diff --git a/src/views/order/editOrder.vue b/src/views/order/editOrder.vue deleted file mode 100644 index 4a5fd8a..0000000 --- a/src/views/order/editOrder.vue +++ /dev/null @@ -1,319 +0,0 @@ - - - - - diff --git a/src/views/overview/lampTabPane.vue b/src/views/overview/lampTabPane.vue deleted file mode 100644 index a29618c..0000000 --- a/src/views/overview/lampTabPane.vue +++ /dev/null @@ -1,197 +0,0 @@ - - - - - diff --git a/src/views/rule/components/setThresh.vue b/src/views/rule/components/setThresh.vue deleted file mode 100644 index a0ee404..0000000 --- a/src/views/rule/components/setThresh.vue +++ /dev/null @@ -1,139 +0,0 @@ - - - - - diff --git a/src/api/system/overview.js b/src/api/system/overview.js deleted file mode 100644 index bca50cc..0000000 --- a/src/api/system/overview.js +++ /dev/null @@ -1,109 +0,0 @@ -import request from '@/utils/request' -import qs from "qs" -import Vue from 'vue' - -// 路灯状态统计 -export function getLampStatus() { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampStatus', - method: 'get' - }) -} - -// 路灯总览列表 -export function getLampList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampList', - method: 'get', - params - }) -} - -// 路灯详情 -export function getlampDetail(lampId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampDetail', - method: 'get', - params: { - lampId: lampId - } - }) -} - -// 回路列表 -export function getCircuitList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/circuitList', - method: 'get', - params - }) -} - -// 灯箱列表 -export function getLampBoxList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxList', - method: 'get', - params - }) -} -// 灯箱详情 -export function getLampBoxDetail(lampBoxId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxDetail', - method: 'get', - params: { - lampBoxId: lampBoxId - } - }) -} - -// 报警总览列表 -export function getAlarmList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmList', - method: 'get', - params - }) -} - -// 报警详情 -export function getAlarmDetail(alarmId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmDetail', - method: 'get', - params: { - alarmId: alarmId - } - }) -} - -// 路灯控制 -export function lampControl(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampControl', - method: 'post', - params, - paramsSerializer: params => { - return qs.stringify(params, { indices: false }) - } - }) -} diff --git a/src/api/system/rule.js b/src/api/system/rule.js deleted file mode 100644 index 76c6b2d..0000000 --- a/src/api/system/rule.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * 人员管理接口 - */ -import request from '@/utils/request' -// import qs from 'qs' - -// 获取当前报警列表 -export function getRuleList() { - return request({ - url: 'rule/listPage', - method: 'get' - }) -} -export function getContentList(params) { - return request({ - url: 'maintain/contentByType', - method: 'get', - params: { - type: params - } - }) -} -// 批量导出报警 -export function batchExportAlarm(params) { - return request({ - url: 'person/batchExport', - method: 'get', - timeout: 120000, - params, - responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob - }) -} - -// 编辑 -export function editRecord(params) { - return request({ - url: 'maintain/update', - method: 'post', - params - }) -} -// 新增 -export function addRecord(params) { - return request({ - url: 'maintain/add', - method: 'post', - params - }) -} -// 删除 -export function delRecord(id) { - return request({ - url: 'maintain/delete', - method: 'post', - params: { - id: id - } - }) -} diff --git a/src/router/modules/example.js b/src/router/modules/example.js deleted file mode 100644 index 9076d50..0000000 --- a/src/router/modules/example.js +++ /dev/null @@ -1,21 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const exampleRouters = [{ - path: 'example', - component: Layout, - redirect: '/exampleTable', - name: 'Example', - alwaysShow: true, - meta: { - title: '示例', - icon: 'icon-config' // 图标 - }, - children: [ - { - path: '/exampleTable', - name: 'ExampleTable', - component: () => import('@/views/example/tableExample'), - meta: { title: '表格示例', icon: '' } - } - ] -}] diff --git a/src/router/modules/rule.js b/src/router/modules/rule.js deleted file mode 100644 index 50d0992..0000000 --- a/src/router/modules/rule.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const ruleRouters = [ - { - path: 'rule', - component: Layout, - redirect: '/rule', - name: 'Rule', - meta: { - title: '规章制度', - icon: 'icon-config', // 图标 - permission: ['/rule']// 权限名称 - }, - children: [ - { - path: '/rule', - name: 'Rule', - component: () => import('@/views/rule/listRule'), - meta: { title: '规章制度', icon: 'function', permission: ['/rule'] } - } - ] - } -] diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue deleted file mode 100644 index c5cc0e7..0000000 --- a/src/views/dashboard/index.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - - - diff --git a/src/views/example/tableExample.vue b/src/views/example/tableExample.vue deleted file mode 100644 index 2d54fad..0000000 --- a/src/views/example/tableExample.vue +++ /dev/null @@ -1,196 +0,0 @@ - - - - - diff --git a/src/views/order/editOrder.vue b/src/views/order/editOrder.vue deleted file mode 100644 index 4a5fd8a..0000000 --- a/src/views/order/editOrder.vue +++ /dev/null @@ -1,319 +0,0 @@ - - - - - diff --git a/src/views/overview/lampTabPane.vue b/src/views/overview/lampTabPane.vue deleted file mode 100644 index a29618c..0000000 --- a/src/views/overview/lampTabPane.vue +++ /dev/null @@ -1,197 +0,0 @@ - - - - - diff --git a/src/views/rule/components/setThresh.vue b/src/views/rule/components/setThresh.vue deleted file mode 100644 index a0ee404..0000000 --- a/src/views/rule/components/setThresh.vue +++ /dev/null @@ -1,139 +0,0 @@ - - - - - diff --git a/src/views/rule/listRule.vue b/src/views/rule/listRule.vue deleted file mode 100644 index a19b9e4..0000000 --- a/src/views/rule/listRule.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - - - diff --git a/src/api/system/overview.js b/src/api/system/overview.js deleted file mode 100644 index bca50cc..0000000 --- a/src/api/system/overview.js +++ /dev/null @@ -1,109 +0,0 @@ -import request from '@/utils/request' -import qs from "qs" -import Vue from 'vue' - -// 路灯状态统计 -export function getLampStatus() { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampStatus', - method: 'get' - }) -} - -// 路灯总览列表 -export function getLampList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampList', - method: 'get', - params - }) -} - -// 路灯详情 -export function getlampDetail(lampId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampDetail', - method: 'get', - params: { - lampId: lampId - } - }) -} - -// 回路列表 -export function getCircuitList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/circuitList', - method: 'get', - params - }) -} - -// 灯箱列表 -export function getLampBoxList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxList', - method: 'get', - params - }) -} -// 灯箱详情 -export function getLampBoxDetail(lampBoxId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxDetail', - method: 'get', - params: { - lampBoxId: lampBoxId - } - }) -} - -// 报警总览列表 -export function getAlarmList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmList', - method: 'get', - params - }) -} - -// 报警详情 -export function getAlarmDetail(alarmId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmDetail', - method: 'get', - params: { - alarmId: alarmId - } - }) -} - -// 路灯控制 -export function lampControl(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampControl', - method: 'post', - params, - paramsSerializer: params => { - return qs.stringify(params, { indices: false }) - } - }) -} diff --git a/src/api/system/rule.js b/src/api/system/rule.js deleted file mode 100644 index 76c6b2d..0000000 --- a/src/api/system/rule.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * 人员管理接口 - */ -import request from '@/utils/request' -// import qs from 'qs' - -// 获取当前报警列表 -export function getRuleList() { - return request({ - url: 'rule/listPage', - method: 'get' - }) -} -export function getContentList(params) { - return request({ - url: 'maintain/contentByType', - method: 'get', - params: { - type: params - } - }) -} -// 批量导出报警 -export function batchExportAlarm(params) { - return request({ - url: 'person/batchExport', - method: 'get', - timeout: 120000, - params, - responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob - }) -} - -// 编辑 -export function editRecord(params) { - return request({ - url: 'maintain/update', - method: 'post', - params - }) -} -// 新增 -export function addRecord(params) { - return request({ - url: 'maintain/add', - method: 'post', - params - }) -} -// 删除 -export function delRecord(id) { - return request({ - url: 'maintain/delete', - method: 'post', - params: { - id: id - } - }) -} diff --git a/src/router/modules/example.js b/src/router/modules/example.js deleted file mode 100644 index 9076d50..0000000 --- a/src/router/modules/example.js +++ /dev/null @@ -1,21 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const exampleRouters = [{ - path: 'example', - component: Layout, - redirect: '/exampleTable', - name: 'Example', - alwaysShow: true, - meta: { - title: '示例', - icon: 'icon-config' // 图标 - }, - children: [ - { - path: '/exampleTable', - name: 'ExampleTable', - component: () => import('@/views/example/tableExample'), - meta: { title: '表格示例', icon: '' } - } - ] -}] diff --git a/src/router/modules/rule.js b/src/router/modules/rule.js deleted file mode 100644 index 50d0992..0000000 --- a/src/router/modules/rule.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const ruleRouters = [ - { - path: 'rule', - component: Layout, - redirect: '/rule', - name: 'Rule', - meta: { - title: '规章制度', - icon: 'icon-config', // 图标 - permission: ['/rule']// 权限名称 - }, - children: [ - { - path: '/rule', - name: 'Rule', - component: () => import('@/views/rule/listRule'), - meta: { title: '规章制度', icon: 'function', permission: ['/rule'] } - } - ] - } -] diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue deleted file mode 100644 index c5cc0e7..0000000 --- a/src/views/dashboard/index.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - - - diff --git a/src/views/example/tableExample.vue b/src/views/example/tableExample.vue deleted file mode 100644 index 2d54fad..0000000 --- a/src/views/example/tableExample.vue +++ /dev/null @@ -1,196 +0,0 @@ - - - - - diff --git a/src/views/order/editOrder.vue b/src/views/order/editOrder.vue deleted file mode 100644 index 4a5fd8a..0000000 --- a/src/views/order/editOrder.vue +++ /dev/null @@ -1,319 +0,0 @@ - - - - - diff --git a/src/views/overview/lampTabPane.vue b/src/views/overview/lampTabPane.vue deleted file mode 100644 index a29618c..0000000 --- a/src/views/overview/lampTabPane.vue +++ /dev/null @@ -1,197 +0,0 @@ - - - - - diff --git a/src/views/rule/components/setThresh.vue b/src/views/rule/components/setThresh.vue deleted file mode 100644 index a0ee404..0000000 --- a/src/views/rule/components/setThresh.vue +++ /dev/null @@ -1,139 +0,0 @@ - - - - - diff --git a/src/views/rule/listRule.vue b/src/views/rule/listRule.vue deleted file mode 100644 index a19b9e4..0000000 --- a/src/views/rule/listRule.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - - - diff --git a/src/views/statistics/barChart.vue b/src/views/statistics/barChart.vue deleted file mode 100644 index 34910e2..0000000 --- a/src/views/statistics/barChart.vue +++ /dev/null @@ -1,64 +0,0 @@ - - - - - diff --git a/src/api/system/overview.js b/src/api/system/overview.js deleted file mode 100644 index bca50cc..0000000 --- a/src/api/system/overview.js +++ /dev/null @@ -1,109 +0,0 @@ -import request from '@/utils/request' -import qs from "qs" -import Vue from 'vue' - -// 路灯状态统计 -export function getLampStatus() { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampStatus', - method: 'get' - }) -} - -// 路灯总览列表 -export function getLampList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampList', - method: 'get', - params - }) -} - -// 路灯详情 -export function getlampDetail(lampId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampDetail', - method: 'get', - params: { - lampId: lampId - } - }) -} - -// 回路列表 -export function getCircuitList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/circuitList', - method: 'get', - params - }) -} - -// 灯箱列表 -export function getLampBoxList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxList', - method: 'get', - params - }) -} -// 灯箱详情 -export function getLampBoxDetail(lampBoxId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxDetail', - method: 'get', - params: { - lampBoxId: lampBoxId - } - }) -} - -// 报警总览列表 -export function getAlarmList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmList', - method: 'get', - params - }) -} - -// 报警详情 -export function getAlarmDetail(alarmId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmDetail', - method: 'get', - params: { - alarmId: alarmId - } - }) -} - -// 路灯控制 -export function lampControl(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampControl', - method: 'post', - params, - paramsSerializer: params => { - return qs.stringify(params, { indices: false }) - } - }) -} diff --git a/src/api/system/rule.js b/src/api/system/rule.js deleted file mode 100644 index 76c6b2d..0000000 --- a/src/api/system/rule.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * 人员管理接口 - */ -import request from '@/utils/request' -// import qs from 'qs' - -// 获取当前报警列表 -export function getRuleList() { - return request({ - url: 'rule/listPage', - method: 'get' - }) -} -export function getContentList(params) { - return request({ - url: 'maintain/contentByType', - method: 'get', - params: { - type: params - } - }) -} -// 批量导出报警 -export function batchExportAlarm(params) { - return request({ - url: 'person/batchExport', - method: 'get', - timeout: 120000, - params, - responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob - }) -} - -// 编辑 -export function editRecord(params) { - return request({ - url: 'maintain/update', - method: 'post', - params - }) -} -// 新增 -export function addRecord(params) { - return request({ - url: 'maintain/add', - method: 'post', - params - }) -} -// 删除 -export function delRecord(id) { - return request({ - url: 'maintain/delete', - method: 'post', - params: { - id: id - } - }) -} diff --git a/src/router/modules/example.js b/src/router/modules/example.js deleted file mode 100644 index 9076d50..0000000 --- a/src/router/modules/example.js +++ /dev/null @@ -1,21 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const exampleRouters = [{ - path: 'example', - component: Layout, - redirect: '/exampleTable', - name: 'Example', - alwaysShow: true, - meta: { - title: '示例', - icon: 'icon-config' // 图标 - }, - children: [ - { - path: '/exampleTable', - name: 'ExampleTable', - component: () => import('@/views/example/tableExample'), - meta: { title: '表格示例', icon: '' } - } - ] -}] diff --git a/src/router/modules/rule.js b/src/router/modules/rule.js deleted file mode 100644 index 50d0992..0000000 --- a/src/router/modules/rule.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const ruleRouters = [ - { - path: 'rule', - component: Layout, - redirect: '/rule', - name: 'Rule', - meta: { - title: '规章制度', - icon: 'icon-config', // 图标 - permission: ['/rule']// 权限名称 - }, - children: [ - { - path: '/rule', - name: 'Rule', - component: () => import('@/views/rule/listRule'), - meta: { title: '规章制度', icon: 'function', permission: ['/rule'] } - } - ] - } -] diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue deleted file mode 100644 index c5cc0e7..0000000 --- a/src/views/dashboard/index.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - - - diff --git a/src/views/example/tableExample.vue b/src/views/example/tableExample.vue deleted file mode 100644 index 2d54fad..0000000 --- a/src/views/example/tableExample.vue +++ /dev/null @@ -1,196 +0,0 @@ - - - - - diff --git a/src/views/order/editOrder.vue b/src/views/order/editOrder.vue deleted file mode 100644 index 4a5fd8a..0000000 --- a/src/views/order/editOrder.vue +++ /dev/null @@ -1,319 +0,0 @@ - - - - - diff --git a/src/views/overview/lampTabPane.vue b/src/views/overview/lampTabPane.vue deleted file mode 100644 index a29618c..0000000 --- a/src/views/overview/lampTabPane.vue +++ /dev/null @@ -1,197 +0,0 @@ - - - - - diff --git a/src/views/rule/components/setThresh.vue b/src/views/rule/components/setThresh.vue deleted file mode 100644 index a0ee404..0000000 --- a/src/views/rule/components/setThresh.vue +++ /dev/null @@ -1,139 +0,0 @@ - - - - - diff --git a/src/views/rule/listRule.vue b/src/views/rule/listRule.vue deleted file mode 100644 index a19b9e4..0000000 --- a/src/views/rule/listRule.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - - - diff --git a/src/views/statistics/barChart.vue b/src/views/statistics/barChart.vue deleted file mode 100644 index 34910e2..0000000 --- a/src/views/statistics/barChart.vue +++ /dev/null @@ -1,64 +0,0 @@ - - - - - diff --git a/src/views/statistics/maintainStatistics.vue b/src/views/statistics/maintainStatistics.vue index af882a8..3066bb9 100644 --- a/src/views/statistics/maintainStatistics.vue +++ b/src/views/statistics/maintainStatistics.vue @@ -37,12 +37,9 @@ - - diff --git a/src/views/example/tableExample.vue b/src/views/example/tableExample.vue deleted file mode 100644 index 2d54fad..0000000 --- a/src/views/example/tableExample.vue +++ /dev/null @@ -1,196 +0,0 @@ - - - - - diff --git a/src/views/order/editOrder.vue b/src/views/order/editOrder.vue deleted file mode 100644 index 4a5fd8a..0000000 --- a/src/views/order/editOrder.vue +++ /dev/null @@ -1,319 +0,0 @@ - - - - - diff --git a/src/views/overview/lampTabPane.vue b/src/views/overview/lampTabPane.vue deleted file mode 100644 index a29618c..0000000 --- a/src/views/overview/lampTabPane.vue +++ /dev/null @@ -1,197 +0,0 @@ - - - - - diff --git a/src/views/rule/components/setThresh.vue b/src/views/rule/components/setThresh.vue deleted file mode 100644 index a0ee404..0000000 --- a/src/views/rule/components/setThresh.vue +++ /dev/null @@ -1,139 +0,0 @@ - - - - - diff --git a/src/views/rule/listRule.vue b/src/views/rule/listRule.vue deleted file mode 100644 index a19b9e4..0000000 --- a/src/views/rule/listRule.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - - - diff --git a/src/views/statistics/barChart.vue b/src/views/statistics/barChart.vue deleted file mode 100644 index 34910e2..0000000 --- a/src/views/statistics/barChart.vue +++ /dev/null @@ -1,64 +0,0 @@ - - - - - diff --git a/src/views/statistics/maintainStatistics.vue b/src/views/statistics/maintainStatistics.vue index af882a8..3066bb9 100644 --- a/src/views/statistics/maintainStatistics.vue +++ b/src/views/statistics/maintainStatistics.vue @@ -37,12 +37,9 @@ - - diff --git a/src/api/system/overview.js b/src/api/system/overview.js deleted file mode 100644 index bca50cc..0000000 --- a/src/api/system/overview.js +++ /dev/null @@ -1,109 +0,0 @@ -import request from '@/utils/request' -import qs from "qs" -import Vue from 'vue' - -// 路灯状态统计 -export function getLampStatus() { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampStatus', - method: 'get' - }) -} - -// 路灯总览列表 -export function getLampList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampList', - method: 'get', - params - }) -} - -// 路灯详情 -export function getlampDetail(lampId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampDetail', - method: 'get', - params: { - lampId: lampId - } - }) -} - -// 回路列表 -export function getCircuitList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/circuitList', - method: 'get', - params - }) -} - -// 灯箱列表 -export function getLampBoxList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxList', - method: 'get', - params - }) -} -// 灯箱详情 -export function getLampBoxDetail(lampBoxId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampBoxDetail', - method: 'get', - params: { - lampBoxId: lampBoxId - } - }) -} - -// 报警总览列表 -export function getAlarmList(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmList', - method: 'get', - params - }) -} - -// 报警详情 -export function getAlarmDetail(alarmId) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/alarmDetail', - method: 'get', - params: { - alarmId: alarmId - } - }) -} - -// 路灯控制 -export function lampControl(params) { - const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值 - const lampPath = basetConfig.lampBasePath - return request({ - url: lampPath + 'overview/lampControl', - method: 'post', - params, - paramsSerializer: params => { - return qs.stringify(params, { indices: false }) - } - }) -} diff --git a/src/api/system/rule.js b/src/api/system/rule.js deleted file mode 100644 index 76c6b2d..0000000 --- a/src/api/system/rule.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * 人员管理接口 - */ -import request from '@/utils/request' -// import qs from 'qs' - -// 获取当前报警列表 -export function getRuleList() { - return request({ - url: 'rule/listPage', - method: 'get' - }) -} -export function getContentList(params) { - return request({ - url: 'maintain/contentByType', - method: 'get', - params: { - type: params - } - }) -} -// 批量导出报警 -export function batchExportAlarm(params) { - return request({ - url: 'person/batchExport', - method: 'get', - timeout: 120000, - params, - responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob - }) -} - -// 编辑 -export function editRecord(params) { - return request({ - url: 'maintain/update', - method: 'post', - params - }) -} -// 新增 -export function addRecord(params) { - return request({ - url: 'maintain/add', - method: 'post', - params - }) -} -// 删除 -export function delRecord(id) { - return request({ - url: 'maintain/delete', - method: 'post', - params: { - id: id - } - }) -} diff --git a/src/router/modules/example.js b/src/router/modules/example.js deleted file mode 100644 index 9076d50..0000000 --- a/src/router/modules/example.js +++ /dev/null @@ -1,21 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const exampleRouters = [{ - path: 'example', - component: Layout, - redirect: '/exampleTable', - name: 'Example', - alwaysShow: true, - meta: { - title: '示例', - icon: 'icon-config' // 图标 - }, - children: [ - { - path: '/exampleTable', - name: 'ExampleTable', - component: () => import('@/views/example/tableExample'), - meta: { title: '表格示例', icon: '' } - } - ] -}] diff --git a/src/router/modules/rule.js b/src/router/modules/rule.js deleted file mode 100644 index 50d0992..0000000 --- a/src/router/modules/rule.js +++ /dev/null @@ -1,23 +0,0 @@ -/* Layout */ -import Layout from '@/layout/Layout' -export const ruleRouters = [ - { - path: 'rule', - component: Layout, - redirect: '/rule', - name: 'Rule', - meta: { - title: '规章制度', - icon: 'icon-config', // 图标 - permission: ['/rule']// 权限名称 - }, - children: [ - { - path: '/rule', - name: 'Rule', - component: () => import('@/views/rule/listRule'), - meta: { title: '规章制度', icon: 'function', permission: ['/rule'] } - } - ] - } -] diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue deleted file mode 100644 index c5cc0e7..0000000 --- a/src/views/dashboard/index.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - - - diff --git a/src/views/example/tableExample.vue b/src/views/example/tableExample.vue deleted file mode 100644 index 2d54fad..0000000 --- a/src/views/example/tableExample.vue +++ /dev/null @@ -1,196 +0,0 @@ - - - - - diff --git a/src/views/order/editOrder.vue b/src/views/order/editOrder.vue deleted file mode 100644 index 4a5fd8a..0000000 --- a/src/views/order/editOrder.vue +++ /dev/null @@ -1,319 +0,0 @@ - - - - - diff --git a/src/views/overview/lampTabPane.vue b/src/views/overview/lampTabPane.vue deleted file mode 100644 index a29618c..0000000 --- a/src/views/overview/lampTabPane.vue +++ /dev/null @@ -1,197 +0,0 @@ - - - - - diff --git a/src/views/rule/components/setThresh.vue b/src/views/rule/components/setThresh.vue deleted file mode 100644 index a0ee404..0000000 --- a/src/views/rule/components/setThresh.vue +++ /dev/null @@ -1,139 +0,0 @@ - - - - - diff --git a/src/views/rule/listRule.vue b/src/views/rule/listRule.vue deleted file mode 100644 index a19b9e4..0000000 --- a/src/views/rule/listRule.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - - - diff --git a/src/views/statistics/barChart.vue b/src/views/statistics/barChart.vue deleted file mode 100644 index 34910e2..0000000 --- a/src/views/statistics/barChart.vue +++ /dev/null @@ -1,64 +0,0 @@ - - - - - diff --git a/src/views/statistics/maintainStatistics.vue b/src/views/statistics/maintainStatistics.vue index af882a8..3066bb9 100644 --- a/src/views/statistics/maintainStatistics.vue +++ b/src/views/statistics/maintainStatistics.vue @@ -37,12 +37,9 @@ - - diff --git a/src/views/statistics/statisticsChart.vue b/src/views/statistics/statisticsChart.vue deleted file mode 100644 index 2c48fe0..0000000 --- a/src/views/statistics/statisticsChart.vue +++ /dev/null @@ -1,87 +0,0 @@ - - - - -