diff --git a/src/api/AlertMock.ts b/src/api/AlertMock.ts index 2ce3dae..2d6619f 100644 --- a/src/api/AlertMock.ts +++ b/src/api/AlertMock.ts @@ -7,10 +7,6 @@ export function mockAlertSet(data: { lineId: number; alertType: string }) { return api.post(`${alertUriBase}/set`, data); } -export function mockAlertClear() { - return api.post(`${alertUriBase}/clear`); -} - export class PagingQueryParams extends PageQueryDto { alertType?: string; lineId?: number; diff --git a/src/api/UserApi.ts b/src/api/UserApi.ts index 085fe3f..2773cbd 100644 --- a/src/api/UserApi.ts +++ b/src/api/UserApi.ts @@ -71,7 +71,3 @@ export async function pageQuery( }); return response.data; } - -export function distributeRole(query: { userId: number; roleIds: number[] }) { - return api.post('/api/role/distribute', query); -} diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index b168773..f34b534 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -26,18 +26,8 @@ color="info" label="故障设置" class="q-mr-sm" - > - - - - 设置模拟故障 - - - 取消模拟故障 - - - - + @click="alertSetShow = true" + />
- - - - - - -
修改用户角色
-
- - - - - - - - - - - - - -
-