src/views/dnc/base/modules/ProductStructure/Document/OtherDocumentTableList.vue
@@ -2,10 +2,16 @@
  <div>
    <a-table :columns="columns" :data-source="dataSource" bordered :pagination="ipagination" :loading="loading"
             :scroll="{y:265}" :customRow="customRow" :size="size" rowKey="docId" @change="handleTableChange">
      <!-- 字符串超长截取省略号显示-->
      <span slot="docName" slot-scope="text">
                <j-ellipsis :value="text"/>
      </span>
    </a-table>
    <DocumentModal ref="modalForm" @ok="modalFormOk"/>
    <NcDocumentAssignModal :size="size" ref="documentAssignModalRef"
                           :currentDocumentInfo="currentRightClickedDocumentInfo"/>
  </div>
</template>
@@ -13,10 +19,11 @@
  import { getAction } from '@/api/manage'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  import DocumentModal from '../../../../common/DocumentModal'
  import NcDocumentAssignModal from '@views/dnc/base/modules/ProductStructure/Document/NcDocumentAssignModal.vue'
  export default {
    name: 'OtherDocumentTableList',
    components: { DocumentModal },
    components: { NcDocumentAssignModal, DocumentModal },
    mixins: [JeecgListMixin],
    props: {
      currentTreeNodeInfo: {
@@ -45,12 +52,13 @@
            dataIndex: 'docName',
            key: 'docName',
            align: 'center',
            scopedSlots: { customRender: 'docName' },
            width: 300,
            sorter: true
          },
          { title: '设备编号', dataIndex: 'docCode', align: 'center' },
          {
            title: '出库状态',
            title: '生命周期',
            dataIndex: 'pullStatus_dictText',
            key: 'pullStatus',
            align: 'center',
@@ -61,13 +69,15 @@
          },
          {
            title: '状  态',
            dataIndex: 'docStatus_dictText',
            key: 'docStatus',
            dataIndex: 'docDispatchStatus_dictText',
            key: 'docDispatchStatus',
            align: 'center',
            filters: [
              { text: '设计', value: 1 },
              { text: '发布', value: 2 },
              { text: '归档', value: 3 }
              { text: '编制', value: 1 },
              { text: '校对', value: 2 },
              { text: '批准', value: 3 },
              { text: '试切', value: 4 },
              { text: '定型', value: 5 }
            ]
          },
          { title: '系统指定版本', dataIndex: 'publishVersion', align: 'center', width: 200 },
@@ -80,6 +90,7 @@
          }
        ],
        dataSource: [],
        currentRightClickedDocumentInfo: {},
        currentClickedDocumentInfo: {},
        url: {
          list: '/nc/doc/find/page'
@@ -89,7 +100,7 @@
    watch: {
      currentTreeNodeInfo: {
        handler(value) {
          this.currentClickedDocumentInfo = {}
          this.currentClickedDocumentInfo = this.currentRightClickedDocumentInfo = {}
        },
        immediate: true
      }
@@ -137,6 +148,7 @@
          on: {
            contextmenu: event => {
              event.preventDefault()
              this.currentRightClickedDocumentInfo = Object.assign({ param: 'OTHER' }, record)
              this.$emit('handleTableContextMenuOpen', { ...record, param: 'OTHER' })
            },
            click: () => {
@@ -175,6 +187,12 @@
        this.$refs.modalForm.title = modalTitle
      },
      handleDocumentAssign(record, modalTitle) {
        if (!this.$refs.documentAssignModalRef) return
        this.$refs.documentAssignModalRef.title = modalTitle
        this.$refs.documentAssignModalRef.visible = true
      },
      handleDelete() {
        // 此处函数为屏蔽mixins中的同名函数,通用函数写在父级中
      },