fmui-base 1.0.4 → 1.0.6

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.
@@ -50,7 +50,7 @@ var PageHome = function (_React$Component) {
50
50
  var context = document.getElementById("context").value;
51
51
 
52
52
  var module = props.module;
53
- FFlowCommon = require('pages/flow_common/' + module).default ? require('pages/flow_common/' + module).default : require('pages/flow_common/' + module);
53
+ FlowCommon = require('pages/flow_common/' + module).default ? require('pages/flow_common/' + module).default : require('pages/flow_common/' + module);
54
54
 
55
55
  // var itemParam =
56
56
  _this.state = {
@@ -201,7 +201,9 @@ var PageHome = function (_React$Component) {
201
201
  setPageTitle("新建");
202
202
  }
203
203
  var isPush = props.isPush;
204
- var isDraft = props.isDraft; //是不是草稿箱,1是,0:不是
204
+
205
+ var query = props.query == null ? {} : JSON.parse(props.query);
206
+ var isDraft = query.isDraft; //是不是草稿箱,1是,0:不是
205
207
  if (isDraft) {
206
208
  permissionCode = 'draft';
207
209
  } else {
@@ -210,7 +212,7 @@ var PageHome = function (_React$Component) {
210
212
  if (isPush != '0') {
211
213
  permissionCode = 'other';
212
214
  }
213
- var project = props.project; //项目,是首页,公文,还是
215
+ var project = query.project; //项目,是首页,公文,还是
214
216
  if (project) {} else {
215
217
  project = "";
216
218
  }
@@ -393,7 +395,7 @@ var PageHome = function (_React$Component) {
393
395
 
394
396
  //处理特有参数
395
397
  if (typeof FlowCommon.dealwithCommonParam === "function") {
396
- param = FlowCommon.dealwithCommonParam(param, props);
398
+ param = FlowCommon.dealwithCommonParam(param, props, query);
397
399
  }
398
400
  _this.state = param;
399
401
  var t = _this;
@@ -5346,7 +5348,7 @@ var PageHome = function (_React$Component) {
5346
5348
  }
5347
5349
  }
5348
5350
  var isPush = nextProps.isPush;
5349
- var isDraft = nextProps.isDraft; //是不是草稿箱,1是,0:不是
5351
+ var isDraft = nextProps.query.isDraft; //是不是草稿箱,1是,0:不是
5350
5352
  if (isDraft) {
5351
5353
  permissionCode = 'draft';
5352
5354
  } else {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "title": "fmui-base",
5
- "description": "去掉邮件转发按钮功能",
5
+ "description": "subForm文件中单词错误",
6
6
  "main": "lib/index.js",
7
7
  "files": [
8
8
  "dist",