venus-design 1.0.85 → 1.0.87

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.
@@ -117,7 +117,7 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
117
117
  var processDefVal = _Form.useWatch('processDef', form);
118
118
  var findByOption = /*#__PURE__*/function () {
119
119
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(record, code, name) {
120
- var _record$id, rawId, hasAmpersand, serviceId, flowRes, _flowRes$data, workflowcode, formid, columnlist, isconfig, _processList, wfTitleConfig, _componentUrl, defaultWorkCode, wfTitle, defaultName;
120
+ var _record$id, rawId, hasAmpersand, serviceId, flowRes, _flowRes$data, workflowcode, workflowname, formid, columnlist, isconfig, _processList, wfTitleConfig, _componentUrl, defaultWorkCode, wfTitle, defaultName;
121
121
  return _regeneratorRuntime().wrap(function _callee$(_context) {
122
122
  while (1) switch (_context.prev = _context.next) {
123
123
  case 0:
@@ -142,15 +142,19 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
142
142
  setDefaultName(record, name);
143
143
  return _context.abrupt("return");
144
144
  case 13:
145
- _flowRes$data = flowRes.data, workflowcode = _flowRes$data.workflowcode, formid = _flowRes$data.formid, columnlist = _flowRes$data.columnlist, isconfig = _flowRes$data.isconfig, _processList = _flowRes$data.processList, wfTitleConfig = _flowRes$data.wfTitleConfig, _componentUrl = _flowRes$data.componentUrl;
145
+ _flowRes$data = flowRes.data, workflowcode = _flowRes$data.workflowcode, workflowname = _flowRes$data.workflowname, formid = _flowRes$data.formid, columnlist = _flowRes$data.columnlist, isconfig = _flowRes$data.isconfig, _processList = _flowRes$data.processList, wfTitleConfig = _flowRes$data.wfTitleConfig, _componentUrl = _flowRes$data.componentUrl;
146
146
  defaultWorkCode = workflowcode; // 3. 处理 processList (关联的多流程)
147
147
  if (_processList && _processList.length && _processList.length > 0) {
148
148
  setProcessList(_processList);
149
- ;
150
149
  form.setFieldsValue({
151
150
  processDef: _processList[0].wfBaseCode
152
151
  });
153
152
  defaultWorkCode = _processList[0].wfBaseCode;
153
+ } else {
154
+ setProcessList([{
155
+ wfBaseCode: workflowcode,
156
+ wfBaseName: workflowname
157
+ }]);
154
158
  }
155
159
  // 4. 处理 componentUrl
156
160
  if (_componentUrl) {
@@ -33,7 +33,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
33
33
  import React, { useState, useEffect, useRef } from 'react';
34
34
  import { UploadOutlined, DownloadOutlined, DeleteOutlined, InboxOutlined } from '@ant-design/icons';
35
35
  import styled from '@emotion/styled';
36
- import { DownLoad, storage, deleteNewFile, downloadFile, uploadFile, SelectKYSeclevel, MAX_SIZE } from "./..";
36
+ import { DownLoad, storage, deleteNewFile, downloadFile, uploadFile, SelectKYSeclevel, MAX_SIZE, DownLoadFile } from "./..";
37
37
  import "./styles.less";
38
38
  var Item = _Form.Item;
39
39
  import { updateFileSecLevelNew } from "./service";
@@ -334,7 +334,9 @@ var VenusUploadSecLevel = function VenusUploadSecLevel(props) {
334
334
  }
335
335
  })), !uploading && /*#__PURE__*/React.createElement(_Tooltip, {
336
336
  title: "\u4E0B\u8F7D"
337
- }, /*#__PURE__*/React.createElement(DownLoad, {
337
+ }, /*#__PURE__*/React.createElement(DownLoadFile
338
+ //@ts-ignore
339
+ , {
338
340
  hideProgress: true,
339
341
  params: {
340
342
  method: 'get'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "venus-design",
3
- "version": "1.0.85",
3
+ "version": "1.0.87",
4
4
  "description": "venus all compoments",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",