centaline-data-driven 1.1.17 → 1.1.22
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/README.md +7 -7
- package/build/webpack.dev.conf.js +1 -1
- package/config/dev.env.js +2 -2
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.dgspec.json +9 -11
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.props +3 -7
- package/obj/project.assets.json +9 -16
- package/package.json +1 -1
- package/src/Form.vue +2 -2
- package/src/SearchList.vue +2 -2
- package/src/centaline/api/index.js +16 -8
- package/src/centaline/comfirm/src/comfirm.vue +15 -6
- package/src/centaline/common/index.js +41 -26
- package/src/centaline/css/common.css +16 -2
- package/src/centaline/dialogList/src/dialog.vue +2 -2
- package/src/centaline/dialogList/src/dialogList.vue +3 -1
- package/src/centaline/dialogList/src/dialogNew.vue +16 -16
- package/src/centaline/dynamicBtn/src/dynamicBtn.vue +16 -16
- package/src/centaline/dynamicCheckbox/src/dynamicCheckbox.vue +3 -5
- package/src/centaline/dynamicDtd/src/dynamicDtd.vue +4 -4
- package/src/centaline/dynamicFile/src/dynamicFile.vue +14 -14
- package/src/centaline/dynamicForm/src/dynamicForm.vue +3 -3
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +13 -13
- package/src/centaline/dynamicHyperLink/index.js +1 -1
- package/src/centaline/dynamicPlaceHolder/index.js +1 -1
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchList.vue +1 -1
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchListTable.vue +6 -6
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +14 -14
- package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +4 -4
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +2 -2
- package/src/centaline/dynamicT/src/dynamicT.vue +4 -4
- package/src/centaline/dynamicTimeSelect/src/dynamicTimeSelect.vue +0 -1
- package/src/centaline/imgPreview/index.js +6 -6
- package/src/centaline/imgPreview/src/imgPreview.vue +3 -3
- package/src/centaline/index.js +14 -14
- package/src/centaline/loader/index.js +5 -5
- package/src/centaline/loader/src/ctl/Button.js +3 -3
- package/src/centaline/loader/src/ctl/Checkbox.js +46 -46
- package/src/centaline/loader/src/ctl/ComboBoxWithTextBox.js +11 -11
- package/src/centaline/loader/src/ctl/D.js +2 -2
- package/src/centaline/loader/src/ctl/Dtd.js +18 -18
- package/src/centaline/loader/src/ctl/DtdOld.js +8 -8
- package/src/centaline/loader/src/ctl/File.js +1 -1
- package/src/centaline/loader/src/ctl/Form.js +11 -7
- package/src/centaline/loader/src/ctl/FormList.js +1 -1
- package/src/centaline/loader/src/ctl/HyperLink.js +1 -1
- package/src/centaline/loader/src/ctl/InputNumber.js +2 -1
- package/src/centaline/loader/src/ctl/Iti.js +1 -1
- package/src/centaline/loader/src/ctl/PlaceHolder.js +2 -2
- package/src/centaline/loader/src/ctl/SearchScreen.js +5 -5
- package/src/centaline/loader/src/ctl/SearchTable.js +6 -2
- package/src/centaline/loader/src/ctl/T.js +1 -1
- package/src/centaline/loader/src/ctl/TimeSelect.js +12 -9
- package/src/centaline/loader/src/ctl/lib/Enum.js +9 -1
- package/src/centaline/loader/src/ctl/lib/LibFunction.js +17 -10
- package/src/centaline/loader/src/ctl.js +2 -1
- package/src/centaline/mixins/dynamicElement.js +34 -34
- package/src/centaline/progress/src/progress.vue +37 -37
- package/src/centaline/templateControls/src/dynamicTableCurrency.vue +1 -1
- package/src/centaline/templates/src/ContractSearch.js +4 -4
- package/src/main.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js +2 -2
- 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 -1015
- package/obj/Debug/netcoreapp2.1/.NETCoreApp,Version=v2.1.AssemblyAttributes.cs +0 -4
|
@@ -63,8 +63,8 @@ const LibFunction = {
|
|
|
63
63
|
else if (field.controlType === Enum.ControlType.DateTimeRange) {
|
|
64
64
|
field.width = field.width || 350;
|
|
65
65
|
}
|
|
66
|
-
else if (field.controlType === Enum.ControlType.ButtonSearch ||
|
|
67
|
-
field.controlType === Enum.ControlType.ButtonReset ||
|
|
66
|
+
else if (field.controlType === Enum.ControlType.ButtonSearch ||
|
|
67
|
+
field.controlType === Enum.ControlType.ButtonReset ||
|
|
68
68
|
field.controlType === Enum.ControlType.ButtonAdvancedSearch) {
|
|
69
69
|
field.width = '';
|
|
70
70
|
}
|
|
@@ -149,12 +149,8 @@ const LibFunction = {
|
|
|
149
149
|
// item.is = 'ct-time-select';
|
|
150
150
|
// break;
|
|
151
151
|
case Enum.ControlType.TimeRange://时间区间
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
//break;
|
|
155
|
-
item = L(field);
|
|
156
|
-
item.is = 'ct-labelText';
|
|
157
|
-
item.value = "暂不支持该组件";
|
|
152
|
+
item = TimeSelect(field, true, 'time');
|
|
153
|
+
item.is = 'ct-time-select';
|
|
158
154
|
break;
|
|
159
155
|
case Enum.ControlType.Date://日期
|
|
160
156
|
item = D(field, 'date');
|
|
@@ -236,8 +232,19 @@ const LibFunction = {
|
|
|
236
232
|
case Enum.ControlType.File://文件
|
|
237
233
|
var router = source.actionRouters.find((v1) => {
|
|
238
234
|
return v1.key === field.fieldName1;
|
|
239
|
-
});
|
|
240
|
-
|
|
235
|
+
});
|
|
236
|
+
var files = [];
|
|
237
|
+
source.medias.forEach((v, index) => {
|
|
238
|
+
if (v.GroupID) {
|
|
239
|
+
if (v.GroupID == field.fieldName1) {
|
|
240
|
+
files.push(v);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
files.push(v);
|
|
245
|
+
}
|
|
246
|
+
})
|
|
247
|
+
item = File(field, files, router, source.parameterAction);
|
|
241
248
|
item.is = 'ct-file';
|
|
242
249
|
break;
|
|
243
250
|
case Enum.ControlType.PasswordTextBox://密码
|
|
@@ -22,7 +22,8 @@ const loader = {
|
|
|
22
22
|
Form: require("./ctl/Form.js").default,
|
|
23
23
|
Router: require("./ctl/Router.js").default,
|
|
24
24
|
Tabs: require("./ctl/Tabs.js").default,
|
|
25
|
-
ComboBoxWithTextBox: require("./ctl/ComboBoxWithTextBox.js").default
|
|
25
|
+
ComboBoxWithTextBox: require("./ctl/ComboBoxWithTextBox.js").default,
|
|
26
|
+
Checkbox: require("./ctl/Checkbox.js").default
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
export default loader;
|
|
@@ -17,7 +17,7 @@ export default {
|
|
|
17
17
|
inputOld: '',
|
|
18
18
|
changeOld: '',
|
|
19
19
|
inputOld1: '',
|
|
20
|
-
changeOld1: '',
|
|
20
|
+
changeOld1: '',
|
|
21
21
|
inputTime: null
|
|
22
22
|
};
|
|
23
23
|
},
|
|
@@ -28,8 +28,8 @@ export default {
|
|
|
28
28
|
let self = this;
|
|
29
29
|
this.$nextTick(() => {
|
|
30
30
|
if (this.model) {
|
|
31
|
-
this.model.self = self;
|
|
32
|
-
}
|
|
31
|
+
this.model.self = self;
|
|
32
|
+
}
|
|
33
33
|
|
|
34
34
|
if (this.model && typeof this.model.value !== 'undefined') {
|
|
35
35
|
if (typeof this.model.value !== 'undefined') {
|
|
@@ -52,8 +52,8 @@ export default {
|
|
|
52
52
|
inputHandler(e) {
|
|
53
53
|
var self = this;
|
|
54
54
|
setTimeout(() => {
|
|
55
|
-
self.valid = true;
|
|
56
|
-
self.inputTime = (new Date()).getTime();
|
|
55
|
+
self.valid = true;
|
|
56
|
+
self.inputTime = (new Date()).getTime();
|
|
57
57
|
|
|
58
58
|
//通用校验
|
|
59
59
|
if (this.model.validating) {
|
|
@@ -62,8 +62,8 @@ export default {
|
|
|
62
62
|
if (!self.valid) {
|
|
63
63
|
self.validMessage = validtemp.message;
|
|
64
64
|
return false;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
67
|
|
|
68
68
|
if (typeof self.model.value !== 'undefined') {
|
|
69
69
|
self.inputOld = self.model.value;
|
|
@@ -86,34 +86,34 @@ export default {
|
|
|
86
86
|
*/
|
|
87
87
|
changeHandler(e) {
|
|
88
88
|
var self = this;
|
|
89
|
-
setTimeout(() => {
|
|
90
|
-
//通用校验
|
|
91
|
-
var time = (new Date()).getTime();
|
|
92
|
-
if (time > (self.inputTime + 500) || self.valid) {
|
|
93
|
-
if (this.model.validating) {
|
|
89
|
+
setTimeout(() => {
|
|
90
|
+
//通用校验
|
|
91
|
+
var time = (new Date()).getTime();
|
|
92
|
+
if (time > (self.inputTime + 500) || self.valid) {
|
|
93
|
+
if (this.model.validating) {
|
|
94
94
|
let validtemp = this.model.validating('change', self.inputOld, self.inputOld1);
|
|
95
95
|
self.valid = validtemp.valid;
|
|
96
96
|
if (!self.valid) {
|
|
97
97
|
self.validMessage = validtemp.message;
|
|
98
98
|
return false;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
//组件个性化校验
|
|
103
|
-
if ("undefined" !== typeof this.selfValidExcute) {
|
|
104
|
-
if (!this.selfValidExcute("change")) {
|
|
105
|
-
self.valid = false;
|
|
106
|
-
//return false;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
//组件个性化校验
|
|
103
|
+
if ("undefined" !== typeof this.selfValidExcute) {
|
|
104
|
+
if (!this.selfValidExcute("change")) {
|
|
105
|
+
self.valid = false;
|
|
106
|
+
//return false;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
110
|
|
|
111
111
|
if (typeof self.model.value !== 'undefined') {
|
|
112
112
|
self.changeOld = self.model.value;
|
|
113
113
|
}
|
|
114
114
|
if (typeof self.model.value1 !== 'undefined') {
|
|
115
115
|
self.changeOld1 = self.model.value1;
|
|
116
|
-
}
|
|
116
|
+
}
|
|
117
117
|
|
|
118
118
|
self.$emit('change', e);
|
|
119
119
|
}, 1);
|
|
@@ -128,21 +128,21 @@ export default {
|
|
|
128
128
|
var self = this;
|
|
129
129
|
|
|
130
130
|
//通用校验
|
|
131
|
-
if (typeof this.model.validating === "function") {
|
|
131
|
+
if (typeof this.model.validating === "function") {
|
|
132
132
|
let validtemp = this.model.validating();
|
|
133
133
|
self.valid = validtemp.valid;
|
|
134
134
|
if (!self.valid) {
|
|
135
135
|
self.validMessage = validtemp.message;
|
|
136
136
|
return false;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
//组件个性化校验 优化 todo
|
|
141
|
-
if ("undefined" !== typeof this.selfValidExcute) {
|
|
142
|
-
if (!this.selfValidExcute("valid")) {
|
|
143
|
-
return false;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
//组件个性化校验 优化 todo
|
|
141
|
+
if ("undefined" !== typeof this.selfValidExcute) {
|
|
142
|
+
if (!this.selfValidExcute("valid")) {
|
|
143
|
+
return false;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
146
|
|
|
147
147
|
self.valid = true;
|
|
148
148
|
return true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="ct-progress">
|
|
3
3
|
<div>
|
|
4
|
-
<el-progress :text-inside="true" :stroke-width="18" :percentage="percentage"></el-progress>
|
|
4
|
+
<el-progress :text-inside="true" :stroke-width="18" :percentage="percentage"></el-progress>
|
|
5
5
|
<span>{{message}}</span>
|
|
6
6
|
</div>
|
|
7
7
|
</div>
|
|
@@ -11,58 +11,58 @@
|
|
|
11
11
|
export default {
|
|
12
12
|
name: 'ct-progress',
|
|
13
13
|
props: {
|
|
14
|
-
progressAction: String,
|
|
14
|
+
progressAction: String,
|
|
15
15
|
progressKey: String,
|
|
16
16
|
},
|
|
17
17
|
data() {
|
|
18
18
|
return {
|
|
19
|
-
message: '',
|
|
20
|
-
percentage: 0,
|
|
19
|
+
message: '',
|
|
20
|
+
percentage: 0,
|
|
21
21
|
isDestroy: false,
|
|
22
22
|
};
|
|
23
23
|
},
|
|
24
24
|
methods: {
|
|
25
25
|
load() {
|
|
26
26
|
},
|
|
27
|
-
getApiData() {
|
|
28
|
-
const self = this;
|
|
29
|
-
let params = {
|
|
30
|
-
action: this.progressAction,
|
|
31
|
-
para: {
|
|
32
|
-
key: this.progressKey
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
if (self.isDestroy) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
this.$api.postHandler(this.$common.globalUri(), params, null).then((response) => {
|
|
41
|
-
const data = response.content;
|
|
42
|
-
if (data && data.rtnMsg) {
|
|
43
|
-
self.message = data.rtnMsg;
|
|
44
|
-
}
|
|
45
|
-
if (response.rtnCode === 200) {
|
|
46
|
-
this.percentage = data.percentage;
|
|
47
|
-
if (data.flagFinished) {
|
|
48
|
-
window.open(data.content, "_blank");
|
|
49
|
-
setTimeout(() => { self.$emit('finished'); }, 800);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
setTimeout(() => { self.getApiData() }, 1000);
|
|
27
|
+
getApiData() {
|
|
28
|
+
const self = this;
|
|
29
|
+
let params = {
|
|
30
|
+
action: this.progressAction,
|
|
31
|
+
para: {
|
|
32
|
+
key: this.progressKey
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (self.isDestroy) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
this.$api.postHandler(this.$common.globalUri(), params, null).then((response) => {
|
|
41
|
+
const data = response.content;
|
|
42
|
+
if (data && data.rtnMsg) {
|
|
43
|
+
self.message = data.rtnMsg;
|
|
44
|
+
}
|
|
45
|
+
if (response.rtnCode === 200) {
|
|
46
|
+
this.percentage = data.percentage;
|
|
47
|
+
if (data.flagFinished) {
|
|
48
|
+
window.open(data.content, "_blank");
|
|
49
|
+
setTimeout(() => { self.$emit('finished'); }, 800);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
setTimeout(() => { self.getApiData() }, 1000);
|
|
53
53
|
}
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
|
-
mounted() {
|
|
61
|
+
mounted() {
|
|
62
62
|
this.getApiData();
|
|
63
|
-
},
|
|
64
|
-
beforeDestroy() {
|
|
65
|
-
this.isDestroy = true;
|
|
63
|
+
},
|
|
64
|
+
beforeDestroy() {
|
|
65
|
+
this.isDestroy = true;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
</script>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div align="center" :class="isOperationalColumn?'subdiv_allinline':''">
|
|
3
|
-
<img v-if="router.imgUrl" class="ct-tablecurrencyImg ct-tablecurrencyItem" :src="router.imgUrl" :title="label" @click="clickHandler($event);" />
|
|
3
|
+
<img v-if="router.imgUrl" class="ct-tablecurrencyImg ct-tablecurrencyItem" :src="router.imgUrl" :title="router.label" @click="clickHandler($event);" />
|
|
4
4
|
<a v-else href="javascript:void(0);" class="ct-tablecurrencyA ct-tablecurrencyItem" @click="clickHandler($event)">
|
|
5
5
|
{{label}}
|
|
6
6
|
</a>
|
|
@@ -6,10 +6,10 @@ const loader = {
|
|
|
6
6
|
this.loadColumns(model.columns);
|
|
7
7
|
},
|
|
8
8
|
loadColumns: function (columns) {
|
|
9
|
-
columns.forEach((col) => {
|
|
9
|
+
columns.forEach((col) => {
|
|
10
10
|
switch (col.id) {
|
|
11
11
|
case "ContractFile":
|
|
12
|
-
col.template = function (row) {
|
|
12
|
+
col.template = function (row) {
|
|
13
13
|
var rtn = {
|
|
14
14
|
attrs: {
|
|
15
15
|
get src() {
|
|
@@ -26,7 +26,7 @@ const loader = {
|
|
|
26
26
|
};
|
|
27
27
|
break;
|
|
28
28
|
case "AccountFlow":
|
|
29
|
-
col.template = function (row) {
|
|
29
|
+
col.template = function (row) {
|
|
30
30
|
var rtn = {
|
|
31
31
|
attrs: {
|
|
32
32
|
get src() {
|
|
@@ -38,7 +38,7 @@ const loader = {
|
|
|
38
38
|
return rtn;
|
|
39
39
|
};
|
|
40
40
|
break;
|
|
41
|
-
case "ReportNo":
|
|
41
|
+
case "ReportNo":
|
|
42
42
|
col.template = function (row) {
|
|
43
43
|
var rtn = {
|
|
44
44
|
attrs: {
|
package/src/main.js
CHANGED
|
@@ -12,8 +12,8 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
12
12
|
// 关闭生产模式下给出的提示
|
|
13
13
|
Vue.config.productionTip = false;
|
|
14
14
|
Vue.use(centaline, {
|
|
15
|
-
baseUrl:
|
|
16
|
-
zindex: 999,
|
|
15
|
+
baseUrl: process.env.BASE_API,
|
|
16
|
+
zindex: 999,
|
|
17
17
|
showRequestErrorMessage: true,
|
|
18
18
|
handler: {
|
|
19
19
|
// 打开tab页
|
|
@@ -27,7 +27,7 @@ Vue.use(centaline, {
|
|
|
27
27
|
// 获取请求头
|
|
28
28
|
getRequestHeaders: function () {
|
|
29
29
|
return {
|
|
30
|
-
oldToken: '
|
|
30
|
+
oldToken: '397f4e0a-fdf1-42e9-b8be-8b52312b9f37',
|
|
31
31
|
estateId: '20210729104021C49F04B55C50F6AF58',
|
|
32
32
|
};
|
|
33
33
|
},
|