centaline-data-driven-v3 0.1.10 → 0.1.12
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 +11 -11
- package/package.json +1 -1
- package/src/components/app/TextBox.vue +13 -1
- package/src/components/web/ComboBox.vue +71 -68
- package/src/components/web/NumericRange.vue +2 -2
- package/src/components/web/SearchList/SearchTable.vue +117 -106
- package/src/components/web/SearchScreen.vue +1 -0
- package/src/components/web/TextBox.vue +39 -25
- package/src/loader/src/Field.js +31 -7
- package/src/loader/src/Form.js +168 -13
- package/src/loader/src/SearchScreen.js +873 -808
- package/src/main.js +1 -1
- package/src/utils/validate.js +21 -0
- package/src/views/Form.vue +2 -2
- package/src/views/SearchList.vue +3 -3
package/src/main.js
CHANGED
|
@@ -67,7 +67,7 @@ app.use(centaline, {
|
|
|
67
67
|
return {
|
|
68
68
|
//authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVay1xvvOl3sJA2HiPIxElSIJBIIcXdAQEfPFK-YZt4Nlm2EChqtDafOYWqpRG6kxLoTxZhUTSRxHLUPH_DHfOmt5SDWt1gHScieHapNiol94q5pXYoNFJAvJ6isGHWmNMYVcBjWtyCr_iW2JZ93-fqPc8f18MwGIqFRCIO1GXmWGYd9npCZJ6N5JjYZ7g8AAAD__w.HgtNKtHWooj8c9Hy_vB8CfKq-qOeHMp0irnW0DfXtHo"}',
|
|
69
69
|
//oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
|
|
70
|
-
authObject: '{token:"
|
|
70
|
+
authObject: '{token:"jiangzf-1955865005534617600",platform:"WEB"}',
|
|
71
71
|
//authObject: '{token:"1-90f7df2c-fba7-4ea0-8874-aa7202034f06"}',
|
|
72
72
|
};
|
|
73
73
|
},
|
package/src/utils/validate.js
CHANGED
|
@@ -2,6 +2,7 @@ import Enum from './Enum';
|
|
|
2
2
|
import File from '../loader/src/File';
|
|
3
3
|
import Photo from '../loader/src/Photo';
|
|
4
4
|
import PhotoSelect from '../loader/src/PhotoSelect';
|
|
5
|
+
import common from './common';
|
|
5
6
|
const actions = {
|
|
6
7
|
required(v, o) {
|
|
7
8
|
if (!v.code1) {
|
|
@@ -82,6 +83,19 @@ const actions = {
|
|
|
82
83
|
return true;
|
|
83
84
|
}
|
|
84
85
|
},
|
|
86
|
+
numberMax(v, o) {
|
|
87
|
+
if (v.code1 <= parseFloat(v.maxValue1)) {
|
|
88
|
+
return true
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
if (!v.code1) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
common.message("【"+v.controlLabel+"】最大值为" + v.maxValue1 + "");
|
|
95
|
+
v.code1 = o;
|
|
96
|
+
return true;
|
|
97
|
+
}
|
|
98
|
+
},
|
|
85
99
|
numberArea(v, o, o1) {
|
|
86
100
|
var reg = '';
|
|
87
101
|
let dc = v.decimals1;
|
|
@@ -179,6 +193,10 @@ const valid = {
|
|
|
179
193
|
action: actions.number,
|
|
180
194
|
message: '值必须是数字'
|
|
181
195
|
},
|
|
196
|
+
numberMax: {
|
|
197
|
+
action: actions.numberMax,
|
|
198
|
+
message: '',
|
|
199
|
+
},
|
|
182
200
|
requiredFile: {
|
|
183
201
|
action: actions.requiredFile,
|
|
184
202
|
message: '必须上传附件'
|
|
@@ -211,6 +229,9 @@ const valid = {
|
|
|
211
229
|
switch (model.controlType) {
|
|
212
230
|
case Enum.ControlType.NumericTextBox:
|
|
213
231
|
rtnValidate.push(valid.number);
|
|
232
|
+
if (model.maxValue1) {
|
|
233
|
+
rtnValidate.push(valid.numberMax);
|
|
234
|
+
}
|
|
214
235
|
break;
|
|
215
236
|
case Enum.ControlType.NumericRange:
|
|
216
237
|
rtnValidate.push(valid.numberArea);
|
package/src/views/Form.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="data-driven" id="app-form" >
|
|
3
3
|
|
|
4
|
-
<ct-form :api="'/
|
|
4
|
+
<ct-form :api="'/EmployeeMaternity/readDetail'" :apiParam="apiParam" :flagNavbar="true"></ct-form>
|
|
5
5
|
<!-- <ct-form :api="'/api/third-dept-tran/tran-comm-adjust/task'" :apiParam="apiParam"></ct-form> -->
|
|
6
6
|
<!-- <ct-form :api="'/PropertyTranToActive/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
|
|
7
7
|
<!-- <ct-textbox :source="source"></ct-textbox> -->
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
</template>
|
|
11
11
|
<script lang="ts" setup>
|
|
12
12
|
//const apiParam={"originalTraId":"1739561435204980737","actionType":1,"pageStyle":2,"pageTitle":"成交报告","pageOnly":true}
|
|
13
|
-
const apiParam={"
|
|
13
|
+
const apiParam={"actionType":"2"}
|
|
14
14
|
</script>
|
package/src/views/SearchList.vue
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
:searchDataApi="'/propertyPublishList/getListOfSearchModel'"
|
|
5
5
|
:searchStatsApi="'/propertyPublishList/getListStats'"></ct-searchlist> -->
|
|
6
6
|
|
|
7
|
-
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/
|
|
8
|
-
:searchDataApi="'/
|
|
7
|
+
<ct-searchlist :apiParam="apiParam" :searchConditionApi="'/EmployeeMaternityList/getLayoutOfSearch'"
|
|
8
|
+
:searchDataApi="'/EmployeeMaternityList/getListOfSearchModel'"></ct-searchlist>
|
|
9
9
|
|
|
10
10
|
<!-- <ct-searchlist :apiParam="apiParam" :searchConditionApi="'/OvertimeList/getLayoutOfSearch'"
|
|
11
11
|
:searchDataApi="'/OvertimeList/getListOfSearchModel'"></ct-searchlist> -->
|
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
|
|
17
17
|
<script lang="ts" setup>
|
|
18
18
|
import { ref, nextTick } from 'vue'
|
|
19
|
-
const apiParam = {
|
|
19
|
+
const apiParam = {}
|
|
20
20
|
|
|
21
21
|
</script>
|