ztxkui 3.8.10 → 3.8.11

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.
@@ -167,31 +167,28 @@ var Sinatures = function (_a) {
167
167
  .then(function (res) {
168
168
  var _a, _b, _c;
169
169
  if (res.status === 200 && res.data.code === 200) {
170
- // 当前部门和流程没查到数据时 调下面接口查所有的印章
171
- if (((_a = res.data.data) === null || _a === void 0 ? void 0 : _a.records.length) === 0) {
172
- request({
173
- url: '/api/zmdms-resource/qyssealinfo/list',
174
- method: 'GET',
175
- })
176
- .then(function (res) {
177
- var _a, _b;
178
- if ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b[0]) {
179
- var list = res.data.data.map(function (item) { return ({
180
- sealId: item.id,
181
- sealName: item.sealName,
182
- }); });
183
- setElectronicList(list);
184
- }
185
- else {
186
- message.error(res.data.msg || '出错了');
187
- }
188
- })
189
- .catch(function (error) {
190
- var _a, _b;
191
- message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || '请求失败!');
192
- });
193
- }
194
- setElectronicList((_c = (_b = res.data.data) === null || _b === void 0 ? void 0 : _b.records[0]) === null || _c === void 0 ? void 0 : _c.sealInfoList);
170
+ // 当前部门和流程没查到数据时 调下面接口查所有的印章 20220930注释掉这个逻辑
171
+ // if (res.data.data?.records.length === 0) {
172
+ // request({
173
+ // url: '/api/zmdms-resource/qyssealinfo/list',
174
+ // method: 'GET',
175
+ // })
176
+ // .then((res) => {
177
+ // if (res.data?.data?.[0]) {
178
+ // const list = res.data.data.map((item) => ({
179
+ // sealId: item.id,
180
+ // sealName: item.sealName,
181
+ // }));
182
+ // setElectronicList(list);
183
+ // } else {
184
+ // message.error(res.data.msg || '出错了');
185
+ // }
186
+ // })
187
+ // .catch((error) => {
188
+ // message.error(error?.response?.data?.msg || '请求失败!');
189
+ // });
190
+ // }
191
+ setElectronicList(((_c = (_b = (_a = res.data.data) === null || _a === void 0 ? void 0 : _a.records) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.sealInfoList) || []);
195
192
  }
196
193
  else {
197
194
  message.error(res.data.msg || '出错了');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "3.8.10",
3
+ "version": "3.8.11",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",