yuansh 1 年之前
父節點
當前提交
dbec6bd061

+ 2 - 2
src/views/oa/salary_management/personnelSalary/Payroll.vue

@@ -266,13 +266,13 @@
               return
             }
             if (typeof window.navigator.msSaveBlob !== 'undefined') {
-                window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }),  record.type + '.xlsx')
+                window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }),  record.type + '.xls')
             } else {
               let url = window.URL.createObjectURL(new Blob([data], { type: 'application/vnd.ms-excel' }))
               let link = document.createElement('a')
               link.style.display = 'none'
               link.href = url
-              link.setAttribute('download',  record.orgName+record.yearWithMonth+record.type+'.xlsx')
+              link.setAttribute('download',  record.orgName+record.yearWithMonth+record.type+'.xls')
               document.body.appendChild(link)
               link.click()
               document.body.removeChild(link) // 下载完成移除元素

+ 2 - 2
src/views/oa/salary_management/personnelSalary/modules/uploadModal.vue

@@ -219,13 +219,13 @@
                 }
                 
                 if (typeof window.navigator.msSaveBlob !== 'undefined') {
-                    window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }), name+datePar+type + '.xlsx')
+                    window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }), name+datePar+type + '.xls')
                 } else {
                   let url = window.URL.createObjectURL(new Blob([data], { type: 'application/vnd.ms-excel' }))
                   let link = document.createElement('a')
                   link.style.display = 'none'
                   link.href = url
-                  link.setAttribute('download',  name+datePar+type+'.xlsx')
+                  link.setAttribute('download',  name+datePar+type+'.xls')
                   document.body.appendChild(link)
                   link.click()
                   document.body.removeChild(link) // 下载完成移除元素