修改:文档库的接口
This commit is contained in:
@@ -1,88 +0,0 @@
|
|||||||
<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>
|
|
||||||
@@ -1,73 +0,0 @@
|
|||||||
<template>
|
|
||||||
<a-drawer
|
|
||||||
:title="title"
|
|
||||||
:maskClosable="true"
|
|
||||||
:width="drawerWidth"
|
|
||||||
placement="right"
|
|
||||||
:closable="true"
|
|
||||||
@close="handleCancel"
|
|
||||||
:visible="visible"
|
|
||||||
style="height: 100%;overflow: auto;padding-bottom: 53px;">
|
|
||||||
<addFormData
|
|
||||||
ref="addFormDataRef"
|
|
||||||
isDisplayType
|
|
||||||
v-if="visible"
|
|
||||||
:url="url"
|
|
||||||
/>
|
|
||||||
<div class="drawer-bootom-button">
|
|
||||||
<a-popconfirm :title="$t('AreYouWantDiscardEditing')" @confirm="handleCancel" :okText="$t('determine')"
|
|
||||||
:cancelText="$t('cancel')">
|
|
||||||
<a-button style="margin-right: .8rem">{{$t('cancel')}}</a-button>
|
|
||||||
</a-popconfirm>
|
|
||||||
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
|
||||||
</div>
|
|
||||||
</a-drawer>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import addFormData from '@/components/addForm/index'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'addForm',
|
|
||||||
components: {
|
|
||||||
addFormData
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
title: '添加',
|
|
||||||
drawerWidth: 1000,
|
|
||||||
visible: false,
|
|
||||||
confirmLoading: false,
|
|
||||||
url: {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
handleCancel() {
|
|
||||||
this.visible = false
|
|
||||||
},
|
|
||||||
add() {
|
|
||||||
this.visible = true
|
|
||||||
},
|
|
||||||
edit() {
|
|
||||||
this.visible = true
|
|
||||||
},
|
|
||||||
handleSubmit() {
|
|
||||||
this.$refs.addFormDataRef.sumber()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.drawer-bootom-button {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
|
||||||
width: 100%;
|
|
||||||
border-top: 1px solid #e8e8e8;
|
|
||||||
padding: 10px 16px;
|
|
||||||
text-align: right;
|
|
||||||
left: 0;
|
|
||||||
background: #fff;
|
|
||||||
border-radius: 0 0 2px 2px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
Reference in New Issue
Block a user