fmui-base 1.0.6 → 1.0.7

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/lib/form/form.js CHANGED
@@ -537,7 +537,23 @@ var PageHome = function (_React$Component) {
537
537
  }
538
538
 
539
539
  itemParam.dateFormat = dateFormat;
540
- if (value && value.length >= 10) {
540
+ if (value && Array.isArray(value)) {
541
+ if (value.length == 5) {
542
+ var month = value[1] < 10 ? '0' + value[1] : value[1];
543
+ var day = value[2] < 10 ? '0' + value[2] : value[2];
544
+ var min = value[3] < 10 ? '0' + value[3] : value[3];
545
+ var second = value[4] < 10 ? '0' + value[4] : value[4];
546
+ value = value[0] + "/" + month + "/" + day + " " + min + ":" + second;
547
+ value = new Date(value).getTime();
548
+ } else if (value.length == 3) {
549
+ var month = value[1] < 10 ? '0' + value[1] : value[1];
550
+ var day = value[2] < 10 ? '0' + value[2] : value[2];
551
+ value = value[0] + "/" + month + "/" + day;
552
+ value = new Date(value).getTime();
553
+ } else {
554
+ value = null;
555
+ }
556
+ } else if (value && value.length >= 10) {
541
557
  value = value.substring(0, 19);
542
558
  value = new Date(value.replace(/-/g, "/")).getTime();
543
559
  } else {
@@ -402,7 +402,7 @@ var PageHome = function (_React$Component2) {
402
402
  var activeIndex = props.activeIndex ? props.activeIndex : 0;
403
403
  var module = props.module ? props.module : "approve";
404
404
  var type = props.type ? props.type : "self"; //self:本应用,all:全模块
405
- var tabCodes = props.tabCodes ? props.tabCodes : "undo,unread,done,read,myself"; //self:本应用,all:全模块
405
+ var tabCodes = props.tabCodes ? props.tabCodes : "undo,unread,done,read,myself"; //标签页
406
406
  var searchVal = props.search;
407
407
  if (constIndex == '') {
408
408
  if (!activeIndex) {
@@ -424,11 +424,11 @@ var PageHome = function (_React$Component2) {
424
424
  readListUrl = _variables2.default.URLS.transaction.read + "&module=" + module;
425
425
  myselfListUrl = _variables2.default.URLS.transaction.myself + "&module=" + module;
426
426
  } else {
427
- undoListUrl = _variables2.default.URLS.transaction.undo;
428
- unreadListUrl = _variables2.default.URLS.transaction.unread;
429
- doneListUrl = _variables2.default.URLS.transaction.done;
430
- readListUrl = _variables2.default.URLS.transaction.read;
431
- myselfListUrl = _variables2.default.URLS.transaction.myself;
427
+ undoListUrl = _variables2.default.URLS.transaction.undo + "&unified=1&sourceType=unitedapprove";
428
+ unreadListUrl = _variables2.default.URLS.transaction.unread + "&unified=1&sourceType=unitedapprove";
429
+ doneListUrl = _variables2.default.URLS.transaction.done + "&unified=1&sourceType=unitedapprove";
430
+ readListUrl = _variables2.default.URLS.transaction.read + "&unified=1&sourceType=unitedapprove";
431
+ myselfListUrl = _variables2.default.URLS.transaction.myself + "&unified=1&sourceType=unitedapprove";
432
432
  }
433
433
  _this2.state = {
434
434
  tabCodes: tabCodes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "title": "fmui-base",
5
5
  "description": "subForm文件中单词错误",
6
6
  "main": "lib/index.js",