centaline-data-driven-v3 0.1.52 → 0.1.54
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/dist/centaline-data-driven-v3.umd.js +118 -118
- package/package.json +1 -1
- package/src/components/Layout/LayoutChildren.vue +2 -2
- package/src/components/app/Form.vue +4 -0
- package/src/components/app/SearchList/SearchTable.vue +28 -20
- package/src/components/app/SearchList.vue +4 -0
- package/src/components/web/Button.vue +12 -7
- package/src/components/web/Comfirm.vue +1 -1
- package/src/components/web/Form.vue +16 -6
- package/src/components/web/FormList.vue +10 -1
- package/src/components/web/SearchList/SearchSideRight.vue +13 -11
- package/src/components/web/SearchList/SearchTable.vue +12 -3
- package/src/components/web/SearchList.vue +21 -17
- package/src/components/web/SearchScreen.vue +6 -2
- package/src/components/web/TextBox.vue +8 -2
- package/src/components/web/Tree.vue +4 -0
- package/src/components/web/dialog.vue +7 -1
- package/src/loader/src/Button.js +9 -0
- package/src/loader/src/CellLayout.js +3 -0
- package/src/loader/src/Form.js +20 -5
- package/src/loader/src/LibFunction.js +2 -0
- package/src/loader/src/Router.js +8 -2
- package/src/loader/src/SearchScreen.js +8 -5
- package/src/loader/src/SearchTable.js +13 -7
- package/src/main.js +4 -4
- package/src/utils/common.js +11 -1
- package/src/utils/mixins.js +15 -6
- package/src/views/Form.vue +2 -1
- package/src/views/SearchList.vue +2 -2
package/src/loader/src/Form.js
CHANGED
|
@@ -5,14 +5,14 @@ import Enum from '../../utils/Enum';
|
|
|
5
5
|
import common from '../../utils/common';
|
|
6
6
|
import request from '../../utils/request';
|
|
7
7
|
|
|
8
|
-
function loadFormApi(api, callBack, apiParam, failCallBack, isFormList) {
|
|
8
|
+
function loadFormApi(api, callBack, apiParam, failCallBack, isFormList, appRootUrl) {
|
|
9
9
|
if (api) {
|
|
10
10
|
apiParam = apiParam ? apiParam : {};
|
|
11
|
-
request.postHandler(common.globalUri(), { "action": api, "para": apiParam }).then(
|
|
11
|
+
request.postHandler(common.globalUri(), { "action": (appRootUrl||'') + api, "para": apiParam }).then(
|
|
12
12
|
function (response) {
|
|
13
13
|
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
14
14
|
let data = response.content;
|
|
15
|
-
let rtn = loadFromModel(data, isFormList);
|
|
15
|
+
let rtn = loadFromModel(data, isFormList, appRootUrl);
|
|
16
16
|
if (callBack) {
|
|
17
17
|
callBack(rtn);
|
|
18
18
|
}
|
|
@@ -29,7 +29,7 @@ function loadFormApi(api, callBack, apiParam, failCallBack, isFormList) {
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
function loadFromModel(source, isFormList) {
|
|
32
|
+
function loadFromModel(source, isFormList, appRootUrl) {
|
|
33
33
|
let rtn = {
|
|
34
34
|
formData: {
|
|
35
35
|
form: null,
|
|
@@ -37,6 +37,7 @@ function loadFromModel(source, isFormList) {
|
|
|
37
37
|
excuteData: null,//fields
|
|
38
38
|
fieldsDic: null,//fieldsDic
|
|
39
39
|
_excuteListData: undefined,
|
|
40
|
+
appRootUrl: appRootUrl||'',
|
|
40
41
|
enableRelationFields(FlagRelation) {
|
|
41
42
|
this.form.enableRelationFields = FlagRelation
|
|
42
43
|
},
|
|
@@ -533,6 +534,7 @@ function loadFromModel(source, isFormList) {
|
|
|
533
534
|
rtn._fieldsDic = {};
|
|
534
535
|
if (rtn.fields) {
|
|
535
536
|
rtn.fields.forEach((f) => {
|
|
537
|
+
f.controlType = common.getEnumValue(Enum.ControlType, f.controlType);
|
|
536
538
|
if (f.controlType == Enum.ControlType.Compound || f.controlType == Enum.ControlType.ContainerControl) {
|
|
537
539
|
if (f.fields) {
|
|
538
540
|
f.fields.forEach((v) => {
|
|
@@ -671,6 +673,9 @@ function loadFromModel(source, isFormList) {
|
|
|
671
673
|
rtn._buttons = [];
|
|
672
674
|
if (source.buttons) {
|
|
673
675
|
source.buttons.forEach((v) => {
|
|
676
|
+
v.buttonType = common.getEnumValue(Enum.ButtonType, v.buttonType);
|
|
677
|
+
v.actionType = common.getEnumValue(Enum.ActionType, v.actionType);
|
|
678
|
+
v.action = (appRootUrl||'') + v.action;
|
|
674
679
|
var button = Router(v);
|
|
675
680
|
button.is = "ct-button";
|
|
676
681
|
rtn._buttons.push(button);
|
|
@@ -689,6 +694,9 @@ function loadFromModel(source, isFormList) {
|
|
|
689
694
|
rtn._captionBarButtons = [];
|
|
690
695
|
if (source.captionBarButtons) {
|
|
691
696
|
source.captionBarButtons.forEach((v) => {
|
|
697
|
+
v.buttonType = common.getEnumValue(Enum.ButtonType, v.buttonType);
|
|
698
|
+
v.actionType = common.getEnumValue(Enum.ActionType, v.actionType);
|
|
699
|
+
v.action = (appRootUrl||'') + v.action;
|
|
692
700
|
var button = Router(v);
|
|
693
701
|
button.is = "ct-button";
|
|
694
702
|
rtn._captionBarButtons.push(button);
|
|
@@ -707,6 +715,9 @@ function loadFromModel(source, isFormList) {
|
|
|
707
715
|
rtn._links = [];
|
|
708
716
|
if (source.links) {
|
|
709
717
|
source.links.forEach((v) => {
|
|
718
|
+
v.buttonType = common.getEnumValue(Enum.ButtonType, v.buttonType);
|
|
719
|
+
v.actionType = common.getEnumValue(Enum.ActionType, v.actionType);
|
|
720
|
+
v.action = (appRootUrl||'') + v.action;
|
|
710
721
|
var button = Router(v);
|
|
711
722
|
button.is = "ct-button";
|
|
712
723
|
rtn._links.push(button);
|
|
@@ -725,6 +736,9 @@ function loadFromModel(source, isFormList) {
|
|
|
725
736
|
rtn._actionRouters = [];
|
|
726
737
|
if (source.actionRouters) {
|
|
727
738
|
source.actionRouters.forEach((v) => {
|
|
739
|
+
v.buttonType = common.getEnumValue(Enum.ButtonType, v.buttonType);
|
|
740
|
+
v.actionType = common.getEnumValue(Enum.ActionType, v.actionType);
|
|
741
|
+
v.action = (appRootUrl||'') + v.action;
|
|
728
742
|
var button = Router(v);
|
|
729
743
|
button.is = "ct-button";
|
|
730
744
|
rtn._actionRouters.push(button);
|
|
@@ -735,7 +749,7 @@ function loadFromModel(source, isFormList) {
|
|
|
735
749
|
},
|
|
736
750
|
//参数取值的Action
|
|
737
751
|
get parameterAction() {
|
|
738
|
-
return source.parameterAction;
|
|
752
|
+
return (appRootUrl||'') + source.parameterAction;
|
|
739
753
|
},
|
|
740
754
|
_pageDisabled: false,
|
|
741
755
|
get pageDisabled() {
|
|
@@ -919,6 +933,7 @@ function loadFromModel(source, isFormList) {
|
|
|
919
933
|
}
|
|
920
934
|
},
|
|
921
935
|
getRtnRouter(v) {
|
|
936
|
+
v.action = (appRootUrl||'') + v.action;
|
|
922
937
|
var button = Router(v);
|
|
923
938
|
button.is = "ct-button";
|
|
924
939
|
return button;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import common from '../../utils/common';
|
|
1
2
|
import Enum from '../../utils/Enum';
|
|
2
3
|
import base from '../index';
|
|
3
4
|
import Field from './Field';
|
|
@@ -30,6 +31,7 @@ const LibFunction = {
|
|
|
30
31
|
},
|
|
31
32
|
GetControl(field, source, showLabel, isList) {
|
|
32
33
|
let item;
|
|
34
|
+
field.controlType = common.getEnumValue(Enum.ControlType, field.controlType);
|
|
33
35
|
//列表设置默认宽度、不显示label
|
|
34
36
|
if (isList) {
|
|
35
37
|
if (field.controlType === Enum.ControlType.Date) {
|
package/src/loader/src/Router.js
CHANGED
|
@@ -114,7 +114,7 @@ const Router = function (source) {
|
|
|
114
114
|
source.hidden = !v;
|
|
115
115
|
},
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
//组件名称
|
|
118
118
|
get vueComponentName() {
|
|
119
119
|
return source.vueComponentName;
|
|
120
120
|
},
|
|
@@ -149,7 +149,7 @@ const Router = function (source) {
|
|
|
149
149
|
},
|
|
150
150
|
get isClientFuntion() {
|
|
151
151
|
return source.pageStyle === Enum.PageStyle.ClientFunction
|
|
152
|
-
|
|
152
|
+
|| source.actionType === Enum.ActionType.ExcuteClientFunction;
|
|
153
153
|
},
|
|
154
154
|
get isSearchPageWithList() {
|
|
155
155
|
return source.pageStyle === Enum.PageStyle.SearchPageWithList;
|
|
@@ -412,6 +412,12 @@ const Router = function (source) {
|
|
|
412
412
|
if (rtn.isDropdown && rtn.selectOptionCode) {
|
|
413
413
|
data[rtn.paramName] = rtn.selectOptionCode;
|
|
414
414
|
}
|
|
415
|
+
if (rtn.isCheckbox && rtn.code1) {
|
|
416
|
+
data[common.initialsToLowerCase(rtn.key)] = "0";
|
|
417
|
+
if (rtn.code1 == true) {
|
|
418
|
+
data[common.initialsToLowerCase(rtn.key)] = "1";
|
|
419
|
+
}
|
|
420
|
+
}
|
|
415
421
|
params = {
|
|
416
422
|
action: rtn.action,
|
|
417
423
|
para: data
|
|
@@ -5,14 +5,14 @@ import common from '../../utils/common';
|
|
|
5
5
|
import request from '../../utils/request';
|
|
6
6
|
import Router from './Router';
|
|
7
7
|
|
|
8
|
-
function loadSearchScreenApi(action, callBack, screenPara, prevParam, failCallBack) {
|
|
8
|
+
function loadSearchScreenApi(action, callBack, screenPara, prevParam, failCallBack,appRootUrl) {
|
|
9
9
|
if (action) {
|
|
10
10
|
screenPara = screenPara ? screenPara : {};
|
|
11
|
-
request.postHandler(common.globalUri(), { "action": action, "para": screenPara }).then(
|
|
11
|
+
request.postHandler(common.globalUri(), { "action": (appRootUrl||'')+action, "para": screenPara }).then(
|
|
12
12
|
function (response) {
|
|
13
13
|
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
14
14
|
let data = response.content;
|
|
15
|
-
let rtn = loadSearchScreenModel(data, prevParam);
|
|
15
|
+
let rtn = loadSearchScreenModel(data, prevParam,appRootUrl);
|
|
16
16
|
if (callBack) {
|
|
17
17
|
callBack(rtn);
|
|
18
18
|
}
|
|
@@ -26,7 +26,7 @@ function loadSearchScreenApi(action, callBack, screenPara, prevParam, failCallBa
|
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
function loadSearchScreenModel(source, prevParam) {
|
|
29
|
+
function loadSearchScreenModel(source, prevParam,appRootUrl) {
|
|
30
30
|
let rtn = {
|
|
31
31
|
formData: {
|
|
32
32
|
form: null,
|
|
@@ -35,6 +35,7 @@ function loadSearchScreenModel(source, prevParam) {
|
|
|
35
35
|
fieldsDic: null,//fieldsDic
|
|
36
36
|
source: null,
|
|
37
37
|
_excuteListData: undefined,
|
|
38
|
+
appRootUrl:(appRootUrl||''),
|
|
38
39
|
enableRelationFields(FlagRelation) {
|
|
39
40
|
this.form.enableRelationFields = FlagRelation
|
|
40
41
|
},
|
|
@@ -463,7 +464,7 @@ function loadSearchScreenModel(source, prevParam) {
|
|
|
463
464
|
return false
|
|
464
465
|
},
|
|
465
466
|
get parameterAction() {
|
|
466
|
-
return source.parameterAction
|
|
467
|
+
return (appRootUrl||'')+source.parameterAction
|
|
467
468
|
},
|
|
468
469
|
_scripts: null,
|
|
469
470
|
get scripts() {
|
|
@@ -700,6 +701,7 @@ function loadSearchScreenModel(source, prevParam) {
|
|
|
700
701
|
rtn._actionRouters = [];
|
|
701
702
|
if (source.actionRouters) {
|
|
702
703
|
source.actionRouters.forEach((v) => {
|
|
704
|
+
v.action=(appRootUrl||'')+v.action;
|
|
703
705
|
var button = Router(v);
|
|
704
706
|
button.is = "ct-btn";
|
|
705
707
|
rtn._actionRouters.push(button);
|
|
@@ -708,6 +710,7 @@ function loadSearchScreenModel(source, prevParam) {
|
|
|
708
710
|
else if (source.content && source.content.actionRouters) {
|
|
709
711
|
source.content.actionRouters.forEach((v) => {
|
|
710
712
|
v.actionType = 2;
|
|
713
|
+
v.action=(appRootUrl||'')+v.action;
|
|
711
714
|
var button = Router(v);
|
|
712
715
|
button.is = "ct-btn";
|
|
713
716
|
rtn._actionRouters.push(button);
|
|
@@ -3,11 +3,11 @@ import common from '../../utils/common';
|
|
|
3
3
|
import request from '../../utils/request';
|
|
4
4
|
import Router from './Router';
|
|
5
5
|
|
|
6
|
-
function loadSearchTableApi(action, callBack, searchModel, flagSearch, defaultSearchData, postThenHandler, searchAction) {
|
|
6
|
+
function loadSearchTableApi(action, callBack, searchModel, flagSearch, defaultSearchData, postThenHandler, searchAction, appRootUrl) {
|
|
7
7
|
var apiData = searchModel?.searchData ? searchModel.searchData : {};
|
|
8
8
|
|
|
9
9
|
request.postHandler(common.globalUri(), {
|
|
10
|
-
action: action,
|
|
10
|
+
action: (appRootUrl||'') + action,
|
|
11
11
|
para: {
|
|
12
12
|
searchFields: apiData,
|
|
13
13
|
pageAttribute: {
|
|
@@ -18,7 +18,7 @@ function loadSearchTableApi(action, callBack, searchModel, flagSearch, defaultSe
|
|
|
18
18
|
}).then(
|
|
19
19
|
function (response) {
|
|
20
20
|
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
21
|
-
let rtn = loadSearchTableModel(response, searchModel, defaultSearchData, action, searchAction);
|
|
21
|
+
let rtn = loadSearchTableModel(response, searchModel, defaultSearchData, action, searchAction, appRootUrl);
|
|
22
22
|
if (callBack) {
|
|
23
23
|
callBack(rtn);
|
|
24
24
|
}
|
|
@@ -31,7 +31,7 @@ function loadSearchTableApi(action, callBack, searchModel, flagSearch, defaultSe
|
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
|
-
function loadSearchTableModel(source, searchModel, defaultSearchData, action, searchAction) {
|
|
34
|
+
function loadSearchTableModel(source, searchModel, defaultSearchData, action, searchAction, appRootUrl) {
|
|
35
35
|
let rtn = {
|
|
36
36
|
formData: {
|
|
37
37
|
formTable: null,
|
|
@@ -49,6 +49,7 @@ function loadSearchTableModel(source, searchModel, defaultSearchData, action, se
|
|
|
49
49
|
},
|
|
50
50
|
|
|
51
51
|
},
|
|
52
|
+
appRootUrl: appRootUrl||'',
|
|
52
53
|
selectAll: false,//全选是否选中
|
|
53
54
|
selectIndex: 0,//选中行的索引
|
|
54
55
|
pageIndex: 1,//当前显示页数
|
|
@@ -279,7 +280,7 @@ function loadSearchTableModel(source, searchModel, defaultSearchData, action, se
|
|
|
279
280
|
},
|
|
280
281
|
//取参数值的 Action名称
|
|
281
282
|
get parameterAction() {
|
|
282
|
-
return source.content.parameterAction;
|
|
283
|
+
return (appRootUrl||'') + source.content.parameterAction;
|
|
283
284
|
},
|
|
284
285
|
get multiRowSpan() {
|
|
285
286
|
if (this.isMergeTitle) {
|
|
@@ -315,6 +316,7 @@ function loadSearchTableModel(source, searchModel, defaultSearchData, action, se
|
|
|
315
316
|
if (source.content.toolButtons) {
|
|
316
317
|
|
|
317
318
|
source.content.toolButtons.forEach((v) => {
|
|
319
|
+
v.action = (appRootUrl||'') + v.action;
|
|
318
320
|
var button = Router(v);
|
|
319
321
|
button.is = "ct-button";
|
|
320
322
|
button.attrs = {
|
|
@@ -337,6 +339,7 @@ function loadSearchTableModel(source, searchModel, defaultSearchData, action, se
|
|
|
337
339
|
rtn._actionRouter = [];
|
|
338
340
|
if (source.content.actionRouters) {
|
|
339
341
|
source.content.actionRouters.forEach((v) => {
|
|
342
|
+
v.action = (appRootUrl||'') + v.action;
|
|
340
343
|
var router = Router(v);
|
|
341
344
|
router.is = "ct-button";
|
|
342
345
|
rtn._actionRouter.push(router);
|
|
@@ -740,6 +743,7 @@ function loadSearchTableModel(source, searchModel, defaultSearchData, action, se
|
|
|
740
743
|
},
|
|
741
744
|
//初始化button路由
|
|
742
745
|
getRtnRouter(v) {
|
|
746
|
+
v.action = (appRootUrl||'') + v.action;
|
|
743
747
|
var button = Router(v);
|
|
744
748
|
button.is = "ct-btn";
|
|
745
749
|
return button;
|
|
@@ -781,7 +785,7 @@ function apiData(model, callback) {
|
|
|
781
785
|
model.isLoading = true;
|
|
782
786
|
var newSearchModel = model.getSearchData();
|
|
783
787
|
request.postHandler(common.globalUri(), {
|
|
784
|
-
action: model.searchAction,
|
|
788
|
+
action: model.appRootUrl + model.searchAction,
|
|
785
789
|
para: {
|
|
786
790
|
searchFields: newSearchModel ? newSearchModel : {},
|
|
787
791
|
pageAttribute: model.pageData,
|
|
@@ -841,6 +845,7 @@ function apiData(model, callback) {
|
|
|
841
845
|
model._buttons = [];
|
|
842
846
|
model._actions = [];
|
|
843
847
|
response.content.toolButtons.forEach((v) => {
|
|
848
|
+
v.action = model.appRootUrl + v.action;
|
|
844
849
|
var button = Router(v);
|
|
845
850
|
button.is = "ct-button";
|
|
846
851
|
button.attrs = {
|
|
@@ -1008,7 +1013,7 @@ function getCurrentRowApiData(model, callback, rtnData, router) {
|
|
|
1008
1013
|
});
|
|
1009
1014
|
}
|
|
1010
1015
|
request.postHandler(common.globalUri(), {
|
|
1011
|
-
action: model.searchAction,
|
|
1016
|
+
action: model.appRootUrl+model.searchAction,
|
|
1012
1017
|
para: {
|
|
1013
1018
|
searchFields: searchFields,
|
|
1014
1019
|
pageAttribute: {
|
|
@@ -1070,6 +1075,7 @@ function getCurrentRowApiData(model, callback, rtnData, router) {
|
|
|
1070
1075
|
if (response.content.toolButtons) {
|
|
1071
1076
|
model._buttons = [];
|
|
1072
1077
|
response.content.toolButtons.forEach((v) => {
|
|
1078
|
+
v.action = model.appRootUrl + v.action;
|
|
1073
1079
|
var button = Router(v);
|
|
1074
1080
|
button.is = "ct-button";
|
|
1075
1081
|
button.attrs = {
|
package/src/main.js
CHANGED
|
@@ -22,15 +22,15 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
22
22
|
|
|
23
23
|
app.use(centaline, {
|
|
24
24
|
//baseUrl: "http://10.88.22.13:7080/ibs-api/",
|
|
25
|
-
baseUrl:"http://10.88.22.66:7080/ibs-api/",
|
|
25
|
+
//baseUrl:"http://10.88.22.66:7080/ibs-api/",
|
|
26
26
|
//baseUrl: "https://kq-api.centaline.com.cn/onecard-api/",
|
|
27
27
|
//baseUrl: "http://10.88.22.13:6060/onecard-api/",
|
|
28
|
-
|
|
28
|
+
baseUrl: "http://10.88.22.66/IBS.Mvc/api/",
|
|
29
29
|
//baseUrl: "http://10.1.245.50:38735/max-uplink-api/",
|
|
30
30
|
//baseUrl: "http://10.1.245.111:38028/",
|
|
31
31
|
|
|
32
32
|
flagRouterSelf: true,
|
|
33
|
-
flagApp:
|
|
33
|
+
flagApp: true,//是否app端
|
|
34
34
|
zindex: 999,
|
|
35
35
|
showRequestSuccessMessage: true,
|
|
36
36
|
showRequestErrorMessage: true,
|
|
@@ -67,7 +67,7 @@ app.use(centaline, {
|
|
|
67
67
|
return {
|
|
68
68
|
|
|
69
69
|
//AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyaWQiOiIyNTEyMTUxNzQyMTg5QzI4MTgwRDkxRTk0MDhEOTA0QSIsImxvZ2luX3VzZXJfa2V5IjoiN2MzYzNjNjAtNWVjMy00MzdkLWExMDYtOWYxZTMwYjU0Mjg2In0.daG9mS98Gg8KmHSUjYHktMcO2Jk7SVtCcqm2sRB0I8Y2N0TuonIrVUDcHdNdDiuD3v6qO_f010tQWlBsAQ1dqg',
|
|
70
|
-
authobject: '{
|
|
70
|
+
authobject: '{EmpID:"Token_bc5284a5-19d5-467c-8601-e295062981fc",MachineCode:"1d6b7fc9-90ff-4a68-9504-1174fa72db7b",SSO_Token:"SSOToken_bc5284a5-19d5-467c-8601-e295062981fc",Platform:"IOS"}',
|
|
71
71
|
//authobject: '{EmpID:"Token_946d56e1-7972-4382-9d10-4a72496aab39",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_946d56e1-7972-4382-9d10-4a72496aab39",Platform:"WEB"}',
|
|
72
72
|
//oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
|
|
73
73
|
//authObject: '{token:"jiangzf-1958445358178844672",platform:"WEB"}',
|
package/src/utils/common.js
CHANGED
|
@@ -226,7 +226,7 @@ const common = {
|
|
|
226
226
|
* @param {Object} options 参数 如confirmButtonText,cancelButtonText
|
|
227
227
|
* @desc 确认框
|
|
228
228
|
*/
|
|
229
|
-
confirm(message, title, options) {
|
|
229
|
+
confirm(message, title, options,appendToBody) {
|
|
230
230
|
let self = this;
|
|
231
231
|
return new Promise((resolve, reject) => {
|
|
232
232
|
if (dataDrivenOpts.flagApp) {
|
|
@@ -245,6 +245,7 @@ const common = {
|
|
|
245
245
|
var dialogOption = {
|
|
246
246
|
title: title,
|
|
247
247
|
name: 'ct-comfirm',
|
|
248
|
+
appendToBody:appendToBody,
|
|
248
249
|
vmodel: {},
|
|
249
250
|
content: [{
|
|
250
251
|
component: 'ct-comfirm',
|
|
@@ -899,5 +900,14 @@ const common = {
|
|
|
899
900
|
const videoExtensions = /\.(mp4|mov|webm|avi|wmv|flv)$/i;
|
|
900
901
|
return videoExtensions.test(url);
|
|
901
902
|
},
|
|
903
|
+
getEnumValue(enumObj, value) {
|
|
904
|
+
if (typeof value === 'number') {
|
|
905
|
+
return value;
|
|
906
|
+
}
|
|
907
|
+
if(value=="CompoundControl"){
|
|
908
|
+
return enumObj["Compound"]
|
|
909
|
+
}
|
|
910
|
+
return enumObj[value];
|
|
911
|
+
},
|
|
902
912
|
};
|
|
903
913
|
export default common;
|
package/src/utils/mixins.js
CHANGED
|
@@ -155,6 +155,7 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
155
155
|
if (res.content && res.content.action) {
|
|
156
156
|
var dialogOption = {
|
|
157
157
|
title: field.pageTitle || field.controlLabel,
|
|
158
|
+
appendToBody: model.appendToBody,
|
|
158
159
|
content: [{
|
|
159
160
|
component: 'ct-progress',
|
|
160
161
|
width: '350px',
|
|
@@ -215,12 +216,13 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
215
216
|
confirmButtonText: '确定',
|
|
216
217
|
cancelButtonText: '取消',
|
|
217
218
|
type: 'warning'
|
|
218
|
-
}).then(() => {
|
|
219
|
+
},model.appendToBody).then(() => {
|
|
219
220
|
field.doAction(model.$vue.getFormObj({ flagHaveAlert: '1' }), (res202) => {
|
|
220
221
|
if (res202.rtnCode === Enum.ReturnCode.Successful) {
|
|
221
222
|
if (res202.content && res202.content.action) {
|
|
222
223
|
var dialogOption = {
|
|
223
224
|
title: field.pageTitle || field.controlLabel,
|
|
225
|
+
appendToBody: model.appendToBody,
|
|
224
226
|
content: [{
|
|
225
227
|
component: 'ct-progress',
|
|
226
228
|
width: '350px',
|
|
@@ -302,7 +304,7 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
302
304
|
confirmButtonText: '确定',
|
|
303
305
|
cancelButtonText: '取消',
|
|
304
306
|
type: 'warning'
|
|
305
|
-
}).then(() => {
|
|
307
|
+
},model.appendToBody).then(() => {
|
|
306
308
|
//如果没有弹框 则关闭tab页
|
|
307
309
|
if (common.dialogList && common.dialogList.List.value.length === 0) {
|
|
308
310
|
if (typeof common.getDataDrivenOpts().handler.closeTab === 'function') {
|
|
@@ -336,7 +338,7 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
336
338
|
confirmButtonText: '确定',
|
|
337
339
|
cancelButtonText: '取消',
|
|
338
340
|
type: 'warning'
|
|
339
|
-
}).then(() => {
|
|
341
|
+
},model.appendToBody).then(() => {
|
|
340
342
|
field.disabled = true;
|
|
341
343
|
field.doAction(model.$vue.getFormObj({ flagHaveAlert: '1' }), (res) => {
|
|
342
344
|
field.disabled = false;
|
|
@@ -397,6 +399,7 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
397
399
|
if (field.isOpenBaiduMap) {
|
|
398
400
|
var dialogOption = {
|
|
399
401
|
title: field.pageTitle,
|
|
402
|
+
appendToBody: model.appendToBody,
|
|
400
403
|
content: [
|
|
401
404
|
{
|
|
402
405
|
component: "ct-mapbaidu",
|
|
@@ -494,6 +497,7 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
494
497
|
var dialogOption = {
|
|
495
498
|
title: field.pageTitle,
|
|
496
499
|
pane: common.getParentPane(),
|
|
500
|
+
appendToBody: model.appendToBody,
|
|
497
501
|
content: [
|
|
498
502
|
{
|
|
499
503
|
component: "ct-iframe",
|
|
@@ -547,6 +551,7 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
547
551
|
if (res.content && res.content.action) {
|
|
548
552
|
var dialogOption = {
|
|
549
553
|
title: field.pageTitle || field.controlLabel,
|
|
554
|
+
appendToBody: model.appendToBody,
|
|
550
555
|
content: [{
|
|
551
556
|
component: 'ct-progress',
|
|
552
557
|
width: '350px',
|
|
@@ -613,12 +618,13 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
613
618
|
confirmButtonText: '确定',
|
|
614
619
|
cancelButtonText: '取消',
|
|
615
620
|
type: 'warning'
|
|
616
|
-
}).then(() => {
|
|
621
|
+
},model.appendToBody).then(() => {
|
|
617
622
|
field.doAction(submitData, (res202) => {
|
|
618
623
|
if (res202.rtnCode === Enum.ReturnCode.Successful) {
|
|
619
624
|
if (res202.content && res202.content.action) {
|
|
620
625
|
var dialogOption = {
|
|
621
626
|
title: field.pageTitle || field.controlLabel,
|
|
627
|
+
appendToBody: model.appendToBody,
|
|
622
628
|
content: [{
|
|
623
629
|
component: 'ct-progress',
|
|
624
630
|
width: '350px',
|
|
@@ -738,6 +744,7 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
738
744
|
var dialogOption = {
|
|
739
745
|
title: field.pageTitle,
|
|
740
746
|
pane: common.getParentPane(),
|
|
747
|
+
appendToBody: model.appendToBody,
|
|
741
748
|
content: [{
|
|
742
749
|
component: 'ct-form',
|
|
743
750
|
width: field.pageWidth + 'px',
|
|
@@ -866,6 +873,7 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
866
873
|
var dialogOption = {
|
|
867
874
|
title: field.pageTitle,
|
|
868
875
|
pane: common.getParentPane(),
|
|
876
|
+
appendToBody: model.appendToBody,
|
|
869
877
|
content: [{
|
|
870
878
|
component: 'ct-searchlist',
|
|
871
879
|
width: field.pageWidth + 'px',
|
|
@@ -897,6 +905,7 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
897
905
|
var dialogOption = {
|
|
898
906
|
title: field.pageTitle,
|
|
899
907
|
pane: common.getParentPane(),
|
|
908
|
+
appendToBody: model.appendToBody,
|
|
900
909
|
content: [{
|
|
901
910
|
component: field.vueComponentName,
|
|
902
911
|
width: field.pageWidth + 'px',
|
|
@@ -983,7 +992,7 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
983
992
|
confirmButtonText: '确定',
|
|
984
993
|
cancelButtonText: '取消',
|
|
985
994
|
type: 'warning'
|
|
986
|
-
}).then(() => {
|
|
995
|
+
},model.appendToBody).then(() => {
|
|
987
996
|
submitData.flagHaveAlert = '1';
|
|
988
997
|
field.doAction(submitData, (res) => {
|
|
989
998
|
if (res.rtnCode === Enum.ReturnCode.Successful) {
|
|
@@ -1065,7 +1074,7 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
1065
1074
|
confirmButtonText: field.confirmButtonText,
|
|
1066
1075
|
cancelButtonText: field.cancelButtonText,
|
|
1067
1076
|
center: field.contentCenter
|
|
1068
|
-
}).then(() => {
|
|
1077
|
+
},model.appendToBody).then(() => {
|
|
1069
1078
|
clickAcion(field);
|
|
1070
1079
|
}).catch(() => {
|
|
1071
1080
|
});
|
package/src/views/Form.vue
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
:style="{ 'width': '800px' , 'height': '800px', margin: 'auto', 'position': 'relative'}">
|
|
4
|
-
<ct-form :
|
|
4
|
+
<ct-form :source="source" :openType="'tree'"></ct-form>
|
|
5
5
|
<!-- <ct-textbox :source="source"></ct-textbox> -->
|
|
6
6
|
<ct-dialoglist ref="dialogList"></ct-dialoglist>
|
|
7
7
|
</div>
|
|
8
8
|
</template>
|
|
9
9
|
<script lang="ts" setup>
|
|
10
|
+
const source={"flagSearch":false,"parameterAction":"/cache/getParamList","actionTitle":"","title":"新跟進","flagFixedTabOnHorizontalLayout":false,"layoutOrientation":"Vertical","flagHideSaveLine":true,"captionBarButtons":[],"flagAlertCloseWindowAfterSave":false,"scripts":"","actionRouters":[{"buttonHeight":0,"hidden":false,"align":"left","pageHeight":600,"pageWidth":800,"buttonType":"Submit","action":"ind/PropertyFollow/save","flagAlert":false,"pageColumns":0,"text":"保存","locked":false,"key":"saveShortcutFollow","flagAttachSearchCondition":false,"flagAddRowAfterAction":false,"flagFreshCurrentRow":false,"actionType":"New","flagAsync":false,"flagVerifyData":true}],"buttons":[],"colSpan":0,"list":[],"labelPlacement":"left","onload":"","medias":[],"flagShowTitle":false,"fields":[{"displayLabelAfterSelected":true,"code1":"100476","fieldName1":"PropertyID","SearchOperation":"None","lazyLoad":false,"autoSearch":false,"autoFill":false,"SearchDataType":"None","controlLabel":"","mediaViewPageType":"PageInLayer","hidden":false,"spanCols":1,"controlType":"Hidden"},{"displayLabelAfterSelected":true,"code1":"1","fieldName1":"FlagShortcutFollow","SearchOperation":"None","lazyLoad":false,"autoSearch":false,"autoFill":false,"SearchDataType":"None","controlLabel":"","mediaViewPageType":"PageInLayer","hidden":false,"spanCols":1,"controlType":"Hidden"},{"displayLabelAfterSelected":true,"code1":"","fieldName1":"FullFollow","SearchOperation":"None","lazyLoad":false,"autoSearch":false,"autoFill":false,"SearchDataType":"None","controlLabel":"","mediaViewPageType":"PageInLayer","compoundFields":[{"displayLabelAfterSelected":true,"code1":"","fieldName1":"FollowContent","SearchOperation":"None","lazyLoad":false,"autoSearch":false,"autoFill":false,"SearchDataType":"None","controlLabel":"","mediaViewPageType":"PageInLayer","hidden":false,"spanCols":1,"maxValue1":"50","controlType":"TextBox"},{"displayLabelAfterSelected":true,"code1":"","fieldName1":"saveShortcutFollow","SearchOperation":"None","lazyLoad":false,"autoSearch":false,"autoFill":false,"SearchDataType":"None","controlLabel":"保存","mediaViewPageType":"PageInLayer","hidden":false,"spanCols":1,"controlType":"ButtonCommon"}],"hidden":false,"spanCols":1,"controlType":"CompoundControl"}]}
|
|
10
11
|
const apiParam={"originalOrderId":"2014640778344816640","columnName":"orderNo","actionType":"1","pageStyle":"2","pageOnly":"true"}
|
|
11
12
|
</script>
|
package/src/views/SearchList.vue
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
:searchDataApi="'/ccesmanage/AppUseSummaryList/getList'"></ct-searchlist> -->
|
|
6
6
|
|
|
7
|
-
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/
|
|
7
|
+
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyTenderList/getLayoutOfSearch'"
|
|
8
8
|
|
|
9
|
-
:searchDataApi="'/
|
|
9
|
+
:searchDataApi="'/propertyTenderList/getListOfSearchModel'"></ct-searchlist>
|
|
10
10
|
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeMaternityList/getLayoutOfSearch'"
|
|
11
11
|
:searchDataApi="'/EmployeeMaternityList/getListOfSearchModel'"></ct-searchlist> -->
|
|
12
12
|
|