centaline-data-driven-v3 0.1.53 → 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/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/Form.vue +12 -7
- package/src/components/web/FormList.vue +10 -1
- package/src/components/web/SearchList/SearchSideRight.vue +13 -11
- package/src/components/web/SearchList/SearchTable.vue +7 -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 +1 -3
- package/src/loader/src/Button.js +9 -0
- package/src/loader/src/Form.js +15 -5
- 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/views/Form.vue +1 -1
- package/src/views/SearchList.vue +2 -2
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/views/Form.vue
CHANGED
|
@@ -7,6 +7,6 @@
|
|
|
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":"
|
|
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"}]}
|
|
11
11
|
const apiParam={"originalOrderId":"2014640778344816640","columnName":"orderNo","actionType":"1","pageStyle":"2","pageOnly":"true"}
|
|
12
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
|
|