fmui-base 1.0.3 → 1.0.5
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.
|
@@ -201,7 +201,9 @@ var PageHome = function (_React$Component) {
|
|
|
201
201
|
setPageTitle("新建");
|
|
202
202
|
}
|
|
203
203
|
var isPush = props.isPush;
|
|
204
|
-
|
|
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 =
|
|
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;
|
|
@@ -1265,7 +1267,7 @@ var PageHome = function (_React$Component) {
|
|
|
1265
1267
|
}
|
|
1266
1268
|
}
|
|
1267
1269
|
}
|
|
1268
|
-
buttonList.push({
|
|
1270
|
+
// buttonList.push({name:"邮件转发",type:'secondary',display:'banner',no:18});
|
|
1269
1271
|
if (listType != '0') {
|
|
1270
1272
|
this.setState({
|
|
1271
1273
|
buttonList: buttonList,
|
|
@@ -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 {
|