centaline-data-driven 1.1.57 → 1.1.61
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/build/centaline/webpack.centaline.conf.js +1 -1
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.dgspec.json +73 -0
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.props +29 -0
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.targets +15 -0
- package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.AssemblyInfo.cs +23 -0
- package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.RazorAssemblyInfo.cs +20 -0
- package/obj/project.assets.json +11907 -0
- package/package.json +1 -1
- package/src/Detail.vue +3 -0
- package/src/Edit.vue +2 -36
- package/src/Form.vue +21 -6
- package/src/SearchList.vue +2 -1
- package/src/SearchTree.vue +2 -6
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +95 -44
- package/src/centaline/dynamicForm/src/dynamicForm.vue +6 -2
- package/src/centaline/dynamicHyperLink/index.js +1 -1
- package/src/centaline/dynamicPlaceHolder/index.js +1 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +22 -9
- package/src/centaline/dynamicSearchList/src/dynamicTableStatistics.vue +11 -11
- package/src/centaline/loader/src/ctl/Base.js +9 -0
- package/src/centaline/loader/src/ctl/Detail.js +57 -4
- package/src/centaline/loader/src/ctl/PlaceHolder.js +2 -2
- package/src/centaline/loader/src/ctl/SearchTable.js +19 -1
- package/src/centaline/loader/src/ctl/lib/Enum.js +18 -1
- package/src/main.js +12 -4
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
@@ -8,11 +8,17 @@ const Detail = function (source,para ,callBack) {
|
|
|
8
8
|
var init = function (data) {
|
|
9
9
|
var rtn = {
|
|
10
10
|
_fields1Dic: null,//字典,方便取值,属性集合(用户固定部分)
|
|
11
|
-
_fields2Dic: null
|
|
11
|
+
_fields2Dic: null,//数组,方便遍历
|
|
12
12
|
_actionRouterLabel: null,//标签
|
|
13
13
|
_otherTradeActionRouter: null,//对应另外种交易的 router 如:本盘出售 则可能对应的出租的交易,没有则为空
|
|
14
14
|
_actionRouters:null,//页面上的动作行为
|
|
15
15
|
_actionRoutersMoreList:null,//页面上的更多动作行为
|
|
16
|
+
detailHeight:750,
|
|
17
|
+
activeIndex:'0',
|
|
18
|
+
searchlistKey:0,
|
|
19
|
+
_searchConditionApiTags1:null,
|
|
20
|
+
_searchDataApiTags1:null,
|
|
21
|
+
_paramDataTags1:null,
|
|
16
22
|
get fields1() {
|
|
17
23
|
return data.fields1;
|
|
18
24
|
},
|
|
@@ -56,7 +62,7 @@ const Detail = function (source,para ,callBack) {
|
|
|
56
62
|
return rtn._fields2Dic;
|
|
57
63
|
}
|
|
58
64
|
if (rtn.fields2) {
|
|
59
|
-
rtn._fields2Dic =
|
|
65
|
+
rtn._fields2Dic = [];
|
|
60
66
|
rtn.fields2.forEach((f) => {
|
|
61
67
|
let col = {
|
|
62
68
|
get label() {
|
|
@@ -66,7 +72,14 @@ const Detail = function (source,para ,callBack) {
|
|
|
66
72
|
return f.labelDelimiter || '';
|
|
67
73
|
},
|
|
68
74
|
get value() {
|
|
69
|
-
|
|
75
|
+
let v=f.code1;
|
|
76
|
+
if(f.name1){
|
|
77
|
+
v=f.name1;
|
|
78
|
+
}
|
|
79
|
+
if(f.unitName1 && v){
|
|
80
|
+
v=v+f.unitName1;
|
|
81
|
+
}
|
|
82
|
+
return v;
|
|
70
83
|
},
|
|
71
84
|
get unitName() {
|
|
72
85
|
if(this.value===undefined || this.value===''){
|
|
@@ -75,7 +88,7 @@ const Detail = function (source,para ,callBack) {
|
|
|
75
88
|
return f.unitName1;
|
|
76
89
|
},
|
|
77
90
|
}
|
|
78
|
-
rtn._fields2Dic
|
|
91
|
+
rtn._fields2Dic.push(base.copy(Base(f), col));
|
|
79
92
|
});
|
|
80
93
|
}
|
|
81
94
|
return rtn._fields2Dic;
|
|
@@ -153,6 +166,46 @@ const Detail = function (source,para ,callBack) {
|
|
|
153
166
|
return rtn._actionRoutersMoreList;
|
|
154
167
|
}
|
|
155
168
|
},
|
|
169
|
+
get tags1() {
|
|
170
|
+
return data.tags1;
|
|
171
|
+
},
|
|
172
|
+
get searchConditionApiTags1() {
|
|
173
|
+
if (rtn._searchConditionApiTags1 !==null){
|
|
174
|
+
return rtn._searchConditionApiTags1;
|
|
175
|
+
}
|
|
176
|
+
else if(rtn.tags1 && rtn.tags1.length>0){
|
|
177
|
+
rtn._searchConditionApiTags1= rtn.tags1[0].searchConditionApiUrl;
|
|
178
|
+
return rtn._searchConditionApiTags1;
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
set searchConditionApiTags1(v) {
|
|
182
|
+
rtn._searchConditionApiTags1 = v;
|
|
183
|
+
},
|
|
184
|
+
get searchDataApiTags1() {
|
|
185
|
+
if (rtn._searchDataApiTags1 !==null){
|
|
186
|
+
return rtn._searchDataApiTags1;
|
|
187
|
+
}
|
|
188
|
+
else if(rtn.tags1 && rtn.tags1.length>0){
|
|
189
|
+
rtn._searchDataApiTags1= rtn.tags1[0].searchDataApiUrl;
|
|
190
|
+
return rtn._searchDataApiTags1;
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
set searchDataApiTags1(v) {
|
|
194
|
+
rtn._searchDataApiTags1 = v;
|
|
195
|
+
},
|
|
196
|
+
get paramDataTags1() {
|
|
197
|
+
if (rtn._paramDataTags1){
|
|
198
|
+
return rtn._paramDataTags1;
|
|
199
|
+
}
|
|
200
|
+
else if(rtn.tags1 && rtn.tags1.length>0){
|
|
201
|
+
rtn._paramDataTags1= JSON.parse(rtn.tags1[0].paramData);
|
|
202
|
+
return rtn._paramDataTags1;
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
set paramDataTags1(v) {
|
|
206
|
+
rtn._paramDataTags1={};
|
|
207
|
+
if(v)rtn._paramDataTags1 = JSON.parse(v);
|
|
208
|
+
},
|
|
156
209
|
};
|
|
157
210
|
return rtn;
|
|
158
211
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import base from '../../index';
|
|
2
|
-
import Base from './Base';
|
|
2
|
+
import Base from './Base';
|
|
3
3
|
|
|
4
4
|
const PlaceHolder = function (source) {
|
|
5
5
|
var rtn = {
|
|
@@ -14,4 +14,4 @@ const PlaceHolder = function (source) {
|
|
|
14
14
|
return rtn;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
export default PlaceHolder;
|
|
17
|
+
export default PlaceHolder;
|
|
@@ -494,7 +494,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
494
494
|
var searchFields = this.searchModel ? this.searchModel.searchData : { fields: [] };
|
|
495
495
|
if (self.primaryKey) {
|
|
496
496
|
searchFields.fields.push({
|
|
497
|
-
fieldName1: self.primaryKey,
|
|
497
|
+
fieldName1: self.primaryFieldMappingDBName?self.primaryFieldMappingDBName:self.primaryKey,
|
|
498
498
|
groupName: self.primaryKey,
|
|
499
499
|
operation: 2,
|
|
500
500
|
searchDataType: 3,
|
|
@@ -563,6 +563,9 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
563
563
|
get primaryKey() {
|
|
564
564
|
return common.initialsToUpperCase(source.content.primaryFieldName);
|
|
565
565
|
},
|
|
566
|
+
get primaryFieldMappingDBName() {
|
|
567
|
+
return source.content.primaryFieldMappingDBName;
|
|
568
|
+
},
|
|
566
569
|
get $index() {
|
|
567
570
|
if (this.$rowCount > 0) {
|
|
568
571
|
return this.selectIndex + 1;
|
|
@@ -743,6 +746,21 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
743
746
|
}
|
|
744
747
|
},
|
|
745
748
|
formData:formData,
|
|
749
|
+
get tdClass() {
|
|
750
|
+
let c='';
|
|
751
|
+
if (source.content.lineType !== undefined && source.content.lineType !== null) {
|
|
752
|
+
if (source.content.lineType===Enum.LineType.Vertical) {
|
|
753
|
+
c='ct-td1';
|
|
754
|
+
}
|
|
755
|
+
else if (source.content.lineType===Enum.LineType.Horizon) {
|
|
756
|
+
c='ct-td2';
|
|
757
|
+
}
|
|
758
|
+
else if (source.content.lineType===Enum.LineType.Both) {
|
|
759
|
+
c='ct-td3';
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
return c;
|
|
763
|
+
},
|
|
746
764
|
};
|
|
747
765
|
if (rtn.template) {
|
|
748
766
|
var tempLoader = template.loader(rtn.template).default;
|
|
@@ -554,7 +554,24 @@ const Enum = {
|
|
|
554
554
|
//窗口
|
|
555
555
|
Dialog : 20,
|
|
556
556
|
},
|
|
557
|
-
|
|
557
|
+
LineType:{
|
|
558
|
+
/**
|
|
559
|
+
* 不显示线条
|
|
560
|
+
*/
|
|
561
|
+
None:0,
|
|
562
|
+
/**
|
|
563
|
+
* 竖线
|
|
564
|
+
*/
|
|
565
|
+
Vertical:1,
|
|
566
|
+
/**
|
|
567
|
+
* 横线
|
|
568
|
+
*/
|
|
569
|
+
Horizon:2,
|
|
570
|
+
/**
|
|
571
|
+
* 横线和竖线
|
|
572
|
+
*/
|
|
573
|
+
Both:3,
|
|
574
|
+
},
|
|
558
575
|
};
|
|
559
576
|
|
|
560
577
|
if (typeof window !== 'undefined' && window.Vue) {
|
package/src/main.js
CHANGED
|
@@ -12,7 +12,8 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
12
12
|
// 关闭生产模式下给出的提示
|
|
13
13
|
Vue.config.productionTip = false;
|
|
14
14
|
Vue.use(centaline, {
|
|
15
|
-
baseUrl:
|
|
15
|
+
baseUrl: "http://10.88.22.46:7070/v1/form/router",
|
|
16
|
+
// baseUrl: "http://tjcptest.centaline.com.cn/v1/form/router",
|
|
16
17
|
zindex: 999,
|
|
17
18
|
showRequestErrorMessage: true,
|
|
18
19
|
handler: {
|
|
@@ -20,6 +21,12 @@ Vue.use(centaline, {
|
|
|
20
21
|
openTab: function (action) {
|
|
21
22
|
alert("打开tab页:" + action)
|
|
22
23
|
},
|
|
24
|
+
openDetail: function (action) {
|
|
25
|
+
alert("打开tab页:" + action)
|
|
26
|
+
},
|
|
27
|
+
openPropertyDetailRET: function (submitData, pageTitle, parentModel) {
|
|
28
|
+
alert("打开tab页:" + pageTitle)
|
|
29
|
+
},
|
|
23
30
|
// 关闭当前tab
|
|
24
31
|
closeTab: function () {
|
|
25
32
|
alert("关闭当前tab")
|
|
@@ -27,9 +34,10 @@ Vue.use(centaline, {
|
|
|
27
34
|
// 获取请求头
|
|
28
35
|
getRequestHeaders: function () {
|
|
29
36
|
return {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
37
|
+
oldToken: '3007e478-86db-4d5a-8ce0-7253afb746b2',
|
|
38
|
+
estateId: '20210729104021C49F04B55C50F6AF58',
|
|
39
|
+
originalRequestURL: 'http://10.88.22.67:8080',
|
|
40
|
+
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE0NmU5ZjEzLTVjMmYtNGVlMy1hM2U5LWIxM2QyZThjZTBhZSJ9.Gl8K5lbG7t5DyCqouu7Ux7Oh9xuAxqdOXr4JnoHCN-YwC3b2zPO-C2sHbYJUZHYQPa7kTNRmg1xJiwugpVo5Xw',
|
|
33
41
|
};
|
|
34
42
|
},
|
|
35
43
|
// 请求完成事件,可判断是否登录过期执行响应操作
|