cloud-web-corejs 1.0.309 → 1.0.311
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
package/src/app-bootstrap.js
CHANGED
|
@@ -91,18 +91,10 @@ import ExcelExport from "@base/components/excelExport/index.js";
|
|
|
91
91
|
|
|
92
92
|
Vue.use(ExcelExport);
|
|
93
93
|
|
|
94
|
-
//
|
|
95
|
-
import
|
|
96
|
-
|
|
97
|
-
Vue.use(
|
|
98
|
-
lazyPrototypePlugin(
|
|
99
|
-
() =>
|
|
100
|
-
import(
|
|
101
|
-
/* webpackChunkName: "excel-import" */ "@base/components/excelImport/index.js"
|
|
102
|
-
),
|
|
103
|
-
[{ name: "$excelImport" }, { name: "$downloadImportTemplate" }]
|
|
104
|
-
)
|
|
105
|
-
);
|
|
94
|
+
// 暂停 lazyPrototypePlugin,改回启动时同步注册
|
|
95
|
+
import ExcelImport from "@base/components/excelImport/index.js";
|
|
96
|
+
|
|
97
|
+
Vue.use(ExcelImport);
|
|
106
98
|
|
|
107
99
|
import ConfirmDialog from "@base/components/confirmDialog/index.js";
|
|
108
100
|
|
|
@@ -124,19 +116,9 @@ import permission from "@base/directive/permission";
|
|
|
124
116
|
|
|
125
117
|
Vue.use(permission);
|
|
126
118
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
() =>
|
|
131
|
-
import(
|
|
132
|
-
/* webpackChunkName: "vab-upload" */ "@base/components/VabUpload/index.js"
|
|
133
|
-
),
|
|
134
|
-
[
|
|
135
|
-
{ name: "$baseUpload", methods: ["open", "upload"] },
|
|
136
|
-
{ name: "$openFileLibraryDialog" },
|
|
137
|
-
]
|
|
138
|
-
)
|
|
139
|
-
);
|
|
119
|
+
import VabUpload from "@base/components/VabUpload/index.js";
|
|
120
|
+
|
|
121
|
+
Vue.use(VabUpload);
|
|
140
122
|
|
|
141
123
|
Vue.component("baseUpload", () =>
|
|
142
124
|
import("@base/components/VabUpload/view.vue")
|
|
@@ -237,26 +219,13 @@ Vue.component("BaseTextarea", () =>
|
|
|
237
219
|
import("@base/components/base-textarea/index.vue")
|
|
238
220
|
);
|
|
239
221
|
|
|
240
|
-
|
|
241
|
-
Vue.use(
|
|
242
|
-
lazyPrototypePlugin(
|
|
243
|
-
() =>
|
|
244
|
-
import(
|
|
245
|
-
/* webpackChunkName: "json-import" */ "@base/components/jsonImport/index.js"
|
|
246
|
-
),
|
|
247
|
-
[{ name: "$jsonImport" }, { name: "$jsonExport" }]
|
|
248
|
-
)
|
|
249
|
-
);
|
|
222
|
+
import JsonImport from "@base/components/jsonImport/index.js";
|
|
250
223
|
|
|
251
|
-
Vue.use(
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
),
|
|
257
|
-
[{ name: "$langImport" }]
|
|
258
|
-
)
|
|
259
|
-
);
|
|
224
|
+
Vue.use(JsonImport);
|
|
225
|
+
|
|
226
|
+
import LangImport from "@base/components/langImport/index.js";
|
|
227
|
+
|
|
228
|
+
Vue.use(LangImport);
|
|
260
229
|
|
|
261
230
|
//vform
|
|
262
231
|
// import '@base/components/xform/utils/directive'
|
|
@@ -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) {
|