diff --git a/src/api/markdown-api.js b/src/api/markdown-api.js index b413a56..2cecbbb 100644 --- a/src/api/markdown-api.js +++ b/src/api/markdown-api.js @@ -5,7 +5,7 @@ export default { // 获取markdown内容 getMarkdown: function(params) { return request({ - url: 'public/p', + url: '/markdown/p', method: 'get', params }) diff --git a/src/api/setting-api.js b/src/api/setting-api.js index a37644a..9af2cdc 100644 --- a/src/api/setting-api.js +++ b/src/api/setting-api.js @@ -53,7 +53,7 @@ export default { export function getSetting(params) { return request({ - url: '/public/website/setting', + url: '/website/setting', method: 'get', params }) diff --git a/src/views/setting/sys/logList.vue b/src/views/setting/sys/logList.vue index fb90afe..0b16330 100644 --- a/src/views/setting/sys/logList.vue +++ b/src/views/setting/sys/logList.vue @@ -3,14 +3,28 @@
- + - - - + + + + + + - + + + + + + - +
- 查询 + 查询 +
@@ -77,6 +93,23 @@ export default { pageSize: 12, pageTotal: 0 }, + options: this.type === 'LOGIN' ? [{ + value: 'LOGIN', + label: '登录' + }] : [{ + value: 'LOGIN', + label: '登录' + }, { + value: 'OPERATION', + label: '操作' + }, { + value: 'ARTICLE', + label: '文章' + }, { + value: 'WEBDAV', + label: 'WebDAV' + }], + typeValue: this.type, // 查询条件 queryCondition: { username: undefined, @@ -130,8 +163,23 @@ export default { this.pagination = data.backData; this.getLogList() }, - getLogList(){ - if (this.pickerValue.length > 0){ + selectType() { + this.queryCondition.type = this.typeValue + if (this.typeValue === 'ARTICLE') { + this.tableHeader[0].disabled = true + this.tableHeader[1].disabled = true + this.tableHeader[3].disabled = true + this.tableHeader[5].minWidth = 200 + } else { + this.tableHeader[0].disabled = false + this.tableHeader[1].disabled = false + this.tableHeader[3].disabled = false + this.tableHeader[5].minWidth = 105 + } + this.getLogList() + }, + getLogList() { + if (this.pickerValue != null && this.pickerValue.length > 0) { this.queryCondition.startTime = this.pickerValue[0].getTime() this.queryCondition.endTime = this.pickerValue[1].getTime() } @@ -152,10 +200,12 @@ export default { diff --git a/src/views/setting/sys/logLogin.vue b/src/views/setting/sys/logLogin.vue index c65033d..9f5eade 100644 --- a/src/views/setting/sys/logLogin.vue +++ b/src/views/setting/sys/logLogin.vue @@ -30,7 +30,7 @@ export default { } }, {prop: 'remarks',label: '备注', sortable: 'custom'}, - {prop: 'createTime',label: '创建时间', minWidth: 110, sortable: 'custom'}, + {prop: 'createTime',label: '创建时间', minWidth: 150, sortable: 'custom'}, ], } } diff --git a/src/views/setting/sys/logOperation.vue b/src/views/setting/sys/logOperation.vue index 44e7f4b..287d51c 100644 --- a/src/views/setting/sys/logOperation.vue +++ b/src/views/setting/sys/logOperation.vue @@ -90,7 +90,7 @@ export default { return time + 'ms' } }, - {prop: 'createTime',label: '创建时间', minWidth: 110, sortable: 'custom'}, + {prop: 'createTime',label: '创建时间', minWidth: 150, sortable: 'custom'}, {label: '操作', minWidth: 75, active: [ {name: '详情', icon: 'el-icon-view', handle: (row) => this.details(row)}, ], @@ -112,6 +112,9 @@ export default { @import "src/styles/setting"; /deep/ .box-card { max-width: 1440px; + /deep/ .el-form-item { + margin-bottom: 20px; + } } /deep/ .el-form-item { margin-bottom: 0px; diff --git a/vue.config.js b/vue.config.js index 1ff1656..f74bb70 100644 --- a/vue.config.js +++ b/vue.config.js @@ -54,7 +54,7 @@ module.exports = { }, proxy: { [process.env.VUE_APP_BASE_API]: { - target: 'http://localhost:8088/', + target: 'http://localhost:8088', changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''