doway-coms 2.0.4 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -76,7 +76,7 @@ export default {
76
76
  formExport.appendChild(companyids)
77
77
  }
78
78
  if (modalInfo && modalInfo.type == 'templateName') {
79
- // 添加公司id数据
79
+ // 添加模板数据
80
80
  const templateData = document.createElement('input')
81
81
  templateData.type = 'hidden'
82
82
  templateData.name = 'templateName'
@@ -92,9 +92,11 @@ export default {
92
92
  })
93
93
  } else {
94
94
  let ids = JSON.stringify(data)
95
- if (companyId) {
96
- this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids + '&companyId=' + companyId
97
- } else {
95
+ if (modalInfo.info && modalInfo.type == 'company') { // 公司
96
+ this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids + '&companyId=' + modalInfo.info
97
+ } else if (modalInfo.info && modalInfo.type == 'templateName') { // 模板
98
+ this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids + '&templateName=' + modalInfo.info
99
+ } else { // 其它
98
100
  this.url = url + '?token=' + this.$store.getters.token + '&ids=' + ids
99
101
  }
100
102
  }