From a3eace05120028b6ff9756e2c4988c4d0755e588 Mon Sep 17 00:00:00 2001 From: zxy <353513737@qq.com> Date: Wed, 13 Mar 2024 20:55:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=97=A5=E5=BF=97=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/views/index.js | 22 ++ src/views/tenant/main/serve/Dialog/addLog.vue | 290 ++++++++++++++++++ src/views/tenant/main/serve/index.vue | 19 +- vue.config.js | 4 +- 4 files changed, 331 insertions(+), 4 deletions(-) create mode 100644 src/views/tenant/main/serve/Dialog/addLog.vue diff --git a/src/router/views/index.js b/src/router/views/index.js index 527ce56..9100fbe 100644 --- a/src/router/views/index.js +++ b/src/router/views/index.js @@ -201,6 +201,28 @@ export default [ } ] }, + { + path: '/log', + name: '日志管理', + component: Layout, + meta: { + i18n: 'index', + isTab: false, + }, + children: [ + { + path: 'index/:type/:id', + name: '添加/修改日志log', + meta: { + i18n: 'index', + isTab: false, + }, + props: true, + component: () => import( + /* webpackChunkName: "views" */ '@/views/tenant/main/serve/Dialog/addLog') + } + ] + }, { path: '/recommend', name: '推荐管理', diff --git a/src/views/tenant/main/serve/Dialog/addLog.vue b/src/views/tenant/main/serve/Dialog/addLog.vue new file mode 100644 index 0000000..a8c0dd8 --- /dev/null +++ b/src/views/tenant/main/serve/Dialog/addLog.vue @@ -0,0 +1,290 @@ + + + + \ No newline at end of file diff --git a/src/views/tenant/main/serve/index.vue b/src/views/tenant/main/serve/index.vue index 78a005f..926fc7d 100644 --- a/src/views/tenant/main/serve/index.vue +++ b/src/views/tenant/main/serve/index.vue @@ -284,6 +284,12 @@ @size-change="logSizeChange" @current-change="logCurrentChange" > + + @@ -747,13 +753,14 @@ export default { }, logOption() { return { - editBtn: true, + editBtn: false, delBtn: true, - addBtn: true, + addBtn: false, border: true, index: true, indexLabel: "序号", refreshBtn: false, + dialogType: "drawer", height: '100', column: [{ label: '服务时间', @@ -1468,6 +1475,14 @@ export default { window.console.log(error); }) }, + addNewLog() { + console.log('add log') + this.$router.push({ name: '添加/修改日志log', params: { type: 'add', id: null } }) + }, + editLogInfo() { + console.log('edit log') + this.$router.push({ name: '添加/修改日志log', params: { type: 'edit', id: null } }) + } }, }; diff --git a/vue.config.js b/vue.config.js index b1f6ebc..a62a9c8 100644 --- a/vue.config.js +++ b/vue.config.js @@ -24,8 +24,8 @@ module.exports = { proxy: { "/api": { // target: 'http://localhost:8000', // 本地服务接口地址 - target: "http://39.98.184.58:8000", // 阿里云后台地址 - // target: "http://192.168.3.104:8000", // 本地 + // target: "http://39.98.184.58:8000", // 阿里云后台地址 + target: "http://192.168.3.104:8000", // 本地 // target: 'http://192.168.3.111:8000', ws: true, changeOrigin: true,