easy3wui 1.5.29 → 1.5.31

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.
@@ -119,10 +119,10 @@ var Easy3wFlow = function (_Component) {
119
119
  });
120
120
 
121
121
  var renderMidTemp = flowData.map(function (flow) {
122
- var item = flow.children.find(function (item, index, array) {
123
- return item.status != '40';
122
+ var item = flow.children.find(function (obj) {
123
+ return obj.status !== '40';
124
124
  });
125
- item = item ? item : flow.children[0];
125
+ item = item || flow.children[0];
126
126
  var firstItem = item || flow;
127
127
  // const firstItem = flow.children[0] || flow;
128
128
  var firstItemCode = firstItem.code;
@@ -133,31 +133,33 @@ var Easy3wFlow = function (_Component) {
133
133
  var nodeAuthFlag = firstItem.nodeAuthFlag,
134
134
  status = firstItem.status;
135
135
 
136
- if (status === '10' || status === '30') {
137
- mainPage = handlePage;
138
- }
139
- if (status === '20') {
140
- if (firstItem.readPage) {
141
- mainPage = readPage;
136
+ if (flow.status === '10' || flow.status === '20' || flow.status === '30') {
137
+ if (status === '10' || status === '30') {
138
+ mainPage = handlePage;
142
139
  }
143
- }
144
- if (status === '40') {
145
- mainPage = null;
146
- }
147
- // flag 等于 0 时
148
- // 10 待处理-跳转到一个统一的页面
149
- // 20 和 30 已完成- 跳转到readPage
150
- // 40 未开始,只显示节点
151
- if (nodeAuthFlag === '0') {
152
- if (status === '10') {
153
- mainPage = handlIngPage;
154
- }
155
- if (status === '20' || status === '30') {
156
- mainPage = readPage;
140
+ if (status === '20') {
141
+ if (firstItem.readPage) {
142
+ mainPage = readPage;
143
+ }
157
144
  }
158
145
  if (status === '40') {
159
146
  mainPage = null;
160
147
  }
148
+ // flag 等于 0 时
149
+ // 10 待处理-跳转到一个统一的页面
150
+ // 20 和 30 已完成- 跳转到readPage
151
+ // 40 未开始,只显示节点
152
+ if (nodeAuthFlag === '0') {
153
+ if (status === '10') {
154
+ mainPage = handlIngPage;
155
+ }
156
+ if (status === '20' || status === '30') {
157
+ mainPage = readPage;
158
+ }
159
+ if (status === '40') {
160
+ mainPage = null;
161
+ }
162
+ }
161
163
  }
162
164
  var processIng = _react2['default'].createElement(_badge2['default'], { status: 'processing' });
163
165
  // const mainPage = ((firstItem.status === '10' || firstItem.status === '30') ?
@@ -210,7 +210,7 @@ var Easy3wUpload = function (_Component) {
210
210
  if (isRead) {
211
211
  upProps = (0, _extends3['default'])({}, upProps, { children: true, showUploadList: { showDownloadIcon: true, showPreviewIcon: true, showRemoveIcon: false } });
212
212
  }
213
- if (previewFileFlag) {
213
+ if (previewFileFlag && fileViewFlag !== false) {
214
214
  upProps.onPreview = this.onPreview;
215
215
  }
216
216
  var beforeUpload = function beforeUpload(file) {
@@ -180,7 +180,8 @@ var BigFileUpload = function (_Component) {
180
180
  showUploadList = _props.showUploadList,
181
181
  urlDownloadFile = _props.urlDownloadFile,
182
182
  initialValue = _props.initialValue,
183
- propsAFlag = _props.propsAFlag;
183
+ propsAFlag = _props.propsAFlag,
184
+ fileViewFlag = _props.fileViewFlag;
184
185
  var _state = this.state,
185
186
  preUploading = _state.preUploading,
186
187
  uploadPercent = _state.uploadPercent,
@@ -312,7 +313,7 @@ var BigFileUpload = function (_Component) {
312
313
  },
313
314
  fileList: this.state.fileList
314
315
  };
315
- if (previewFileFlag) {
316
+ if (previewFileFlag && fileViewFlag !== false) {
316
317
  uploadProp.onPreview = this.onPreview;
317
318
  }
318
319
  if (isRead) {
@@ -214,7 +214,7 @@ var Easy3wUploadM = function (_Component) {
214
214
  if (isRead) {
215
215
  upProps = (0, _extends3['default'])({}, upProps, { children: true, showUploadList: { showPreviewIcon: false, showRemoveIcon: false } });
216
216
  }
217
- if (previewFileFlag) {
217
+ if (previewFileFlag && fileViewFlag !== false) {
218
218
  upProps.onPreview = this.onPreview;
219
219
  }
220
220
  var beforeUpload = function beforeUpload(file) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.5.29",
3
+ "version": "1.5.31",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",