ydb-components-material 0.1.170 → 0.1.171

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);
@@ -344,7 +344,7 @@ var SignFile = function SignFile(_ref) {
344
344
  });
345
345
  case 3:
346
346
  sealList = _context5.sent;
347
- if (!(userInfo.corpType === 'C04')) {
347
+ if (!(userInfo.certificateSno && userInfo.certificateSno.substring(0, 2) === '92')) {
348
348
  _context5.next = 4;
349
349
  break;
350
350
  }
@@ -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);
@@ -350,7 +350,7 @@ var SignFile = function SignFile(_ref) {
350
350
  });
351
351
  case 3:
352
352
  sealList = _context5.sent;
353
- if (!(userInfo.corpType === 'C04')) {
353
+ if (!(userInfo.certificateSno && userInfo.certificateSno.substring(0, 2) === '92')) {
354
354
  _context5.next = 4;
355
355
  break;
356
356
  }
@@ -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.171';
102
102
  }
103
103
  if (basicLibraryVersion === void 0) {
104
104
  basicLibraryVersion = {
@@ -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.171';
107
107
  }
108
108
  if (basicLibraryVersion === void 0) {
109
109
  basicLibraryVersion = {
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.171",
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.171/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.171/build/index.html"
111
111
  }