centaline-data-driven 1.1.20 → 1.1.25
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/centaline/centaline.path.js +2 -0
- package/build/centaline/webpack.centaline.conf.js +5 -3
- package/build/utils.js +2 -1
- package/build/webpack.dev.conf.js +1 -1
- package/config/dev.env.js +6 -3
- 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 +7 -5
- package/src/Detail.vue +28 -0
- package/src/Form.vue +3 -2
- package/src/SearchList.vue +5 -3
- package/src/SearchTree.vue +55 -0
- package/src/assets/Mvr.png +0 -0
- package/src/assets/VR.png +0 -0
- package/src/assets/collection.png +0 -0
- package/src/assets/dian.png +0 -0
- package/src/assets/ewm.png +0 -0
- package/src/assets/image.png +0 -0
- package/src/assets/location.png +0 -0
- package/src/assets/max-fold.png +0 -0
- package/src/assets/max-open.png +0 -0
- package/src/assets/mero.png +0 -0
- package/src/assets/node-collapse.png +0 -0
- package/src/assets/node-expand.png +0 -0
- package/src/assets/video.png +0 -0
- package/src/assets//350/256/241/347/256/227/345/231/250.png +0 -0
- package/src/centaline/api/index.js +15 -5
- package/src/centaline/comfirm/src/comfirm.vue +2 -2
- package/src/centaline/css/common.css +34 -33
- package/src/centaline/css/max.css +145 -0
- package/src/centaline/dialogList/src/dialog.vue +2 -2
- package/src/centaline/dialogList/src/dialogNew.vue +16 -16
- package/src/centaline/dynamicBtn/src/dynamicBtn.vue +50 -19
- package/src/centaline/dynamicCheckbox/src/dynamicCheckbox.vue +1 -1
- package/src/centaline/dynamicDetail/index.js +11 -0
- package/src/centaline/dynamicDetail/src/dynamicDetail.vue +39 -0
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +1283 -0
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +29 -0
- package/src/centaline/dynamicForm/src/dynamicForm.vue +25 -9
- package/src/centaline/dynamicForm/src/dynamicFormList.vue +2 -2
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +39 -18
- package/src/centaline/dynamicHyperLink/index.js +1 -1
- package/src/centaline/dynamicInputNumber/src/dynamicInputNumber.vue +4 -0
- 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 +41 -20
- package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +14 -5
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +59 -33
- package/src/centaline/dynamicSearchList/src/dynamicTableStatistics.vue +41 -0
- package/src/centaline/dynamicSearchList/src/dynamicTableToolbar.vue +7 -4
- package/src/centaline/dynamicT/src/dynamicT.vue +18 -23
- package/src/centaline/dynamicTimeSelect/src/dynamicTimeSelect.vue +37 -3
- package/src/centaline/dynamicTree/index.js +11 -0
- package/src/centaline/dynamicTree/src/dynamicSearchTree.vue +66 -0
- package/src/centaline/dynamicTree/src/dynamicTree.vue +213 -0
- package/src/centaline/dynamicTree/src/dynamicTreeList.vue +65 -0
- 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 +1 -2
- package/src/centaline/loader/src/ctl/Base.js +31 -2
- package/src/centaline/loader/src/ctl/Button.js +21 -4
- package/src/centaline/loader/src/ctl/ComboBoxWithTextBox.js +6 -14
- 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 +51 -14
- package/src/centaline/loader/src/ctl/FormList.js +7 -0
- package/src/centaline/loader/src/ctl/HyperLink.js +1 -1
- package/src/centaline/loader/src/ctl/Mo.js +1 -9
- package/src/centaline/loader/src/ctl/PlaceHolder.js +2 -2
- package/src/centaline/loader/src/ctl/Router.js +58 -1
- package/src/centaline/loader/src/ctl/SearchScreen.js +37 -7
- package/src/centaline/loader/src/ctl/SearchTable.js +25 -10
- package/src/centaline/loader/src/ctl/So.js +1 -9
- package/src/centaline/loader/src/ctl/Sos.js +2 -11
- package/src/centaline/loader/src/ctl/Tags.js +1 -9
- package/src/centaline/loader/src/ctl/TimeSelect.js +34 -7
- package/src/centaline/loader/src/ctl/Tree.js +154 -0
- package/src/centaline/loader/src/ctl/lib/Enum.js +21 -3
- package/src/centaline/loader/src/ctl/lib/LibFunction.js +8 -0
- package/src/centaline/loader/src/ctl.js +5 -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 +14 -9
- package/src/centaline/templates/src/ContractSearch.js +4 -4
- package/src/main.js +3 -3
- package/src/router/index.js +11 -0
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -7
- 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
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import common from '../../../common';
|
|
2
|
+
import Router from './Router';
|
|
3
|
+
import Vue from 'vue';
|
|
4
|
+
import Enum from './lib/Enum';
|
|
5
|
+
const tree = function (source, callBack, searchModel, defaultSearchData, resolve) {
|
|
6
|
+
var init = function (source) {
|
|
7
|
+
var rtn = {
|
|
8
|
+
searchModel: searchModel,
|
|
9
|
+
tableHeight: 350,
|
|
10
|
+
defaultSearchData: defaultSearchData,
|
|
11
|
+
modeltree: resolve,
|
|
12
|
+
$vue: null,
|
|
13
|
+
get source() {
|
|
14
|
+
return source;
|
|
15
|
+
},
|
|
16
|
+
set source(v) {
|
|
17
|
+
source = v;
|
|
18
|
+
}, get modeltree() {
|
|
19
|
+
var treedata = [];
|
|
20
|
+
source.content.rows.forEach(v => {
|
|
21
|
+
v.getLayoutOfSearch = rtn.rowRouterKey("getLayoutOfSearch");
|
|
22
|
+
v.getList = rtn.rowRouterKey("getList");
|
|
23
|
+
treedata.push(v);
|
|
24
|
+
});
|
|
25
|
+
return treedata;
|
|
26
|
+
}, _rowSelectRouter: null,
|
|
27
|
+
get rowSelectRouter() {
|
|
28
|
+
if (rtn._rowSelectRouter !== null) {
|
|
29
|
+
return rtn._rowSelectRouter;
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
rtn._rowSelectRouter = [];
|
|
33
|
+
if (source.content.rowSelectRouter) {
|
|
34
|
+
var router = Router(source.content.rowSelectRouter);
|
|
35
|
+
rtn._rowSelectRouter = router;
|
|
36
|
+
}
|
|
37
|
+
return rtn._rowSelectRouter;
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
_actionRouter: null,
|
|
41
|
+
get actionRouter() {
|
|
42
|
+
if (rtn._actionRouter !== null) {
|
|
43
|
+
return rtn._actionRouter;
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
rtn._actionRouter = [];
|
|
47
|
+
if (source.content.actionRouters) {
|
|
48
|
+
source.content.actionRouters.forEach((v) => {
|
|
49
|
+
var router = Router(v);
|
|
50
|
+
//router.is = "ct-btn";
|
|
51
|
+
//router.attrs = { size: "mini" }
|
|
52
|
+
rtn._actionRouter.push(router);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
return rtn._actionRouter;
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
_rowRouter: null,
|
|
59
|
+
get rowRouter() {
|
|
60
|
+
if (rtn._rowRouter !== null) {
|
|
61
|
+
return rtn._rowRouter;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
rtn._rowRouter = [];
|
|
65
|
+
if (rtn.actionRouter) {
|
|
66
|
+
rtn.actionRouter.forEach((v) => {
|
|
67
|
+
if (v.show) {
|
|
68
|
+
rtn._rowRouter.push(v);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return rtn._rowRouter;
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
rowRouterKey(key) {
|
|
76
|
+
var obj = { action: "" };
|
|
77
|
+
if (rtn.rowRouter) {
|
|
78
|
+
var rowRouter = rtn.rowRouter;
|
|
79
|
+
for (var i = 0; i < rowRouter.length; i++) {
|
|
80
|
+
if (rowRouter[i].id == key) {
|
|
81
|
+
obj = rowRouter[i];
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return obj;
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
searchData(fieldName1, _parentID, operation, searchDataType) {
|
|
89
|
+
var rtn = {
|
|
90
|
+
fields: []
|
|
91
|
+
};
|
|
92
|
+
rtn.fields.push({
|
|
93
|
+
"fieldName1": fieldName1,
|
|
94
|
+
"groupName": fieldName1,
|
|
95
|
+
"operation": operation || 0,
|
|
96
|
+
"searchDataType": searchDataType || 3,
|
|
97
|
+
"searchValue1": _parentID
|
|
98
|
+
});
|
|
99
|
+
return rtn;
|
|
100
|
+
},
|
|
101
|
+
getCurrentRowApiData(api, searchModel, callback) {
|
|
102
|
+
var self = this;
|
|
103
|
+
var para = searchModel ? searchModel : {};
|
|
104
|
+
|
|
105
|
+
Vue.prototype.$api.postHandler(common.globalUri(), {
|
|
106
|
+
action: api,
|
|
107
|
+
para: {
|
|
108
|
+
paramDataQuery: para
|
|
109
|
+
}
|
|
110
|
+
})
|
|
111
|
+
.then(function (response) {
|
|
112
|
+
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
113
|
+
if (typeof callback !== 'undefined') {
|
|
114
|
+
callback(response.content);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
})
|
|
118
|
+
.catch((error) => {
|
|
119
|
+
console.error(error);
|
|
120
|
+
if (typeof callback !== 'undefined') {
|
|
121
|
+
callback();
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
},
|
|
125
|
+
};
|
|
126
|
+
return rtn;
|
|
127
|
+
};
|
|
128
|
+
if (typeof source === 'string') {
|
|
129
|
+
var apiData = searchModel ? searchModel.searchData : {};
|
|
130
|
+
Vue.prototype.$api.postHandler(common.globalUri(),
|
|
131
|
+
{
|
|
132
|
+
action: source,
|
|
133
|
+
para:
|
|
134
|
+
{
|
|
135
|
+
searchFields: apiData,
|
|
136
|
+
pageAttribute: { pageIndex: 1 },
|
|
137
|
+
flagSearch: true
|
|
138
|
+
}
|
|
139
|
+
}).then(
|
|
140
|
+
function (response) {
|
|
141
|
+
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
142
|
+
var rtn = init(response);
|
|
143
|
+
if (callBack) {
|
|
144
|
+
callBack(rtn, resolve);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
return init(source);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
export default tree;
|
|
@@ -205,7 +205,12 @@ const Enum = {
|
|
|
205
205
|
/// <summary>
|
|
206
206
|
/// 占位控件
|
|
207
207
|
/// </summary>
|
|
208
|
-
PlaceHolder : 40
|
|
208
|
+
PlaceHolder : 40,
|
|
209
|
+
|
|
210
|
+
/// <summary>
|
|
211
|
+
/// 敏感数据小眼睛控件
|
|
212
|
+
/// </summary>
|
|
213
|
+
SensitiveEye : 41,
|
|
209
214
|
},
|
|
210
215
|
|
|
211
216
|
//返回状态码
|
|
@@ -432,7 +437,12 @@ const Enum = {
|
|
|
432
437
|
/// <summary>
|
|
433
438
|
/// 链接
|
|
434
439
|
/// </summary>
|
|
435
|
-
HyperLink : 2
|
|
440
|
+
HyperLink : 2,
|
|
441
|
+
|
|
442
|
+
/// <summary>
|
|
443
|
+
/// 下拉
|
|
444
|
+
/// </summary>
|
|
445
|
+
Dropdown : 3
|
|
436
446
|
},
|
|
437
447
|
|
|
438
448
|
PageStyle:
|
|
@@ -525,8 +535,16 @@ const Enum = {
|
|
|
525
535
|
* Horizontal 水平方向布局
|
|
526
536
|
*/
|
|
527
537
|
Horizontal: 2
|
|
528
|
-
}
|
|
538
|
+
},
|
|
529
539
|
|
|
540
|
+
MessageAlertStyle:{
|
|
541
|
+
//默认
|
|
542
|
+
Default : 0,
|
|
543
|
+
//吐司
|
|
544
|
+
Toast : 10,
|
|
545
|
+
//窗口
|
|
546
|
+
Dialog : 20,
|
|
547
|
+
},
|
|
530
548
|
|
|
531
549
|
};
|
|
532
550
|
|
|
@@ -32,6 +32,7 @@ const LibFunction = {
|
|
|
32
32
|
install(Vue) {
|
|
33
33
|
},
|
|
34
34
|
GetControl(field, source, showLabel, isList) {
|
|
35
|
+
|
|
35
36
|
let item;
|
|
36
37
|
field.isList = isList;
|
|
37
38
|
if (typeof field.required === 'undefined') {
|
|
@@ -213,21 +214,28 @@ const LibFunction = {
|
|
|
213
214
|
moreActionRouter = LibFunction.getRouter(source.actionRouters, field.fieldName1);
|
|
214
215
|
item = Button(field, moreActionRouter);
|
|
215
216
|
item.is = 'ct-btn';
|
|
217
|
+
// item.attrs.class=item.attrs.class+' max-btn-gray ';
|
|
216
218
|
break;
|
|
217
219
|
case Enum.ControlType.ButtonSearch://查询按钮
|
|
218
220
|
item = Button(field);
|
|
219
221
|
item.is = 'ct-btn';
|
|
220
222
|
item.action = 'search';
|
|
223
|
+
item.attrs.class=item.attrs.class+' max-search-btn ';
|
|
221
224
|
break;
|
|
222
225
|
case Enum.ControlType.ButtonAdvancedSearch://高级查询按钮
|
|
223
226
|
item = Button(field);
|
|
224
227
|
item.is = 'ct-btn';
|
|
225
228
|
item.action = 'showHigh';
|
|
229
|
+
item.attrs.class=item.attrs.class+' max-search-btn ';
|
|
230
|
+
item.icon='max-open';
|
|
226
231
|
break;
|
|
227
232
|
case Enum.ControlType.ButtonReset://重置查询按钮
|
|
228
233
|
item = Button(field);
|
|
229
234
|
item.is = 'ct-btn';
|
|
230
235
|
item.action = 'reset';
|
|
236
|
+
item.bgColor='#519DA6';
|
|
237
|
+
item.borderColor='#519DA6';
|
|
238
|
+
item.attrs.class=item.attrs.class+' max-reset-btn ';
|
|
231
239
|
break;
|
|
232
240
|
case Enum.ControlType.File://文件
|
|
233
241
|
var router = source.actionRouters.find((v1) => {
|
|
@@ -23,7 +23,11 @@ const loader = {
|
|
|
23
23
|
Router: require("./ctl/Router.js").default,
|
|
24
24
|
Tabs: require("./ctl/Tabs.js").default,
|
|
25
25
|
ComboBoxWithTextBox: require("./ctl/ComboBoxWithTextBox.js").default,
|
|
26
|
-
Checkbox: require("./ctl/Checkbox.js").default
|
|
26
|
+
Checkbox: require("./ctl/Checkbox.js").default,
|
|
27
|
+
InputNumber: require("./ctl/InputNumber.js").default,
|
|
28
|
+
L: require("./ctl/L.js").default,
|
|
29
|
+
File: require("./ctl/File.js").default,
|
|
30
|
+
Tree: require("./ctl/Tree.js").default,
|
|
27
31
|
};
|
|
28
32
|
|
|
29
33
|
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,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div :class="isOperationalColumn?'subdiv_allinline':''" v-if="isShowLabel">
|
|
3
3
|
<img v-if="router.imgUrl" class="ct-tablecurrencyImg ct-tablecurrencyItem" :src="router.imgUrl" :title="router.label" @click="clickHandler($event);" />
|
|
4
|
-
<a v-else href="javascript:void(0);" class="ct-
|
|
4
|
+
<a v-else href="javascript:void(0);" class="ct-tablecurrencyItem" @click="clickHandler($event)">
|
|
5
5
|
{{label}}
|
|
6
6
|
</a>
|
|
7
7
|
</div>
|
|
@@ -22,6 +22,14 @@
|
|
|
22
22
|
computed: {
|
|
23
23
|
label: function () {
|
|
24
24
|
return (typeof this.colValue === "undefined" || this.colValue === '') ? this.router.label : this.colValue
|
|
25
|
+
},
|
|
26
|
+
isShowLabel:function()
|
|
27
|
+
{
|
|
28
|
+
if(this.label||this.router.imgUrl)
|
|
29
|
+
{
|
|
30
|
+
return true
|
|
31
|
+
}
|
|
32
|
+
return false;
|
|
25
33
|
}
|
|
26
34
|
},
|
|
27
35
|
data() {
|
|
@@ -36,18 +44,15 @@
|
|
|
36
44
|
}
|
|
37
45
|
</script>
|
|
38
46
|
<style>
|
|
39
|
-
.ct-tablecurrencyA {
|
|
40
|
-
text-decoration: none;
|
|
41
|
-
padding-left: 2px;
|
|
42
|
-
padding-right: 2px;
|
|
43
|
-
}
|
|
44
47
|
.ct-tablecurrencyItem {
|
|
45
|
-
|
|
46
|
-
padding-
|
|
48
|
+
text-decoration: none;
|
|
49
|
+
padding-left: 0px;
|
|
50
|
+
padding-right: 4px;
|
|
47
51
|
cursor: pointer;
|
|
48
52
|
}
|
|
49
53
|
.ct-tablecurrencyImg {
|
|
50
54
|
width: 24px;
|
|
55
|
+
margin-top: 2px;
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
</style>
|
|
@@ -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: 'faefb8a4-f885-4f49-a0fc-dc6c0943bf4a',
|
|
31
31
|
estateId: '20210729104021C49F04B55C50F6AF58',
|
|
32
32
|
};
|
|
33
33
|
},
|
package/src/router/index.js
CHANGED
|
@@ -4,6 +4,8 @@ import Edit from '@/Edit'
|
|
|
4
4
|
import Search from '@/SearchList'
|
|
5
5
|
import Form from '@/Form'
|
|
6
6
|
import Tabs from '@/Tabs'
|
|
7
|
+
import Detail from '@/Detail'
|
|
8
|
+
import Tree from '@/SearchTree'
|
|
7
9
|
|
|
8
10
|
Vue.use(Router)
|
|
9
11
|
|
|
@@ -28,6 +30,15 @@ export default new Router({
|
|
|
28
30
|
path: '/Tabs',
|
|
29
31
|
name: 'Tabs',
|
|
30
32
|
component: Tabs
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
path: '/Detail',
|
|
36
|
+
name: 'Detail',
|
|
37
|
+
component: Detail
|
|
38
|
+
}, {
|
|
39
|
+
path: '/SearchTree',
|
|
40
|
+
name: 'Tree',
|
|
41
|
+
component: Tree
|
|
31
42
|
}
|
|
32
43
|
]
|
|
33
44
|
})
|