doway-coms 2.2.9 → 2.2.11

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.2.9",
3
+ "version": "2.2.11",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -107,7 +107,14 @@
107
107
  style="top: 40px"
108
108
  >
109
109
  <template slot="title">
110
- <div style="font-size: 17px">表头设置</div>
110
+ <div style="font-size: 17px; display: flex; justify-content: space-between;">
111
+ <span>表头设置</span>
112
+ <a-button
113
+ type="primary"
114
+ size="small"
115
+ @click="resetSetting"
116
+ >重置</a-button>
117
+ </div>
111
118
  </template>
112
119
  <template slot="content" style="padding: 0">
113
120
  <SeqSetting
@@ -743,7 +750,7 @@ import {
743
750
  import BasePagination from '../../BasePagination/index'
744
751
  import BasePulldown from '../../BasePulldown/index'
745
752
  import BaseGridAdjust from '../../BaseGridAdjust/index'
746
- import { saveUserModuleDataFieldApi } from '../../utils/api'
753
+ import { saveUserModuleDataFieldApi, userResetApi } from '../../utils/api'
747
754
  import { gridDefaultValueDisplay } from '../../utils/filters'
748
755
  import SeqSetting from './SeqSetting'
749
756
  import request from '../../utils/request'
@@ -3379,6 +3386,19 @@ export default {
3379
3386
  current.diff(moment().add(params.disabledDateValue, "day"), "days") < 0
3380
3387
  );
3381
3388
  },
3389
+ // 重置配置列数据
3390
+ resetSetting() {
3391
+ let data = {
3392
+ moduleDataCode: this.dataCode,
3393
+ moduleCode: this.moduleCode,
3394
+ }
3395
+ userResetApi(data)
3396
+ .then(res => {
3397
+ this.$antsuccess('重置成功')
3398
+ }).catch(err => {
3399
+ console.debug(err)
3400
+ })
3401
+ },
3382
3402
  },
3383
3403
  }
3384
3404
  </script>
@@ -97,4 +97,12 @@ export function objectAuditLogApi(data) {
97
97
  method: 'post',
98
98
  data: data
99
99
  })
100
+ }
101
+ // 重置配置
102
+ export function userResetApi(data) {
103
+ return request({
104
+ url: store.getters.umsUrl + '/v1/user/userReset',
105
+ method: 'get',
106
+ params: data
107
+ })
100
108
  }