src/views/dnc/base/modules/DeviceStructure/Document/HasReceivedDocumentTableList.vue
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 复制
@@ -12,10 +12,10 @@
<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: {
@@ -55,6 +55,14 @@
        }
      }
    },
    watch: {
      currentTreeNodeInfo: {
        handler(value) {
          this.currentClickedDocumentInfo = {}
        },
        immediate: true
      }
    },
    created() {
      this.$bus.$on('tableMenuItemMethodTrigger', this.triggerCorrespondingMethod)
    },
@@ -70,7 +78,7 @@
        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
@@ -95,7 +103,7 @@
          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: () => {
@@ -122,7 +130,7 @@
      },
      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)
      }
    }
  }