吴羡
4 天以前 89fd9ab312c0aef9fcab89fbbaee4add5baa7c57
src/views/business/materialOrderComponents/materialOrder/filesLookVisible.vue
@@ -124,6 +124,7 @@
    // 切换数据查看tab栏
    handleDataVisibleTab(m, i) {
      this.dataVisibleIndex = i
      this.pageFile.current = 1
      this.getFileList()
    },
    // 查询回调
@@ -134,7 +135,7 @@
        this.entity.insOrderId = this.filesLookInfo.quarterOrderId
      }
      this.tableLoadingFile = true
      const params = { ...this.entity }
      const params = { ...this.entity, current: this.pageFile.current, size: this.pageFile.size }
      getFileList(params).then(res => {
        this.tableLoadingFile = false
        if (res.code === 200) {
@@ -146,13 +147,14 @@
      })
    },
    paginationFile(page) {
      this.pageFile.current = page.page
      this.pageFile.size = page.limit
      this.getFileList()
    },
    // 下载
    handleDown(row) {
      downFile({ id: row.id, }).then(res => {
        this.$download.saveAs(res.data.fileUrl, row.fileName);
        return this.$download.attachment(res.data, row.fileName);
      }).catch(error => {
      })