fmui-base 2.0.7 → 2.0.9

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.0.9: 党建流程二开功能支持修改;选人组件岗位切换问题修改
7
+ - 2.0.8: 上传组件冒泡事件问题修复
6
8
  - 2.0.7: 上传组件结构调整
7
9
  - 2.0.6: 政治面貌全选问题修改
8
10
  - 2.0.5: 流程功能优化
package/lib/form/form.js CHANGED
@@ -278,6 +278,7 @@ var PageHome = function (_React$Component) {
278
278
 
279
279
  var tableName = data.mainTblName;
280
280
  var itemParam = {}; //元素参数
281
+ itemParam.formKey = formKey;
281
282
  itemParam.tableName = tableName;
282
283
  itemParam.uniqueName = uniqueName;
283
284
  var commentList = this.props.commentList;
@@ -2014,14 +2014,23 @@ var PageHome = function (_React$Component) {
2014
2014
  //提交
2015
2015
  var sendData = t.state.editFormData;
2016
2016
  sendData.formItem = [];
2017
+ var allEditIds = this.getAllEditIds(t.state.editFormData);
2018
+ var dataId = "";
2019
+ if (allEditIds) {
2020
+ dataId = allEditIds.split(",")[0];
2021
+ }
2022
+ var editType = this.state.editType;
2023
+ if (editType == "add" && dataId != "") {
2024
+ editType = "edit";
2025
+ }
2017
2026
  var param = {
2018
2027
  taskId: this.state.taskId,
2019
2028
  auditorUserIds: auditorUserIds,
2020
2029
  allEditIds: this.getAllEditIds(t.state.editFormData),
2021
2030
  code: this.state.code,
2022
2031
  formData: JSON.stringify(sendData),
2023
- dataId: this.state.dataId,
2024
- editType: this.state.editType,
2032
+ dataId: dataId,
2033
+ editType: editType,
2025
2034
  module: this.state.module,
2026
2035
  lock: this.state.lock,
2027
2036
  reminderContent: "",
@@ -3057,8 +3066,10 @@ var PageHome = function (_React$Component) {
3057
3066
  var allEditIdsArray = [];
3058
3067
 
3059
3068
  //主表id
3060
- var mainTableId = data.dataId;
3061
- allEditIdsArray.push(mainTableId);
3069
+ if (data.dataId) {
3070
+ var mainTableId = data.dataId;
3071
+ allEditIdsArray.push(mainTableId);
3072
+ }
3062
3073
 
3063
3074
  //关联表
3064
3075
  var relatedTbl = data.relatedTbl;
@@ -3317,10 +3328,15 @@ var PageHome = function (_React$Component) {
3317
3328
  /* if(circulateShortMessage.length>0){
3318
3329
  cshortMessage=circulateShortMessage[0].value;
3319
3330
  }*/
3331
+ var allEditIds = this.getAllEditIds(t.state.editFormData);
3332
+ var dataId = "";
3333
+ if (allEditIds) {
3334
+ dataId = allEditIds.split(",")[0];
3335
+ }
3320
3336
  var param = {
3321
3337
  taskId: this.state.taskId,
3322
3338
  selectedActivity: selectedActivity,
3323
- allEditIds: this.getAllEditIds(t.state.editFormData),
3339
+ allEditIds: allEditIds,
3324
3340
  corpId: corpid,
3325
3341
  code: this.state.code,
3326
3342
  formData: JSON.stringify(editFormData),
@@ -3328,7 +3344,7 @@ var PageHome = function (_React$Component) {
3328
3344
  comment: newComment,
3329
3345
  commentId: t.state.commentId,
3330
3346
  hasCommentField: t.state.hasCommentField,
3331
- dataId: t.state.dataId,
3347
+ dataId: dataId,
3332
3348
  urgent: urgent,
3333
3349
  lock: t.state.lock,
3334
3350
  sendShortMessage: sendShortMessage,
@@ -3701,15 +3717,25 @@ var PageHome = function (_React$Component) {
3701
3717
  newComment = t.state.defaultValue;
3702
3718
  }
3703
3719
  var isPush = t.state.isPush;
3720
+
3721
+ var allEditIds = this.getAllEditIds(t.state.editFormData);
3722
+ var dataId = "";
3723
+ if (allEditIds) {
3724
+ dataId = allEditIds.split(",")[0];
3725
+ }
3726
+ var editType = this.state.editType;
3727
+ if (editType == "add" && dataId != "") {
3728
+ editType = "edit";
3729
+ }
3704
3730
  var param = (_param = {
3705
3731
  taskId: this.state.taskId,
3706
3732
  module: t.state.module,
3707
3733
  processInstanceId: t.state.processInstanceId,
3708
- allEditIds: t.getAllEditIds(t.state.editFormData),
3734
+ allEditIds: allEditIds,
3709
3735
  formData: JSON.stringify(editFormData),
3710
3736
  formType: "4",
3711
- editType: this.state.editType
3712
- }, _defineProperty(_param, 'module', t.state.module), _defineProperty(_param, 'comment', newComment), _defineProperty(_param, 'commentType', 'text'), _defineProperty(_param, 'commentId', t.state.commentId), _defineProperty(_param, 'permissionCode', t.state.permissionCode), _defineProperty(_param, 'hasCommentField', t.state.hasCommentField), _defineProperty(_param, 'dataId', t.state.dataId), _param);
3737
+ editType: editType
3738
+ }, _defineProperty(_param, 'module', t.state.module), _defineProperty(_param, 'comment', newComment), _defineProperty(_param, 'commentType', 'text'), _defineProperty(_param, 'commentId', t.state.commentId), _defineProperty(_param, 'permissionCode', t.state.permissionCode), _defineProperty(_param, 'hasCommentField', t.state.hasCommentField), _defineProperty(_param, 'dataId', dataId), _param);
3713
3739
  var commentbizSn = t.guid2();
3714
3740
  if (param.commentId && param.commentId != "" && param.commentId != null && typeof param.commentId != "undefined") {
3715
3741
  commentbizSn = param.commentId;
@@ -4014,6 +4040,10 @@ var PageHome = function (_React$Component) {
4014
4040
  //新增
4015
4041
  content = '是否要提交审批?';
4016
4042
  }
4043
+
4044
+ if (param.editType == "add" && param.dataId != "") {
4045
+ param.editType = "edit";
4046
+ }
4017
4047
  param.processInstanceId = t.state.processInstanceId;
4018
4048
  param.permissionCode = t.state.permissionCode;
4019
4049
  param.commentId = t.state.commentId;
@@ -6539,7 +6569,7 @@ var PageHome = function (_React$Component) {
6539
6569
  _react2.default.createElement(
6540
6570
  _Group2.default.List,
6541
6571
  null,
6542
- this.state.tableStatus == '0' ? "" : _react2.default.createElement(_table2.default, { module: this.state.module, operate: this.state.operate, hasCommentField: t.state.hasCommentField, newspyj: t.state.newspyj, commentField: t.state.commentField, status: t.state.status, form: t.state.formItem, formStyleObj: t.state.formStyleObj, allForm: t.state.form, data: t.state.editFormData, commentFieldList: t.state.commentFieldList, defaultValue: t.state.defaultValue, commentDefaultList: t.state.commentDefaultList, commentBackList: t.state.commentBackList, fieldControll: t.state.fieldControll, caIsPrd: t.state.caIsPrd, preCaFields: t.state.preCaFields, formRelaField: t.state.formRelaField, onChange: this.change.bind(this) })
6572
+ this.state.tableStatus == '0' ? "" : _react2.default.createElement(_table2.default, { module: this.state.module, operate: this.state.operate, editType: this.state.editType, dataId: this.state.dataId, hasCommentField: t.state.hasCommentField, newspyj: t.state.newspyj, commentField: t.state.commentField, status: t.state.status, form: t.state.formItem, formStyleObj: t.state.formStyleObj, allForm: t.state.form, data: t.state.editFormData, commentFieldList: t.state.commentFieldList, defaultValue: t.state.defaultValue, commentDefaultList: t.state.commentDefaultList, commentBackList: t.state.commentBackList, fieldControll: t.state.fieldControll, caIsPrd: t.state.caIsPrd, preCaFields: t.state.preCaFields, formRelaField: t.state.formRelaField, onChange: this.change.bind(this) })
6543
6573
  )
6544
6574
  )
6545
6575
  )
@@ -102,10 +102,13 @@ var Page = function (_React$Component) {
102
102
  // }
103
103
 
104
104
  var winHeight = parseInt(getScrollHigh(0, 0, 0));
105
- var token = document.getElementById('token').value;
105
+ //var token = document.getElementById('token').value;
106
+ var token = getLoginUserInfo().token;
106
107
  //var baseContext = document.getElementById('baseContext').value;
107
- var context = document.getElementById('context').value; //getLoginUserInfo().context;
108
- var orgHiddenId = document.getElementById('orgHiddenId').value;
108
+ // var context = document.getElementById('context').value;//getLoginUserInfo().context;
109
+ var context = getLoginUserInfo().context;
110
+ var orgHiddenId = getLoginUserInfo().orgId;
111
+ // var orgHiddenId = document.getElementById('orgHiddenId').value;
109
112
  var baseCorpId = getLoginUserInfo().baseCorpId == null ? "0" : getLoginUserInfo().baseCorpId;
110
113
  _this.state = {
111
114
  bottomHeight: bottomHeight,
@@ -5248,7 +5251,7 @@ var Page = function (_React$Component) {
5248
5251
  return response.json();
5249
5252
  }).then(function (result) {
5250
5253
  //alert(JSON.stringify(result));
5251
- var stationList = result.data;
5254
+ var stationList = result.data.stationList;
5252
5255
  var selectStaNum = 0,
5253
5256
  noUseStationNum = 0;
5254
5257
  var navList = [{ "id": "0", "orgName": "全部", "checkAll": false }];
@@ -614,10 +614,10 @@ var PageHome = function (_React$Component) {
614
614
  { className: 'upload-content' },
615
615
  _react2.default.createElement(
616
616
  'div',
617
- { className: 'dd-t-border upload-list-item', onClick: _this3.view.bind(_this3, item) },
617
+ { className: 'dd-t-border upload-list-item' },
618
618
  _react2.default.createElement(
619
619
  'div',
620
- { className: 'upload-list-item-content' },
620
+ { className: 'upload-list-item-content', onClick: _this3.view.bind(_this3, item) },
621
621
  _react2.default.createElement(
622
622
  'div',
623
623
  { className: 'upload-name-icon' },
@@ -636,7 +636,7 @@ var PageHome = function (_React$Component) {
636
636
  ),
637
637
  _react2.default.createElement(
638
638
  'div',
639
- { className: 'upload-icon' },
639
+ { className: t.props.canDownload || t.state.canDel ? 'upload-icon' : 't-DN' },
640
640
  _react2.default.createElement('i', { className: t.props.canDownload ? 'iconfont icon-download1' : 't-DN', onClick: _this3.downloadFile.bind(_this3, item) }),
641
641
  _react2.default.createElement('i', { className: t.state.canDel ? 'iconfont icon-delete' : 't-DN', onClick: _this3.del.bind(_this3, i) })
642
642
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",