+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
新增
编辑
- 删除
+
@@ -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接口系统