centaline-data-driven-v3 0.1.15 → 0.1.17
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 +132 -132
- package/package.json +1 -1
- package/src/assets/commonApp.css +6 -0
- package/src/assets/commonWeb.css +20 -11
- package/src/components/app/ComboBox.vue +2 -1
- package/src/components/app/DatePicker.vue +4 -2
- package/src/components/app/Field.vue +13 -9
- package/src/components/app/TextBox.vue +14 -11
- package/src/components/web/Button.vue +165 -6
- package/src/components/web/DatePicker.vue +25 -12
- package/src/components/web/DateTimePicker/DateTimePicker.vue +748 -0
- package/src/components/web/Field.vue +86 -34
- package/src/components/web/File.vue +4 -0
- package/src/components/web/Form.vue +7 -7
- package/src/components/web/SearchList/SearchTable.vue +4 -0
- package/src/components/web/SearchScreen.vue +26 -7
- package/src/loader/src/Button.js +5 -2
- package/src/loader/src/DatePicker.js +56 -22
- package/src/loader/src/Enum.ts +736 -727
- package/src/loader/src/Field.js +10 -1
- package/src/loader/src/LibFunction.js +1 -1
- package/src/loader/src/SearchScreen.js +26 -0
- package/src/main.js +4 -4
- package/src/views/Form.vue +8 -8
- package/src/views/SearchList.vue +4 -5
package/src/loader/src/Field.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Enum from '../../utils/Enum';
|
|
2
2
|
import common from '../../utils/common';
|
|
3
|
-
const Base = function (source, moreActionRouter) {
|
|
3
|
+
const Base = function (source, moreActionRouter, formLabelPlacement) {
|
|
4
4
|
let rtn = {
|
|
5
5
|
//Field
|
|
6
6
|
//分组名
|
|
@@ -55,6 +55,9 @@ const Base = function (source, moreActionRouter) {
|
|
|
55
55
|
set rows(v) {
|
|
56
56
|
source.rows = v;
|
|
57
57
|
},
|
|
58
|
+
get labelPlacement() {
|
|
59
|
+
return source.labelPlacement ?? formLabelPlacement ?? '0';
|
|
60
|
+
},
|
|
58
61
|
//是否必填
|
|
59
62
|
get required() {
|
|
60
63
|
if (!source.required) {
|
|
@@ -791,6 +794,12 @@ const Base = function (source, moreActionRouter) {
|
|
|
791
794
|
get size() {
|
|
792
795
|
return "small";
|
|
793
796
|
},
|
|
797
|
+
get maxSize() {
|
|
798
|
+
if (source.code2) {
|
|
799
|
+
return source.code2 * 1024 * 1024;
|
|
800
|
+
}
|
|
801
|
+
return null;
|
|
802
|
+
},
|
|
794
803
|
set class(v) {
|
|
795
804
|
source.className = v
|
|
796
805
|
},
|
|
@@ -80,7 +80,7 @@ const LibFunction = {
|
|
|
80
80
|
moreActionRouter = LibFunction.getRouter(source.actionRouters, field.moreActionRouterKey);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
item = Field(field, moreActionRouter);
|
|
83
|
+
item = Field(field, moreActionRouter,source.labelPlacement);
|
|
84
84
|
item.isList = isList;
|
|
85
85
|
switch (field.controlType) {
|
|
86
86
|
case Enum.ControlType.Group:
|
|
@@ -3,6 +3,7 @@ import LibFunction from './LibFunction';
|
|
|
3
3
|
import Enum from '../../utils/Enum';
|
|
4
4
|
import common from '../../utils/common';
|
|
5
5
|
import request from '../../utils/request';
|
|
6
|
+
import Router from './Router';
|
|
6
7
|
|
|
7
8
|
function loadSearchScreenApi(action, callBack, screenPara, prevParam, failCallBack) {
|
|
8
9
|
if (action) {
|
|
@@ -665,6 +666,31 @@ function loadSearchScreenModel(source, prevParam) {
|
|
|
665
666
|
});
|
|
666
667
|
return rtn;
|
|
667
668
|
},
|
|
669
|
+
_actionRouters: null,
|
|
670
|
+
get actionRouters() {
|
|
671
|
+
if (rtn._actionRouters !== null) {
|
|
672
|
+
return rtn._actionRouters;
|
|
673
|
+
}
|
|
674
|
+
else {
|
|
675
|
+
rtn._actionRouters = [];
|
|
676
|
+
if (source.actionRouters) {
|
|
677
|
+
source.actionRouters.forEach((v) => {
|
|
678
|
+
var button = Router(v);
|
|
679
|
+
button.is = "ct-btn";
|
|
680
|
+
rtn._actionRouters.push(button);
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
else if (source.content.actionRouters) {
|
|
684
|
+
source.content.actionRouters.forEach((v) => {
|
|
685
|
+
v.actionType = 2;
|
|
686
|
+
var button = Router(v);
|
|
687
|
+
button.is = "ct-btn";
|
|
688
|
+
rtn._actionRouters.push(button);
|
|
689
|
+
});
|
|
690
|
+
}
|
|
691
|
+
return rtn._actionRouters;
|
|
692
|
+
}
|
|
693
|
+
},
|
|
668
694
|
//绑定联动参数组件
|
|
669
695
|
getRefFieldPara(refFieldNameArr) {
|
|
670
696
|
let submitData = {};
|
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
|
-
|
|
25
|
-
baseUrl:"http://10.88.22.13:7070/onecard-api/",
|
|
24
|
+
baseUrl: "https://kq-api.centaline.com.cn/onecard-api",
|
|
25
|
+
//baseUrl:"http://10.88.22.13:7070/onecard-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:6060/xian/",
|
|
@@ -65,9 +65,9 @@ app.use(centaline, {
|
|
|
65
65
|
//获取请求头
|
|
66
66
|
getRequestHeaders: function () {
|
|
67
67
|
return {
|
|
68
|
-
|
|
68
|
+
authobject: '{token:"1647-1967489899997401088",platform:"WEB"}',
|
|
69
69
|
//oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
|
|
70
|
-
authObject: '{token:"jiangzf-1958445358178844672",platform:"WEB"}',
|
|
70
|
+
//authObject: '{token:"jiangzf-1958445358178844672",platform:"WEB"}',
|
|
71
71
|
//authObject: '{token:"1-90f7df2c-fba7-4ea0-8874-aa7202034f06"}',
|
|
72
72
|
};
|
|
73
73
|
},
|
package/src/views/Form.vue
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
4
|
-
<ct-form :api="'/EmployeeMaternity/readDetail'" :apiParam="apiParam" :flagNavbar="true"></ct-form>
|
|
5
|
-
<!-- <ct-form :api="'/api/third-dept-tran/tran-comm-adjust/task'" :apiParam="apiParam"></ct-form> -->
|
|
6
|
-
<!-- <ct-form :api="'/PropertyTranToActive/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
|
|
2
|
+
<div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
|
+
<ct-form :api="'/EmployeeAttendanceBillApply/getLayoutOfNew'" :apiParam="apiParam"></ct-form>
|
|
7
4
|
<!-- <ct-textbox :source="source"></ct-textbox> -->
|
|
8
|
-
|
|
5
|
+
|
|
9
6
|
</div>
|
|
10
7
|
</template>
|
|
11
8
|
<script lang="ts" setup>
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
const apiParam={
|
|
10
|
+
"actionType": 2,
|
|
11
|
+
"empID": "{90A76197-49CC-4D81-A08E-048557757B57}"
|
|
12
|
+
}
|
|
13
|
+
const source={"controlType":2,"showLabel":true,"controlLabel":"制度标识","groupExpand":false,"singleLine":false,"rows":1,"required":true,"spanCols":1,"locked":false,"autoFill":false,"searchDataType":1,"searchOperation":1,"displayLabelAfterSelected":true,"autoSearch":false,"mediaViewPageType":1,"fieldName1":"WorkSystemID","code1":"CD","name1":"","decimals1":-1,"maxValue1":"50","preLabel1":"","sufLabel1":"","fieldName2":"","code2":"","name2":"","decimals2":-1,"decimals3":0,"decimals4":-1,"width":200,"applyNew":1,"applyEdit":1,"applyBrowse":1}
|
|
14
14
|
</script>
|
package/src/views/SearchList.vue
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-search" style="width:100%;height:100%;position: fixed;">
|
|
3
|
-
|
|
4
|
-
:searchDataApi="'/
|
|
5
|
-
:searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist> -->
|
|
3
|
+
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeAttendanceBillList/getLayoutOfSearchForMy'"
|
|
4
|
+
:searchDataApi="'/EmployeeAttendanceBillList/getListOfSearchModelForMy'"></ct-searchlist>
|
|
6
5
|
|
|
7
|
-
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeMaternityList/getLayoutOfSearch'"
|
|
8
|
-
:searchDataApi="'/EmployeeMaternityList/getListOfSearchModel'"></ct-searchlist>
|
|
6
|
+
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeMaternityList/getLayoutOfSearch'"
|
|
7
|
+
:searchDataApi="'/EmployeeMaternityList/getListOfSearchModel'"></ct-searchlist> -->
|
|
9
8
|
|
|
10
9
|
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/OvertimeList/getLayoutOfSearch'"
|
|
11
10
|
:searchDataApi="'/OvertimeList/getListOfSearchModel'"></ct-searchlist> -->
|