fix 1、增加文本名称检索
2、列表增加更新时间 3、去掉删除功能
This commit is contained in:
+6
-4
@@ -9,6 +9,7 @@
|
|||||||
<!-- onlyOffice服务器地址-->
|
<!-- onlyOffice服务器地址-->
|
||||||
<% if (process.env.NODE_ENV === 'development' ) { %>
|
<% 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://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>-->
|
<!--<script type="text/javascript" src="http://onlyoffice.sinotruk.com/web-apps/apps/api/documents/api.js"></script>-->
|
||||||
<% } %>
|
<% } %>
|
||||||
<% if (process.env.NODE_ENV === 'production' ) { %>
|
<% if (process.env.NODE_ENV === 'production' ) { %>
|
||||||
@@ -22,21 +23,22 @@
|
|||||||
// 'documentUrl': 'http://onlyofficevue.sinotruk.com/DOCX.docx',
|
// '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://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://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://10.0.1.28:8184/',
|
||||||
|
// 'callbackUrl': 'http://139.9.235.66:8184/',
|
||||||
// 'configUrl': 'http://onlyofficeplugins.sinotruk.com/'
|
// 'configUrl': 'http://onlyofficeplugins.sinotruk.com/'
|
||||||
// 'configUrl': 'http://10.10.10.45:809/'
|
// 'configUrl': 'http://10.10.10.45:809/'
|
||||||
'configUrl': 'http://10.0.1.28:8081/'
|
'configUrl': 'http://10.0.1.28:8081/'
|
||||||
|
// 'configUrl': 'http://192.168.31.181:8081/'
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<% } %>
|
<% } %>
|
||||||
<% if (process.env.NODE_ENV === 'production' ) { %>
|
<% if (process.env.NODE_ENV === 'production' ) { %>
|
||||||
<script>
|
<script>
|
||||||
window._CONFIG = {
|
window._CONFIG = {
|
||||||
'documentUrl': 'http://laws.sinotruk.com/laws-sinotruk/onlyoffice/downLoadFile?path=',
|
'documentUrl': 'http://laws-sinotruk-server-kmc2c.yf-grp:8080/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-server-kmc2c.yf-grp:8080/',
|
||||||
'callbackUrl': 'http://laws.sinotruk.com/',
|
|
||||||
'configUrl': 'http://onlyofficeplugins.sinotruk.com/'
|
'configUrl': 'http://onlyofficeplugins.sinotruk.com/'
|
||||||
// 'configUrl': 'http://10.10.10.45:809/'
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|||||||
+39
-8
@@ -1,5 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="page">
|
<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-button class="operate-btn" type="primary" @click="handleAdd">新增</a-button>
|
||||||
<a-table
|
<a-table
|
||||||
bordered
|
bordered
|
||||||
@@ -18,7 +32,7 @@
|
|||||||
|
|
||||||
<template slot="operation" slot-scope="text, record">
|
<template slot="operation" slot-scope="text, record">
|
||||||
<a class="table-operate-btn" @click="handleEdit(record)">编辑</a>
|
<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>
|
</template>
|
||||||
|
|
||||||
</a-table>
|
</a-table>
|
||||||
@@ -50,14 +64,12 @@ export default {
|
|||||||
total: 0
|
total: 0
|
||||||
},
|
},
|
||||||
columns: [
|
columns: [
|
||||||
// 项目来源
|
|
||||||
{
|
{
|
||||||
dataIndex: 'fileName',
|
dataIndex: 'fileName',
|
||||||
title: '文档名称',
|
title: '文档名称',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
// 项目名称
|
|
||||||
{
|
{
|
||||||
dataIndex: 'createTime',
|
dataIndex: 'createTime',
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
@@ -65,7 +77,13 @@ export default {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
// 操作
|
{
|
||||||
|
dataIndex: 'updateTime',
|
||||||
|
title: '更新时间',
|
||||||
|
width: 250,
|
||||||
|
align: 'center',
|
||||||
|
scopedSlots: { customRender: 'text' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
@@ -77,7 +95,8 @@ export default {
|
|||||||
dataSource: [],
|
dataSource: [],
|
||||||
url: {
|
url: {
|
||||||
list: '/onlyoffice/pageList'
|
list: '/onlyoffice/pageList'
|
||||||
}
|
},
|
||||||
|
queryParam: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
@@ -101,7 +120,8 @@ export default {
|
|||||||
pageNo: this.ipagination.current,
|
pageNo: this.ipagination.current,
|
||||||
pageSize: this.ipagination.pageSize,
|
pageSize: this.ipagination.pageSize,
|
||||||
column: 'createTime',
|
column: 'createTime',
|
||||||
order: 'desc'
|
order: 'desc',
|
||||||
|
fileName: this.queryParam.fileName ? '*' + this.queryParam.fileName + '*' : null
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getList(params).then((res) => {
|
getList(params).then((res) => {
|
||||||
@@ -160,6 +180,13 @@ export default {
|
|||||||
},
|
},
|
||||||
modalFormOk () {
|
modalFormOk () {
|
||||||
this.loadData()
|
this.loadData()
|
||||||
|
},
|
||||||
|
searchReset () {
|
||||||
|
this.queryParam = {}
|
||||||
|
this.loadData(1)
|
||||||
|
},
|
||||||
|
searchQuery () {
|
||||||
|
this.loadData(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -172,7 +199,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.operate-btn {
|
.operate-btn {
|
||||||
margin-bottom: 20px;
|
margin: 20px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*表格中换行文本的样式*/
|
/*表格中换行文本的样式*/
|
||||||
@@ -187,6 +214,10 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.table-operate-btn:last-child {
|
.table-operate-btn:last-child {
|
||||||
color: red;
|
//color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-btn {
|
||||||
|
margin: 5px 0 0 10px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
devServer: {
|
devServer: {
|
||||||
port: 8080,
|
port: 8083,
|
||||||
proxy: {
|
proxy: {
|
||||||
/* '/api': {
|
/* '/api': {
|
||||||
target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统
|
target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统
|
||||||
|
|||||||
Reference in New Issue
Block a user