diff --git a/api-test/frontend/src/business/automation/schedule/ScheduleNotification.vue b/api-test/frontend/src/business/automation/schedule/ScheduleNotification.vue index c1d3d4f185..2c77757fa2 100644 --- a/api-test/frontend/src/business/automation/schedule/ScheduleNotification.vue +++ b/api-test/frontend/src/business/automation/schedule/ScheduleNotification.vue @@ -28,7 +28,7 @@ import {hasLicense} from "metersphere-frontend/src/utils/permission"; import MsCodeEdit from "@/business/definition/components/MsCodeEdit"; import MsTipButton from "metersphere-frontend/src/components/MsTipButton"; -import NotificationTable from "@/business/commons/NotificationTable"; +import NotificationTable from "metersphere-frontend/src/components/notification/NotificationTable"; import {getMessageById} from "@/api/notice"; export default { diff --git a/api-test/frontend/src/business/commons/NotificationTable.vue b/api-test/frontend/src/business/commons/NotificationTable.vue deleted file mode 100644 index 075d96b806..0000000000 --- a/api-test/frontend/src/business/commons/NotificationTable.vue +++ /dev/null @@ -1,215 +0,0 @@ - - - - - diff --git a/api-test/frontend/src/business/commons/ScheduleNotification.vue b/api-test/frontend/src/business/commons/ScheduleNotification.vue index 08301fa528..e11067680b 100644 --- a/api-test/frontend/src/business/commons/ScheduleNotification.vue +++ b/api-test/frontend/src/business/commons/ScheduleNotification.vue @@ -28,7 +28,7 @@ import {hasLicense} from "metersphere-frontend/src/utils/permission"; import MsCodeEdit from "@/business/definition/components/MsCodeEdit"; import MsTipButton from "metersphere-frontend/src/components/MsTipButton"; -import NotificationTable from "./NotificationTable"; +import NotificationTable from "metersphere-frontend/src/components/notification/NotificationTable"; import {getMessageById} from "../../api/notice"; diff --git a/api-test/frontend/src/business/definition/components/import/SwaggerTaskNotification.vue b/api-test/frontend/src/business/definition/components/import/SwaggerTaskNotification.vue index 03944abf8f..4bae9ccfea 100644 --- a/api-test/frontend/src/business/definition/components/import/SwaggerTaskNotification.vue +++ b/api-test/frontend/src/business/definition/components/import/SwaggerTaskNotification.vue @@ -28,7 +28,7 @@ import {hasLicense} from "metersphere-frontend/src/utils/permission"; import MsCodeEdit from "metersphere-frontend/src/components/MsCodeEdit"; import MsTipButton from "metersphere-frontend/src/components/MsTipButton"; -import NotificationTable from "@/business/commons/NotificationTable"; +import NotificationTable from "metersphere-frontend/src/components/notification/NotificationTable"; import {getMessageById} from "@/api/notice"; export default { diff --git a/framework/sdk-parent/frontend/src/api/notification.js b/framework/sdk-parent/frontend/src/api/notification.js index de6fae5114..0a65bdba0e 100644 --- a/framework/sdk-parent/frontend/src/api/notification.js +++ b/framework/sdk-parent/frontend/src/api/notification.js @@ -38,6 +38,10 @@ export function saveNoticeTask(task) { return post('/notice/save/message/task', task); } +export function updateNoticeTask(task) { + return post('/notice/update/message/task', task); +} + export function deleteNoticeTask(taskId) { return get(`/notice/delete/message/${taskId}`); } diff --git a/framework/sdk-parent/frontend/src/components/notification/NotificationTable.vue b/framework/sdk-parent/frontend/src/components/notification/NotificationTable.vue index a72efec288..d3681c3fed 100644 --- a/framework/sdk-parent/frontend/src/components/notification/NotificationTable.vue +++ b/framework/sdk-parent/frontend/src/components/notification/NotificationTable.vue @@ -122,7 +122,7 @@