fix 1、增加文本名称检索
2、列表增加更新时间 3、去掉删除功能
This commit is contained in:
+6
-4
@@ -9,6 +9,7 @@
|
||||
<!-- onlyOffice服务器地址-->
|
||||
<% if (process.env.NODE_ENV === 'development' ) { %>
|
||||
<script type="text/javascript" src="http://10.10.10.45:80/web-apps/apps/api/documents/api.js"></script>
|
||||
<!--<script type="text/javascript" src="http://only.hzwlsoft.com/web-apps/apps/api/documents/api.js"></script>-->
|
||||
<!--<script type="text/javascript" src="http://onlyoffice.sinotruk.com/web-apps/apps/api/documents/api.js"></script>-->
|
||||
<% } %>
|
||||
<% 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/'
|
||||
}
|
||||
</script>
|
||||
<% } %>
|
||||
<% if (process.env.NODE_ENV === 'production' ) { %>
|
||||
<script>
|
||||
window._CONFIG = {
|
||||
'documentUrl': 'http://laws.sinotruk.com/laws-sinotruk/onlyoffice/downLoadFile?path=',
|
||||
// 'documentUrl': 'http://39.98.140.126:18888/file/model/task_9ad64b01/task_9ad64b01_top_9ad64b01_node.docx',
|
||||
'callbackUrl': 'http://laws.sinotruk.com/',
|
||||
'documentUrl': 'http://laws-sinotruk-server-kmc2c.yf-grp:8080/laws-sinotruk/onlyoffice/downLoadFile?path=',
|
||||
'callbackUrl': 'http://laws-sinotruk-server-kmc2c.yf-grp:8080/',
|
||||
'configUrl': 'http://onlyofficeplugins.sinotruk.com/'
|
||||
// 'configUrl': 'http://10.10.10.45:809/'
|
||||
}
|
||||
</script>
|
||||
<% } %>
|
||||
|
||||
+39
-8
@@ -1,5 +1,19 @@
|
||||
<template>
|
||||
<div class="page">
|
||||
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
||||
<a-row :gutter="24">
|
||||
<!--标准号/标准名称-->
|
||||
<a-col :md="6" :sm="12">
|
||||
<a-form-item label="文档名称">
|
||||
<a-input placeholder="请输入文档名称" v-model="queryParam.fileName"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :md="6" :sm="8">
|
||||
<a-button type="primary" @click="searchQuery" icon="search" class="search-btn">查询</a-button>
|
||||
<a-button type="primary" @click="searchReset" icon="reload" ghost class="search-btn">重置</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
<a-button class="operate-btn" type="primary" @click="handleAdd">新增</a-button>
|
||||
<a-table
|
||||
bordered
|
||||
@@ -18,7 +32,7 @@
|
||||
|
||||
<template slot="operation" slot-scope="text, record">
|
||||
<a class="table-operate-btn" @click="handleEdit(record)">编辑</a>
|
||||
<a class="table-operate-btn" @click="handleDelete(record.id)">删除</a>
|
||||
<!--<a class="table-operate-btn" @click="handleDelete(record.id)">删除</a>-->
|
||||
</template>
|
||||
|
||||
</a-table>
|
||||
@@ -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;
|
||||
}
|
||||
</style>
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
devServer: {
|
||||
port: 8080,
|
||||
port: 8083,
|
||||
proxy: {
|
||||
/* '/api': {
|
||||
target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统
|
||||
|
||||
Reference in New Issue
Block a user