ls-pro-common 3.1.2 → 3.1.3
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/dist/common.js +1 -1
- package/dist/common.min.js +1 -1
- package/es/components/RecordLog/index.d.ts +3 -1
- package/es/components/RecordLog/index.js +12 -3
- package/es/components/ViewOffice.d.ts +2 -2
- package/es/components/ViewOffice.js +4 -3
- package/lib/components/RecordLog/index.d.ts +3 -1
- package/lib/components/RecordLog/index.js +12 -3
- package/lib/components/ViewOffice.d.ts +2 -2
- package/lib/components/ViewOffice.js +4 -3
- package/package.json +1 -1
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import './index.less';
|
|
8
8
|
export interface RecordLogProps {
|
|
9
|
-
recordKey
|
|
9
|
+
recordKey?: string;
|
|
10
|
+
bizNo?: string;
|
|
11
|
+
param?: any;
|
|
10
12
|
fieldsMap?: Record<string, string>;
|
|
11
13
|
showResourceName?: boolean;
|
|
12
14
|
style?: React.CSSProperties;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "antd/es/empty/style";
|
|
2
2
|
import _Empty from "antd/es/empty";
|
|
3
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
5
|
/**
|
|
5
6
|
* 记录变更日志
|
|
@@ -22,6 +23,10 @@ var RecordLog = function RecordLog(props) {
|
|
|
22
23
|
setLogData = _useState2[1];
|
|
23
24
|
var _props$recordKey = props.recordKey,
|
|
24
25
|
recordKey = _props$recordKey === void 0 ? '' : _props$recordKey,
|
|
26
|
+
_props$bizNo = props.bizNo,
|
|
27
|
+
bizNo = _props$bizNo === void 0 ? '' : _props$bizNo,
|
|
28
|
+
_props$param = props.param,
|
|
29
|
+
param = _props$param === void 0 ? {} : _props$param,
|
|
25
30
|
_props$fieldsMap = props.fieldsMap,
|
|
26
31
|
fieldsMap = _props$fieldsMap === void 0 ? {} : _props$fieldsMap,
|
|
27
32
|
_props$showResourceNa = props.showResourceName,
|
|
@@ -34,10 +39,14 @@ var RecordLog = function RecordLog(props) {
|
|
|
34
39
|
var params = {
|
|
35
40
|
pageSize: 5000,
|
|
36
41
|
sort: 'createTime desc',
|
|
37
|
-
where: {
|
|
38
|
-
dataCode: recordKey
|
|
39
|
-
}
|
|
42
|
+
where: _objectSpread({}, param)
|
|
40
43
|
};
|
|
44
|
+
if (recordKey) {
|
|
45
|
+
params.where.dataCode = recordKey;
|
|
46
|
+
}
|
|
47
|
+
if (bizNo) {
|
|
48
|
+
params.where.bizNo = bizNo;
|
|
49
|
+
}
|
|
41
50
|
httpGet(url, params).then(function (res) {
|
|
42
51
|
var rows = (res === null || res === void 0 ? void 0 : res.rows) || [];
|
|
43
52
|
rows.forEach(function (row) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const
|
|
2
|
+
declare const ViewDocment: (props: {
|
|
3
3
|
open?: boolean;
|
|
4
4
|
onCancel?: () => void;
|
|
5
5
|
title?: string;
|
|
@@ -9,4 +9,4 @@ declare const TagCheck: (props: {
|
|
|
9
9
|
trigger?: JSX.Element;
|
|
10
10
|
url: string;
|
|
11
11
|
}) => JSX.Element;
|
|
12
|
-
export default
|
|
12
|
+
export default ViewDocment;
|
|
@@ -7,7 +7,8 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
7
7
|
import React, { useState, useMemo } from 'react';
|
|
8
8
|
import { EyeOutlined } from '@ant-design/icons';
|
|
9
9
|
import { getCookie } from '../utils';
|
|
10
|
-
|
|
10
|
+
// import { base64Encode } from 'ls-pro-tools';
|
|
11
|
+
var ViewDocment = function ViewDocment(props) {
|
|
11
12
|
var _props$open = props.open,
|
|
12
13
|
open = _props$open === void 0 ? false : _props$open,
|
|
13
14
|
_onCancel = props.onCancel,
|
|
@@ -27,7 +28,7 @@ var TagCheck = function TagCheck(props) {
|
|
|
27
28
|
var src = useMemo(function () {
|
|
28
29
|
var token = getCookie('token');
|
|
29
30
|
var doc = url + (url.includes('?') ? '&' : '?') + 'token=' + token;
|
|
30
|
-
return 'https://
|
|
31
|
+
return 'https://dowload.lesoon.cloud/lesoon/lesoon-kkfileview-api/onlinePreview?url=' + encodeURIComponent(doc);
|
|
31
32
|
}, [url]);
|
|
32
33
|
var triggerDom = /*#__PURE__*/React.createElement(React.Fragment, {
|
|
33
34
|
key: "trigger"
|
|
@@ -71,4 +72,4 @@ var TagCheck = function TagCheck(props) {
|
|
|
71
72
|
src: src
|
|
72
73
|
})));
|
|
73
74
|
};
|
|
74
|
-
export default
|
|
75
|
+
export default ViewDocment;
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import './index.less';
|
|
8
8
|
export interface RecordLogProps {
|
|
9
|
-
recordKey
|
|
9
|
+
recordKey?: string;
|
|
10
|
+
bizNo?: string;
|
|
11
|
+
param?: any;
|
|
10
12
|
fieldsMap?: Record<string, string>;
|
|
11
13
|
showResourceName?: boolean;
|
|
12
14
|
style?: React.CSSProperties;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "antd/es/empty/style";
|
|
2
2
|
import _Empty from "antd/es/empty";
|
|
3
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
5
|
/**
|
|
5
6
|
* 记录变更日志
|
|
@@ -22,6 +23,10 @@ var RecordLog = function RecordLog(props) {
|
|
|
22
23
|
setLogData = _useState2[1];
|
|
23
24
|
var _props$recordKey = props.recordKey,
|
|
24
25
|
recordKey = _props$recordKey === void 0 ? '' : _props$recordKey,
|
|
26
|
+
_props$bizNo = props.bizNo,
|
|
27
|
+
bizNo = _props$bizNo === void 0 ? '' : _props$bizNo,
|
|
28
|
+
_props$param = props.param,
|
|
29
|
+
param = _props$param === void 0 ? {} : _props$param,
|
|
25
30
|
_props$fieldsMap = props.fieldsMap,
|
|
26
31
|
fieldsMap = _props$fieldsMap === void 0 ? {} : _props$fieldsMap,
|
|
27
32
|
_props$showResourceNa = props.showResourceName,
|
|
@@ -34,10 +39,14 @@ var RecordLog = function RecordLog(props) {
|
|
|
34
39
|
var params = {
|
|
35
40
|
pageSize: 5000,
|
|
36
41
|
sort: 'createTime desc',
|
|
37
|
-
where: {
|
|
38
|
-
dataCode: recordKey
|
|
39
|
-
}
|
|
42
|
+
where: _objectSpread({}, param)
|
|
40
43
|
};
|
|
44
|
+
if (recordKey) {
|
|
45
|
+
params.where.dataCode = recordKey;
|
|
46
|
+
}
|
|
47
|
+
if (bizNo) {
|
|
48
|
+
params.where.bizNo = bizNo;
|
|
49
|
+
}
|
|
41
50
|
httpGet(url, params).then(function (res) {
|
|
42
51
|
var rows = (res === null || res === void 0 ? void 0 : res.rows) || [];
|
|
43
52
|
rows.forEach(function (row) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const
|
|
2
|
+
declare const ViewDocment: (props: {
|
|
3
3
|
open?: boolean;
|
|
4
4
|
onCancel?: () => void;
|
|
5
5
|
title?: string;
|
|
@@ -9,4 +9,4 @@ declare const TagCheck: (props: {
|
|
|
9
9
|
trigger?: JSX.Element;
|
|
10
10
|
url: string;
|
|
11
11
|
}) => JSX.Element;
|
|
12
|
-
export default
|
|
12
|
+
export default ViewDocment;
|
|
@@ -7,7 +7,8 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
7
7
|
import React, { useState, useMemo } from 'react';
|
|
8
8
|
import { EyeOutlined } from '@ant-design/icons';
|
|
9
9
|
import { getCookie } from '../utils';
|
|
10
|
-
|
|
10
|
+
// import { base64Encode } from 'ls-pro-tools';
|
|
11
|
+
var ViewDocment = function ViewDocment(props) {
|
|
11
12
|
var _props$open = props.open,
|
|
12
13
|
open = _props$open === void 0 ? false : _props$open,
|
|
13
14
|
_onCancel = props.onCancel,
|
|
@@ -27,7 +28,7 @@ var TagCheck = function TagCheck(props) {
|
|
|
27
28
|
var src = useMemo(function () {
|
|
28
29
|
var token = getCookie('token');
|
|
29
30
|
var doc = url + (url.includes('?') ? '&' : '?') + 'token=' + token;
|
|
30
|
-
return 'https://
|
|
31
|
+
return 'https://dowload.lesoon.cloud/lesoon/lesoon-kkfileview-api/onlinePreview?url=' + encodeURIComponent(doc);
|
|
31
32
|
}, [url]);
|
|
32
33
|
var triggerDom = /*#__PURE__*/React.createElement(React.Fragment, {
|
|
33
34
|
key: "trigger"
|
|
@@ -71,4 +72,4 @@ var TagCheck = function TagCheck(props) {
|
|
|
71
72
|
src: src
|
|
72
73
|
})));
|
|
73
74
|
};
|
|
74
|
-
export default
|
|
75
|
+
export default ViewDocment;
|