diff --git a/public/index.html b/public/index.html index a58af77..5866ee6 100644 --- a/public/index.html +++ b/public/index.html @@ -9,6 +9,7 @@ <% if (process.env.NODE_ENV === 'development' ) { %> + <% } %> <% if (process.env.NODE_ENV === 'production' ) { %> @@ -22,21 +23,22 @@ // 'documentUrl': 'http://onlyofficevue.sinotruk.com/DOCX.docx', // 'documentUrl': 'http://39.98.140.126:18888/file/model/task_9ad64b01/task_9ad64b01_top_9ad64b01_node.docx', 'documentUrl': 'http://10.0.1.28:8184/laws-sinotruk/onlyoffice/downLoadFile?path=', + // 'documentUrl': 'http://139.9.235.66:8184/laws-sinotruk/onlyoffice/downLoadFile?path=', 'callbackUrl': 'http://10.0.1.28:8184/', + // 'callbackUrl': 'http://139.9.235.66:8184/', // 'configUrl': 'http://onlyofficeplugins.sinotruk.com/' // 'configUrl': 'http://10.10.10.45:809/' 'configUrl': 'http://10.0.1.28:8081/' + // 'configUrl': 'http://192.168.31.181:8081/' } <% } %> <% if (process.env.NODE_ENV === 'production' ) { %> <% } %> diff --git a/src/views/List.vue b/src/views/List.vue index e78c78d..69a5fe6 100644 --- a/src/views/List.vue +++ b/src/views/List.vue @@ -1,5 +1,19 @@ @@ -50,14 +64,12 @@ export default { total: 0 }, columns: [ - // 项目来源 { dataIndex: 'fileName', title: '文档名称', align: 'center', scopedSlots: { customRender: 'text' } }, - // 项目名称 { dataIndex: 'createTime', title: '创建时间', @@ -65,7 +77,13 @@ export default { align: 'center', scopedSlots: { customRender: 'text' } }, - // 操作 + { + dataIndex: 'updateTime', + title: '更新时间', + width: 250, + align: 'center', + scopedSlots: { customRender: 'text' } + }, { title: '操作', fixed: 'right', @@ -77,7 +95,8 @@ export default { dataSource: [], url: { list: '/onlyoffice/pageList' - } + }, + queryParam: {} } }, created () { @@ -101,7 +120,8 @@ export default { pageNo: this.ipagination.current, pageSize: this.ipagination.pageSize, column: 'createTime', - order: 'desc' + order: 'desc', + fileName: this.queryParam.fileName ? '*' + this.queryParam.fileName + '*' : null } this.loading = true getList(params).then((res) => { @@ -160,6 +180,13 @@ export default { }, modalFormOk () { this.loadData() + }, + searchReset () { + this.queryParam = {} + this.loadData(1) + }, + searchQuery () { + this.loadData(1) } } } @@ -172,7 +199,7 @@ export default { } .operate-btn { - margin-bottom: 20px; + margin: 20px 0; } /*表格中换行文本的样式*/ @@ -187,6 +214,10 @@ export default { } .table-operate-btn:last-child { - color: red; +//color: red; +} + +.search-btn { + margin: 5px 0 0 10px; } diff --git a/vue.config.js b/vue.config.js index 379fcd0..1461d94 100644 --- a/vue.config.js +++ b/vue.config.js @@ -14,7 +14,7 @@ module.exports = { } }, devServer: { - port: 8080, + port: 8083, proxy: { /* '/api': { target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统