cloud-web-corejs 1.0.309 → 1.0.310
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/package.json
CHANGED
|
@@ -632,13 +632,19 @@ export default {
|
|
|
632
632
|
isLoading: isLoading,
|
|
633
633
|
modal: isLoading || false,
|
|
634
634
|
// loadingTarget: document.body,
|
|
635
|
-
success: (res) => {
|
|
636
|
-
this.unDoWfRows =
|
|
637
|
-
res.objx && res.objx.records ? res.objx.records : [];
|
|
638
|
-
},
|
|
635
|
+
success: (res) => {
|
|
636
|
+
this.unDoWfRows =
|
|
637
|
+
res.objx && res.objx.records ? res.objx.records : [];
|
|
638
|
+
},
|
|
639
|
+
failMsg: false,
|
|
639
640
|
...(silent
|
|
640
641
|
? { errorMsg: false }
|
|
641
642
|
: { ignoreNetworkError: true, ignore502: true }),
|
|
643
|
+
fail: (res, response) => {
|
|
644
|
+
if (response && response.status == 200) {
|
|
645
|
+
this.$errorMsg(res);
|
|
646
|
+
}
|
|
647
|
+
},
|
|
642
648
|
});
|
|
643
649
|
},
|
|
644
650
|
getUnreadMessageNum(isLoading, silent = false) {
|
|
@@ -652,12 +658,18 @@ export default {
|
|
|
652
658
|
isLoading: isLoading,
|
|
653
659
|
modal: isLoading || false,
|
|
654
660
|
// loadingTarget: document.body,
|
|
655
|
-
success: (res) => {
|
|
656
|
-
this.unreadMessageNum = res.objx || 0;
|
|
657
|
-
},
|
|
661
|
+
success: (res) => {
|
|
662
|
+
this.unreadMessageNum = res.objx || 0;
|
|
663
|
+
},
|
|
664
|
+
failMsg: false,
|
|
658
665
|
...(silent
|
|
659
666
|
? { errorMsg: false }
|
|
660
667
|
: { ignoreNetworkError: true, ignore502: true }),
|
|
668
|
+
fail: (res, response) => {
|
|
669
|
+
if (response && response.status == 200) {
|
|
670
|
+
this.$errorMsg(res);
|
|
671
|
+
}
|
|
672
|
+
},
|
|
661
673
|
});
|
|
662
674
|
},
|
|
663
675
|
wfhandleCallback(flag) {
|
|
@@ -873,13 +873,19 @@ export default {
|
|
|
873
873
|
isLoading: isLoading,
|
|
874
874
|
modal: isLoading || false,
|
|
875
875
|
// loadingTarget: document.body,
|
|
876
|
-
success: (res) => {
|
|
877
|
-
this.unDoWfRows =
|
|
878
|
-
res.objx && res.objx.records ? res.objx.records : [];
|
|
879
|
-
},
|
|
876
|
+
success: (res) => {
|
|
877
|
+
this.unDoWfRows =
|
|
878
|
+
res.objx && res.objx.records ? res.objx.records : [];
|
|
879
|
+
},
|
|
880
|
+
failMsg: false,
|
|
880
881
|
...(silent
|
|
881
882
|
? { errorMsg: false }
|
|
882
883
|
: { ignoreNetworkError: true, ignore502: true }),
|
|
884
|
+
fail: (res, response) => {
|
|
885
|
+
if (response && response.status === 200) {
|
|
886
|
+
this.$errorMsg(res);
|
|
887
|
+
}
|
|
888
|
+
},
|
|
883
889
|
});
|
|
884
890
|
},
|
|
885
891
|
getUnreadMessageNum(isLoading, silent = false) {
|
|
@@ -893,12 +899,18 @@ export default {
|
|
|
893
899
|
isLoading: isLoading,
|
|
894
900
|
modal: isLoading || false,
|
|
895
901
|
// loadingTarget: document.body,
|
|
896
|
-
success: (res) => {
|
|
897
|
-
this.unreadMessageNum = res.objx || 0;
|
|
898
|
-
},
|
|
902
|
+
success: (res) => {
|
|
903
|
+
this.unreadMessageNum = res.objx || 0;
|
|
904
|
+
},
|
|
905
|
+
failMsg: false,
|
|
899
906
|
...(silent
|
|
900
907
|
? { errorMsg: false }
|
|
901
908
|
: { ignoreNetworkError: true, ignore502: true }),
|
|
909
|
+
fail: (res, response) => {
|
|
910
|
+
if (response && response.status === 200) {
|
|
911
|
+
this.$errorMsg(res);
|
|
912
|
+
}
|
|
913
|
+
},
|
|
902
914
|
});
|
|
903
915
|
},
|
|
904
916
|
wfhandleCallback(flag) {
|