fmui-base 2.1.15 → 2.1.16

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,7 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.1.16:表单样式调整,选人组件去除接口token
6
7
  - 2.1.15:统一流程跳转问题
7
8
  - 2.1.14:增加分页组件
8
9
  - 2.1.13:表单选人组件全部类型可选时选不到用户处理
package/lib/form/form.js CHANGED
@@ -565,9 +565,8 @@ var PageHome = function (_React$Component) {
565
565
 
566
566
  if (subStyle != null && subStyle != '' && subStyle != undefined) {
567
567
  if (itemType == 'note') {
568
- subStyle.contentStyle = subStyle;
569
- }
570
- if (subStyle.contentStyle != null && subStyle.contentStyle != '' && subStyle.contentStyle != undefined) {
568
+ style.contentStyle = subStyle;
569
+ } else if (subStyle.contentStyle != null && subStyle.contentStyle != '' && subStyle.contentStyle != undefined) {
571
570
  if (subStyle.contentStyle.color != null && subStyle.contentStyle.color != undefined) {
572
571
  style.contentStyle.color = subStyle.contentStyle.color;
573
572
  }
@@ -740,7 +740,8 @@ var Page = function (_React$Component) {
740
740
  mode: "cors",
741
741
  headers: {
742
742
  'Accept': 'application/json, text/plain, */*',
743
- 'Content-Type': 'application/x-www-form-urlencoded'
743
+ 'Content-Type': 'application/x-www-form-urlencoded',
744
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
744
745
  }
745
746
  }).then(function (response) {
746
747
  return response.json();
@@ -2787,7 +2788,8 @@ var Page = function (_React$Component) {
2787
2788
  mode: "cors",
2788
2789
  headers: {
2789
2790
  'Accept': 'application/json, text/plain, */*',
2790
- 'Content-Type': 'application/x-www-form-urlencoded'
2791
+ 'Content-Type': 'application/x-www-form-urlencoded',
2792
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
2791
2793
  }
2792
2794
  }).then(function (response) {
2793
2795
  return response.json();
@@ -2898,7 +2900,8 @@ var Page = function (_React$Component) {
2898
2900
  mode: "cors",
2899
2901
  headers: {
2900
2902
  'Accept': 'application/json, text/plain, */*',
2901
- 'Content-Type': 'application/x-www-form-urlencoded'
2903
+ 'Content-Type': 'application/x-www-form-urlencoded',
2904
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
2902
2905
  }
2903
2906
  }).then(function (response) {
2904
2907
  return response.json();
@@ -3073,7 +3076,8 @@ var Page = function (_React$Component) {
3073
3076
  mode: "cors",
3074
3077
  headers: {
3075
3078
  'Accept': 'application/json, text/plain, */*',
3076
- 'Content-Type': 'application/x-www-form-urlencoded'
3079
+ 'Content-Type': 'application/x-www-form-urlencoded',
3080
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
3077
3081
  }
3078
3082
  }).then(function (response) {
3079
3083
  return response.json();
@@ -3192,7 +3196,8 @@ var Page = function (_React$Component) {
3192
3196
  mode: "cors",
3193
3197
  headers: {
3194
3198
  'Accept': 'application/json, text/plain, */*',
3195
- 'Content-Type': 'application/x-www-form-urlencoded'
3199
+ 'Content-Type': 'application/x-www-form-urlencoded',
3200
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
3196
3201
  }
3197
3202
  }).then(function (response) {
3198
3203
  return response.json();
@@ -3295,7 +3300,8 @@ var Page = function (_React$Component) {
3295
3300
  mode: "cors",
3296
3301
  headers: {
3297
3302
  'Accept': 'application/json, text/plain, */*',
3298
- 'Content-Type': 'application/x-www-form-urlencoded'
3303
+ 'Content-Type': 'application/x-www-form-urlencoded',
3304
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
3299
3305
  }
3300
3306
  }).then(function (response) {
3301
3307
  return response.json();
@@ -3398,7 +3404,8 @@ var Page = function (_React$Component) {
3398
3404
  mode: "cors",
3399
3405
  headers: {
3400
3406
  'Accept': 'application/json, text/plain, */*',
3401
- 'Content-Type': 'application/x-www-form-urlencoded'
3407
+ 'Content-Type': 'application/x-www-form-urlencoded',
3408
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
3402
3409
  }
3403
3410
  }).then(function (response) {
3404
3411
  return response.json();
@@ -3511,7 +3518,8 @@ var Page = function (_React$Component) {
3511
3518
  mode: "cors",
3512
3519
  headers: {
3513
3520
  'Accept': 'application/json, text/plain, */*',
3514
- 'Content-Type': 'application/x-www-form-urlencoded'
3521
+ 'Content-Type': 'application/x-www-form-urlencoded',
3522
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
3515
3523
  }
3516
3524
  }).then(function (response) {
3517
3525
  return response.json();
@@ -3671,7 +3679,8 @@ var Page = function (_React$Component) {
3671
3679
  mode: "cors",
3672
3680
  headers: {
3673
3681
  'Accept': 'application/json, text/plain, */*',
3674
- 'Content-Type': 'application/x-www-form-urlencoded'
3682
+ 'Content-Type': 'application/x-www-form-urlencoded',
3683
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
3675
3684
  }
3676
3685
  }).then(function (response) {
3677
3686
  return response.json();
@@ -5482,7 +5491,8 @@ var Page = function (_React$Component) {
5482
5491
  mode: "cors",
5483
5492
  headers: {
5484
5493
  'Accept': 'application/json, text/plain, */*',
5485
- 'Content-Type': 'application/x-www-form-urlencoded'
5494
+ 'Content-Type': 'application/x-www-form-urlencoded',
5495
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
5486
5496
  }
5487
5497
  }).then(function (response) {
5488
5498
  return response.json();
@@ -5522,7 +5532,8 @@ var Page = function (_React$Component) {
5522
5532
  mode: "cors",
5523
5533
  headers: {
5524
5534
  'Accept': 'application/json, text/plain, */*',
5525
- 'Content-Type': 'application/x-www-form-urlencoded'
5535
+ 'Content-Type': 'application/x-www-form-urlencoded',
5536
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
5526
5537
  }
5527
5538
  }).then(function (response) {
5528
5539
  return response.json();
@@ -5717,7 +5728,8 @@ var Page = function (_React$Component) {
5717
5728
  mode: "cors",
5718
5729
  headers: {
5719
5730
  'Accept': 'application/json, text/plain, */*',
5720
- 'Content-Type': 'application/x-www-form-urlencoded'
5731
+ 'Content-Type': 'application/x-www-form-urlencoded',
5732
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
5721
5733
  }
5722
5734
  }).then(function (response) {
5723
5735
  return response.json();
@@ -5749,7 +5761,8 @@ var Page = function (_React$Component) {
5749
5761
  mode: "cors",
5750
5762
  headers: {
5751
5763
  'Accept': 'application/json, text/plain, */*',
5752
- 'Content-Type': 'application/x-www-form-urlencoded'
5764
+ 'Content-Type': 'application/x-www-form-urlencoded',
5765
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
5753
5766
  }
5754
5767
  }).then(function (response) {
5755
5768
  return response.json();
@@ -5804,7 +5817,8 @@ var Page = function (_React$Component) {
5804
5817
  mode: "cors",
5805
5818
  headers: {
5806
5819
  'Accept': 'application/json, text/plain, */*',
5807
- 'Content-Type': 'application/x-www-form-urlencoded'
5820
+ 'Content-Type': 'application/x-www-form-urlencoded',
5821
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
5808
5822
  }
5809
5823
  }).then(function (response) {
5810
5824
  return response.json();
@@ -5847,7 +5861,8 @@ var Page = function (_React$Component) {
5847
5861
  mode: "cors",
5848
5862
  headers: {
5849
5863
  'Accept': 'application/json, text/plain, */*',
5850
- 'Content-Type': 'application/x-www-form-urlencoded'
5864
+ 'Content-Type': 'application/x-www-form-urlencoded',
5865
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
5851
5866
  }
5852
5867
  }).then(function (response) {
5853
5868
  return response.json();
@@ -5899,7 +5914,8 @@ var Page = function (_React$Component) {
5899
5914
  mode: "cors",
5900
5915
  headers: {
5901
5916
  'Accept': 'application/json, text/plain, */*',
5902
- 'Content-Type': 'application/x-www-form-urlencoded'
5917
+ 'Content-Type': 'application/x-www-form-urlencoded',
5918
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
5903
5919
  }
5904
5920
  }).then(function (response) {
5905
5921
  return response.json();
@@ -5953,7 +5969,8 @@ var Page = function (_React$Component) {
5953
5969
  mode: "cors",
5954
5970
  headers: {
5955
5971
  'Accept': 'application/json, text/plain, */*',
5956
- 'Content-Type': 'application/x-www-form-urlencoded'
5972
+ 'Content-Type': 'application/x-www-form-urlencoded',
5973
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
5957
5974
  }
5958
5975
  }).then(function (response) {
5959
5976
  return response.json();
@@ -6007,7 +6024,8 @@ var Page = function (_React$Component) {
6007
6024
  mode: "cors",
6008
6025
  headers: {
6009
6026
  'Accept': 'application/json, text/plain, */*',
6010
- 'Content-Type': 'application/x-www-form-urlencoded'
6027
+ 'Content-Type': 'application/x-www-form-urlencoded',
6028
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6011
6029
  }
6012
6030
  }).then(function (response) {
6013
6031
  return response.json();
@@ -6059,7 +6077,8 @@ var Page = function (_React$Component) {
6059
6077
  mode: "cors",
6060
6078
  headers: {
6061
6079
  'Accept': 'application/json, text/plain, */*',
6062
- 'Content-Type': 'application/x-www-form-urlencoded'
6080
+ 'Content-Type': 'application/x-www-form-urlencoded',
6081
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6063
6082
  }
6064
6083
  }).then(function (response) {
6065
6084
  return response.json();
@@ -6111,7 +6130,8 @@ var Page = function (_React$Component) {
6111
6130
  mode: "cors",
6112
6131
  headers: {
6113
6132
  'Accept': 'application/json, text/plain, */*',
6114
- 'Content-Type': 'application/x-www-form-urlencoded'
6133
+ 'Content-Type': 'application/x-www-form-urlencoded',
6134
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6115
6135
  }
6116
6136
  }).then(function (response) {
6117
6137
  return response.json();
@@ -6176,7 +6196,8 @@ var Page = function (_React$Component) {
6176
6196
  mode: "cors",
6177
6197
  headers: {
6178
6198
  'Accept': 'application/json, text/plain, */*',
6179
- 'Content-Type': 'application/x-www-form-urlencoded'
6199
+ 'Content-Type': 'application/x-www-form-urlencoded',
6200
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6180
6201
  }
6181
6202
  }).then(function (response) {
6182
6203
  return response.json();
@@ -6274,7 +6295,8 @@ var Page = function (_React$Component) {
6274
6295
  mode: "cors",
6275
6296
  headers: {
6276
6297
  'Accept': 'application/json, text/plain, */*',
6277
- 'Content-Type': 'application/x-www-form-urlencoded'
6298
+ 'Content-Type': 'application/x-www-form-urlencoded',
6299
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6278
6300
  }
6279
6301
  }).then(function (response) {
6280
6302
  return response.json();
@@ -6331,7 +6353,8 @@ var Page = function (_React$Component) {
6331
6353
  mode: "cors",
6332
6354
  headers: {
6333
6355
  'Accept': 'application/json, text/plain, */*',
6334
- 'Content-Type': 'application/x-www-form-urlencoded'
6356
+ 'Content-Type': 'application/x-www-form-urlencoded',
6357
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6335
6358
  }
6336
6359
  }).then(function (response) {
6337
6360
  return response.json();
@@ -6449,7 +6472,8 @@ var Page = function (_React$Component) {
6449
6472
  mode: "cors",
6450
6473
  headers: {
6451
6474
  'Accept': 'application/json, text/plain, */*',
6452
- 'Content-Type': 'application/x-www-form-urlencoded'
6475
+ 'Content-Type': 'application/x-www-form-urlencoded',
6476
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6453
6477
  }
6454
6478
  }).then(function (response) {
6455
6479
  return response.json();
@@ -6505,7 +6529,8 @@ var Page = function (_React$Component) {
6505
6529
  mode: "cors",
6506
6530
  headers: {
6507
6531
  'Accept': 'application/json, text/plain, */*',
6508
- 'Content-Type': 'application/x-www-form-urlencoded'
6532
+ 'Content-Type': 'application/x-www-form-urlencoded',
6533
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6509
6534
  }
6510
6535
  }).then(function (response) {
6511
6536
  return response.json();
@@ -6593,7 +6618,8 @@ var Page = function (_React$Component) {
6593
6618
  mode: "cors",
6594
6619
  headers: {
6595
6620
  'Accept': 'application/json, text/plain, */*',
6596
- 'Content-Type': 'application/x-www-form-urlencoded'
6621
+ 'Content-Type': 'application/x-www-form-urlencoded',
6622
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6597
6623
  }
6598
6624
  }).then(function (response) {
6599
6625
  return response.json();
@@ -6711,7 +6737,8 @@ var Page = function (_React$Component) {
6711
6737
  mode: "cors",
6712
6738
  headers: {
6713
6739
  'Accept': 'application/json, text/plain, */*',
6714
- 'Content-Type': 'application/x-www-form-urlencoded'
6740
+ 'Content-Type': 'application/x-www-form-urlencoded',
6741
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6715
6742
  }
6716
6743
  }).then(function (response) {
6717
6744
  return response.json();
@@ -6849,7 +6876,8 @@ var Page = function (_React$Component) {
6849
6876
  mode: "cors",
6850
6877
  headers: {
6851
6878
  'Accept': 'application/json, text/plain, */*',
6852
- 'Content-Type': 'application/x-www-form-urlencoded'
6879
+ 'Content-Type': 'application/x-www-form-urlencoded',
6880
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6853
6881
  }
6854
6882
  }).then(function (response) {
6855
6883
  return response.json();
@@ -6972,7 +7000,8 @@ var Page = function (_React$Component) {
6972
7000
  mode: "cors",
6973
7001
  headers: {
6974
7002
  'Accept': 'application/json, text/plain, */*',
6975
- 'Content-Type': 'application/x-www-form-urlencoded'
7003
+ 'Content-Type': 'application/x-www-form-urlencoded',
7004
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
6976
7005
  }
6977
7006
  }).then(function (response) {
6978
7007
  return response.json();
@@ -7091,7 +7120,8 @@ var Page = function (_React$Component) {
7091
7120
  mode: "cors",
7092
7121
  headers: {
7093
7122
  'Accept': 'application/json, text/plain, */*',
7094
- 'Content-Type': 'application/x-www-form-urlencoded'
7123
+ 'Content-Type': 'application/x-www-form-urlencoded',
7124
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
7095
7125
  }
7096
7126
  }).then(function (response) {
7097
7127
  return response.json();
@@ -7298,7 +7328,8 @@ var Page = function (_React$Component) {
7298
7328
  mode: "cors",
7299
7329
  headers: {
7300
7330
  'Accept': 'application/json, text/plain, */*',
7301
- 'Content-Type': 'application/x-www-form-urlencoded'
7331
+ 'Content-Type': 'application/x-www-form-urlencoded',
7332
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
7302
7333
  }
7303
7334
  }).then(function (response) {
7304
7335
  return response.json();
@@ -7362,7 +7393,8 @@ var Page = function (_React$Component) {
7362
7393
  mode: "cors",
7363
7394
  headers: {
7364
7395
  'Accept': 'application/json, text/plain, */*',
7365
- 'Content-Type': 'application/x-www-form-urlencoded'
7396
+ 'Content-Type': 'application/x-www-form-urlencoded',
7397
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
7366
7398
  }
7367
7399
  }).then(function (response) {
7368
7400
  return response.json();
@@ -7437,7 +7469,8 @@ var Page = function (_React$Component) {
7437
7469
  mode: "cors",
7438
7470
  headers: {
7439
7471
  'Accept': 'application/json, text/plain, */*',
7440
- 'Content-Type': 'application/x-www-form-urlencoded'
7472
+ 'Content-Type': 'application/x-www-form-urlencoded',
7473
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
7441
7474
  }
7442
7475
  }).then(function (response) {
7443
7476
  return response.json();
@@ -7481,7 +7514,8 @@ var Page = function (_React$Component) {
7481
7514
  mode: "cors",
7482
7515
  headers: {
7483
7516
  'Accept': 'application/json, text/plain, */*',
7484
- 'Content-Type': 'application/x-www-form-urlencoded'
7517
+ 'Content-Type': 'application/x-www-form-urlencoded',
7518
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
7485
7519
  }
7486
7520
  }).then(function (response) {
7487
7521
  return response.json();
@@ -7573,7 +7607,8 @@ var Page = function (_React$Component) {
7573
7607
  mode: "cors",
7574
7608
  headers: {
7575
7609
  'Accept': 'application/json, text/plain, */*',
7576
- 'Content-Type': 'application/x-www-form-urlencoded'
7610
+ 'Content-Type': 'application/x-www-form-urlencoded',
7611
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
7577
7612
  }
7578
7613
  }).then(function (response) {
7579
7614
  return response.json();
@@ -7652,7 +7687,8 @@ var Page = function (_React$Component) {
7652
7687
  mode: "cors",
7653
7688
  headers: {
7654
7689
  'Accept': 'application/json, text/plain, */*',
7655
- 'Content-Type': 'application/x-www-form-urlencoded'
7690
+ 'Content-Type': 'application/x-www-form-urlencoded',
7691
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
7656
7692
  }
7657
7693
  }).then(function (response) {
7658
7694
  return response.json();
@@ -7737,7 +7773,8 @@ var Page = function (_React$Component) {
7737
7773
  mode: "cors",
7738
7774
  headers: {
7739
7775
  'Accept': 'application/json, text/plain, */*',
7740
- 'Content-Type': 'application/x-www-form-urlencoded'
7776
+ 'Content-Type': 'application/x-www-form-urlencoded',
7777
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
7741
7778
  }
7742
7779
  }).then(function (response) {
7743
7780
  return response.json();
@@ -7822,7 +7859,8 @@ var Page = function (_React$Component) {
7822
7859
  mode: "cors",
7823
7860
  headers: {
7824
7861
  'Accept': 'application/json, text/plain, */*',
7825
- 'Content-Type': 'application/x-www-form-urlencoded'
7862
+ 'Content-Type': 'application/x-www-form-urlencoded',
7863
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
7826
7864
  }
7827
7865
  }).then(function (response) {
7828
7866
  return response.json();
@@ -10818,7 +10856,8 @@ var Page = function (_React$Component) {
10818
10856
  mode: "cors",
10819
10857
  headers: {
10820
10858
  'Accept': 'application/json, text/plain, */*',
10821
- 'Content-Type': 'application/x-www-form-urlencoded'
10859
+ 'Content-Type': 'application/x-www-form-urlencoded',
10860
+ 'Authorization': 'Bearer ' + getLoginUserInfo().token
10822
10861
  }
10823
10862
  }).then(function (response) {
10824
10863
  return response.json();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.1.15",
3
+ "version": "2.1.16",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",