88 lines
2.1 KiB
Java
88 lines
2.1 KiB
Java
<template>
|
|
<a-card :bordered="false">
|
|
<div class="table-page-search-wrapper">
|
|
<search :flag="'1'" :url="url" :searchList="searchList"/>
|
|
</div>
|
|
<div class="table-operator">
|
|
<a-button @click="handleCompare()" type="primary" icon="plus">{{$t('DataComparison')}}</a-button>
|
|
</div>
|
|
<div>
|
|
<tableData
|
|
:flag="'1'"
|
|
:OperationList="OperationList"
|
|
@editTable="editTable"
|
|
@deleteTable="deleteTable"
|
|
:url="url"
|
|
/>
|
|
</div>
|
|
<addForm ref="addFormClick"/>
|
|
</a-card>
|
|
</template>
|
|
|
|
<script>
|
|
import search from '@/components/search/index'
|
|
import tableData from '@/components/tableDate/index'
|
|
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
|
import addForm from './modules/addForm'
|
|
|
|
export default {
|
|
name: 'index',
|
|
// mixins: [JeroListMixin],
|
|
components: {
|
|
search,
|
|
addForm,
|
|
tableData
|
|
},
|
|
data() {
|
|
return {
|
|
searchList: [
|
|
{ name: '名称', placeholder: '请输入姓名', attrModel: 'name', enName: 'title' },
|
|
{ name: '标题', placeholder: '请输入标题', attrModel: 'title', enName: 'title' }
|
|
],
|
|
OperationList: [
|
|
{
|
|
text: '编辑',
|
|
ClickEvent: 'editTable'
|
|
},
|
|
{
|
|
text: '删除',
|
|
ClickEvent: 'deleteTable'
|
|
},
|
|
{
|
|
text: '收藏',
|
|
ClickEvent: 'Collection'
|
|
},
|
|
{
|
|
text: '订阅',
|
|
ClickEvent: 'subscribe'
|
|
}
|
|
],
|
|
selectedRowKeys: [],
|
|
loading: false,
|
|
url:{
|
|
tableHeader:'document/bussDocumentLibraryEO/getHeader',
|
|
seachList:'document/bussDocumentLibraryEO/queryCondition',
|
|
tableList:'/document/bussDocumentLibraryEO/queryPageInfo',
|
|
}
|
|
}
|
|
},
|
|
methods: {
|
|
onSelectChange() {
|
|
|
|
},
|
|
handleCompare() {
|
|
this.$refs.addFormClick.add()
|
|
},
|
|
editTable(item) {
|
|
console.log(item)
|
|
},
|
|
deleteTable(){
|
|
console.log(3)
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style> |