ztxkui 4.2.23-343-beta → 4.2.23-344-beta

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.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export interface IProps {
3
- data: any;
3
+ data?: any;
4
4
  showStatus?: boolean;
5
5
  showProcessStatus?: boolean;
6
6
  showPrintDate?: boolean;
@@ -244,7 +244,7 @@ var WorkflowPrintContainer = function (_a) {
244
244
  React.createElement(Paragraph, { style: needHighlight ? { color: 'red' } : undefined },
245
245
  "\u5185\u5BB9\uFF1A", data === null || data === void 0 ? void 0 :
246
246
  data.noticeContent))),
247
- titleShown && (React.createElement(Header, __assign({ data: __assign(__assign({}, data), { taskName: data === null || data === void 0 ? void 0 : data.processInstName }) }, headerProp))),
247
+ titleShown && (React.createElement(Header, __assign({ data: __assign(__assign({}, data), { taskName: data === null || data === void 0 ? void 0 : data.processInstName }), showStatus: true, showPrintDate: true, priority: data === null || data === void 0 ? void 0 : data.priority }, headerProp))),
248
248
  React.createElement(ProcessDetail, { request: request, type: 'notice', data: data, showBizForm: true, toEdit: false, OuterComponent: createLazyComponent(data), showCfg: {
249
249
  detailShown: detailShown,
250
250
  approvalRecordsShown: approvalRecordsShown,
@@ -3,7 +3,7 @@ export declare function catchHandle(data: {
3
3
  customKey: string;
4
4
  customValue: string;
5
5
  mark: string;
6
- }, idKey?: string): void;
6
+ }, idKey?: string): Promise<unknown>;
7
7
  export declare function parseJwt(token: any): {
8
8
  header: any;
9
9
  payload: any;
@@ -80,7 +80,7 @@ export function catchHandle(data, idKey) {
80
80
  // });
81
81
  // } else {
82
82
  // 不需要修改
83
- customFetch('/api/zmdms-user/user-custom/save', {
83
+ return customFetch('/api/zmdms-user/user-custom/save', {
84
84
  method: 'POST',
85
85
  body: JSON.stringify(__assign({ systemCategory: '1', userId: payload === null || payload === void 0 ? void 0 : payload.user_id, userName: payload === null || payload === void 0 ? void 0 : payload.real_name }, data)),
86
86
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "4.2.23-343-beta",
3
+ "version": "4.2.23-344-beta",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",