centaline-data-driven-v3 0.1.47 → 0.1.49
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 +84 -84
- package/package.json +1 -1
- package/src/assets/commonWeb.css +13 -0
- package/src/components/web/CheckBox.vue +1 -0
- package/src/components/web/CheckBoxList.vue +6 -3
- package/src/components/web/ComboBox.vue +1 -1
- package/src/components/web/ContainerControl.vue +1 -0
- package/src/components/web/Cron.vue +1 -0
- package/src/components/web/DatePicker.vue +1 -0
- package/src/components/web/File.vue +1 -0
- package/src/components/web/Form.vue +13 -10
- package/src/components/web/GroupList.vue +1 -0
- package/src/components/web/GroupSplitLine.vue +1 -0
- package/src/components/web/HyperLink.vue +1 -0
- package/src/components/web/HyperLinkList.vue +1 -0
- package/src/components/web/Image.vue +1 -0
- package/src/components/web/JsonViewer.vue +1 -0
- package/src/components/web/Label.vue +1 -0
- package/src/components/web/MultiComboBoxWithTextBox.vue +1 -0
- package/src/components/web/NumberWithPlusAndMinus.vue +1 -0
- package/src/components/web/NumericRange.vue +1 -0
- package/src/components/web/RadioButton.vue +1 -0
- package/src/components/web/SearchList/SearchTable.vue +8 -2
- package/src/components/web/SearchList.vue +3 -0
- package/src/components/web/Tags.vue +1 -0
- package/src/components/web/TextBox.vue +1 -0
- package/src/components/web/Tree/Tree.vue +172 -88
- package/src/loader/src/CheckBoxList.js +113 -0
- package/src/loader/src/DatePicker.js +9 -8
- package/src/loader/src/Field.js +17 -5
- package/src/loader/src/Form.js +11 -3
- package/src/loader/src/SearchTable.js +11 -1
- package/src/main.js +2 -2
- package/src/utils/mixins.js +13 -0
- package/src/utils/request.js +2 -5
- package/src/views/Form.vue +4 -3
- package/src/views/SearchList.vue +5 -7
|
@@ -1231,6 +1231,15 @@ function getAction(api, submitData, callback) {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
});
|
|
1233
1233
|
}
|
|
1234
|
+
function checkCloseTabThen(notification) {
|
|
1235
|
+
var rtn = false;
|
|
1236
|
+
if (notification == Enum.ActionType.CloseTabThenDelete
|
|
1237
|
+
|| notification == Enum.ActionType.CloseTabThenNew
|
|
1238
|
+
|| notification == Enum.ActionType.CloseTabThenUpdate) {
|
|
1239
|
+
rtn = true;
|
|
1240
|
+
}
|
|
1241
|
+
return rtn;
|
|
1242
|
+
}
|
|
1234
1243
|
const SearchTable = {
|
|
1235
1244
|
loadSearchTableApi,
|
|
1236
1245
|
loadSearchTableModel,
|
|
@@ -1244,6 +1253,7 @@ const SearchTable = {
|
|
|
1244
1253
|
clearSort,
|
|
1245
1254
|
getCurrentRowApiData,
|
|
1246
1255
|
doAction,
|
|
1247
|
-
getAction
|
|
1256
|
+
getAction,
|
|
1257
|
+
checkCloseTabThen
|
|
1248
1258
|
};
|
|
1249
1259
|
export default SearchTable;
|
package/src/main.js
CHANGED
|
@@ -22,7 +22,7 @@ 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:"
|
|
25
|
+
baseUrl:"http://10.88.22.69:7080/co-sales-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/",
|
|
@@ -67,7 +67,7 @@ app.use(centaline, {
|
|
|
67
67
|
return {
|
|
68
68
|
|
|
69
69
|
//AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyaWQiOiIyNTEyMTUxNzQyMTg5QzI4MTgwRDkxRTk0MDhEOTA0QSIsImxvZ2luX3VzZXJfa2V5IjoiN2MzYzNjNjAtNWVjMy00MzdkLWExMDYtOWYxZTMwYjU0Mjg2In0.daG9mS98Gg8KmHSUjYHktMcO2Jk7SVtCcqm2sRB0I8Y2N0TuonIrVUDcHdNdDiuD3v6qO_f010tQWlBsAQ1dqg',
|
|
70
|
-
authobject: '{token:"
|
|
70
|
+
authobject: '{token:"TY002-2031915589290885120",platform:"WEB"}',
|
|
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/mixins.js
CHANGED
|
@@ -776,7 +776,20 @@ export function RouterClickHandler(field, submitData, action, model, source, cal
|
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
|
+
else if (source == 'tree') {
|
|
780
|
+
if (ev.responseData.notification == Enum.ActionType.Refersh) {
|
|
781
|
+
if (callBack) {
|
|
782
|
+
callBack(ev);
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
else {
|
|
786
|
+
if (callBack) {
|
|
787
|
+
callBack(ev.responseData?.content[0]);
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
}
|
|
779
791
|
else {
|
|
792
|
+
|
|
780
793
|
if (callBack) {
|
|
781
794
|
callBack(ev.responseData.content[0]);
|
|
782
795
|
}
|
package/src/utils/request.js
CHANGED
|
@@ -65,12 +65,9 @@ const request = {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
//关闭tab页
|
|
68
|
-
if (data.notification === Enum.ActionType.CloseTab
|
|
69
|
-
|| data.notification === Enum.ActionType.CloseTabThenDelete
|
|
70
|
-
|| data.notification === Enum.ActionType.CloseTabThenNew
|
|
71
|
-
|| data.notification === Enum.ActionType.CloseTabThenUpdate) {
|
|
68
|
+
if (data.notification === Enum.ActionType.CloseTab) {
|
|
72
69
|
if (typeof common.getDataDrivenOpts().handler.closeTab === 'function') {
|
|
73
|
-
|
|
70
|
+
common.getDataDrivenOpts().handler.closeTab();
|
|
74
71
|
}
|
|
75
72
|
}
|
|
76
73
|
|
package/src/views/Form.vue
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
2
|
+
<div
|
|
3
|
+
:style="{ 'width': '800px' , 'height': '800px', margin: 'auto', 'position': 'relative'}">
|
|
4
|
+
<ct-form :api="'/Order/readDetail'" :apiParam="apiParam" :openType="'tree'"></ct-form>
|
|
4
5
|
<!-- <ct-textbox :source="source"></ct-textbox> -->
|
|
5
6
|
<ct-dialoglist ref="dialogList"></ct-dialoglist>
|
|
6
7
|
</div>
|
|
7
8
|
</template>
|
|
8
9
|
<script lang="ts" setup>
|
|
9
|
-
const apiParam={"
|
|
10
|
+
const apiParam={"originalOrderId":"2014640778344816640","columnName":"orderNo","actionType":"1","pageStyle":"2","pageOnly":"true"}
|
|
10
11
|
</script>
|
package/src/views/SearchList.vue
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
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="'/ccesmanage/AppUseSummaryList/getLayoutOfSearch'"
|
|
4
4
|
|
|
5
|
-
:searchDataApi="'/
|
|
5
|
+
:searchDataApi="'/ccesmanage/AppUseSummaryList/getList'"></ct-searchlist> -->
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/AttendanceBalanceSettingList/getLayoutOfSearch'"
|
|
8
8
|
|
|
9
|
-
:searchDataApi="'/
|
|
9
|
+
:searchDataApi="'/AttendanceBalanceSettingList/getListOfSearchModel'"></ct-searchlist>
|
|
10
10
|
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeMaternityList/getLayoutOfSearch'"
|
|
11
11
|
:searchDataApi="'/EmployeeMaternityList/getListOfSearchModel'"></ct-searchlist> -->
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
:searchStatsApi="'/ProfileWorklistList/getListStats'"
|
|
15
|
-
:searchDataApi="'/OvertimeList/getListOfSearchModel'"></ct-searchlist> -->
|
|
13
|
+
|
|
16
14
|
<ct-dialoglist ref="dialogList"></ct-dialoglist>
|
|
17
15
|
|
|
18
16
|
</div>
|