centaline-data-driven 1.5.66 → 1.5.68
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 +22 -2
- package/src/Detail.vue +3 -3
- package/src/Form.vue +4 -8
- package/src/SearchList.vue +48 -25
- package/src/centaline/api/index.js +51 -6
- package/src/centaline/dynamicCb/src/dynamicCb.vue +5 -1
- package/src/centaline/dynamicForm/src/dynamicForm.vue +2 -2
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +7 -50
- package/src/centaline/dynamicHyperLink/index.js +1 -1
- package/src/centaline/dynamicLayout/src/dynamicLayoutChildren.vue +17 -17
- package/src/centaline/dynamicPlaceHolder/index.js +1 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +1 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +88 -14
- package/src/centaline/dynamicViewerFile/src/dynamicViewerFile.vue +20 -7
- package/src/centaline/loader/src/ctl/Base.js +7 -6
- package/src/centaline/loader/src/ctl/Button.js +16 -16
- package/src/centaline/loader/src/ctl/FormList.js +2 -2
- package/src/centaline/loader/src/ctl/Mo.js +4 -2
- package/src/centaline/loader/src/ctl/PlaceHolder.js +2 -2
- package/src/centaline/loader/src/ctl/Router.js +14 -0
- package/src/centaline/loader/src/ctl/TimeSelect.js +6 -2
- package/src/main.js +15 -10
- package/wwwroot/static/centaline/centaline-data-driven.js +212 -108
- 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
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
&&(itemFile.mediaTypeID+'').toLowerCase()!='vr')"
|
|
173
173
|
class="magnify-btn el-icon-download"
|
|
174
174
|
title="下载"
|
|
175
|
-
@click="handDownload(resultObject)"></a>
|
|
175
|
+
@click="handDownload(resultObject,itemFile)"></a>
|
|
176
176
|
|
|
177
177
|
|
|
178
178
|
</div>
|
|
@@ -271,10 +271,24 @@
|
|
|
271
271
|
return url;
|
|
272
272
|
}
|
|
273
273
|
},
|
|
274
|
-
handDownload(url) {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
274
|
+
handDownload(url, itemFile) {
|
|
275
|
+
let self = this;
|
|
276
|
+
self.downloadLoading = true;
|
|
277
|
+
if (itemFile.downloadLogAction) {
|
|
278
|
+
this.$api.postHandler(this.$common.globalUri(), { action: itemFile.downloadLogAction, para: {} }).then(
|
|
279
|
+
function (response) {
|
|
280
|
+
if (response.rtnCode === 200) {
|
|
281
|
+
self.handDownloadUrl(url);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
);
|
|
285
|
+
} else {
|
|
286
|
+
self.handDownloadUrl(url);
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
handDownloadUrl(url){
|
|
290
|
+
let self = this;
|
|
291
|
+
if (url.indexOf("?") > -1) {
|
|
278
292
|
self.downloadUrl = self.getDownloadUrl(url) + "&" + Math.random();
|
|
279
293
|
}
|
|
280
294
|
else {
|
|
@@ -283,8 +297,7 @@
|
|
|
283
297
|
setTimeout(function () {
|
|
284
298
|
self.downloadLoading = false;
|
|
285
299
|
}, 1000);
|
|
286
|
-
|
|
287
|
-
},
|
|
300
|
+
},
|
|
288
301
|
handleMouse(e) {
|
|
289
302
|
e.preventDefault();
|
|
290
303
|
},
|
|
@@ -192,15 +192,16 @@ const Base = function (source) {
|
|
|
192
192
|
return bind;
|
|
193
193
|
},
|
|
194
194
|
reset() {
|
|
195
|
-
if(this.type
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
195
|
+
if(this.type===Enum.ControlType.Hidden
|
|
196
|
+
|| this.type===Enum.ControlType.Label
|
|
197
|
+
|| this.type===Enum.ControlType.MultiLineLabel){
|
|
198
|
+
}
|
|
199
|
+
else if(this.isScreen){
|
|
199
200
|
if(this.type===Enum.ControlType.DateRange || this.type===Enum.ControlType.DateTimeRange){
|
|
200
201
|
this.value = this.defaultFormat[0];
|
|
201
202
|
this.value1 = this.defaultFormat[1];
|
|
202
203
|
}
|
|
203
|
-
else if(this.type===Enum.ControlType.
|
|
204
|
+
else if(this.type===Enum.ControlType.CheckBoxList){
|
|
204
205
|
this.value = this.defaultValue;
|
|
205
206
|
this.forceUpdate();
|
|
206
207
|
}
|
|
@@ -234,7 +235,7 @@ const Base = function (source) {
|
|
|
234
235
|
this.value = '';
|
|
235
236
|
this.value1 = '';
|
|
236
237
|
}
|
|
237
|
-
else if(this.type===Enum.ControlType.
|
|
238
|
+
else if(this.type===Enum.ControlType.CheckBoxList){
|
|
238
239
|
this.checkedItemArr = [];
|
|
239
240
|
this.updateCode1();
|
|
240
241
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import base from '../../index';
|
|
2
|
-
import Base from './Base';
|
|
3
|
-
import common from '../../../common';
|
|
4
|
-
import Router from './Router';
|
|
2
|
+
import Base from './Base';
|
|
3
|
+
import common from '../../../common';
|
|
4
|
+
import Router from './Router';
|
|
5
5
|
import Vue from 'vue';
|
|
6
6
|
const Button = function (source, router) {
|
|
7
7
|
var rtn = {
|
|
@@ -15,7 +15,7 @@ const Button = function (source, router) {
|
|
|
15
15
|
},
|
|
16
16
|
set label(v) {
|
|
17
17
|
source.controlLabel = v;
|
|
18
|
-
},
|
|
18
|
+
},
|
|
19
19
|
get routerKey() {
|
|
20
20
|
return source.routerKey;
|
|
21
21
|
},
|
|
@@ -24,8 +24,8 @@ const Button = function (source, router) {
|
|
|
24
24
|
return router.isHyperLink;
|
|
25
25
|
}
|
|
26
26
|
return false;
|
|
27
|
-
},
|
|
28
|
-
get isSearchRouterKey() {
|
|
27
|
+
},
|
|
28
|
+
get isSearchRouterKey() {
|
|
29
29
|
if (source.controlType == 16 && source.routerKey) {
|
|
30
30
|
return true;
|
|
31
31
|
}
|
|
@@ -48,10 +48,10 @@ const Button = function (source, router) {
|
|
|
48
48
|
get borderColor() {
|
|
49
49
|
return source.borderColor ? source.borderColor + '' : (source.bgColor ? source.bgColor + '' : '');
|
|
50
50
|
},
|
|
51
|
-
icon: '',
|
|
52
|
-
getApiData(callback, field) {
|
|
51
|
+
icon: '',
|
|
52
|
+
getApiData(callback, field) {
|
|
53
53
|
var params = {
|
|
54
|
-
action: field.actionForSearch,
|
|
54
|
+
action: field.actionForSearch,
|
|
55
55
|
para: {
|
|
56
56
|
searchFields: field.getSearchPara(),
|
|
57
57
|
pageAttribute: {
|
|
@@ -59,11 +59,11 @@ const Button = function (source, router) {
|
|
|
59
59
|
},
|
|
60
60
|
flagSearch: true
|
|
61
61
|
}
|
|
62
|
-
};
|
|
62
|
+
};
|
|
63
63
|
Vue.prototype.$api.postHandler(common.globalUri(), params).then((response) => {
|
|
64
|
-
if (response.rtnCode === 200) {
|
|
65
|
-
var Buttons = [];
|
|
66
|
-
if (response.content.toolButtons) {
|
|
64
|
+
if (response.rtnCode === 200) {
|
|
65
|
+
var Buttons = [];
|
|
66
|
+
if (response.content.toolButtons) {
|
|
67
67
|
response.content.toolButtons.forEach((v) => {
|
|
68
68
|
var button = Router(v);
|
|
69
69
|
button.is = "ct-btn";
|
|
@@ -72,11 +72,11 @@ const Button = function (source, router) {
|
|
|
72
72
|
class: 'max-btn-gray'
|
|
73
73
|
}
|
|
74
74
|
Buttons.push(button);
|
|
75
|
-
});
|
|
76
|
-
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
77
|
callback(response.content, Buttons);
|
|
78
78
|
}
|
|
79
|
-
});
|
|
79
|
+
});
|
|
80
80
|
},
|
|
81
81
|
};
|
|
82
82
|
if(router){
|
|
@@ -17,7 +17,7 @@ const FormList = function (source, master) {
|
|
|
17
17
|
return master.controlType;
|
|
18
18
|
},
|
|
19
19
|
get label() {
|
|
20
|
-
return master.
|
|
20
|
+
return master.controlLabel || '';
|
|
21
21
|
},
|
|
22
22
|
get source() {
|
|
23
23
|
return source;
|
|
@@ -389,7 +389,7 @@ const FormList = function (source, master) {
|
|
|
389
389
|
let isRepeat = rtn.isDuplicated(rtn.fieldsToTableData(ev.formData.source.fields), index);
|
|
390
390
|
|
|
391
391
|
if (!isRepeat) {
|
|
392
|
-
for (let findex = 0; findex < row.length; findex++) {//循环所在行的列
|
|
392
|
+
for (let findex = 0; findex < row.length; findex++) {//循环所在行的列
|
|
393
393
|
Vue.set(row[findex], 'code1', ev.formData.source.fields[findex].code1);
|
|
394
394
|
Vue.set(row[findex], 'name1', ev.formData.source.fields[findex].name1);
|
|
395
395
|
switch(ev.formData.source.fields[findex].controlType){
|
|
@@ -25,7 +25,9 @@ const Mo = function (source, moreActionRouter) {
|
|
|
25
25
|
else {
|
|
26
26
|
this._value = [];
|
|
27
27
|
this.options.forEach((v) => {
|
|
28
|
-
|
|
28
|
+
if(!v.flagDeleted && v.flagDeleted !== 1){
|
|
29
|
+
this._value.push(v[this.optionAttrs.value]);
|
|
30
|
+
}
|
|
29
31
|
});
|
|
30
32
|
return this._value;
|
|
31
33
|
}
|
|
@@ -79,7 +81,7 @@ const Mo = function (source, moreActionRouter) {
|
|
|
79
81
|
if (source.code1) {
|
|
80
82
|
var rtnLabelValue = '';
|
|
81
83
|
JSON.parse(source.code1).forEach((op) => {
|
|
82
|
-
if (op.flagDeleted !== 1) {
|
|
84
|
+
if (!op.flagDeleted && op.flagDeleted !== 1) {
|
|
83
85
|
rtnLabelValue += op[rtn.optionAttrs.label] + ' ';
|
|
84
86
|
}
|
|
85
87
|
});
|
|
@@ -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;
|
|
@@ -308,6 +308,20 @@ const Router = function (source) {
|
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
310
|
},
|
|
311
|
+
doBlobAction(data, callback, scripts) {
|
|
312
|
+
if (rtn.action) {
|
|
313
|
+
Vue.prototype.$api.postBlobHandler(common.globalUri(), rtn.getActionPara(data), scripts).then((response) => {
|
|
314
|
+
callback(response.data,response.headers);
|
|
315
|
+
}).catch((ex) => {
|
|
316
|
+
// callback(ex); //里面需要有data.rtnCode === 200的处理
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
callback({
|
|
321
|
+
rtnCode: Enum.ReturnCode.Successful
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
},
|
|
311
325
|
getSearchPara() {
|
|
312
326
|
let params = {
|
|
313
327
|
fields: []
|
|
@@ -30,7 +30,9 @@ const TimeSelect = function (source, isRange, dateType) {
|
|
|
30
30
|
},
|
|
31
31
|
get value() {
|
|
32
32
|
if (source.code1 && source.format !="HH:mm" && Object.prototype.toString.call(source.code1) === "[object String]") {
|
|
33
|
-
source.code1
|
|
33
|
+
if(source.code1.length<=8){
|
|
34
|
+
source.code1 = new Date(common.formatDate(new Date(), 'yyyy-MM-dd') + ' ' + source.code1);
|
|
35
|
+
}
|
|
34
36
|
}
|
|
35
37
|
return source.code1;
|
|
36
38
|
},
|
|
@@ -42,7 +44,9 @@ const TimeSelect = function (source, isRange, dateType) {
|
|
|
42
44
|
},
|
|
43
45
|
get value1() {
|
|
44
46
|
if (source.code2 && source.format != "HH:mm" && Object.prototype.toString.call(source.code2) === "[object String]") {
|
|
45
|
-
source.code2
|
|
47
|
+
if(source.code2.length<=8){
|
|
48
|
+
source.code2 = new Date(common.formatDate(new Date(), 'yyyy-MM-dd') + ' ' + source.code2);
|
|
49
|
+
}
|
|
46
50
|
}
|
|
47
51
|
return source.code2;
|
|
48
52
|
},
|
package/src/main.js
CHANGED
|
@@ -14,18 +14,20 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
14
14
|
// 关闭生产模式下给出的提示
|
|
15
15
|
Vue.config.productionTip = false;
|
|
16
16
|
Vue.use(centaline, {
|
|
17
|
-
|
|
18
|
-
baseUrl: "http://10.
|
|
17
|
+
baseUrl: "http://10.88.22.46:17070/max-uplink-api/",
|
|
18
|
+
baseUrl: "http://10.88.22.46:6060/onecard-api/",
|
|
19
19
|
// baseUrl: "http://10.88.22.13:17070/max-uplink-api/",
|
|
20
|
+
// baseUrl: "http://10.88.22.13:6060/onecard-api/",
|
|
20
21
|
// baseUrl: "http://10.6.1.163:9000/max-uplink-api/v1/form/router",
|
|
21
|
-
// baseUrl: "http://10.25.10.
|
|
22
|
+
// baseUrl: "http://10.25.10.63:9999/service-api/v1/form/router",
|
|
22
23
|
// baseUrl: "http://10.25.10.67:8080/",
|
|
23
|
-
// baseUrl: "http://10.88.22.42:
|
|
24
|
+
// baseUrl: "http://10.88.22.42:30403/service-api/v1/form/router",
|
|
24
25
|
// baseUrl: "http://10.88.22.69:8080/api/",
|
|
25
|
-
// baseUrl: "http://10.88.22.
|
|
26
|
+
// baseUrl: "http://10.88.22.16:8080/",
|
|
26
27
|
// baseUrl: "http://10.58.2.108:8080/",
|
|
27
28
|
// baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
28
29
|
// baseUrl: "http://tjcpuat.centaline.com.cn:9090/",
|
|
30
|
+
// baseUrl: "http://10.88.22.42:8080/",
|
|
29
31
|
flagRouterSelf: true,
|
|
30
32
|
zindex: 999,
|
|
31
33
|
showRequestSuccessMessage: true,
|
|
@@ -38,6 +40,9 @@ Vue.use(centaline, {
|
|
|
38
40
|
openTabSearch: function (field, submitData) {
|
|
39
41
|
alert("打开tab页Search:" + field.action)
|
|
40
42
|
},
|
|
43
|
+
openTabSearchRouter: function (action) {
|
|
44
|
+
alert("打开tab页:" + action)
|
|
45
|
+
},
|
|
41
46
|
openDetail: function (action) {
|
|
42
47
|
alert("打开tab页:" + action)
|
|
43
48
|
},
|
|
@@ -54,16 +59,16 @@ Vue.use(centaline, {
|
|
|
54
59
|
// 获取请求头
|
|
55
60
|
getRequestHeaders: function () {
|
|
56
61
|
return {
|
|
57
|
-
oldToken: '
|
|
62
|
+
oldToken: '27517ab2-58ea-42c8-97d1-3385278b1314',
|
|
58
63
|
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQRO_iOiv5s1570zn-NBwiIuBIoUIkkUCIuxMEdPRMMRq95s1dzOsgWmHIccikIFr0gKQsMJYCURKxKdKYlHr-BH7UNz26yCFkByg7Aiw2A-tYwLDtEubgUibRiHo9i1aRRy-dtdSIab-8gdNKvcA618uu3v5x7rRMm3YkOZAfR6BtAWp_3LQHBNI8KHbkqlHi8QQAAP__.RrBgBqaFlp478oO3g5k_EEtjPt_o8qpJBkzgSP78Wa4',
|
|
59
|
-
authObject: '{token:"
|
|
64
|
+
authObject: '{token:"1080-1710827614035382272"}',
|
|
60
65
|
|
|
61
66
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
62
67
|
EstateInfo: '{"estateId":"201806071109550C867184E8BCA56EC3","estateName":"C%E5%BE%A1%E6%9E%97%E5%B1%B1%E6%99%AF%E6%A5%BC"}',
|
|
63
|
-
estateId: '
|
|
68
|
+
estateId: '20210729104021C49F04B55C50F6AF58',
|
|
64
69
|
|
|
65
|
-
// authObject: '{"currentEstate":{
|
|
66
|
-
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.
|
|
70
|
+
// authObject: '{"currentEstate":{},"platform":1,"osVersion":"","clientVersion":"","machineCode":"470cac848b892484b949c6135dff97d6","token":"","random":"IVMfRJ","time":1689822719042,"sign":"19a04c54292bd44dfa5187983e27c530"}',
|
|
71
|
+
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImNhYmM2OGMyLTIyMTctNDcwZi05N2NhLWJjODBiYzY0OTc4OSJ9.D1pwuj_lWGINENGQp5LDHefzVJOAAzYW9d8Tn4V-8rZS2kXf7AAZltQtTXtSb7h-EnRnAuIuNIwHREXZm0RPQA',
|
|
67
72
|
};
|
|
68
73
|
},
|
|
69
74
|
// 请求完成事件,可判断是否登录过期执行响应操作
|