标签管理

This commit is contained in:
caoyang
2022-01-26 14:57:55 +08:00
parent 07d22d0fd6
commit 2c7c939ac9
5 changed files with 201 additions and 5 deletions
@@ -0,0 +1,110 @@
<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="handleExport()" type="primary">数据导出</a-button>
<a-button @click="handleFileExport()" type="primary">带文件导出</a-button>
<a-button @click="handleAdd()" type="primary">{{$t('add')}}</a-button>
<a-button @click="handleModule()" type="primary">模板下载</a-button>
<a-button @click="handleModule()" type="primary">导入</a-button>
<a-button @click="handleDel()" type="primary">批量删除</a-button>
<a-button @click="handleCompare()" type="primary" icon="plus">推送</a-button>
</div>
<div>
<tableData
:flag="'1'"
:OperationList="OperationList"
@editTable="editTable"
@deleteTable="deleteTable"
:url="url"
/>
</div>
<addForm ref="addFormClick1"/>
</a-card>
</template>
<script>
import search from '@/components/search/index'
import tableData from '@/components/tableDate/index'
import addForm from './modules/addForm'
export default {
name: 'docLibrary',
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() {
},
handleExport(){
},
handleFileExport(){
},
handleAdd(){
this.$refs.addFormClick1.add()
},
handleModule(){
},
handleDel(){
},
handleCompare() {
// this.$refs.addFormClick1.add()
},
handleFileImport(){
},
editTable(item) {
console.log(item)
},
deleteTable(){
console.log(3)
},
}
}
</script>
<style scoped>
</style>