centaline-data-driven 1.5.31 → 1.5.32
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/.vs/Centaline.Front_End.DataDriven/DesignTimeBuild/.dtbcache +0 -0
- package/.vs/Centaline.Front_End.DataDriven/v16/Server/sqlite3/db.lock +0 -0
- package/.vs/Centaline.Front_End.DataDriven/v16/Server/sqlite3/storage.ide +0 -0
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.dgspec.json +11 -10
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.props +11 -14
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.targets +7 -7
- package/obj/project.assets.json +11 -52
- package/package.json +1 -1
- package/release-log.md +8 -1
- package/src/SearchList.vue +20 -20
- package/src/centaline/common/index.js +5 -5
- package/src/centaline/dynamicBtn/src/dynamicBtn.vue +46 -46
- package/src/centaline/dynamicDetail/src/dynamicPropertySimpleDetailRET.vue +1 -1
- package/src/centaline/dynamicHyperLink/index.js +1 -1
- package/src/centaline/dynamicLayout/src/dynamicLayoutChildren.vue +17 -17
- package/src/centaline/dynamicLayout/src/dynamicLayoutChildrenFor.vue +4 -4
- package/src/centaline/dynamicLayout/src/dynamicLayoutImage.vue +4 -4
- package/src/centaline/dynamicPlaceHolder/index.js +1 -1
- package/src/centaline/dynamicRepeat/src/dynamicRepeat.vue +3 -3
- package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +45 -45
- package/src/centaline/dynamicSearchListTab/src/dynamicSearchListTab.vue +15 -2
- package/src/centaline/dynamicSos/src/dynamicSos.vue +8 -8
- package/src/centaline/formData/index.js +3 -3
- package/src/centaline/loader/src/ctl/Button.js +16 -16
- package/src/centaline/loader/src/ctl/PlaceHolder.js +2 -2
- package/src/centaline/loader/src/ctl/Repeat.js +18 -18
- package/src/centaline/loader/src/ctl/SearchScreen.js +48 -48
- package/src/centaline/loader/src/ctl/Sos.js +2 -2
- package/src/main.js +6 -3
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -61894
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
- package/.vs/Centaline.Front_End.DataDriven/DesignTimeBuild/.dtbcache.v2 +0 -0
- package/.vs/Centaline.Front_End.DataDriven/config/applicationhost.config +0 -1034
- package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.csproj.FileListAbsolute.txt +0 -6
|
@@ -5,7 +5,7 @@ import Router from './Router';
|
|
|
5
5
|
import Enum from './lib/Enum';
|
|
6
6
|
import Vue from 'vue';
|
|
7
7
|
|
|
8
|
-
const Repeat = function (source, master, formobj) {
|
|
8
|
+
const Repeat = function (source, master, formobj) {
|
|
9
9
|
var rtn = {
|
|
10
10
|
form: null,
|
|
11
11
|
refField: Object,
|
|
@@ -25,9 +25,9 @@ const Repeat = function (source, master, formobj) {
|
|
|
25
25
|
get master() {
|
|
26
26
|
return master;
|
|
27
27
|
},
|
|
28
|
-
get title() {
|
|
28
|
+
get title() {
|
|
29
29
|
return master.controlLabel || '';
|
|
30
|
-
},
|
|
30
|
+
},
|
|
31
31
|
get labelClass() {
|
|
32
32
|
if (master.required) {
|
|
33
33
|
return 'requiredLabel'
|
|
@@ -51,25 +51,25 @@ const Repeat = function (source, master, formobj) {
|
|
|
51
51
|
},
|
|
52
52
|
get primaryKeys() {
|
|
53
53
|
return source.primaryKeys;
|
|
54
|
-
},
|
|
55
|
-
get max() {
|
|
54
|
+
},
|
|
55
|
+
get max() {
|
|
56
56
|
if (typeof master.maxValue1 !== "undefined") {
|
|
57
57
|
return master.maxValue1;
|
|
58
58
|
}
|
|
59
59
|
return 999999;
|
|
60
60
|
},
|
|
61
|
-
get min() {
|
|
61
|
+
get min() {
|
|
62
62
|
if (typeof master.minValue1 !== "undefined") {
|
|
63
63
|
return master.minValue1;
|
|
64
64
|
}
|
|
65
65
|
return 0;
|
|
66
|
-
},
|
|
66
|
+
},
|
|
67
67
|
get flagHideSaveLine() {
|
|
68
68
|
return master.flagHideSaveLine;
|
|
69
|
-
},
|
|
69
|
+
},
|
|
70
70
|
get lock() {
|
|
71
71
|
return master.locked;
|
|
72
|
-
},
|
|
72
|
+
},
|
|
73
73
|
get createText() {
|
|
74
74
|
let t = "新增";
|
|
75
75
|
if (rtn.disabled) {
|
|
@@ -193,14 +193,14 @@ const Repeat = function (source, master, formobj) {
|
|
|
193
193
|
value.onChanged = value.onChange ? value.onChange : source.rows[0].columns[rowIndex].onChanged;//事件使用第一条的
|
|
194
194
|
value.onBlur = value.onBlur ? value.onBlur : source.rows[0].columns[rowIndex].onBlur;//事件使用第一条的
|
|
195
195
|
rowIndex++;
|
|
196
|
-
let showLabel = true;
|
|
197
|
-
if (typeof master.spanCols !== "undefined") {
|
|
198
|
-
source.colSpan = master.spanCols;
|
|
199
|
-
}
|
|
200
|
-
else {
|
|
201
|
-
source.colSpan = formobj.colSpan;
|
|
202
|
-
}
|
|
203
|
-
let item = LibFunction.GetControl(value, source, showLabel, false);
|
|
196
|
+
let showLabel = true;
|
|
197
|
+
if (typeof master.spanCols !== "undefined") {
|
|
198
|
+
source.colSpan = master.spanCols;
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
source.colSpan = formobj.colSpan;
|
|
202
|
+
}
|
|
203
|
+
let item = LibFunction.GetControl(value, source, showLabel, false);
|
|
204
204
|
if (item instanceof Object) {
|
|
205
205
|
item.form = rtn.form;
|
|
206
206
|
row.field.push(item);
|
|
@@ -253,7 +253,7 @@ const Repeat = function (source, master, formobj) {
|
|
|
253
253
|
Vue.prototype.$common.confirm("确定删除?", "提示", {
|
|
254
254
|
confirmButtonText: "确定",
|
|
255
255
|
cancelButtonText: "取消",
|
|
256
|
-
}).then(() => {
|
|
256
|
+
}).then(() => {
|
|
257
257
|
if (rtn.rows[index].isNewFlag) {
|
|
258
258
|
rtn.rows.splice(index, 1);
|
|
259
259
|
source.rows.splice(index, 1);
|
|
@@ -5,14 +5,14 @@ import Router from './Router';
|
|
|
5
5
|
import valid from '../../../validate/index';
|
|
6
6
|
import common from '../../../common';
|
|
7
7
|
import Axios from 'axios';
|
|
8
|
-
import Vue from 'vue';
|
|
9
|
-
import formData from '../../../formData';
|
|
10
|
-
|
|
8
|
+
import Vue from 'vue';
|
|
9
|
+
import formData from '../../../formData';
|
|
10
|
+
|
|
11
11
|
const SearchScreen = function (source, callBack, screenPara) {
|
|
12
12
|
var init = function (source) {
|
|
13
13
|
var rtn = {
|
|
14
|
-
$vue: null,
|
|
15
|
-
formData: formData,
|
|
14
|
+
$vue: null,
|
|
15
|
+
formData: formData,
|
|
16
16
|
enableRelationFields: true,
|
|
17
17
|
get source() {
|
|
18
18
|
return source;
|
|
@@ -31,7 +31,7 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
31
31
|
},
|
|
32
32
|
set title(v) {
|
|
33
33
|
source.content.title = v;
|
|
34
|
-
},
|
|
34
|
+
},
|
|
35
35
|
get onload() {
|
|
36
36
|
return source.content.onload;
|
|
37
37
|
},
|
|
@@ -59,50 +59,50 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
59
59
|
button.is = "ct-btn";
|
|
60
60
|
rtn._actionRouters.push(button);
|
|
61
61
|
});
|
|
62
|
-
}
|
|
63
|
-
else if (source.content.actionRouters) {
|
|
64
|
-
source.content.actionRouters.forEach((v) => {
|
|
62
|
+
}
|
|
63
|
+
else if (source.content.actionRouters) {
|
|
64
|
+
source.content.actionRouters.forEach((v) => {
|
|
65
65
|
v.actionType = 2;
|
|
66
|
-
var button = Router(v);
|
|
66
|
+
var button = Router(v);
|
|
67
67
|
button.is = "ct-btn";
|
|
68
68
|
rtn._actionRouters.push(button);
|
|
69
|
-
});
|
|
69
|
+
});
|
|
70
70
|
}
|
|
71
71
|
return rtn._actionRouters;
|
|
72
72
|
}
|
|
73
|
-
},
|
|
74
|
-
getSearchData(searchModel, field, LabelName) {
|
|
75
|
-
var newSearchModel = common.deepClone(searchModel.searchData ? searchModel.searchData : {});
|
|
76
|
-
if (field) {
|
|
77
|
-
field.getSearchPara().fields.forEach((f) => {
|
|
73
|
+
},
|
|
74
|
+
getSearchData(searchModel, field, LabelName) {
|
|
75
|
+
var newSearchModel = common.deepClone(searchModel.searchData ? searchModel.searchData : {});
|
|
76
|
+
if (field) {
|
|
77
|
+
field.getSearchPara().fields.forEach((f) => {
|
|
78
78
|
newSearchModel.fields.push(f);
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
if (LabelName) {
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
if (LabelName) {
|
|
82
82
|
newSearchModel.fields.push({
|
|
83
83
|
fieldName1: 'LabelName',
|
|
84
84
|
groupName: 'LabelName',
|
|
85
85
|
operation: Enum.SearchOperation.等于,
|
|
86
86
|
searchDataType: Enum.SearchDataType.Text,
|
|
87
87
|
searchValue1: LabelName,
|
|
88
|
-
});
|
|
89
|
-
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
90
|
return newSearchModel;
|
|
91
|
-
},
|
|
91
|
+
},
|
|
92
92
|
getFormObj(LabelName) {
|
|
93
93
|
var rtnFormObj = {};
|
|
94
94
|
rtn.screen.forEach((f) => {
|
|
95
|
-
if (typeof f.id !== 'undefined' && f.value!='') {
|
|
95
|
+
if (typeof f.id !== 'undefined' && f.value!='') {
|
|
96
96
|
Object.assign(rtnFormObj, f.getFormObj());
|
|
97
97
|
}
|
|
98
|
-
});
|
|
99
|
-
if (LabelName) {
|
|
100
|
-
Object.assign(rtnFormObj, { LabelName: LabelName});
|
|
98
|
+
});
|
|
99
|
+
if (LabelName) {
|
|
100
|
+
Object.assign(rtnFormObj, { LabelName: LabelName});
|
|
101
101
|
}
|
|
102
102
|
return rtnFormObj;
|
|
103
|
-
},
|
|
103
|
+
},
|
|
104
104
|
_scripts: null,
|
|
105
|
-
get scripts() {
|
|
105
|
+
get scripts() {
|
|
106
106
|
if (rtn._scripts !== null) {
|
|
107
107
|
return rtn._scripts;
|
|
108
108
|
}
|
|
@@ -110,13 +110,13 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
110
110
|
if (typeof source.scripts !== 'undefined') {
|
|
111
111
|
rtn._scripts = base.common.eval(source.scripts);
|
|
112
112
|
return rtn._scripts;
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
115
|
rtn._scripts = base.common.eval("");
|
|
116
|
-
return rtn._scripts;
|
|
116
|
+
return rtn._scripts;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
},
|
|
119
|
+
},
|
|
120
120
|
|
|
121
121
|
_screen: null,
|
|
122
122
|
_btnScreen: null,
|
|
@@ -166,16 +166,16 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
166
166
|
});
|
|
167
167
|
this._screen = rtnscreens;
|
|
168
168
|
return rtnscreens;
|
|
169
|
-
},
|
|
169
|
+
},
|
|
170
170
|
_screenDic: null,//字典,方便取值
|
|
171
|
-
get screenDic() {
|
|
172
|
-
rtn._screenDic = {};
|
|
173
|
-
rtn.screen.forEach((f) => {
|
|
171
|
+
get screenDic() {
|
|
172
|
+
rtn._screenDic = {};
|
|
173
|
+
rtn.screen.forEach((f) => {
|
|
174
174
|
rtn._screenDic[f.id] = f;
|
|
175
|
-
});
|
|
176
|
-
rtn.highScreen.forEach((f) => {
|
|
175
|
+
});
|
|
176
|
+
rtn.highScreen.forEach((f) => {
|
|
177
177
|
rtn._screenDic[f.id] = f;
|
|
178
|
-
});
|
|
178
|
+
});
|
|
179
179
|
return rtn._screenDic;
|
|
180
180
|
},
|
|
181
181
|
//"搜索"到"高级搜索"的中间的控件
|
|
@@ -298,7 +298,7 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
298
298
|
}
|
|
299
299
|
});
|
|
300
300
|
return rtn;
|
|
301
|
-
},
|
|
301
|
+
},
|
|
302
302
|
get searchDataOfShow() {
|
|
303
303
|
let that = this;
|
|
304
304
|
var rtn = {
|
|
@@ -519,19 +519,19 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
},
|
|
522
|
+
},
|
|
523
523
|
//验证必填关联组件
|
|
524
524
|
validMrf(item) {
|
|
525
525
|
|
|
526
|
-
},
|
|
527
|
-
hatchHandle(itemId, attrName, attrValue, item) {
|
|
526
|
+
},
|
|
527
|
+
hatchHandle(itemId, attrName, attrValue, item) {
|
|
528
528
|
switch (attrName) {
|
|
529
|
-
case 'code1':
|
|
530
|
-
if (item.type === Enum.ControlType.CheckBoxList) {
|
|
529
|
+
case 'code1':
|
|
530
|
+
if (item.type === Enum.ControlType.CheckBoxList) {
|
|
531
531
|
item._checkedItemArr = item.getCheckedItemArr();
|
|
532
532
|
item.checkedItemArr = item.getCheckedItemArr();
|
|
533
|
-
}
|
|
534
|
-
else if (item.type === Enum.ControlType.SearchListBox) {
|
|
533
|
+
}
|
|
534
|
+
else if (item.type === Enum.ControlType.SearchListBox) {
|
|
535
535
|
item.enableRelationFields = rtn.enableRelationFields;
|
|
536
536
|
}
|
|
537
537
|
rtn.validMrf(item);//验证必填关联组件
|
|
@@ -539,7 +539,7 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
539
539
|
break;
|
|
540
540
|
default:
|
|
541
541
|
break;
|
|
542
|
-
}
|
|
542
|
+
}
|
|
543
543
|
},
|
|
544
544
|
};
|
|
545
545
|
return rtn;
|
|
@@ -6,7 +6,7 @@ import common from '../../../common';
|
|
|
6
6
|
import Vue from 'vue';
|
|
7
7
|
const Sos = function (source, moreActionRouter) {
|
|
8
8
|
var rtn = {
|
|
9
|
-
options: [{ code: source.code1, name: source.name1 }],
|
|
9
|
+
options: [{ code: source.code1, name: source.name1 }],
|
|
10
10
|
enableRelationFields: true,
|
|
11
11
|
get text() {
|
|
12
12
|
if (source.isList && source.name1 && rtn.attrs.placeholder && rtn.displayLabelAfterSelected) {
|
|
@@ -31,7 +31,7 @@ const Sos = function (source, moreActionRouter) {
|
|
|
31
31
|
},
|
|
32
32
|
get parentName() {
|
|
33
33
|
return source.parentField;
|
|
34
|
-
},
|
|
34
|
+
},
|
|
35
35
|
reset() {
|
|
36
36
|
this.value = this.defaultValue;
|
|
37
37
|
this.text = this.defaultText;
|
package/src/main.js
CHANGED
|
@@ -14,7 +14,7 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
14
14
|
// 关闭生产模式下给出的提示
|
|
15
15
|
Vue.config.productionTip = false;
|
|
16
16
|
Vue.use(centaline, {
|
|
17
|
-
baseUrl: "http://10.88.22.
|
|
17
|
+
baseUrl: "http://10.88.22.46:17070/max-uplink-api/",
|
|
18
18
|
// baseUrl: "http://10.88.22.13:17070/max-uplink-api/",
|
|
19
19
|
// baseUrl: "http://10.6.1.163:9000/max-uplink-api/v1/form/router",
|
|
20
20
|
// baseUrl: "http://10.25.10.67:9999/service-api/v1/form/router",
|
|
@@ -37,6 +37,9 @@ Vue.use(centaline, {
|
|
|
37
37
|
openTabSearch: function (field, submitData) {
|
|
38
38
|
alert("打开tab页Search:" + field.action)
|
|
39
39
|
},
|
|
40
|
+
openTabRouter: function (action) {
|
|
41
|
+
alert("打开tab页:" + action)
|
|
42
|
+
},
|
|
40
43
|
openDetail: function (action) {
|
|
41
44
|
alert("打开tab页:" + action)
|
|
42
45
|
},
|
|
@@ -53,9 +56,9 @@ Vue.use(centaline, {
|
|
|
53
56
|
// 获取请求头
|
|
54
57
|
getRequestHeaders: function () {
|
|
55
58
|
return {
|
|
56
|
-
oldToken: '
|
|
59
|
+
oldToken: 'f9baa4f5-069e-4bae-8438-a89365fb067e',
|
|
57
60
|
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQRO_iOiv5s1570zn-NBwiIuBIoUIkkUCIuxMEdPRMMRq95s1dzOsgWmHIccikIFr0gKQsMJYCURKxKdKYlHr-BH7UNz26yCFkByg7Aiw2A-tYwLDtEubgUibRiHo9i1aRRy-dtdSIab-8gdNKvcA618uu3v5x7rRMm3YkOZAfR6BtAWp_3LQHBNI8KHbkqlHi8QQAAP__.RrBgBqaFlp478oO3g5k_EEtjPt_o8qpJBkzgSP78Wa4',
|
|
58
|
-
authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
61
|
+
authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrEOgjAURf-lMy9p-x7tKxttYfEjSFsgwckIJBrjv6tRN3fPcIeznHsT655FIyK3kkKPEDpdA0VbQ9tbBh-YpdcWyfPgPsCP-TIoRc4q00HrbAAyhMAqMAQygfrYYfBRVGK6nESjDDulsSZXiSVtbyHRqpfY1-l8mK7_OHfclmc2jSMpqQ1kxBkIZ4JckgPUxaXMXEptxf0BAAD__w.yb_P0UjgJEHUMipFMJIHEge9cR5lopQH8Wvz1qvQQos"}',
|
|
59
62
|
|
|
60
63
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
61
64
|
EstateInfo: '{"estateId":"201806071109550C867184E8BCA56EC3","estateName":"C%E5%BE%A1%E6%9E%97%E5%B1%B1%E6%99%AF%E6%A5%BC"}',
|