copy from src/views/dnc/base/modules/DeviceStructure/HasReceivedDocumentTableList.vue
copy to src/views/dnc/base/modules/DeviceStructure/Document/HasReceivedDocumentTableList.vue
文件从 src/views/dnc/base/modules/DeviceStructure/HasReceivedDocumentTableList.vue 复制 |
| | |
| | | <script> |
| | | import { getAction } from '@/api/manage' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import DocumentModal from '../../../common/DocumentModal.vue' |
| | | import DocumentModal from '../../../../common/DocumentModal.vue' |
| | | |
| | | export default { |
| | | name: 'HasSentDocumentTableList', |
| | | name: 'HasReceivedDocumentTableList', |
| | | components: { DocumentModal }, |
| | | mixins: [JeecgListMixin], |
| | | props: { |
| | |
| | | } |
| | | } |
| | | }, |
| | | watch: { |
| | | currentTreeNodeInfo: { |
| | | handler(value) { |
| | | this.currentClickedDocumentInfo = {} |
| | | }, |
| | | immediate: true |
| | | } |
| | | }, |
| | | created() { |
| | | this.$bus.$on('tableMenuItemMethodTrigger', this.triggerCorrespondingMethod) |
| | | }, |
| | |
| | | console.log('currentTreeNodeInfo', this.currentTreeNodeInfo) |
| | | params.attributionId = this.currentTreeNodeInfo.key |
| | | params.attributionType = 4 |
| | | params.docClassCode = 'SEND' |
| | | params.docClassCode = 'REC' |
| | | if (!params) return false |
| | | this.dataSource = [] |
| | | this.loading = true |
| | |
| | | on: { |
| | | contextmenu: event => { |
| | | event.preventDefault() |
| | | this.currentRightClickedDocumentInfo = Object.assign({ param: 'SEND' }, record) |
| | | this.currentRightClickedDocumentInfo = Object.assign({ param: 'REC' }, record) |
| | | this.$emit('handleTableContextMenuOpen', this.currentRightClickedDocumentInfo) |
| | | }, |
| | | click: () => { |
| | |
| | | }, |
| | | |
| | | triggerCorrespondingMethod({ methodName, level, modalTitle, tableRowInfo }) { |
| | | if (this[methodName] && tableRowInfo.param === 'SEND') this[methodName](tableRowInfo, modalTitle) |
| | | if (this[methodName] && tableRowInfo.param === 'REC') this[methodName](tableRowInfo, modalTitle) |
| | | } |
| | | } |
| | | } |