centaline-data-driven 1.1.25 → 1.1.29
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/config/dev.env.js +2 -2
- package/package.json +1 -1
- package/src/Form.vue +2 -1
- package/src/SearchList.vue +2 -2
- package/src/SearchTree.vue +1 -1
- package/src/centaline/css/common.css +18 -15
- package/src/centaline/css/max.css +42 -1
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +1 -1
- package/src/centaline/dynamicForm/src/dynamicForm.vue +3 -3
- package/src/centaline/dynamicIti/src/dynamicIti.vue +28 -25
- package/src/centaline/dynamicMo/src/dynamicMo.vue +1 -0
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +30 -32
- package/src/centaline/dynamicSearchList/src/dynamicTableToolbar.vue +1 -1
- package/src/centaline/dynamicSo/src/dynamicSo.vue +1 -1
- package/src/centaline/dynamicSos/src/dynamicSos.vue +1 -3
- package/src/centaline/dynamicT/src/dynamicT.vue +5 -1
- package/src/centaline/dynamicTags/src/dynamicTags.vue +1 -1
- package/src/centaline/dynamicTree/src/dynamicTreeList.vue +19 -7
- package/src/centaline/loader/src/ctl/Base.js +15 -2
- package/src/centaline/loader/src/ctl/Form.js +12 -1
- package/src/centaline/loader/src/ctl/Iti.js +2 -11
- package/src/centaline/loader/src/ctl/SearchScreen.js +21 -1
- package/src/centaline/loader/src/ctl/So.js +2 -3
- package/src/centaline/loader/src/ctl/Sos.js +1 -2
- package/src/centaline/loader/src/ctl/lib/LibFunction.js +3 -4
- package/src/main.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
@@ -155,7 +155,12 @@ const Base = function (source) {
|
|
|
155
155
|
searchObj:{
|
|
156
156
|
get dataType() { return source.dearchDataTyp; },
|
|
157
157
|
get fieldName1() { return source.fieldName1; },
|
|
158
|
-
get fieldName2() {
|
|
158
|
+
get fieldName2() {
|
|
159
|
+
if(source.controlType === Enum.ControlType.NumericRange){
|
|
160
|
+
if(!source.fieldName2) return source.fieldName1;
|
|
161
|
+
}
|
|
162
|
+
return source.fieldName2;
|
|
163
|
+
},
|
|
159
164
|
get groupName() { return source.groupName || source.fieldName1; },
|
|
160
165
|
get operation() { return source.searchOperation; },
|
|
161
166
|
get searchDataType() { return source.searchDataType; } ,
|
|
@@ -233,11 +238,19 @@ const Base = function (source) {
|
|
|
233
238
|
getFormParentFieldPara() {
|
|
234
239
|
if (rtn.form && typeof rtn.parentField !== 'undefined' && rtn.parentField.length > 0) {
|
|
235
240
|
if (typeof rtn.form.getRefFieldPara === 'function') {
|
|
236
|
-
return
|
|
241
|
+
return rtn.form.getParentFieldPara(rtn.parentField);
|
|
237
242
|
}
|
|
238
243
|
}
|
|
239
244
|
return null;
|
|
240
245
|
},
|
|
246
|
+
/*选择搜索条件后是否默认显示标签*/
|
|
247
|
+
get displayLabelAfterSelected() {
|
|
248
|
+
return source.displayLabelAfterSelected==undefined? false:source.displayLabelAfterSelected;
|
|
249
|
+
},
|
|
250
|
+
/*选择搜索条件后是否触发搜索*/
|
|
251
|
+
get autoSearch() {
|
|
252
|
+
return source.autoSearch==undefined? false:source.autoSearch;
|
|
253
|
+
},
|
|
241
254
|
};
|
|
242
255
|
|
|
243
256
|
return rtn;
|
|
@@ -624,7 +624,18 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
624
624
|
parentFieldNameArr.forEach((v) => {
|
|
625
625
|
submitData[v] = tempFormData[v];
|
|
626
626
|
});
|
|
627
|
-
|
|
627
|
+
|
|
628
|
+
if(JSON.stringify(submitData) == "{}"){
|
|
629
|
+
return '';
|
|
630
|
+
}
|
|
631
|
+
else{
|
|
632
|
+
if(parentFieldNameArr.length>1){
|
|
633
|
+
return JSON.stringify(submitData);
|
|
634
|
+
}
|
|
635
|
+
else{
|
|
636
|
+
return submitData[parentFieldNameArr[0]];
|
|
637
|
+
}
|
|
638
|
+
}
|
|
628
639
|
},
|
|
629
640
|
//检查是否关闭tab后触发来源页面操作
|
|
630
641
|
checkCloseTabThen(notification) {
|
|
@@ -3,7 +3,6 @@ import Base from './Base';
|
|
|
3
3
|
import valid from '../../../validate/index';
|
|
4
4
|
const Iti = function (source) {
|
|
5
5
|
var rtn = {
|
|
6
|
-
|
|
7
6
|
get clearable() {
|
|
8
7
|
if (typeof source.clear === 'undefined'&&!source.locked) {
|
|
9
8
|
return true;
|
|
@@ -17,10 +16,9 @@ const Iti = function (source) {
|
|
|
17
16
|
},
|
|
18
17
|
set clearable(v) {
|
|
19
18
|
source.clear = v;
|
|
20
|
-
},
|
|
21
|
-
|
|
19
|
+
},
|
|
22
20
|
get value1() {
|
|
23
|
-
return source.code2;
|
|
21
|
+
return source.code2||'';
|
|
24
22
|
},
|
|
25
23
|
set value1(v) {
|
|
26
24
|
source.code2 = v;
|
|
@@ -60,13 +58,6 @@ const Iti = function (source) {
|
|
|
60
58
|
set min1(v) {
|
|
61
59
|
source.minValue2 = v;
|
|
62
60
|
},
|
|
63
|
-
//searchObj: {
|
|
64
|
-
// get searchValue() {
|
|
65
|
-
// if (source.code1 || source.code2) {
|
|
66
|
-
// return source.code1 + '^' + source.code2;
|
|
67
|
-
// }
|
|
68
|
-
// }
|
|
69
|
-
//},
|
|
70
61
|
getFormObj() {
|
|
71
62
|
var rtnFormObj = {};
|
|
72
63
|
Object.defineProperty(rtnFormObj, source.fieldName1, {
|
|
@@ -67,6 +67,9 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
67
67
|
});
|
|
68
68
|
|
|
69
69
|
rtnscreens = this.initScreen(screens);
|
|
70
|
+
rtnscreens.forEach((v)=>{
|
|
71
|
+
v.action='search';
|
|
72
|
+
});
|
|
70
73
|
this._screen = rtnscreens;
|
|
71
74
|
return rtnscreens;
|
|
72
75
|
},
|
|
@@ -106,6 +109,9 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
106
109
|
return advIndex !== -1 && i > advIndex;
|
|
107
110
|
});
|
|
108
111
|
rtnscreens = this.initScreen(screens);
|
|
112
|
+
rtnscreens.forEach((v)=>{
|
|
113
|
+
v.action='search';
|
|
114
|
+
});
|
|
109
115
|
this._highScreen = rtnscreens;
|
|
110
116
|
return rtnscreens;
|
|
111
117
|
},
|
|
@@ -185,7 +191,17 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
185
191
|
if(n.fieldName1==v)submitData[v] = n.searchValue1;
|
|
186
192
|
});
|
|
187
193
|
});
|
|
188
|
-
|
|
194
|
+
if(JSON.stringify(submitData) == "{}"){
|
|
195
|
+
return '';
|
|
196
|
+
}
|
|
197
|
+
else{
|
|
198
|
+
if(parentFieldNameArr.length>1){
|
|
199
|
+
return JSON.stringify(submitData);
|
|
200
|
+
}
|
|
201
|
+
else{
|
|
202
|
+
return submitData[parentFieldNameArr[0]];
|
|
203
|
+
}
|
|
204
|
+
}
|
|
189
205
|
},
|
|
190
206
|
};
|
|
191
207
|
return rtn;
|
|
@@ -195,6 +211,10 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
195
211
|
Vue.prototype.$api.postHandler(common.globalUri(), { action: source, para: screenPara }).then(
|
|
196
212
|
function (response) {
|
|
197
213
|
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
214
|
+
response.content.fields[0].displayLabelAfterSelected=true;
|
|
215
|
+
response.content.fields[0].autoSearch=true;
|
|
216
|
+
response.content.fields[4].autoSearch=true;
|
|
217
|
+
response.content.fields[5].autoSearch=true;
|
|
198
218
|
var rtn = init(response);
|
|
199
219
|
if (callBack) {
|
|
200
220
|
callBack(rtn);
|
|
@@ -7,9 +7,8 @@ import Vue from 'vue';
|
|
|
7
7
|
const So = function (source, moreActionRouter) {
|
|
8
8
|
var rtn = {
|
|
9
9
|
options: [{ code: source.code1, name: source.name1 }],
|
|
10
|
-
get text() {
|
|
11
|
-
|
|
12
|
-
if (source.isList && source.name1 && rtn.attrs.placeholder) {
|
|
10
|
+
get text() {
|
|
11
|
+
if (source.isList && source.name1 && rtn.attrs.placeholder && rtn.displayLabelAfterSelected) {
|
|
13
12
|
return rtn.attrs.placeholder + ":" + source.name1;
|
|
14
13
|
}
|
|
15
14
|
return source.name1;
|
|
@@ -8,7 +8,7 @@ const Sos = function (source, moreActionRouter) {
|
|
|
8
8
|
var rtn = {
|
|
9
9
|
options: [{ code: source.code1, name: source.name1 }],
|
|
10
10
|
get text() {
|
|
11
|
-
if (source.isList && source.name1 && rtn.attrs.placeholder) {
|
|
11
|
+
if (source.isList && source.name1 && rtn.attrs.placeholder && rtn.displayLabelAfterSelected) {
|
|
12
12
|
return rtn.attrs.placeholder + ":" + source.name1;
|
|
13
13
|
}
|
|
14
14
|
return source.name1;
|
|
@@ -31,7 +31,6 @@ const Sos = function (source, moreActionRouter) {
|
|
|
31
31
|
get parentName() {
|
|
32
32
|
return source.parentField;
|
|
33
33
|
},
|
|
34
|
-
|
|
35
34
|
reset() {
|
|
36
35
|
this.value = this.defaultValue;
|
|
37
36
|
this.text = this.defaultText;
|
|
@@ -69,6 +69,9 @@ const LibFunction = {
|
|
|
69
69
|
field.controlType === Enum.ControlType.ButtonAdvancedSearch) {
|
|
70
70
|
field.width = '';
|
|
71
71
|
}
|
|
72
|
+
else if (field.controlType === Enum.ControlType.NumericRange) {
|
|
73
|
+
field.width = field.width || 280;
|
|
74
|
+
}
|
|
72
75
|
else {
|
|
73
76
|
showLabel = false;
|
|
74
77
|
field.width = field.width || 200;
|
|
@@ -145,10 +148,6 @@ const LibFunction = {
|
|
|
145
148
|
item = Sw(field);
|
|
146
149
|
item.is = 'ct-sw';
|
|
147
150
|
break;
|
|
148
|
-
//case 'Time'://时间控件
|
|
149
|
-
// item = TimeSelect(field, false);
|
|
150
|
-
// item.is = 'ct-time-select';
|
|
151
|
-
// break;
|
|
152
151
|
case Enum.ControlType.TimeRange://时间区间
|
|
153
152
|
item = TimeSelect(field, true, 'time');
|
|
154
153
|
item.is = 'ct-time-select';
|
package/src/main.js
CHANGED