centaline-data-driven-v3 0.1.54 → 0.1.56
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 +2 -2
- package/package.json +1 -1
- package/src/loader/src/Form.js +23 -21
- package/src/main.js +3 -4
- package/src/utils/mixins.js +2 -0
- package/src/views/Form.vue +7 -9
- package/src/views/SearchList.vue +2 -2
package/package.json
CHANGED
package/src/loader/src/Form.js
CHANGED
|
@@ -8,7 +8,7 @@ import request from '../../utils/request';
|
|
|
8
8
|
function loadFormApi(api, callBack, apiParam, failCallBack, isFormList, appRootUrl) {
|
|
9
9
|
if (api) {
|
|
10
10
|
apiParam = apiParam ? apiParam : {};
|
|
11
|
-
request.postHandler(common.globalUri(), { "action": (appRootUrl||'') + 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;
|
|
@@ -37,7 +37,7 @@ function loadFromModel(source, isFormList, appRootUrl) {
|
|
|
37
37
|
excuteData: null,//fields
|
|
38
38
|
fieldsDic: null,//fieldsDic
|
|
39
39
|
_excuteListData: undefined,
|
|
40
|
-
appRootUrl: appRootUrl||'',
|
|
40
|
+
appRootUrl: appRootUrl || '',
|
|
41
41
|
enableRelationFields(FlagRelation) {
|
|
42
42
|
this.form.enableRelationFields = FlagRelation
|
|
43
43
|
},
|
|
@@ -675,7 +675,7 @@ function loadFromModel(source, isFormList, appRootUrl) {
|
|
|
675
675
|
source.buttons.forEach((v) => {
|
|
676
676
|
v.buttonType = common.getEnumValue(Enum.ButtonType, v.buttonType);
|
|
677
677
|
v.actionType = common.getEnumValue(Enum.ActionType, v.actionType);
|
|
678
|
-
v.action = (appRootUrl||'') + v.action;
|
|
678
|
+
v.action = (appRootUrl || '') + v.action;
|
|
679
679
|
var button = Router(v);
|
|
680
680
|
button.is = "ct-button";
|
|
681
681
|
rtn._buttons.push(button);
|
|
@@ -696,7 +696,7 @@ function loadFromModel(source, isFormList, appRootUrl) {
|
|
|
696
696
|
source.captionBarButtons.forEach((v) => {
|
|
697
697
|
v.buttonType = common.getEnumValue(Enum.ButtonType, v.buttonType);
|
|
698
698
|
v.actionType = common.getEnumValue(Enum.ActionType, v.actionType);
|
|
699
|
-
|
|
699
|
+
v.action = (appRootUrl || '') + v.action;
|
|
700
700
|
var button = Router(v);
|
|
701
701
|
button.is = "ct-button";
|
|
702
702
|
rtn._captionBarButtons.push(button);
|
|
@@ -717,7 +717,7 @@ function loadFromModel(source, isFormList, appRootUrl) {
|
|
|
717
717
|
source.links.forEach((v) => {
|
|
718
718
|
v.buttonType = common.getEnumValue(Enum.ButtonType, v.buttonType);
|
|
719
719
|
v.actionType = common.getEnumValue(Enum.ActionType, v.actionType);
|
|
720
|
-
|
|
720
|
+
v.action = (appRootUrl || '') + v.action;
|
|
721
721
|
var button = Router(v);
|
|
722
722
|
button.is = "ct-button";
|
|
723
723
|
rtn._links.push(button);
|
|
@@ -738,7 +738,7 @@ function loadFromModel(source, isFormList, appRootUrl) {
|
|
|
738
738
|
source.actionRouters.forEach((v) => {
|
|
739
739
|
v.buttonType = common.getEnumValue(Enum.ButtonType, v.buttonType);
|
|
740
740
|
v.actionType = common.getEnumValue(Enum.ActionType, v.actionType);
|
|
741
|
-
v.action = (appRootUrl||'') + v.action;
|
|
741
|
+
v.action = (appRootUrl || '') + v.action;
|
|
742
742
|
var button = Router(v);
|
|
743
743
|
button.is = "ct-button";
|
|
744
744
|
rtn._actionRouters.push(button);
|
|
@@ -749,7 +749,7 @@ function loadFromModel(source, isFormList, appRootUrl) {
|
|
|
749
749
|
},
|
|
750
750
|
//参数取值的Action
|
|
751
751
|
get parameterAction() {
|
|
752
|
-
return (appRootUrl||'') + source.parameterAction;
|
|
752
|
+
return (appRootUrl || '') + source.parameterAction;
|
|
753
753
|
},
|
|
754
754
|
_pageDisabled: false,
|
|
755
755
|
get pageDisabled() {
|
|
@@ -855,21 +855,23 @@ function loadFromModel(source, isFormList, appRootUrl) {
|
|
|
855
855
|
else if (f.controlType == Enum.ControlType.SearchPage) {
|
|
856
856
|
if (f.table) {
|
|
857
857
|
let rtnFormArr = [];
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
858
|
+
if (f.table.model) {
|
|
859
|
+
var tempListData = f.table.model.getSelectRowData({ isMulti: f.table.model.isMulti });
|
|
860
|
+
if (tempListData) {
|
|
861
|
+
for (let i = 0; i < tempListData.length; i++) {
|
|
862
|
+
rtnFormArr.push(tempListData[i]);
|
|
863
|
+
}
|
|
862
864
|
}
|
|
865
|
+
let rtnObj = {};
|
|
866
|
+
Object.defineProperty(rtnObj, f.fieldName1, {
|
|
867
|
+
get: function () {
|
|
868
|
+
return rtnFormArr;
|
|
869
|
+
},
|
|
870
|
+
enumerable: true,
|
|
871
|
+
configurable: true
|
|
872
|
+
});
|
|
873
|
+
Object.assign(rtnFormObj, rtnObj);
|
|
863
874
|
}
|
|
864
|
-
let rtnObj = {};
|
|
865
|
-
Object.defineProperty(rtnObj, f.fieldName1, {
|
|
866
|
-
get: function () {
|
|
867
|
-
return rtnFormArr;
|
|
868
|
-
},
|
|
869
|
-
enumerable: true,
|
|
870
|
-
configurable: true
|
|
871
|
-
});
|
|
872
|
-
Object.assign(rtnFormObj, rtnObj);
|
|
873
875
|
}
|
|
874
876
|
|
|
875
877
|
}
|
|
@@ -933,7 +935,7 @@ function loadFromModel(source, isFormList, appRootUrl) {
|
|
|
933
935
|
}
|
|
934
936
|
},
|
|
935
937
|
getRtnRouter(v) {
|
|
936
|
-
v.action = (appRootUrl||'') + v.action;
|
|
938
|
+
v.action = (appRootUrl || '') + v.action;
|
|
937
939
|
var button = Router(v);
|
|
938
940
|
button.is = "ct-button";
|
|
939
941
|
return button;
|
package/src/main.js
CHANGED
|
@@ -21,16 +21,15 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
app.use(centaline, {
|
|
24
|
-
|
|
24
|
+
baseUrl: "http://10.88.22.66/IBS.Mvc/api/",
|
|
25
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
|
-
baseUrl: "http://10.88.22.66/IBS.Mvc/api/",
|
|
29
28
|
//baseUrl: "http://10.1.245.50:38735/max-uplink-api/",
|
|
30
29
|
//baseUrl: "http://10.1.245.111:38028/",
|
|
31
30
|
|
|
32
31
|
flagRouterSelf: true,
|
|
33
|
-
flagApp:
|
|
32
|
+
flagApp: false,//是否app端
|
|
34
33
|
zindex: 999,
|
|
35
34
|
showRequestSuccessMessage: true,
|
|
36
35
|
showRequestErrorMessage: true,
|
|
@@ -67,7 +66,7 @@ app.use(centaline, {
|
|
|
67
66
|
return {
|
|
68
67
|
|
|
69
68
|
//AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyaWQiOiIyNTEyMTUxNzQyMTg5QzI4MTgwRDkxRTk0MDhEOTA0QSIsImxvZ2luX3VzZXJfa2V5IjoiN2MzYzNjNjAtNWVjMy00MzdkLWExMDYtOWYxZTMwYjU0Mjg2In0.daG9mS98Gg8KmHSUjYHktMcO2Jk7SVtCcqm2sRB0I8Y2N0TuonIrVUDcHdNdDiuD3v6qO_f010tQWlBsAQ1dqg',
|
|
70
|
-
authobject: '{EmpID:"
|
|
69
|
+
authobject: '{EmpID:"Token_5ee29143-b885-4ee7-9cef-b85e4bdca4a0",MachineCode:"1d6b7fc9-90ff-4a68-9504-1174fa72db7b",SSO_Token:"SSOToken_5ee29143-b885-4ee7-9cef-b85e4bdca4a0",Platform:"WEB"}',
|
|
71
70
|
//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
71
|
//oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
|
|
73
72
|
//authObject: '{token:"jiangzf-1958445358178844672",platform:"WEB"}',
|
package/src/utils/mixins.js
CHANGED
|
@@ -993,8 +993,10 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
993
993
|
cancelButtonText: '取消',
|
|
994
994
|
type: 'warning'
|
|
995
995
|
},model.appendToBody).then(() => {
|
|
996
|
+
model.$vue.operationLoading = true
|
|
996
997
|
submitData.flagHaveAlert = '1';
|
|
997
998
|
field.doAction(submitData, (res) => {
|
|
999
|
+
model.$vue.operationLoading = false
|
|
998
1000
|
if (res.rtnCode === Enum.ReturnCode.Successful) {
|
|
999
1001
|
if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction) {
|
|
1000
1002
|
model.$vue.doAction(res, model);
|
package/src/views/Form.vue
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
</template>
|
|
2
|
+
<div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
|
+
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
4
|
+
<ct-form :api="'/admin/SchoolTeachingPlanLibrary/readDetail'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
|
|
5
|
+
<ct-dialog-list></ct-dialog-list>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
9
8
|
<script lang="ts" setup>
|
|
10
|
-
const
|
|
11
|
-
const apiParam={"originalOrderId":"2014640778344816640","columnName":"orderNo","actionType":"1","pageStyle":"2","pageOnly":"true"}
|
|
9
|
+
const apiParam={"teachingPlanId":"1982726202548482048","actionType":3}
|
|
12
10
|
</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="'/propertyPublishList/getLayoutOfSearch'"
|
|
8
8
|
|
|
9
|
-
:searchDataApi="'/
|
|
9
|
+
:searchDataApi="'/propertyPublishList/getListOfSearchModel'" :searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist>
|
|
10
10
|
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeMaternityList/getLayoutOfSearch'"
|
|
11
11
|
:searchDataApi="'/EmployeeMaternityList/getListOfSearchModel'"></ct-searchlist> -->
|
|
12
12
|
|