vue2-client 1.4.0 → 1.4.2

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": "vue2-client",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -37,7 +37,7 @@
37
37
 
38
38
  import { post } from '@vue2-client/services/api'
39
39
  import { mapState } from 'vuex'
40
- import { upload } from '@/services/api/common'
40
+ import { upload } from '@vue2-client/services/api/common'
41
41
 
42
42
  export default {
43
43
  name: 'uploads',
@@ -55,7 +55,7 @@
55
55
  <a-dropdown v-if="!buttonState || buttonState.export">
56
56
  <a-menu slot="overlay">
57
57
  <a-menu-item :disabled="selectedRowKeys.length === 0" key="1" @click="handleExport(true)"><a-icon :style="iconStyle" type="ordered-list" />导出选中数据</a-menu-item>
58
- <a-menu-item key="2" @click="handleExport"><a-icon :style="iconStyle" type="snippets" />导出本页数据</a-menu-item>
58
+ <a-menu-item key="2" @click="handleExport(false)"><a-icon :style="iconStyle" type="snippets" />导出本页数据</a-menu-item>
59
59
  <a-menu-item key="3" @click="handleExportByQuery"><a-icon :style="iconStyle" type="download" />导出所有符合条件的数据</a-menu-item>
60
60
  </a-menu>
61
61
  <a-button>导出 <a-icon type="down" /> </a-button>
@@ -87,7 +87,7 @@ import { mapState } from 'vuex'
87
87
  import { Modal } from 'ant-design-vue'
88
88
  import { post } from '@vue2-client/services/api/restTools'
89
89
  import { CommonTempTable } from '@vue2-client/services/api/commonTempTable'
90
- import { exportJson } from '@/utils/excel/Export2Excel'
90
+ import { exportJson } from '@vue2-client/utils/excel/Export2Excel'
91
91
 
92
92
  export default {
93
93
  name: 'XFormTable',
@@ -236,7 +236,8 @@ export default {
236
236
  this.$refs.xTable.clearRowKeys()
237
237
  },
238
238
  setParams (res) {
239
- this.tableColumns = res.columnJson
239
+ // 深拷贝json,避免筛选列报错
240
+ this.tableColumns = JSON.parse(JSON.stringify(res.columnJson))
240
241
  this.formItems = res.formJson
241
242
  this.buttonState = res.buttonState
242
243
  this.serviceName = res.serviceName