ydb-components-material 0.1.170 → 0.1.172

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.
@@ -1294,7 +1294,8 @@ var FileItem = function FileItem(_ref) {
1294
1294
  fileIndex: fileIndex,
1295
1295
  index: index,
1296
1296
  subIndex: subIndex,
1297
- valChange: valChange
1297
+ valChange: valChange,
1298
+ env: env
1298
1299
  }));
1299
1300
  };
1300
1301
  FileItem.displayName = 'FileItem';
@@ -26,7 +26,8 @@ function SignerInfo(props) {
26
26
  valChange = props.valChange,
27
27
  fileIndex = props.fileIndex,
28
28
  fileItemIndex = props.index,
29
- subIndex = props.subIndex;
29
+ subIndex = props.subIndex,
30
+ env = props.env;
30
31
  var _React$useState = React.useState([]),
31
32
  signerInfoList = _React$useState[0],
32
33
  setSignerInfoList = _React$useState[1];
@@ -37,6 +38,9 @@ function SignerInfo(props) {
37
38
  var _useState2 = useState(''),
38
39
  url = _useState2[0],
39
40
  setUrl = _useState2[1];
41
+ var _useState3 = useState(''),
42
+ urlStr = _useState3[0],
43
+ setUrlStr = _useState3[1];
40
44
  var handleFieldChange = function handleFieldChange(field, val, index) {
41
45
  var _extends2;
42
46
  var newList = [].concat(signerInfoList);
@@ -142,6 +146,7 @@ function SignerInfo(props) {
142
146
  fileObj.signId = id;
143
147
  valChange === null || valChange === void 0 ? void 0 : valChange(fileObj, fileIndex, fileItemIndex, subIndex);
144
148
  setUrl("https://zwfw.xzspglj.taiyuan.gov.cn/threeSign?id=" + id + "&draftNo=" + workNo + "&taskHandleItem=" + taskHandleItem);
149
+ setUrlStr((env && env.indexOf('release') > -1 ? 'http://221.204.12.137:11000/mh/pages/sign/threeSign' : 'https://zwfw.xzspglj.taiyuan.gov.cn/threeSign') + "?id=" + id + "&draftNo=" + workNo + "&taskHandleItem=" + taskHandleItem);
145
150
  setShowQRcode(true);
146
151
  } else {
147
152
  _Message.warning('信息保存失败,请重试');
@@ -173,10 +178,10 @@ function SignerInfo(props) {
173
178
  var onCopy = function onCopy() {
174
179
  var _navigator$clipboard;
175
180
  if ((_navigator$clipboard = navigator.clipboard) !== null && _navigator$clipboard !== void 0 && _navigator$clipboard.writeText) {
176
- navigator.clipboard.writeText(url);
181
+ navigator.clipboard.writeText(urlStr);
177
182
  } else {
178
183
  var textarea = document.createElement('textarea');
179
- textarea.value = url;
184
+ textarea.value = urlStr;
180
185
  textarea.style.position = 'fixed';
181
186
  textarea.style.opacity = '0';
182
187
  document.body.appendChild(textarea);
@@ -13,6 +13,7 @@ export interface SignFileProps {
13
13
  env: string;
14
14
  isPC?: boolean;
15
15
  style?: object;
16
+ parentPageUrl: string;
16
17
  applySeal: () => void;
17
18
  download: (value: any) => void;
18
19
  valChange: (value: any) => void;
@@ -32,7 +32,8 @@ var SignFile = function SignFile(_ref) {
32
32
  download = _ref.download,
33
33
  valChange = _ref.valChange,
34
34
  applySeal = _ref.applySeal,
35
- toSign = _ref.toSign;
35
+ toSign = _ref.toSign,
36
+ parentPageUrl = _ref.parentPageUrl;
36
37
  var fileName = file.fileName,
37
38
  fileUrl = file.fileUrl,
38
39
  fileId = file.fileId,
@@ -344,7 +345,7 @@ var SignFile = function SignFile(_ref) {
344
345
  });
345
346
  case 3:
346
347
  sealList = _context5.sent;
347
- if (!(userInfo.corpType === 'C04')) {
348
+ if (!(userInfo.certificateSno && userInfo.certificateSno.substring(0, 2) === '92')) {
348
349
  _context5.next = 4;
349
350
  break;
350
351
  }
@@ -593,7 +594,8 @@ var SignFile = function SignFile(_ref) {
593
594
  closeLoading: function closeLoading() {
594
595
  return setLoading(false);
595
596
  },
596
- showClose: false
597
+ showClose: false,
598
+ parentPageUrl: parentPageUrl
597
599
  }), isShowSealPage && /*#__PURE__*/React.createElement(SealPage, {
598
600
  showClose: false,
599
601
  isShowSealPage: isShowSealPage,
@@ -1300,7 +1300,8 @@ var FileItem = function FileItem(_ref) {
1300
1300
  fileIndex: fileIndex,
1301
1301
  index: index,
1302
1302
  subIndex: subIndex,
1303
- valChange: valChange
1303
+ valChange: valChange,
1304
+ env: env
1304
1305
  }));
1305
1306
  };
1306
1307
  FileItem.displayName = 'FileItem';
@@ -32,7 +32,8 @@ function SignerInfo(props) {
32
32
  valChange = props.valChange,
33
33
  fileIndex = props.fileIndex,
34
34
  fileItemIndex = props.index,
35
- subIndex = props.subIndex;
35
+ subIndex = props.subIndex,
36
+ env = props.env;
36
37
  var _React$useState = _react["default"].useState([]),
37
38
  signerInfoList = _React$useState[0],
38
39
  setSignerInfoList = _React$useState[1];
@@ -43,6 +44,9 @@ function SignerInfo(props) {
43
44
  var _useState2 = (0, _react.useState)(''),
44
45
  url = _useState2[0],
45
46
  setUrl = _useState2[1];
47
+ var _useState3 = (0, _react.useState)(''),
48
+ urlStr = _useState3[0],
49
+ setUrlStr = _useState3[1];
46
50
  var handleFieldChange = function handleFieldChange(field, val, index) {
47
51
  var _extends2;
48
52
  var newList = [].concat(signerInfoList);
@@ -148,6 +152,7 @@ function SignerInfo(props) {
148
152
  fileObj.signId = id;
149
153
  valChange === null || valChange === void 0 ? void 0 : valChange(fileObj, fileIndex, fileItemIndex, subIndex);
150
154
  setUrl("https://zwfw.xzspglj.taiyuan.gov.cn/threeSign?id=" + id + "&draftNo=" + workNo + "&taskHandleItem=" + taskHandleItem);
155
+ setUrlStr((env && env.indexOf('release') > -1 ? 'http://221.204.12.137:11000/mh/pages/sign/threeSign' : 'https://zwfw.xzspglj.taiyuan.gov.cn/threeSign') + "?id=" + id + "&draftNo=" + workNo + "&taskHandleItem=" + taskHandleItem);
151
156
  setShowQRcode(true);
152
157
  } else {
153
158
  _message["default"].warning('信息保存失败,请重试');
@@ -179,10 +184,10 @@ function SignerInfo(props) {
179
184
  var onCopy = function onCopy() {
180
185
  var _navigator$clipboard;
181
186
  if ((_navigator$clipboard = navigator.clipboard) !== null && _navigator$clipboard !== void 0 && _navigator$clipboard.writeText) {
182
- navigator.clipboard.writeText(url);
187
+ navigator.clipboard.writeText(urlStr);
183
188
  } else {
184
189
  var textarea = document.createElement('textarea');
185
- textarea.value = url;
190
+ textarea.value = urlStr;
186
191
  textarea.style.position = 'fixed';
187
192
  textarea.style.opacity = '0';
188
193
  document.body.appendChild(textarea);
@@ -13,6 +13,7 @@ export interface SignFileProps {
13
13
  env: string;
14
14
  isPC?: boolean;
15
15
  style?: object;
16
+ parentPageUrl: string;
16
17
  applySeal: () => void;
17
18
  download: (value: any) => void;
18
19
  valChange: (value: any) => void;
@@ -38,7 +38,8 @@ var SignFile = function SignFile(_ref) {
38
38
  download = _ref.download,
39
39
  valChange = _ref.valChange,
40
40
  applySeal = _ref.applySeal,
41
- toSign = _ref.toSign;
41
+ toSign = _ref.toSign,
42
+ parentPageUrl = _ref.parentPageUrl;
42
43
  var fileName = file.fileName,
43
44
  fileUrl = file.fileUrl,
44
45
  fileId = file.fileId,
@@ -350,7 +351,7 @@ var SignFile = function SignFile(_ref) {
350
351
  });
351
352
  case 3:
352
353
  sealList = _context5.sent;
353
- if (!(userInfo.corpType === 'C04')) {
354
+ if (!(userInfo.certificateSno && userInfo.certificateSno.substring(0, 2) === '92')) {
354
355
  _context5.next = 4;
355
356
  break;
356
357
  }
@@ -599,7 +600,8 @@ var SignFile = function SignFile(_ref) {
599
600
  closeLoading: function closeLoading() {
600
601
  return setLoading(false);
601
602
  },
602
- showClose: false
603
+ showClose: false,
604
+ parentPageUrl: parentPageUrl
603
605
  }), isShowSealPage && /*#__PURE__*/_react["default"].createElement(_seal["default"], {
604
606
  showClose: false,
605
607
  isShowSealPage: isShowSealPage,
@@ -199,6 +199,21 @@ const SignFileMeta: IPublicTypeComponentMetadata = {
199
199
  "isRequired": true
200
200
  }
201
201
  },
202
+ {
203
+ "title": {
204
+ "label": {
205
+ "type": "i18n",
206
+ "en-US": "parentPageUrl",
207
+ "zh-CN": "parentPageUrl"
208
+ }
209
+ },
210
+ "name": "parentPageUrl",
211
+ "setter": {
212
+ "componentName": "StringSetter",
213
+ "isRequired": true,
214
+ "initialValue": ""
215
+ }
216
+ },
202
217
  ],
203
218
  "supports": {
204
219
  "style": true
@@ -98,7 +98,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
98
98
  packageName = 'ydb-components-material';
99
99
  }
100
100
  if (version === void 0) {
101
- version = '0.1.170';
101
+ version = '0.1.172';
102
102
  }
103
103
  if (basicLibraryVersion === void 0) {
104
104
  basicLibraryVersion = {
@@ -185,6 +185,20 @@ var SignFileMeta = {
185
185
  "componentName": "FunctionSetter",
186
186
  "isRequired": true
187
187
  }
188
+ }, {
189
+ "title": {
190
+ "label": {
191
+ "type": "i18n",
192
+ "en-US": "parentPageUrl",
193
+ "zh-CN": "parentPageUrl"
194
+ }
195
+ },
196
+ "name": "parentPageUrl",
197
+ "setter": {
198
+ "componentName": "StringSetter",
199
+ "isRequired": true,
200
+ "initialValue": ""
201
+ }
188
202
  }],
189
203
  "supports": {
190
204
  "style": true
@@ -103,7 +103,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
103
103
  packageName = 'ydb-components-material';
104
104
  }
105
105
  if (version === void 0) {
106
- version = '0.1.170';
106
+ version = '0.1.172';
107
107
  }
108
108
  if (basicLibraryVersion === void 0) {
109
109
  basicLibraryVersion = {
@@ -190,6 +190,20 @@ var SignFileMeta = {
190
190
  "componentName": "FunctionSetter",
191
191
  "isRequired": true
192
192
  }
193
+ }, {
194
+ "title": {
195
+ "label": {
196
+ "type": "i18n",
197
+ "en-US": "parentPageUrl",
198
+ "zh-CN": "parentPageUrl"
199
+ }
200
+ },
201
+ "name": "parentPageUrl",
202
+ "setter": {
203
+ "componentName": "StringSetter",
204
+ "isRequired": true,
205
+ "initialValue": ""
206
+ }
193
207
  }],
194
208
  "supports": {
195
209
  "style": true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-components-material",
3
- "version": "0.1.170",
3
+ "version": "0.1.172",
4
4
  "description": "ydb-components-material",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -102,10 +102,10 @@
102
102
  },
103
103
  "componentConfig": {
104
104
  "isComponentLibrary": true,
105
- "materialSchema": "https://unpkg.com/ydb-components-material@0.1.170/build/lowcode/assets-prod.json"
105
+ "materialSchema": "https://unpkg.com/ydb-components-material@0.1.172/build/lowcode/assets-prod.json"
106
106
  },
107
107
  "lcMeta": {
108
108
  "type": "component"
109
109
  },
110
- "homepage": "https://unpkg.com/ydb-components-material@0.1.170/build/index.html"
110
+ "homepage": "https://unpkg.com/ydb-components-material@0.1.172/build/index.html"
111
111
  }