@zgfe/modules-settings 2.1.0-zhongyuan.28 → 2.1.0-zhongyuan.29
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/es/constants/api.js
CHANGED
|
@@ -136,7 +136,7 @@ var apis = {
|
|
|
136
136
|
// 时间范围查询
|
|
137
137
|
getLogTime: '/zg/web/v2/system/getLogTime',
|
|
138
138
|
// 导出日志
|
|
139
|
-
exportLog: 'zg/web/v2/system/exportOperationLog'
|
|
139
|
+
exportLog: '/zg/web/v2/system/exportOperationLog'
|
|
140
140
|
},
|
|
141
141
|
getPassword: {
|
|
142
142
|
validateCode: '/zg/web/v2/system/validateCode',
|
|
@@ -15,7 +15,7 @@ import request from '../../../utils/ajax';
|
|
|
15
15
|
import apis from '../../../constants/api';
|
|
16
16
|
import { DatePicker, Radio, Table, Button, Space } from 'antd';
|
|
17
17
|
import locale from 'antd/es/date-picker/locale/zh_CN';
|
|
18
|
-
import { BizGlobalDataContext
|
|
18
|
+
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
19
19
|
import { DownloadOutlined } from '@ant-design/icons';
|
|
20
20
|
import moment from 'moment';
|
|
21
21
|
import './index.less';
|
|
@@ -141,7 +141,7 @@ var OperationLog = function OperationLog() {
|
|
|
141
141
|
}, condition)
|
|
142
142
|
}).then(function (res) {
|
|
143
143
|
if (parseInt(res === null || res === void 0 ? void 0 : res.code) == 100000) {
|
|
144
|
-
var maxDate = res.data[
|
|
144
|
+
var maxDate = res.data[0] || '';
|
|
145
145
|
setDateRange(res.data);
|
|
146
146
|
setCondition(function () {
|
|
147
147
|
return {
|
|
@@ -155,9 +155,9 @@ var OperationLog = function OperationLog() {
|
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
function exportData() {
|
|
158
|
-
|
|
159
|
-
method: '
|
|
160
|
-
|
|
158
|
+
request(apis.log.exportLog, {
|
|
159
|
+
method: 'post',
|
|
160
|
+
data: _objectSpread({
|
|
161
161
|
type: logType
|
|
162
162
|
}, condition),
|
|
163
163
|
responseType: 'blob',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "2.1.0-zhongyuan.
|
|
3
|
+
"version": "2.1.0-zhongyuan.29",
|
|
4
4
|
"private": false,
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "c8428fbc590b0cdb52a52dac4561b2ca3263af94",
|
|
71
71
|
"gitHooks": {
|
|
72
72
|
"pre-commit": "lint-staged"
|
|
73
73
|
}
|