centaline-data-driven 1.3.61 → 1.3.62
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 +1 -1
- package/src/centaline/dynamicCb/src/dynamicCb.vue +3 -0
- package/src/centaline/dynamicContact/src/dynamicContact.vue +11 -9
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +7 -15
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +6 -12
- package/src/centaline/dynamicForm/src/dynamicForm.vue +15 -13
- package/src/centaline/loader/src/ctl/Router.js +1 -3
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
|
@@ -276,15 +276,17 @@ export default {
|
|
|
276
276
|
}
|
|
277
277
|
else {
|
|
278
278
|
field.doAction(submitData, (data) => {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
callBack
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
279
|
+
if (data.rtnCode === 200) {
|
|
280
|
+
self.model.doAction(data, field);
|
|
281
|
+
if (callBack) {
|
|
282
|
+
callBack();
|
|
283
|
+
}
|
|
284
|
+
if(field.isRefersh){
|
|
285
|
+
self.loaderObj.Contact(data, null, self.load);
|
|
286
|
+
}
|
|
287
|
+
else if (field.isCallTel){
|
|
288
|
+
self.$refs['router' + field.id][0].callTelClick(data);
|
|
289
|
+
}
|
|
288
290
|
}
|
|
289
291
|
})
|
|
290
292
|
}
|
|
@@ -916,21 +916,11 @@ export default {
|
|
|
916
916
|
}
|
|
917
917
|
else if (field.isFormPageInTab) {// 外部框架tab页打开
|
|
918
918
|
submitData = field.getActionPara(submitData).para;
|
|
919
|
-
self.$common
|
|
920
|
-
.getDataDrivenOpts()
|
|
921
|
-
.handler.openTab(
|
|
922
|
-
field.action,
|
|
923
|
-
submitData,
|
|
924
|
-
field.pageTitle,
|
|
925
|
-
self.model,
|
|
926
|
-
field.dialogWidth
|
|
927
|
-
);
|
|
919
|
+
self.$common.getDataDrivenOpts().handler.openTab(field.action,submitData,field.pageTitle,self.model,field.dialogWidth);
|
|
928
920
|
}
|
|
929
921
|
else if (field.isSearchPageInTab) {// 外部框架tab页打开
|
|
930
922
|
submitData = field.getActionPara(submitData).para;
|
|
931
|
-
self.$common
|
|
932
|
-
.getDataDrivenOpts()
|
|
933
|
-
.handler.openTabSearch(field, submitData);
|
|
923
|
+
self.$common.getDataDrivenOpts().handler.openTabSearch(field, submitData);
|
|
934
924
|
}
|
|
935
925
|
else if (field.isBrowserNewTab) {// 浏览器打开
|
|
936
926
|
submitData = field.getActionPara(submitData).para;
|
|
@@ -945,9 +935,11 @@ export default {
|
|
|
945
935
|
}
|
|
946
936
|
else {
|
|
947
937
|
field.doAction(submitData, (data) => {
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
callBack
|
|
938
|
+
if (data.rtnCode === 200) {
|
|
939
|
+
self.model.doAction(data, field);
|
|
940
|
+
if (callBack) {
|
|
941
|
+
callBack(field);
|
|
942
|
+
}
|
|
951
943
|
}
|
|
952
944
|
});
|
|
953
945
|
}
|
|
@@ -946,15 +946,7 @@ export default {
|
|
|
946
946
|
}
|
|
947
947
|
else if (field.isFormPageInTab) {// 外部框架tab页打开
|
|
948
948
|
submitData = field.getActionPara(submitData).para;
|
|
949
|
-
self.$common
|
|
950
|
-
.getDataDrivenOpts()
|
|
951
|
-
.handler.openTab(
|
|
952
|
-
field.action,
|
|
953
|
-
submitData,
|
|
954
|
-
field.pageTitle,
|
|
955
|
-
self.model,
|
|
956
|
-
field.dialogWidth
|
|
957
|
-
);
|
|
949
|
+
self.$common.getDataDrivenOpts().handler.openTab(field.action,submitData,field.pageTitle,self.model,field.dialogWidth);
|
|
958
950
|
}
|
|
959
951
|
else if (field.isSearchPageInTab) {// 外部框架tab页打开
|
|
960
952
|
submitData = field.getActionPara(submitData).para;
|
|
@@ -973,9 +965,11 @@ export default {
|
|
|
973
965
|
}
|
|
974
966
|
else {
|
|
975
967
|
field.doAction(submitData, (data) => {
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
callBack
|
|
968
|
+
if (data.rtnCode === 200) {
|
|
969
|
+
self.model.doAction(data, field);
|
|
970
|
+
if (callBack) {
|
|
971
|
+
callBack(field);
|
|
972
|
+
}
|
|
979
973
|
}
|
|
980
974
|
});
|
|
981
975
|
}
|
|
@@ -481,19 +481,21 @@
|
|
|
481
481
|
else {
|
|
482
482
|
submitData = field.getActionPara(submitData).para;
|
|
483
483
|
field.doAction(submitData, (data) => {
|
|
484
|
-
if(
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
484
|
+
if (data.rtnCode === 200) {
|
|
485
|
+
if(field && field.changeCallBackFunName){
|
|
486
|
+
self.changeCallBackHandler(field, field.changeCallBackFunName, data.content);
|
|
487
|
+
}
|
|
488
|
+
else if(field.isRefersh){
|
|
489
|
+
self.collapse.splice(0, self.collapse.length);
|
|
490
|
+
self.collapseActiveNames.splice(0, self.collapseActiveNames.length);
|
|
491
|
+
self.collapseFieldsRow.splice(0, self.collapseFieldsRow.length);
|
|
492
|
+
self.independentItem.splice(0, self.independentItem.length);
|
|
493
|
+
self.load(self.loaderObj.Form(data.content));
|
|
494
|
+
self.formKey=self.formKey+1;
|
|
495
|
+
}
|
|
496
|
+
else{
|
|
497
|
+
self.model.doAction(data);
|
|
498
|
+
}
|
|
497
499
|
}
|
|
498
500
|
},self.model.scripts);
|
|
499
501
|
}
|
|
@@ -267,9 +267,7 @@ const Router = function (source) {
|
|
|
267
267
|
doAction(data, callback, scripts) {
|
|
268
268
|
if (rtn.action) {
|
|
269
269
|
Vue.prototype.$api.postHandler(common.globalUri(), rtn.getActionPara(data), scripts).then((response) => {
|
|
270
|
-
|
|
271
|
-
callback(response);
|
|
272
|
-
}
|
|
270
|
+
callback(response);
|
|
273
271
|
}).catch((ex) => {
|
|
274
272
|
// callback(ex); //里面需要有data.rtnCode === 200的处理
|
|
275
273
|
});
|