From 870dde8117222320bfac1430424cbce65463fdc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Sat, 19 Aug 2023 21:30:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 4 ++- src/api/journalism/index.js | 19 ++++++++++ src/pages/dlg/journalismDlg.vue | 63 +++++++++++++++++++++++++++++++++ src/pages/index.vue | 58 ++++++++++++++++++------------ 4 files changed, 121 insertions(+), 23 deletions(-) create mode 100644 src/api/journalism/index.js create mode 100644 src/pages/dlg/journalismDlg.vue diff --git a/src/api/index.js b/src/api/index.js index 80acbf2..eae8e6c 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -9,6 +9,7 @@ import special from './special/index' import dict from './dict/index' import attendance from './attendance/index' import insurance from './insurance/index' +import journalism from './journalism/index' export default { project, dept, @@ -20,5 +21,6 @@ export default { special, dict, attendance, - insurance + insurance, + journalism } \ No newline at end of file diff --git a/src/api/journalism/index.js b/src/api/journalism/index.js new file mode 100644 index 0000000..507b9a4 --- /dev/null +++ b/src/api/journalism/index.js @@ -0,0 +1,19 @@ +import request from '@/utils/request' + +const getJournalismList=()=> { + return request({ + url: `bgscreen/journalism/getJournalismList`, + method: 'get' + }) + } + + const getJournalismInfo=(id)=> { + return request({ + url: `bgscreen/journalism/getJournalismInfo?id=${id}`, + method: 'get' + }) + } +export default{ + getJournalismList, + getJournalismInfo +} \ No newline at end of file diff --git a/src/pages/dlg/journalismDlg.vue b/src/pages/dlg/journalismDlg.vue new file mode 100644 index 0000000..b5686e3 --- /dev/null +++ b/src/pages/dlg/journalismDlg.vue @@ -0,0 +1,63 @@ + + + {{title}} + + + + + + + \ No newline at end of file diff --git a/src/pages/index.vue b/src/pages/index.vue index 1d6c506..cb1c956 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -146,12 +146,16 @@ - - - - - 西咸新区暨泾河新城2023年“安全生产月”启动仪式 - + + + + + + + {{item.title}} + + + @@ -196,6 +200,7 @@ +