| | |
| | | <script> |
| | | import { getAction } from '@/api/manage' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import DocumentModal from './DocumentModal' |
| | | import DocumentModal from '../../../../common/DocumentModal' |
| | | |
| | | export default { |
| | | name: 'OtherDocumentTableList', |
| | |
| | | { title: '上传时间', dataIndex: 'createTime', align: 'center' } |
| | | ], |
| | | dataSource: [], |
| | | currentDocumentInfo: {}, |
| | | currentClickedDocumentInfo: {}, |
| | | url: { |
| | | list: '/nc/doc/find/page' |
| | | } |
| | | } |
| | | }, |
| | | watch: { |
| | | currentTreeNodeInfo: { |
| | | handler(value) { |
| | | this.currentClickedDocumentInfo = {} |
| | | }, |
| | | immediate: true |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.$emit('handleTableContextMenuOpen', { ...record, param: 'OTHER' }) |
| | | }, |
| | | click: () => { |
| | | if (this.currentDocumentInfo.docId === record.docId) return |
| | | this.currentDocumentInfo = Object.assign({}, record) |
| | | if (this.currentClickedDocumentInfo.docId === record.docId) return |
| | | this.currentClickedDocumentInfo = Object.assign({}, record) |
| | | this.$bus.$emit('sendCurrentClickedDocumentInfo', record) |
| | | } |
| | | } |
| | |
| | | this.$refs.modalForm.title = modalTitle |
| | | }, |
| | | |
| | | handleDelete() { |
| | | // 此处函数为屏蔽mixins中的同名函数,通用函数写在父级中 |
| | | }, |
| | | |
| | | triggerCorrespondingMethod({ methodName, level, modalTitle, tableRowInfo }) { |
| | | if (this[methodName] && tableRowInfo.attributionType === 1) this[methodName](tableRowInfo, modalTitle) |
| | | if (this[methodName] && tableRowInfo.param === 'OTHER') this[methodName](tableRowInfo, modalTitle) |
| | | } |
| | | } |
| | | } |