Kaynağa Gözat

成本分配表-链接导出

jbb 1 yıl önce
ebeveyn
işleme
6091176c0e

+ 1 - 1
src/views/cost-allocation-total/modal/fabInQuaModal.vue

@@ -139,7 +139,7 @@ export default {
           let link = document.createElement('a')
           link.style.display = 'none'
           link.href = url
-          link.setAttribute('download', fileName + '.xlsx')
+          link.setAttribute('download', this.planNum+'-'+fileName + '.xlsx')
           document.body.appendChild(link)
           link.click()
           document.body.removeChild(link) // 下载完成移除元素

+ 1 - 1
src/views/cost-allocation-total/modal/fabRemQuaModal.vue

@@ -124,7 +124,7 @@ export default {
           let link = document.createElement('a')
           link.style.display = 'none'
           link.href = url
-          link.setAttribute('download', fileName + '.xlsx')
+          link.setAttribute('download', this.planNum+'-'+fileName + '.xlsx')
           document.body.appendChild(link)
           link.click()
           document.body.removeChild(link) // 下载完成移除元素

+ 1 - 1
src/views/cost-allocation-total/modal/ingInQuaModal.vue

@@ -127,7 +127,7 @@ export default {
           let link = document.createElement('a')
           link.style.display = 'none'
           link.href = url
-          link.setAttribute('download', fileName + '.xlsx')
+          link.setAttribute('download', this.planNum+'-'+fileName + '.xlsx')
           document.body.appendChild(link)
           link.click()
           document.body.removeChild(link) // 下载完成移除元素

+ 1 - 1
src/views/cost-allocation-total/modal/ingRemQuaModal.vue

@@ -118,7 +118,7 @@ export default {
           let link = document.createElement('a')
           link.style.display = 'none'
           link.href = url
-          link.setAttribute('download', fileName + '.xlsx')
+          link.setAttribute('download', this.planNum+'-'+fileName + '.xlsx')
           document.body.appendChild(link)
           link.click()
           document.body.removeChild(link) // 下载完成移除元素

+ 1 - 1
src/views/cost-allocation-total/modal/pilosityFewerModal.vue

@@ -172,7 +172,7 @@ export default {
           let link = document.createElement('a')
           link.style.display = 'none'
           link.href = url
-          link.setAttribute('download', fileName + '.xlsx')
+          link.setAttribute('download', this.planNum+'-'+fileName + '.xlsx')
           document.body.appendChild(link)
           link.click()
           document.body.removeChild(link) // 下载完成移除元素