lyh
2 天以前 1cbee08edf1823000a761ef23360628d2cb5d559
src/views/dnc/base/modules/ProductStructure/Document/NcDocumentTableList.vue
@@ -4,9 +4,9 @@
             :scroll="{y:265}" :customRow="customRow" :size="size" rowKey="docId" @change="handleTableChange">
      <!-- 字符串超长截取省略号显示-->
      <span slot="docName" slot-scope="text">
          <j-ellipsis :value="text"/>
        </span>
<!--      <span slot="docName" slot-scope="text">-->
<!--          <j-ellipsis :value="text"/>-->
<!--        </span>-->
    </a-table>
    <DocumentModal ref="modalForm" @ok="modalFormOk"/>
@@ -17,7 +17,7 @@
</template>
<script>
  import { getAction } from '@/api/manage'
import { getAction, postAction } from '@/api/manage'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  import DocumentModal from '../../../../common/DocumentModal'
  import NcDocumentAssignModal from './NcDocumentAssignModal'
@@ -53,8 +53,7 @@
            title: '文件名称',
            dataIndex: 'docName',
            key: 'docName',
            align: 'center',
            scopedSlots: { customRender: 'docName' },
            width: 500,
            sorter: true
          },
@@ -96,7 +95,8 @@
        currentRightClickedDocumentInfo: {},
        currentClickedDocumentInfo: {},
        url: {
          list: '/nc/doc/find/page'
          list: '/nc/doc/find/page',
          submitProccess:'/dncFlow/dispatchFile/submitProccess'
        }
      }
    },
@@ -213,6 +213,48 @@
        this.$refs.documentAssignModalRef.visible = true
      },
      handleAppoint(record){
        const that = this
        console.log("sssss",record)
        that.$confirm({
          title: '提示',
          content: `确认定型吗?`,
          okText: '确认',
          cancelText: '取消',
          onOk: () => {
            let dispatchFile = {
              'docId':record.docId,
              'attributionId':record.attributionId,
              'attributionType':record.attributionType,
              'fileId':record.publishFileId
            }
            postAction(this.url.submitProccess,dispatchFile)
              .then(res => {
                if (res.success) {
                  this.$message.success('流程发起成功')
                } else {
                  that.$notification.error({
                    message: '消息',
                    description: res.message
                  })
                }
              })
              .catch(err => {
                that.$notification.error({
                  message: '消息',
                  description: err.message
                })
              })
              .finally(() => {
                that.$destroyAll()
              })
          },
          onCancel: () => {
            that.$destroyAll()
          }
        })
      },
      handleDocumentExtract(record) {
        const that = this
        const { docId, attributionId, attributionType } = record
@@ -227,8 +269,9 @@
                if (res.success) {
                  that.$notification.success({
                    message: '消息',
                    description: `提取成功`
                    description: `提取成功`,
                  })
                  that.$bus.$emit('reloadCutterList')
                } else {
                  that.$notification.error({
                    message: '消息',