fmui-base 2.1.48 → 2.1.50

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.
package/README.md CHANGED
@@ -3,6 +3,8 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.1.50:流程普通退回增加回调
7
+ - 2.1.49:流程提交到最后结束节点可以直接结束,跳过确认环节
6
8
  - 2.1.48:表单子表数据丢失处理,子表与关联表子表冲突
7
9
  - 2.1.47:流程支持发起子流程
8
10
  - 2.1.46:流程支持发起子流程
@@ -2322,17 +2322,28 @@ var PageHome = function (_React$Component) {
2322
2322
  if (nextList.length == 1 && nextList[0]['end']) {
2323
2323
  //下一个后继活动是结束
2324
2324
  isEnd = true;
2325
- if (hasCommentField == "0" && hasCirculate == false && radomList.length == 0) {
2326
- t.setState({
2327
- urgentHidden: true,
2328
- urgentList: [],
2329
- isEnd: isEnd
2330
- }, function () {
2331
- param.selectedActivity = '[{"id":"end_node","name":"结束","level":""}]';
2332
- t.sendFlow(param);
2333
- });
2334
- return false;
2335
- }
2325
+
2326
+ t.setState({
2327
+ urgentHidden: true,
2328
+ urgentList: [],
2329
+ isEnd: isEnd
2330
+ }, function () {
2331
+ param.selectedActivity = '[{"id":"end_node","name":"结束","level":""}]';
2332
+ t.sendFlow(param);
2333
+ });
2334
+ return false;
2335
+
2336
+ // if(hasCommentField=="0" && hasCirculate==false && radomList.length==0){
2337
+ // t.setState({
2338
+ // urgentHidden:true,
2339
+ // urgentList:[],
2340
+ // isEnd:isEnd
2341
+ // },function(){
2342
+ // param.selectedActivity='[{"id":"end_node","name":"结束","level":""}]';
2343
+ // t.sendFlow(param);
2344
+ // });
2345
+ // return false;
2346
+ // }
2336
2347
  }
2337
2348
  //let tasktype = t.state.tasktype;
2338
2349
  var urgentHidden = false;
@@ -4066,6 +4077,8 @@ var PageHome = function (_React$Component) {
4066
4077
  //操作回调
4067
4078
  if (content.isStart == '1' && typeof FlowCommon.operateCallBack === "function") {
4068
4079
  FlowCommon.operateCallBack({ type: 0, dataId: dataId, isBatch: 0 }, t.state);
4080
+ } else if (typeof FlowCommon.operateCallBack === "function") {
4081
+ FlowCommon.operateCallBack({ type: 8, dataId: dataId, isBatch: 0 }, t.state);
4069
4082
  }
4070
4083
  //项目开发扩展
4071
4084
  var mobileExt;
@@ -4076,8 +4089,10 @@ var PageHome = function (_React$Component) {
4076
4089
  } catch (e) {
4077
4090
  // alert("exception: "+e.message);
4078
4091
  }
4079
- if (typeof mobileExt !== 'undefined' && typeof mobileExt["operateCallBack"] === "function") {
4092
+ if (content.isStart == '1' && typeof mobileExt !== 'undefined' && typeof mobileExt["operateCallBack"] === "function") {
4080
4093
  mobileExt["operateCallBack"]({ type: 0, dataId: dataId, isBatch: 0 }, t.state);
4094
+ } else if (typeof FlowCommon.operateCallBack === "function") {
4095
+ FlowCommon.operateCallBack({ type: 8, dataId: dataId, isBatch: 0 }, t.state);
4081
4096
  }
4082
4097
 
4083
4098
  if (isPush == '1') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.1.48",
3
+ "version": "2.1.50",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes