+
+
+ 安全树设备-{{ info?.deviceCode }}
+
+
+ x
+
-
- x
+
+ 位置: {{ info?.location }}
+
+
+ 时间: {{ info?.time }}
+
+
+ 甲烷浓度: {{ info?.gasValue }}
-
- 位置: {{ info?.location }}
+
+
+
+ {{ info?.workerName }}-{{ info?.hatCode }}
+
+
+ x
+
+
+
+
+
+ 位置: {{ info?.location }}
+
+
+ 时间: {{ info?.time }}
+
+
+
+ 心率: {{ info?.heartRate }}
+
+
+ 血氧: {{ info?.bloodOxygen }}
+
+
+
+
+ 一氧化碳: {{ info?.co }}
+
+
+ 甲烷: {{ info?.gas }}
+
+
+
+
+ 硫化氢: {{ info?.h2s }}
+
+
+ 氧气: {{ info?.o2 }}
+
+
+
+
+
+
+
+

+
视频通话
+
+
+

+
语音对讲
+
+
-
- 时间: {{ info?.time }}
-
-
- 甲烷浓度: {{ info?.gasValue }}
-
+
-
diff --git a/src/api/alarm.ts b/src/api/alarm.ts
index 6a39aeb..ed3f6b1 100644
--- a/src/api/alarm.ts
+++ b/src/api/alarm.ts
@@ -12,3 +12,18 @@
params,
})
}
+// 消除报警
+export function alarmCancel(alarmId: string) {
+ return request({
+ url: `${prefix}/cancel?alarmId=${alarmId}`,
+ method: 'post',
+ })
+}
+// 删除报警
+export function alarmDel(data: object) {
+ return request({
+ url: `${prefix}/delete`,
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/api/system/dept.ts b/src/api/system/dept.ts
index befae46..363a960 100644
--- a/src/api/system/dept.ts
+++ b/src/api/system/dept.ts
@@ -41,7 +41,7 @@
// 添加组织机构
export function addDept(data: object) {
return request({
- url: '/sys/extend/dept/add',
+ url: '/sys/dept/add',
method: 'post',
data,
})
@@ -49,7 +49,7 @@
// 修改组织机构
export function updateDept(data: object) {
return request({
- url: '/sys/extend/dept/update',
+ url: '/sys/dept/update',
method: 'post',
data,
})
@@ -57,7 +57,7 @@
// 删除组织机构
export function delDept(id: string) {
return request({
- url: '/sys/extend/dept/delete',
+ url: '/sys/dept/delete',
method: 'post',
data: {
id,
diff --git a/src/components.d.ts b/src/components.d.ts
index 90f2dde..80f9f2c 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -7,8 +7,6 @@
declare module '@vue/runtime-core' {
export interface GlobalComponents {
- AddNode: typeof import('./components/workFlow/addNode.vue')['default']
- AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default']
AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default']
AppContainer: typeof import('./components/AppContainer/index.vue')['default']
ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default']
@@ -41,8 +39,6 @@
ImageUpload: typeof import('./components/ImageUpload/index.vue')['default']
LineChart: typeof import('./components/Echart/LineChart.vue')['default']
MeasureRecords: typeof import('./components/Sample/measureRecords.vue')['default']
- NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default']
- NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default']
NormalTable: typeof import('./components/NormalTable/index.vue')['default']
PageHeader: typeof import('./components/PageHeader/index.vue')['default']
PageMain: typeof import('./components/PageMain/index.vue')['default']
diff --git a/src/components/workFlow/addNode.vue b/src/components/workFlow/addNode.vue
deleted file mode 100644
index b773386..0000000
--- a/src/components/workFlow/addNode.vue
+++ /dev/null
@@ -1,243 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/src/components/workFlow/addNodeBan.vue b/src/components/workFlow/addNodeBan.vue
deleted file mode 100644
index 95a601f..0000000
--- a/src/components/workFlow/addNodeBan.vue
+++ /dev/null
@@ -1,235 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/src/components/workFlow/nodeWrap.vue b/src/components/workFlow/nodeWrap.vue
deleted file mode 100644
index 92b26e4..0000000
--- a/src/components/workFlow/nodeWrap.vue
+++ /dev/null
@@ -1,367 +0,0 @@
-
-
-
-
-
-
-
- {{ nodeConfig.nodeName }}
-
- {{ nodeConfig.type === 1 ? '' : '' }}
-
- {{ nodeConfig.nodeName }}
-
-
-
-
-
- 请选择{{ defaultText }}
- {{ showText }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <
-
-
-
- {{ item.nodeName }}
- 优先级{{ item.priorityLevel }}
-
-
-
- >
-
-
- {{ $func.conditionStr(nodeConfig, index) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/components/workFlow/nodeWrapBan.vue b/src/components/workFlow/nodeWrapBan.vue
deleted file mode 100644
index 4a3affb..0000000
--- a/src/components/workFlow/nodeWrapBan.vue
+++ /dev/null
@@ -1,156 +0,0 @@
-
-
-
-
-
-
- {{ nodeConfig.nodeName }}
-
- {{ nodeConfig.type === 1 ? '' : '' }}
-
- {{ nodeConfig.nodeName }}
-
-
-
-
- 请选择{{ defaultText }}
- {{ showText }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.nodeName }}
- 优先级{{ item.priorityLevel }}
-
-
- {{ $func.conditionStr(nodeConfig, index) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/alarm/index.vue b/src/views/alarm/index.vue
index 923029d..88eceb5 100644
--- a/src/views/alarm/index.vue
+++ b/src/views/alarm/index.vue
@@ -6,7 +6,7 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/dashboard/map/deviceDetail.vue b/src/views/dashboard/map/deviceDetail.vue
index 3e75c45..05941c4 100644
--- a/src/views/dashboard/map/deviceDetail.vue
+++ b/src/views/dashboard/map/deviceDetail.vue
@@ -4,52 +4,154 @@
Date: 2023-05-17
-->
-
-
-
- 安全树设备-{{ info?.deviceCode }}
+
+
+
+
+ 安全树设备-{{ info?.deviceCode }}
+
+
+ x
+
-
- x
+
+ 位置: {{ info?.location }}
+
+
+ 时间: {{ info?.time }}
+
+
+ 甲烷浓度: {{ info?.gasValue }}
-
- 位置: {{ info?.location }}
+
+
+
+ {{ info?.workerName }}-{{ info?.hatCode }}
+
+
+ x
+
+
+
+
+
+ 位置: {{ info?.location }}
+
+
+ 时间: {{ info?.time }}
+
+
+
+ 心率: {{ info?.heartRate }}
+
+
+ 血氧: {{ info?.bloodOxygen }}
+
+
+
+
+ 一氧化碳: {{ info?.co }}
+
+
+ 甲烷: {{ info?.gas }}
+
+
+
+
+ 硫化氢: {{ info?.h2s }}
+
+
+ 氧气: {{ info?.o2 }}
+
+
+
+
+
+
+
+

+
视频通话
+
+
+

+
语音对讲
+
+
-
- 时间: {{ info?.time }}
-
-
- 甲烷浓度: {{ info?.gasValue }}
-
+
-
diff --git a/src/views/scene/components/personListDialog.vue b/src/views/scene/components/personListDialog.vue
index c01e138..cc50471 100644
--- a/src/views/scene/components/personListDialog.vue
+++ b/src/views/scene/components/personListDialog.vue
@@ -22,6 +22,7 @@
// logType: '业务日志',
offset: 1,
limit: 5,
+ workerType: '1',
})
const loadingTable = ref
(false)
const list = ref([]) // 表格数据
@@ -43,6 +44,7 @@
getPersonListPage(listQuery.value).then((res) => {
if (res.code === 200) {
list.value = res.data.rows
+ console.log()
total.value = res.data.rows.length
}
})
@@ -123,8 +125,10 @@
-
+
diff --git a/src/api/alarm.ts b/src/api/alarm.ts
index 6a39aeb..ed3f6b1 100644
--- a/src/api/alarm.ts
+++ b/src/api/alarm.ts
@@ -12,3 +12,18 @@
params,
})
}
+// 消除报警
+export function alarmCancel(alarmId: string) {
+ return request({
+ url: `${prefix}/cancel?alarmId=${alarmId}`,
+ method: 'post',
+ })
+}
+// 删除报警
+export function alarmDel(data: object) {
+ return request({
+ url: `${prefix}/delete`,
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/api/system/dept.ts b/src/api/system/dept.ts
index befae46..363a960 100644
--- a/src/api/system/dept.ts
+++ b/src/api/system/dept.ts
@@ -41,7 +41,7 @@
// 添加组织机构
export function addDept(data: object) {
return request({
- url: '/sys/extend/dept/add',
+ url: '/sys/dept/add',
method: 'post',
data,
})
@@ -49,7 +49,7 @@
// 修改组织机构
export function updateDept(data: object) {
return request({
- url: '/sys/extend/dept/update',
+ url: '/sys/dept/update',
method: 'post',
data,
})
@@ -57,7 +57,7 @@
// 删除组织机构
export function delDept(id: string) {
return request({
- url: '/sys/extend/dept/delete',
+ url: '/sys/dept/delete',
method: 'post',
data: {
id,
diff --git a/src/components.d.ts b/src/components.d.ts
index 90f2dde..80f9f2c 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -7,8 +7,6 @@
declare module '@vue/runtime-core' {
export interface GlobalComponents {
- AddNode: typeof import('./components/workFlow/addNode.vue')['default']
- AddNodeBan: typeof import('./components/workFlow/addNodeBan.vue')['default']
AddressSelect: typeof import('./components/AddressSelect/AddressSelect.vue')['default']
AppContainer: typeof import('./components/AppContainer/index.vue')['default']
ApprovalDialog: typeof import('./components/Approval/ApprovalDialog.vue')['default']
@@ -41,8 +39,6 @@
ImageUpload: typeof import('./components/ImageUpload/index.vue')['default']
LineChart: typeof import('./components/Echart/LineChart.vue')['default']
MeasureRecords: typeof import('./components/Sample/measureRecords.vue')['default']
- NodeWrap: typeof import('./components/workFlow/nodeWrap.vue')['default']
- NodeWrapBan: typeof import('./components/workFlow/nodeWrapBan.vue')['default']
NormalTable: typeof import('./components/NormalTable/index.vue')['default']
PageHeader: typeof import('./components/PageHeader/index.vue')['default']
PageMain: typeof import('./components/PageMain/index.vue')['default']
diff --git a/src/components/workFlow/addNode.vue b/src/components/workFlow/addNode.vue
deleted file mode 100644
index b773386..0000000
--- a/src/components/workFlow/addNode.vue
+++ /dev/null
@@ -1,243 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/src/components/workFlow/addNodeBan.vue b/src/components/workFlow/addNodeBan.vue
deleted file mode 100644
index 95a601f..0000000
--- a/src/components/workFlow/addNodeBan.vue
+++ /dev/null
@@ -1,235 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/src/components/workFlow/nodeWrap.vue b/src/components/workFlow/nodeWrap.vue
deleted file mode 100644
index 92b26e4..0000000
--- a/src/components/workFlow/nodeWrap.vue
+++ /dev/null
@@ -1,367 +0,0 @@
-
-
-
-
-
-
-
- {{ nodeConfig.nodeName }}
-
- {{ nodeConfig.type === 1 ? '' : '' }}
-
- {{ nodeConfig.nodeName }}
-
-
-
-
-
- 请选择{{ defaultText }}
- {{ showText }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <
-
-
-
- {{ item.nodeName }}
- 优先级{{ item.priorityLevel }}
-
-
-
- >
-
-
- {{ $func.conditionStr(nodeConfig, index) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/components/workFlow/nodeWrapBan.vue b/src/components/workFlow/nodeWrapBan.vue
deleted file mode 100644
index 4a3affb..0000000
--- a/src/components/workFlow/nodeWrapBan.vue
+++ /dev/null
@@ -1,156 +0,0 @@
-
-
-
-
-
-
- {{ nodeConfig.nodeName }}
-
- {{ nodeConfig.type === 1 ? '' : '' }}
-
- {{ nodeConfig.nodeName }}
-
-
-
-
- 请选择{{ defaultText }}
- {{ showText }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.nodeName }}
- 优先级{{ item.priorityLevel }}
-
-
- {{ $func.conditionStr(nodeConfig, index) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/alarm/index.vue b/src/views/alarm/index.vue
index 923029d..88eceb5 100644
--- a/src/views/alarm/index.vue
+++ b/src/views/alarm/index.vue
@@ -6,7 +6,7 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/dashboard/map/deviceDetail.vue b/src/views/dashboard/map/deviceDetail.vue
index 3e75c45..05941c4 100644
--- a/src/views/dashboard/map/deviceDetail.vue
+++ b/src/views/dashboard/map/deviceDetail.vue
@@ -4,52 +4,154 @@
Date: 2023-05-17
-->
-
-
-
- 安全树设备-{{ info?.deviceCode }}
+
+
+
+
+ 安全树设备-{{ info?.deviceCode }}
+
+
+ x
+
-
- x
+
+ 位置: {{ info?.location }}
+
+
+ 时间: {{ info?.time }}
+
+
+ 甲烷浓度: {{ info?.gasValue }}
-
- 位置: {{ info?.location }}
+
+
+
+ {{ info?.workerName }}-{{ info?.hatCode }}
+
+
+ x
+
+
+
+
+
+ 位置: {{ info?.location }}
+
+
+ 时间: {{ info?.time }}
+
+
+
+ 心率: {{ info?.heartRate }}
+
+
+ 血氧: {{ info?.bloodOxygen }}
+
+
+
+
+ 一氧化碳: {{ info?.co }}
+
+
+ 甲烷: {{ info?.gas }}
+
+
+
+
+ 硫化氢: {{ info?.h2s }}
+
+
+ 氧气: {{ info?.o2 }}
+
+
+
+
+
+
+
+

+
视频通话
+
+
+

+
语音对讲
+
+
-
- 时间: {{ info?.time }}
-
-
- 甲烷浓度: {{ info?.gasValue }}
-
+
-
diff --git a/src/views/scene/components/personListDialog.vue b/src/views/scene/components/personListDialog.vue
index c01e138..cc50471 100644
--- a/src/views/scene/components/personListDialog.vue
+++ b/src/views/scene/components/personListDialog.vue
@@ -22,6 +22,7 @@
// logType: '业务日志',
offset: 1,
limit: 5,
+ workerType: '1',
})
const loadingTable = ref
(false)
const list = ref([]) // 表格数据
@@ -43,6 +44,7 @@
getPersonListPage(listQuery.value).then((res) => {
if (res.code === 200) {
list.value = res.data.rows
+ console.log()
total.value = res.data.rows.length
}
})
@@ -123,8 +125,10 @@
-
+
diff --git a/src/views/scene/sceneEdit.vue b/src/views/scene/sceneEdit.vue
index bbd31bb..2e3a718 100644
--- a/src/views/scene/sceneEdit.vue
+++ b/src/views/scene/sceneEdit.vue
@@ -25,12 +25,12 @@
}) // 表单
const title = ref('')
const rules = ref({
- workTitle: [{ required: true, message: '作业名称不能为空', trigger: 'blur' }],
- workRoad: [{ required: true, message: '所属道路不能为空', trigger: 'blur' }],
- workSiteDesc: [{ required: true, message: '作业描述不能为空', trigger: 'blur' }],
- workPersonName: [{ required: true, message: '责任人不能为空', trigger: 'blur' }],
- deviceList: [{ required: true, message: '安全树列表不能为空', trigger: 'blur' }],
- workerList: [{ required: true, message: '人员列表不能为空', trigger: 'blur' }],
+ workTitle: [{ required: true, message: '作业名称不能为空', trigger: ['blur', 'change'] }],
+ workRoad: [{ required: true, message: '所属道路不能为空', trigger: ['blur', 'change'] }],
+ workSiteDesc: [{ required: true, message: '作业描述不能为空', trigger: ['blur', 'change'] }],
+ workPersonName: [{ required: true, message: '责任人不能为空', trigger: ['blur', 'change'] }],
+ deviceList: [{ required: true, message: '安全树列表不能为空', trigger: ['blur', 'change'] }],
+ workerList: [{ required: true, message: '人员列表不能为空', trigger: ['blur', 'change'] }],
}) // 表单验证规则
// 人员列表弹窗组件
const selectPersonRef = ref()