vue2-client 1.8.21 → 1.8.22

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/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
+ **1.8.21 -2023-12-27 @江超**
5
+ - 解决导出功能在v4环境下的地址错误问题
6
+
4
7
  **1.8.20 -2023-12-21 @江超**
5
8
  - 修复滚动条样式问题
6
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.8.21",
3
+ "version": "1.8.22",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -108,6 +108,7 @@ import XImportExcel from '@vue2-client/base-client/components/common/XImportExce
108
108
  import { Modal } from 'ant-design-vue'
109
109
  import { post } from '@vue2-client/services/api'
110
110
  import { CommonTempTable } from '@vue2-client/services/api/commonTempTable'
111
+ import { mapState } from 'vuex'
111
112
 
112
113
  export default {
113
114
  name: 'XTable',
@@ -213,7 +214,8 @@ export default {
213
214
  selectedRowKeys: this.selectedRowKeys,
214
215
  onChange: this.onSelectChange
215
216
  }
216
- }
217
+ },
218
+ ...mapState('setting', ['compatible'])
217
219
  },
218
220
  mounted () {},
219
221
  methods: {
@@ -369,7 +371,11 @@ export default {
369
371
  queryParams: that.queryParams,
370
372
  form: conditionParams
371
373
  }, that.serviceName).then(res => {
372
- window.open('/res/excel/export/' + res)
374
+ let value = res
375
+ if (this.compatible === 'V4') {
376
+ value = res.value
377
+ }
378
+ window.open('/res/excel/export/' + value)
373
379
  })
374
380
  },
375
381
  onCancel () {}