centaline-data-driven-v3 0.1.40 → 0.1.42
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 +96 -96
- package/package.json +1 -1
- package/src/components/web/Form.vue +275 -19
- package/src/components/web/Tree/Tree.vue +766 -176
- package/src/components/web/TreeList.vue +2 -2
- package/src/loader/src/SearchScreen.js +1 -1
- package/src/main.js +5 -4
- package/src/utils/request.js +5 -6
- package/src/views/Form.vue +2 -2
- package/src/views/SearchList.vue +5 -2
- package/src/views/Tree.vue +9 -3
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
<template v-if="pageType == 'form'">
|
|
17
17
|
<div style="height: 100%;">
|
|
18
18
|
<div class="ct-form"
|
|
19
|
-
:style="{ 'width': (width ? width + 'px' : 'auto'), 'height': (height ? height + 'px' : '
|
|
20
|
-
<ct-form :api="formApi" :api-param="apiParam1" :
|
|
19
|
+
:style="{ 'width': (width ? width + 'px' : 'auto'), 'height': (height ? height + 'px' : '100%') ,margin: '0px','position': 'relative','background-color': '#FFFFFF','border-radius': '6px'}">
|
|
20
|
+
<ct-form :api="formApi" :api-param="apiParam1" :pageWidth="width" :pageHeight="height" :openType="'tree'"></ct-form>
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
|
23
23
|
</template>
|
|
@@ -705,7 +705,7 @@ function loadSearchScreenModel(source, prevParam) {
|
|
|
705
705
|
rtn._actionRouters.push(button);
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
|
-
else if (source.content.actionRouters) {
|
|
708
|
+
else if (source.content && source.content.actionRouters) {
|
|
709
709
|
source.content.actionRouters.forEach((v) => {
|
|
710
710
|
v.actionType = 2;
|
|
711
711
|
var button = Router(v);
|
package/src/main.js
CHANGED
|
@@ -21,8 +21,8 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
app.use(centaline, {
|
|
24
|
-
baseUrl: "
|
|
25
|
-
//baseUrl:"http://10.88.22.
|
|
24
|
+
baseUrl: "https://kq-api.centaline.com.cn/onecard-api/",
|
|
25
|
+
//baseUrl:"http://10.88.22.66/IBS.Mvc/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/",
|
|
@@ -66,8 +66,9 @@ app.use(centaline, {
|
|
|
66
66
|
getRequestHeaders: function () {
|
|
67
67
|
return {
|
|
68
68
|
|
|
69
|
-
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.
|
|
70
|
-
authobject: '{
|
|
69
|
+
//AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImIzMjNmYjZjLTU5MWEtNGU5Mi1iODNmLWUzZDBhNThmMDMzMSJ9.P32j9z5ujG9bg76InDMrs89NgLhjly6ESp9MIipYVmCoiYQD0kgscqdk_7E6NKsi_FKosZVliKEeZFlPwqsBZQ',
|
|
70
|
+
authobject: '{token:"16-2005889170303787008",platform:"WEB"}',
|
|
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"}',
|
|
71
72
|
//oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
|
|
72
73
|
//authObject: '{token:"jiangzf-1958445358178844672",platform:"WEB"}',
|
|
73
74
|
//authObject: '{EmpID:"Token_4e09499b-4b76-46df-9ce5-5498d48ed062",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_4e09499b-4b76-46df-9ce5-5498d48ed062",Platform:"WEB"}',
|
package/src/utils/request.js
CHANGED
|
@@ -73,14 +73,14 @@ const request = {
|
|
|
73
73
|
//common.getDataDrivenOpts().handler.closeTab();
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
|
|
77
77
|
if (data.rtnCode === Enum.ReturnCode.Successful) {
|
|
78
78
|
if (data.rtnMsg && common.getDataDrivenOpts().showRequestSuccessMessage) {
|
|
79
79
|
if (data.msgAlertStyle && data.msgAlertStyle == Enum.MessageAlertStyle.Dialog) {
|
|
80
|
-
common.
|
|
80
|
+
common.message(data.rtnMsg, 'error', '', 0, true)
|
|
81
81
|
}
|
|
82
82
|
else {
|
|
83
|
-
common.message(
|
|
83
|
+
common.message(data.rtnMsg, 'success')
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -115,11 +115,10 @@ const request = {
|
|
|
115
115
|
else {
|
|
116
116
|
if (response.data.rtnMsg && common.getDataDrivenOpts().showRequestErrorMessage) {
|
|
117
117
|
if (data.msgAlertStyle && data.msgAlertStyle == Enum.MessageAlertStyle.Dialog) {
|
|
118
|
-
|
|
119
|
-
common.confirm(data.rtnMsg, '信息', { confirmButtonText: '确定', flagShowcCancelButton: '0' });
|
|
118
|
+
common.message(data.rtnMsg, 'error', '', 0, true)
|
|
120
119
|
}
|
|
121
120
|
else {
|
|
122
|
-
common.message(
|
|
121
|
+
common.message(data.rtnMsg, 'error')
|
|
123
122
|
}
|
|
124
123
|
}
|
|
125
124
|
return Promise.reject(response);
|
package/src/views/Form.vue
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
|
-
<ct-form :api="'/
|
|
3
|
+
<ct-form :api="'/Employee/readDetail'" :apiParam="apiParam"></ct-form>
|
|
4
4
|
<!-- <ct-textbox :source="source"></ct-textbox> -->
|
|
5
5
|
<ct-dialoglist ref="dialogList"></ct-dialoglist>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
8
8
|
<script lang="ts" setup>
|
|
9
|
-
const apiParam={"actionType":
|
|
9
|
+
const apiParam={"rowGUID":"{84373596-5043-4d58-935c-bc3559c8654f}","actionType":3}
|
|
10
10
|
</script>
|
package/src/views/SearchList.vue
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-search" style="width:100%;height:100%;position: fixed;">
|
|
3
|
-
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/
|
|
3
|
+
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyTenderList/getLayoutOfSearch'"
|
|
4
4
|
|
|
5
|
-
:searchDataApi="'/
|
|
5
|
+
:searchDataApi="'/propertyTenderList/getListOfSearchModel'"></ct-searchlist>
|
|
6
6
|
|
|
7
|
+
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/propertyTenderList/getLayoutOfSearch'"
|
|
8
|
+
|
|
9
|
+
:searchDataApi="'/propertyTenderList/getListOfSearchModel'"></ct-searchlist> -->
|
|
7
10
|
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeMaternityList/getLayoutOfSearch'"
|
|
8
11
|
:searchDataApi="'/EmployeeMaternityList/getListOfSearchModel'"></ct-searchlist> -->
|
|
9
12
|
|
package/src/views/Tree.vue
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div id="app-Tree" style="height:100%;position: fixed;width:100%;padding: 10px;">
|
|
3
3
|
<ct-treelist :flagsearch="true" :apiParam="apiParam" :leftWidth="'280'"
|
|
4
|
-
:searchConditionApi="'/
|
|
4
|
+
:searchConditionApi="'/DepartmentList/getLayoutOfSearch'"
|
|
5
|
+
:searchDataApi="'/DepartmentList/getListOfSearchModel'"
|
|
5
6
|
@loaded="loaded"></ct-treelist>
|
|
6
7
|
<!-- <ct-textbox :source="source"></ct-textbox> -->
|
|
7
8
|
<ct-dialoglist></ct-dialoglist>
|
|
@@ -14,4 +15,9 @@ const apiParam = {
|
|
|
14
15
|
function loaded() {
|
|
15
16
|
|
|
16
17
|
}
|
|
17
|
-
</script>
|
|
18
|
+
</script>
|
|
19
|
+
<style>
|
|
20
|
+
body{
|
|
21
|
+
background-color: #ddd;
|
|
22
|
+
}
|
|
23
|
+
</style>
|