diff --git a/src/api/common.js b/src/api/common.js
index 87c582b..7804714 100644
--- a/src/api/common.js
+++ b/src/api/common.js
@@ -2,10 +2,14 @@
* 常用接口
*/
import request from '@/utils/request'
+import Vue from 'vue'
+
// 模板下载
export function downloadTemplate(fileName) {
+ const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值
+ const lampPath = basetConfig.lampBasePath
return request({
- url: 'template/download',
+ url: lampPath + 'template/download',
method: 'get',
params: {
filename: fileName
@@ -19,7 +23,7 @@
const param = new FormData()
param.append('file', fileobj.file)
return request({
- url: 'imageUpload',
+ url: 'fileUpload',
method: 'post',
headers: { 'Content-Type': 'multipart/form-data' },
data: param
diff --git a/src/api/common.js b/src/api/common.js
index 87c582b..7804714 100644
--- a/src/api/common.js
+++ b/src/api/common.js
@@ -2,10 +2,14 @@
* 常用接口
*/
import request from '@/utils/request'
+import Vue from 'vue'
+
// 模板下载
export function downloadTemplate(fileName) {
+ const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值
+ const lampPath = basetConfig.lampBasePath
return request({
- url: 'template/download',
+ url: lampPath + 'template/download',
method: 'get',
params: {
filename: fileName
@@ -19,7 +23,7 @@
const param = new FormData()
param.append('file', fileobj.file)
return request({
- url: 'imageUpload',
+ url: 'fileUpload',
method: 'post',
headers: { 'Content-Type': 'multipart/form-data' },
data: param
diff --git a/src/api/system/order.js b/src/api/system/order.js
index 7007c50..8f1124f 100644
--- a/src/api/system/order.js
+++ b/src/api/system/order.js
@@ -32,6 +32,12 @@
}
})
}
+export function getPersons() {
+ return request({
+ url: 'maintain/getUsers',
+ method: 'get'
+ })
+}
// 批量导出报警
export function batchExportAlarm(params) {
return request({
diff --git a/src/api/common.js b/src/api/common.js
index 87c582b..7804714 100644
--- a/src/api/common.js
+++ b/src/api/common.js
@@ -2,10 +2,14 @@
* 常用接口
*/
import request from '@/utils/request'
+import Vue from 'vue'
+
// 模板下载
export function downloadTemplate(fileName) {
+ const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值
+ const lampPath = basetConfig.lampBasePath
return request({
- url: 'template/download',
+ url: lampPath + 'template/download',
method: 'get',
params: {
filename: fileName
@@ -19,7 +23,7 @@
const param = new FormData()
param.append('file', fileobj.file)
return request({
- url: 'imageUpload',
+ url: 'fileUpload',
method: 'post',
headers: { 'Content-Type': 'multipart/form-data' },
data: param
diff --git a/src/api/system/order.js b/src/api/system/order.js
index 7007c50..8f1124f 100644
--- a/src/api/system/order.js
+++ b/src/api/system/order.js
@@ -32,6 +32,12 @@
}
})
}
+export function getPersons() {
+ return request({
+ url: 'maintain/getUsers',
+ method: 'get'
+ })
+}
// 批量导出报警
export function batchExportAlarm(params) {
return request({
diff --git a/src/api/system/overview.js b/src/api/system/overview.js
new file mode 100644
index 0000000..bca50cc
--- /dev/null
+++ b/src/api/system/overview.js
@@ -0,0 +1,109 @@
+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/common.js b/src/api/common.js
index 87c582b..7804714 100644
--- a/src/api/common.js
+++ b/src/api/common.js
@@ -2,10 +2,14 @@
* 常用接口
*/
import request from '@/utils/request'
+import Vue from 'vue'
+
// 模板下载
export function downloadTemplate(fileName) {
+ const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值
+ const lampPath = basetConfig.lampBasePath
return request({
- url: 'template/download',
+ url: lampPath + 'template/download',
method: 'get',
params: {
filename: fileName
@@ -19,7 +23,7 @@
const param = new FormData()
param.append('file', fileobj.file)
return request({
- url: 'imageUpload',
+ url: 'fileUpload',
method: 'post',
headers: { 'Content-Type': 'multipart/form-data' },
data: param
diff --git a/src/api/system/order.js b/src/api/system/order.js
index 7007c50..8f1124f 100644
--- a/src/api/system/order.js
+++ b/src/api/system/order.js
@@ -32,6 +32,12 @@
}
})
}
+export function getPersons() {
+ return request({
+ url: 'maintain/getUsers',
+ method: 'get'
+ })
+}
// 批量导出报警
export function batchExportAlarm(params) {
return request({
diff --git a/src/api/system/overview.js b/src/api/system/overview.js
new file mode 100644
index 0000000..bca50cc
--- /dev/null
+++ b/src/api/system/overview.js
@@ -0,0 +1,109 @@
+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/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue
index 8ded2cd..7807cac 100644
--- a/src/components/DownloadTemplate/index.vue
+++ b/src/components/DownloadTemplate/index.vue
@@ -47,8 +47,8 @@
diff --git a/src/api/common.js b/src/api/common.js
index 87c582b..7804714 100644
--- a/src/api/common.js
+++ b/src/api/common.js
@@ -2,10 +2,14 @@
* 常用接口
*/
import request from '@/utils/request'
+import Vue from 'vue'
+
// 模板下载
export function downloadTemplate(fileName) {
+ const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值
+ const lampPath = basetConfig.lampBasePath
return request({
- url: 'template/download',
+ url: lampPath + 'template/download',
method: 'get',
params: {
filename: fileName
@@ -19,7 +23,7 @@
const param = new FormData()
param.append('file', fileobj.file)
return request({
- url: 'imageUpload',
+ url: 'fileUpload',
method: 'post',
headers: { 'Content-Type': 'multipart/form-data' },
data: param
diff --git a/src/api/system/order.js b/src/api/system/order.js
index 7007c50..8f1124f 100644
--- a/src/api/system/order.js
+++ b/src/api/system/order.js
@@ -32,6 +32,12 @@
}
})
}
+export function getPersons() {
+ return request({
+ url: 'maintain/getUsers',
+ method: 'get'
+ })
+}
// 批量导出报警
export function batchExportAlarm(params) {
return request({
diff --git a/src/api/system/overview.js b/src/api/system/overview.js
new file mode 100644
index 0000000..bca50cc
--- /dev/null
+++ b/src/api/system/overview.js
@@ -0,0 +1,109 @@
+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/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue
index 8ded2cd..7807cac 100644
--- a/src/components/DownloadTemplate/index.vue
+++ b/src/components/DownloadTemplate/index.vue
@@ -47,8 +47,8 @@
diff --git a/src/utils/baseConfig.js b/src/utils/baseConfig.js
index 1f4fa38..999593e 100644
--- a/src/utils/baseConfig.js
+++ b/src/utils/baseConfig.js
@@ -1,5 +1,5 @@
const project = {
- title: '后台管理系统前端基础框架'
+ title: '路桥养护子系统'
}
export function getProject() {
return project
diff --git a/src/api/common.js b/src/api/common.js
index 87c582b..7804714 100644
--- a/src/api/common.js
+++ b/src/api/common.js
@@ -2,10 +2,14 @@
* 常用接口
*/
import request from '@/utils/request'
+import Vue from 'vue'
+
// 模板下载
export function downloadTemplate(fileName) {
+ const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值
+ const lampPath = basetConfig.lampBasePath
return request({
- url: 'template/download',
+ url: lampPath + 'template/download',
method: 'get',
params: {
filename: fileName
@@ -19,7 +23,7 @@
const param = new FormData()
param.append('file', fileobj.file)
return request({
- url: 'imageUpload',
+ url: 'fileUpload',
method: 'post',
headers: { 'Content-Type': 'multipart/form-data' },
data: param
diff --git a/src/api/system/order.js b/src/api/system/order.js
index 7007c50..8f1124f 100644
--- a/src/api/system/order.js
+++ b/src/api/system/order.js
@@ -32,6 +32,12 @@
}
})
}
+export function getPersons() {
+ return request({
+ url: 'maintain/getUsers',
+ method: 'get'
+ })
+}
// 批量导出报警
export function batchExportAlarm(params) {
return request({
diff --git a/src/api/system/overview.js b/src/api/system/overview.js
new file mode 100644
index 0000000..bca50cc
--- /dev/null
+++ b/src/api/system/overview.js
@@ -0,0 +1,109 @@
+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/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue
index 8ded2cd..7807cac 100644
--- a/src/components/DownloadTemplate/index.vue
+++ b/src/components/DownloadTemplate/index.vue
@@ -47,8 +47,8 @@
diff --git a/src/utils/baseConfig.js b/src/utils/baseConfig.js
index 1f4fa38..999593e 100644
--- a/src/utils/baseConfig.js
+++ b/src/utils/baseConfig.js
@@ -1,5 +1,5 @@
const project = {
- title: '后台管理系统前端基础框架'
+ title: '路桥养护子系统'
}
export function getProject() {
return project
diff --git a/src/views/order/editOrder.vue b/src/views/order/editOrder.vue
index f5e5fd7..4a5fd8a 100644
--- a/src/views/order/editOrder.vue
+++ b/src/views/order/editOrder.vue
@@ -16,17 +16,17 @@
- 桥梁养护
- 道路养护
+ 桥梁养护
+ 道路养护
-
+
永胜桥
黄洲桥
光明桥
-
+
备选项
备选项
@@ -58,15 +58,22 @@
+ :value="item.id"/>
-
+
@@ -113,7 +120,7 @@
diff --git a/src/utils/baseConfig.js b/src/utils/baseConfig.js
index 1f4fa38..999593e 100644
--- a/src/utils/baseConfig.js
+++ b/src/utils/baseConfig.js
@@ -1,5 +1,5 @@
const project = {
- title: '后台管理系统前端基础框架'
+ title: '路桥养护子系统'
}
export function getProject() {
return project
diff --git a/src/views/order/editOrder.vue b/src/views/order/editOrder.vue
index f5e5fd7..4a5fd8a 100644
--- a/src/views/order/editOrder.vue
+++ b/src/views/order/editOrder.vue
@@ -16,17 +16,17 @@
- 桥梁养护
- 道路养护
+ 桥梁养护
+ 道路养护
-
+
永胜桥
黄洲桥
光明桥
-
+
备选项
备选项
@@ -58,15 +58,22 @@
+ :value="item.id"/>
-
+
@@ -113,7 +120,7 @@
diff --git a/src/utils/baseConfig.js b/src/utils/baseConfig.js
index 1f4fa38..999593e 100644
--- a/src/utils/baseConfig.js
+++ b/src/utils/baseConfig.js
@@ -1,5 +1,5 @@
const project = {
- title: '后台管理系统前端基础框架'
+ title: '路桥养护子系统'
}
export function getProject() {
return project
diff --git a/src/views/order/editOrder.vue b/src/views/order/editOrder.vue
index f5e5fd7..4a5fd8a 100644
--- a/src/views/order/editOrder.vue
+++ b/src/views/order/editOrder.vue
@@ -16,17 +16,17 @@
- 桥梁养护
- 道路养护
+ 桥梁养护
+ 道路养护
-
+
永胜桥
黄洲桥
光明桥
-
+
备选项
备选项
@@ -58,15 +58,22 @@
+ :value="item.id"/>
-
+
@@ -113,7 +120,7 @@
+
+
diff --git a/src/api/common.js b/src/api/common.js
index 87c582b..7804714 100644
--- a/src/api/common.js
+++ b/src/api/common.js
@@ -2,10 +2,14 @@
* 常用接口
*/
import request from '@/utils/request'
+import Vue from 'vue'
+
// 模板下载
export function downloadTemplate(fileName) {
+ const basetConfig = Vue.prototype.baseConfig // 注意该行应放在export里面,否则获取不到值
+ const lampPath = basetConfig.lampBasePath
return request({
- url: 'template/download',
+ url: lampPath + 'template/download',
method: 'get',
params: {
filename: fileName
@@ -19,7 +23,7 @@
const param = new FormData()
param.append('file', fileobj.file)
return request({
- url: 'imageUpload',
+ url: 'fileUpload',
method: 'post',
headers: { 'Content-Type': 'multipart/form-data' },
data: param
diff --git a/src/api/system/order.js b/src/api/system/order.js
index 7007c50..8f1124f 100644
--- a/src/api/system/order.js
+++ b/src/api/system/order.js
@@ -32,6 +32,12 @@
}
})
}
+export function getPersons() {
+ return request({
+ url: 'maintain/getUsers',
+ method: 'get'
+ })
+}
// 批量导出报警
export function batchExportAlarm(params) {
return request({
diff --git a/src/api/system/overview.js b/src/api/system/overview.js
new file mode 100644
index 0000000..bca50cc
--- /dev/null
+++ b/src/api/system/overview.js
@@ -0,0 +1,109 @@
+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/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue
index 8ded2cd..7807cac 100644
--- a/src/components/DownloadTemplate/index.vue
+++ b/src/components/DownloadTemplate/index.vue
@@ -47,8 +47,8 @@
diff --git a/src/utils/baseConfig.js b/src/utils/baseConfig.js
index 1f4fa38..999593e 100644
--- a/src/utils/baseConfig.js
+++ b/src/utils/baseConfig.js
@@ -1,5 +1,5 @@
const project = {
- title: '后台管理系统前端基础框架'
+ title: '路桥养护子系统'
}
export function getProject() {
return project
diff --git a/src/views/order/editOrder.vue b/src/views/order/editOrder.vue
index f5e5fd7..4a5fd8a 100644
--- a/src/views/order/editOrder.vue
+++ b/src/views/order/editOrder.vue
@@ -16,17 +16,17 @@
- 桥梁养护
- 道路养护
+ 桥梁养护
+ 道路养护
-
+
永胜桥
黄洲桥
光明桥
-
+
备选项
备选项
@@ -58,15 +58,22 @@
+ :value="item.id"/>
-
+
@@ -113,7 +120,7 @@
+
+
diff --git a/static/project.config.json b/static/project.config.json
index 8fddbd3..e294b08 100644
--- a/static/project.config.json
+++ b/static/project.config.json
@@ -1,6 +1,6 @@
{
"title": "路桥养护子系统",
- "baseUrl": "http://111.198.10.15:11413/bridge/",
+ "baseUrl": "http://192.168.1.108:8083/",
"mainPage": "http://111.198.10.15:11404/dcms/",
"singleSys": true,
"city":"崇仁县",