diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts index 1271d43..113d712 100644 --- a/src/router/modules/system.ts +++ b/src/router/modules/system.ts @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts index 1271d43..113d712 100644 --- a/src/router/modules/system.ts +++ b/src/router/modules/system.ts @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue index 7b4c159..335a6fb 100644 --- a/src/views/system/area/listArea.vue +++ b/src/views/system/area/listArea.vue @@ -1,9 +1,12 @@ - - - - - - diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts index 1271d43..113d712 100644 --- a/src/router/modules/system.ts +++ b/src/router/modules/system.ts @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue index 7b4c159..335a6fb 100644 --- a/src/views/system/area/listArea.vue +++ b/src/views/system/area/listArea.vue @@ -1,9 +1,12 @@ - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index 4b7c501..7607022 100644 --- a/src/views/system/log/listErrorLog.vue +++ b/src/views/system/log/listErrorLog.vue @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts index 1271d43..113d712 100644 --- a/src/router/modules/system.ts +++ b/src/router/modules/system.ts @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue index 7b4c159..335a6fb 100644 --- a/src/views/system/area/listArea.vue +++ b/src/views/system/area/listArea.vue @@ -1,9 +1,12 @@ - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index 4b7c501..7607022 100644 --- a/src/views/system/log/listErrorLog.vue +++ b/src/views/system/log/listErrorLog.vue @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts index 1271d43..113d712 100644 --- a/src/router/modules/system.ts +++ b/src/router/modules/system.ts @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue index 7b4c159..335a6fb 100644 --- a/src/views/system/area/listArea.vue +++ b/src/views/system/area/listArea.vue @@ -1,9 +1,12 @@ - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index 4b7c501..7607022 100644 --- a/src/views/system/log/listErrorLog.vue +++ b/src/views/system/log/listErrorLog.vue @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + diff --git a/src/views/system/log/loginLog.vue b/src/views/system/log/loginLog.vue index 429e18c..22c649d 100644 --- a/src/views/system/log/loginLog.vue +++ b/src/views/system/log/loginLog.vue @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/.eslintrc b/.eslintrc index 5c6806e..72e93a1 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "curly": ["error", "all"], "no-tabs":"off", "no-const-assign": "off", + "no-console": "off", "vue/component-name-in-template-casing": ["error", "kebab-case", { "registeredComponentsOnly": false, "ignores": [] diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts index 1271d43..113d712 100644 --- a/src/router/modules/system.ts +++ b/src/router/modules/system.ts @@ -209,7 +209,7 @@ { path: 'list', name: 'BusinessList', - component: () => import('@/views/system/log/list.log.vue'), + component: () => import('@/views/system/log/listLog.vue'), meta: { title: '业务日志', auth: '/sys/log/biz/list', diff --git a/src/views/system/area/listArea.vue b/src/views/system/area/listArea.vue index 7b4c159..335a6fb 100644 --- a/src/views/system/area/listArea.vue +++ b/src/views/system/area/listArea.vue @@ -1,9 +1,12 @@ - - - - - - diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue index 4b7c501..7607022 100644 --- a/src/views/system/log/listErrorLog.vue +++ b/src/views/system/log/listErrorLog.vue @@ -79,7 +79,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/log/listLog.vue b/src/views/system/log/listLog.vue new file mode 100644 index 0000000..eb10497 --- /dev/null +++ b/src/views/system/log/listLog.vue @@ -0,0 +1,205 @@ + + + + + + + diff --git a/src/views/system/log/loginLog.vue b/src/views/system/log/loginLog.vue index 429e18c..22c649d 100644 --- a/src/views/system/log/loginLog.vue +++ b/src/views/system/log/loginLog.vue @@ -95,7 +95,7 @@ } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: any) => { +const changePage = (val: { size: number; page: number }) => { if (val && val.size) { listQuery.limit = val.size } diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 61dd8e9..dd1d289 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -3,7 +3,9 @@ import { Delete } from '@element-plus/icons-vue' import tableHeader from './table.header.vue' import addNotice from './noteAdd.vue' -import { addNoticeApi, getNoticeeApi } from '@/api/system/notice' +import noticeDetail from './noticeDetail.vue' +import type { noticeType } from './notice_interface' +import { getNoticeeApi } from '@/api/system/notice' const searchQuery = reactive({ noticeNo: '', // 编号 noticePublisher: '', // 发布人 @@ -79,6 +81,11 @@ const add = () => { addDialog.value.initDialog() } +const detailDialog = ref() // 详情组件弹窗 +// 详情 +const detail = (row: noticeType) => { + detailDialog.value.initDialog(row) +} onMounted(() => { getNoticeList() }) @@ -86,7 +93,7 @@