diff --git a/src/router/routes.ts b/src/router/routes.ts index c3e6fc3..5b7d386 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -421,6 +421,20 @@ export const constantRoutes: Array = [ } } ] + }, + { + path: '/setting/notice', + component: LAYOUT, + children: [ + { + path: 'edit', + component: () => import('@/views/message/notice/edit.vue'), + meta: { + title: '设置', + activeMenu: '/setting/message/notice' + } + } + ] } ] diff --git a/src/views/message/notice/edit.vue b/src/views/message/notice/edit.vue index 0bc0b58..4c873e6 100644 --- a/src/views/message/notice/edit.vue +++ b/src/views/message/notice/edit.vue @@ -3,18 +3,12 @@ - +
通知名称
- {{ formData.name }} - {{ formData.type }} - {{ formData.remarks }} + {{ formData.name }} + {{ formData.type }} + {{ formData.remarks }}
短信通知
@@ -26,20 +20,13 @@
- +
- +
@@ -103,7 +90,7 @@ const getDetails = async () => { const data = await noticeDetail({ id: route.query.id }) - Object.keys(data).forEach((key) => { + Object.keys(data).forEach(key => { //@ts-ignore formData[key] = data[key] }) @@ -114,7 +101,7 @@ const handleSave = async () => { await formRef.value?.validate() await setNoticeConfig(formData) feedback.msgSuccess('操作成功') - removeTab() + // removeTab() router.back() } diff --git a/src/views/message/notice/index.vue b/src/views/message/notice/index.vue index 86c07b0..b09b676 100644 --- a/src/views/message/notice/index.vue +++ b/src/views/message/notice/index.vue @@ -1,22 +1,11 @@