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,