diff --git a/src/api/scene.ts b/src/api/scene.ts index 0956614..9bfacf1 100644 --- a/src/api/scene.ts +++ b/src/api/scene.ts @@ -43,3 +43,17 @@ method: 'get', }) } +// 开始作业 +export function startApi(id: string) { + return request({ + url: `/site/start?projectId=${id}`, + method: 'post', + }) +} +// 完成作业 +export function endApi(id: string) { + return request({ + url: `/site/finish?projectId=${id}`, + method: 'post', + }) +} diff --git a/src/api/scene.ts b/src/api/scene.ts index 0956614..9bfacf1 100644 --- a/src/api/scene.ts +++ b/src/api/scene.ts @@ -43,3 +43,17 @@ method: 'get', }) } +// 开始作业 +export function startApi(id: string) { + return request({ + url: `/site/start?projectId=${id}`, + method: 'post', + }) +} +// 完成作业 +export function endApi(id: string) { + return request({ + url: `/site/finish?projectId=${id}`, + method: 'post', + }) +} diff --git a/src/views/alarm/index.vue b/src/views/alarm/index.vue index 2e29e98..f6d83d1 100644 --- a/src/views/alarm/index.vue +++ b/src/views/alarm/index.vue @@ -73,7 +73,7 @@ 4: '张三', 5: '13700000000', 6: '2023-01-01', - 7:'未处理', + 7: '未处理', }, { 1: '作业二', @@ -82,7 +82,7 @@ 4: '李四', 5: '13700000000', 6: '2023-01-01', - 7:'已处理', + 7: '已处理', }, ] total.value = list.value.length @@ -131,37 +131,43 @@ - + - + - + - + - +