ls-pro-common 3.1.35 → 3.1.36
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/IconSelector.js +2 -2
- package/es/components/ImageSelector.js +1 -1
- package/es/components/RecordLog/index.js +7 -6
- package/es/http/index.js +2 -1
- package/lib/components/IconSelector.js +2 -2
- package/lib/components/ImageSelector.js +1 -1
- package/lib/components/RecordLog/index.js +7 -6
- package/lib/http/index.js +2 -1
- package/package.json +1 -1
|
@@ -44,7 +44,7 @@ function IconSelector(prop) {
|
|
|
44
44
|
_prop$allowClear = prop.allowClear,
|
|
45
45
|
allowClear = _prop$allowClear === void 0 ? true : _prop$allowClear,
|
|
46
46
|
_prop$title = prop.title,
|
|
47
|
-
title = _prop$title === void 0 ?
|
|
47
|
+
title = _prop$title === void 0 ? '选择图标' : _prop$title,
|
|
48
48
|
_prop$modalWidth = prop.modalWidth,
|
|
49
49
|
modalWidth = _prop$modalWidth === void 0 ? '630px' : _prop$modalWidth,
|
|
50
50
|
name = prop.name,
|
|
@@ -144,7 +144,7 @@ function IconSelector(prop) {
|
|
|
144
144
|
setSearchKey(e.target.value || '');
|
|
145
145
|
}
|
|
146
146
|
}))),
|
|
147
|
-
|
|
147
|
+
open: visible,
|
|
148
148
|
width: modalWidth,
|
|
149
149
|
destroyOnClose: true,
|
|
150
150
|
onCancel: function onCancel() {
|
|
@@ -95,10 +95,10 @@ var RecordLog = function RecordLog(props) {
|
|
|
95
95
|
}, [recordKey, bizNo, param]);
|
|
96
96
|
var renderFields = function renderFields(fields) {
|
|
97
97
|
if (!fields || !fields.length) return null;
|
|
98
|
-
return fields.map(function (field) {
|
|
98
|
+
return fields.map(function (field, index) {
|
|
99
99
|
return /*#__PURE__*/React.createElement("div", {
|
|
100
100
|
className: "log-item-field",
|
|
101
|
-
key: Math.random() + ''
|
|
101
|
+
key: Math.random() + '-' + index
|
|
102
102
|
}, /*#__PURE__*/React.createElement("span", {
|
|
103
103
|
className: "log-item-label"
|
|
104
104
|
}, field.fieldDisPlayName, " :"), /*#__PURE__*/React.createElement("span", {
|
|
@@ -114,9 +114,10 @@ var RecordLog = function RecordLog(props) {
|
|
|
114
114
|
});
|
|
115
115
|
};
|
|
116
116
|
var LogDom = useMemo(function () {
|
|
117
|
-
return logData.map(function (item) {
|
|
118
|
-
return /*#__PURE__*/React.createElement(
|
|
119
|
-
className: "record-log-item"
|
|
117
|
+
return logData.map(function (item, index) {
|
|
118
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
119
|
+
className: "record-log-item",
|
|
120
|
+
key: Math.random() + '-' + index
|
|
120
121
|
}, /*#__PURE__*/React.createElement("div", {
|
|
121
122
|
className: "log-item-time"
|
|
122
123
|
}, item.createTime), /*#__PURE__*/React.createElement("div", {
|
|
@@ -133,7 +134,7 @@ var RecordLog = function RecordLog(props) {
|
|
|
133
134
|
className: "log-item-header"
|
|
134
135
|
}, showResourceName && /*#__PURE__*/React.createElement("span", null, item.resourceName || ''), /*#__PURE__*/React.createElement("span", null, item.creator || ''), /*#__PURE__*/React.createElement("span", null, OP_TYPE_MAP[item.operateType] || OP_TYPE_MAP['U']), /*#__PURE__*/React.createElement("span", null, item.dataName || ''), showKey && /*#__PURE__*/React.createElement("span", null, item.dataCode || '')), /*#__PURE__*/React.createElement("div", {
|
|
135
136
|
className: "log-item-content"
|
|
136
|
-
}, renderFields(item.content))))
|
|
137
|
+
}, renderFields(item.content))));
|
|
137
138
|
});
|
|
138
139
|
}, [logData]);
|
|
139
140
|
return /*#__PURE__*/React.createElement("div", {
|
package/es/http/index.js
CHANGED
|
@@ -88,9 +88,10 @@ request.interceptors.request.use(function (url, options) {
|
|
|
88
88
|
options.headers['x-asm-prefer-tag'] = tag; //灰度发版标识
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
options.headers['terminal'] = 'PC';
|
|
92
91
|
if (isDingtalk) {
|
|
93
92
|
options.headers['terminal'] = 'APP';
|
|
93
|
+
} else {
|
|
94
|
+
options.headers['terminal'] = 'PC';
|
|
94
95
|
}
|
|
95
96
|
var expireWarnFlag = getCache('expireWarnFlag', true);
|
|
96
97
|
options.headers.expireWarnFlag = expireWarnFlag === '1' ? '1' : '0';
|
|
@@ -44,7 +44,7 @@ function IconSelector(prop) {
|
|
|
44
44
|
_prop$allowClear = prop.allowClear,
|
|
45
45
|
allowClear = _prop$allowClear === void 0 ? true : _prop$allowClear,
|
|
46
46
|
_prop$title = prop.title,
|
|
47
|
-
title = _prop$title === void 0 ?
|
|
47
|
+
title = _prop$title === void 0 ? '选择图标' : _prop$title,
|
|
48
48
|
_prop$modalWidth = prop.modalWidth,
|
|
49
49
|
modalWidth = _prop$modalWidth === void 0 ? '630px' : _prop$modalWidth,
|
|
50
50
|
name = prop.name,
|
|
@@ -144,7 +144,7 @@ function IconSelector(prop) {
|
|
|
144
144
|
setSearchKey(e.target.value || '');
|
|
145
145
|
}
|
|
146
146
|
}))),
|
|
147
|
-
|
|
147
|
+
open: visible,
|
|
148
148
|
width: modalWidth,
|
|
149
149
|
destroyOnClose: true,
|
|
150
150
|
onCancel: function onCancel() {
|
|
@@ -95,10 +95,10 @@ var RecordLog = function RecordLog(props) {
|
|
|
95
95
|
}, [recordKey, bizNo, param]);
|
|
96
96
|
var renderFields = function renderFields(fields) {
|
|
97
97
|
if (!fields || !fields.length) return null;
|
|
98
|
-
return fields.map(function (field) {
|
|
98
|
+
return fields.map(function (field, index) {
|
|
99
99
|
return /*#__PURE__*/React.createElement("div", {
|
|
100
100
|
className: "log-item-field",
|
|
101
|
-
key: Math.random() + ''
|
|
101
|
+
key: Math.random() + '-' + index
|
|
102
102
|
}, /*#__PURE__*/React.createElement("span", {
|
|
103
103
|
className: "log-item-label"
|
|
104
104
|
}, field.fieldDisPlayName, " :"), /*#__PURE__*/React.createElement("span", {
|
|
@@ -114,9 +114,10 @@ var RecordLog = function RecordLog(props) {
|
|
|
114
114
|
});
|
|
115
115
|
};
|
|
116
116
|
var LogDom = useMemo(function () {
|
|
117
|
-
return logData.map(function (item) {
|
|
118
|
-
return /*#__PURE__*/React.createElement(
|
|
119
|
-
className: "record-log-item"
|
|
117
|
+
return logData.map(function (item, index) {
|
|
118
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
119
|
+
className: "record-log-item",
|
|
120
|
+
key: Math.random() + '-' + index
|
|
120
121
|
}, /*#__PURE__*/React.createElement("div", {
|
|
121
122
|
className: "log-item-time"
|
|
122
123
|
}, item.createTime), /*#__PURE__*/React.createElement("div", {
|
|
@@ -133,7 +134,7 @@ var RecordLog = function RecordLog(props) {
|
|
|
133
134
|
className: "log-item-header"
|
|
134
135
|
}, showResourceName && /*#__PURE__*/React.createElement("span", null, item.resourceName || ''), /*#__PURE__*/React.createElement("span", null, item.creator || ''), /*#__PURE__*/React.createElement("span", null, OP_TYPE_MAP[item.operateType] || OP_TYPE_MAP['U']), /*#__PURE__*/React.createElement("span", null, item.dataName || ''), showKey && /*#__PURE__*/React.createElement("span", null, item.dataCode || '')), /*#__PURE__*/React.createElement("div", {
|
|
135
136
|
className: "log-item-content"
|
|
136
|
-
}, renderFields(item.content))))
|
|
137
|
+
}, renderFields(item.content))));
|
|
137
138
|
});
|
|
138
139
|
}, [logData]);
|
|
139
140
|
return /*#__PURE__*/React.createElement("div", {
|
package/lib/http/index.js
CHANGED
|
@@ -88,9 +88,10 @@ request.interceptors.request.use(function (url, options) {
|
|
|
88
88
|
options.headers['x-asm-prefer-tag'] = tag; //灰度发版标识
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
options.headers['terminal'] = 'PC';
|
|
92
91
|
if (isDingtalk) {
|
|
93
92
|
options.headers['terminal'] = 'APP';
|
|
93
|
+
} else {
|
|
94
|
+
options.headers['terminal'] = 'PC';
|
|
94
95
|
}
|
|
95
96
|
var expireWarnFlag = getCache('expireWarnFlag', true);
|
|
96
97
|
options.headers.expireWarnFlag = expireWarnFlag === '1' ? '1' : '0';
|