centaline-data-driven 1.5.40 → 1.5.42
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/package.json +1 -1
- package/release-log.md +51 -2
- package/src/Detail.vue +3 -3
- package/src/SearchList.vue +9 -7
- package/src/centaline/dialogList/src/dialog.vue +17 -2
- package/src/centaline/dynamicContact/src/dynamicContact.vue +0 -1
- package/src/centaline/dynamicDetail/src/dynamicCustomerSimpleDetail.vue +289 -49
- package/src/centaline/dynamicDetail/src/dynamicEstateBuildingDetail.vue +11 -11
- package/src/centaline/dynamicDetail/src/dynamicEstateSimpleDetail.vue +2 -2
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +10 -11
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +12 -11
- package/src/centaline/dynamicDetail/src/dynamicPropertySimpleDetailRET.vue +2 -2
- package/src/centaline/dynamicForm/src/dynamicForm.vue +19 -19
- package/src/centaline/dynamicPhotoSelect/src/dynamicPhotoSelect.vue +31 -0
- package/src/centaline/dynamicPhotoSelectList/src/dynamicPhotoSelectList.vue +31 -0
- package/src/centaline/dynamicRepeat/src/dynamicRepeat.vue +361 -143
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +15 -2
- package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +28 -22
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +36 -21
- package/src/centaline/dynamicSearchListTab/src/dynamicSearchListOne.vue +15 -2
- package/src/centaline/dynamicTree/src/dynamicTree.vue +3 -1
- package/src/centaline/formData/index.js +2 -2
- package/src/centaline/loader/src/ctl/Detail.js +13 -0
- package/src/centaline/loader/src/ctl/Form.js +2 -2
- package/src/centaline/loader/src/ctl/Repeat.js +127 -20
- package/src/centaline/loader/src/ctl/SearchScreen.js +6 -6
- package/src/centaline/loader/src/ctl/SearchTable.js +1 -1
- package/src/centaline/progress/src/progress.vue +9 -4
- package/src/main.js +6 -6
- package/wwwroot/static/centaline/centaline-data-driven.js +799 -266
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
@@ -297,7 +297,8 @@ export default {
|
|
|
297
297
|
theadTitleShow:false,
|
|
298
298
|
theadTitleTop:0,
|
|
299
299
|
theadTitleLeft:0,
|
|
300
|
-
theadTitleWidth:0
|
|
300
|
+
theadTitleWidth:0,
|
|
301
|
+
updateTableColumnsKey:0,
|
|
301
302
|
};
|
|
302
303
|
},
|
|
303
304
|
deactivated(){
|
|
@@ -590,9 +591,12 @@ export default {
|
|
|
590
591
|
},
|
|
591
592
|
toSort(ev, col, action) {
|
|
592
593
|
var self = this;
|
|
594
|
+
self.tableLoading = true;
|
|
593
595
|
this.model.toSort(col, action, () => {
|
|
596
|
+
self.tableLoading = false;
|
|
594
597
|
self.$forceUpdate();
|
|
595
598
|
self.getScrollAttr();
|
|
599
|
+
self.$emit("simpleRouterRefreshHandler");
|
|
596
600
|
});
|
|
597
601
|
ev.cancelBubble = true;
|
|
598
602
|
ev.stopPropagation();
|
|
@@ -741,7 +745,7 @@ export default {
|
|
|
741
745
|
});
|
|
742
746
|
}
|
|
743
747
|
else {
|
|
744
|
-
if (this.$parent.$parent.$vnode.componentOptions.tag === "ct-PropertySimpleDetailRET") {
|
|
748
|
+
if (this.$parent.$parent.$vnode.componentOptions.tag === "ct-PropertySimpleDetailRET" || this.from=='simpleDetail') {
|
|
745
749
|
var h1 = 0;
|
|
746
750
|
if (this.$parent.$parent.$parent.$parent.$refs.sidebar) {
|
|
747
751
|
h1 = this.$parent.$parent.$parent.$parent.$refs.sidebar.offsetHeight | 0;
|
|
@@ -776,7 +780,8 @@ export default {
|
|
|
776
780
|
let tableHeight = h1 - h2 - h3 - h4 - h5 - h6 - h7 - h8 - 290 -7;
|
|
777
781
|
if(this.flagAppMode){
|
|
778
782
|
tableHeight = tableHeight + 40;
|
|
779
|
-
}
|
|
783
|
+
}
|
|
784
|
+
else{
|
|
780
785
|
tableHeight = tableHeight - 40;
|
|
781
786
|
}
|
|
782
787
|
if (h2 == 0) {
|
|
@@ -1235,29 +1240,33 @@ export default {
|
|
|
1235
1240
|
}
|
|
1236
1241
|
else {
|
|
1237
1242
|
if (field.action.indexOf("http://") === 0 || field.action.indexOf("https://") === 0) {
|
|
1238
|
-
if
|
|
1239
|
-
|
|
1243
|
+
if(field.action.indexOf(".zip") > -1){
|
|
1244
|
+
window.location.href = encodeURI(field.action);
|
|
1240
1245
|
}
|
|
1241
|
-
else
|
|
1242
|
-
|
|
1246
|
+
else{
|
|
1247
|
+
if (field.action.indexOf("?") > -1) {
|
|
1248
|
+
self.downloadUrl = field.action + "&" + Math.random();
|
|
1249
|
+
}
|
|
1250
|
+
else {
|
|
1251
|
+
self.downloadUrl = field.action + "?" + Math.random();
|
|
1252
|
+
}
|
|
1243
1253
|
}
|
|
1244
|
-
// document.body.addEventListener('click', function() {
|
|
1245
|
-
// window.open(field.action, "_blank");
|
|
1246
|
-
// });
|
|
1247
1254
|
}
|
|
1248
1255
|
else {
|
|
1249
1256
|
field.doAction(submitData, (data) => {
|
|
1250
1257
|
if (data.content) {
|
|
1251
1258
|
if (data.content.indexOf("http://") === 0 || data.content.indexOf("https://") === 0) {
|
|
1252
|
-
if
|
|
1253
|
-
|
|
1259
|
+
if(data.action.indexOf(".zip") > -1){
|
|
1260
|
+
window.location.href = encodeURI(data.action);
|
|
1254
1261
|
}
|
|
1255
|
-
else
|
|
1256
|
-
|
|
1262
|
+
else{
|
|
1263
|
+
if (data.content.indexOf("?") > -1) {
|
|
1264
|
+
self.downloadUrl = data.content + "&" + Math.random();
|
|
1265
|
+
}
|
|
1266
|
+
else {
|
|
1267
|
+
self.downloadUrl = data.content + "?" + Math.random();
|
|
1268
|
+
}
|
|
1257
1269
|
}
|
|
1258
|
-
// document.body.addEventListener('click', function() {
|
|
1259
|
-
// window.open(data.content, "_blank");
|
|
1260
|
-
// });
|
|
1261
1270
|
}
|
|
1262
1271
|
else {
|
|
1263
1272
|
}
|
|
@@ -1796,7 +1805,7 @@ export default {
|
|
|
1796
1805
|
}
|
|
1797
1806
|
});
|
|
1798
1807
|
},
|
|
1799
|
-
updateCurrentRow(router, data) {
|
|
1808
|
+
updateCurrentRow(router, data,flagSimple) {
|
|
1800
1809
|
let self = this;
|
|
1801
1810
|
if (router.flagFreshCurrentRow || router.flagAddRowAfterAction) {
|
|
1802
1811
|
self.tableComplate = true;
|
|
@@ -1805,6 +1814,9 @@ export default {
|
|
|
1805
1814
|
self.$forceUpdate();
|
|
1806
1815
|
self.tableComplate = false;
|
|
1807
1816
|
self.$emit("searchComplate");
|
|
1817
|
+
if(data && !flagSimple){
|
|
1818
|
+
self.$emit("simpleRouterRefreshHandler");
|
|
1819
|
+
}
|
|
1808
1820
|
},
|
|
1809
1821
|
data,
|
|
1810
1822
|
router
|
|
@@ -1944,14 +1956,15 @@ export default {
|
|
|
1944
1956
|
}
|
|
1945
1957
|
self.$forceUpdate();
|
|
1946
1958
|
self.$refs.footer.$forceUpdate();
|
|
1947
|
-
self.updateCurrentRow(field, data);
|
|
1948
|
-
}
|
|
1959
|
+
self.updateCurrentRow(field, data,true);
|
|
1960
|
+
}
|
|
1961
|
+
else {
|
|
1949
1962
|
if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction) {
|
|
1950
1963
|
self.model.doAction({ responseData: data });
|
|
1951
1964
|
}
|
|
1952
1965
|
self.$forceUpdate();
|
|
1953
1966
|
self.$refs.footer.$forceUpdate();
|
|
1954
|
-
self.updateCurrentRow(field, data);
|
|
1967
|
+
self.updateCurrentRow(field, data,true);
|
|
1955
1968
|
}
|
|
1956
1969
|
},
|
|
1957
1970
|
refreshTableColumns(data) {
|
|
@@ -1974,6 +1987,8 @@ export default {
|
|
|
1974
1987
|
else {
|
|
1975
1988
|
self.loaderObj.SearchTable(self.api, self.load, self.model.searchModel, true);
|
|
1976
1989
|
}
|
|
1990
|
+
this.updateTableColumnsKey = this.updateTableColumnsKey + 1;
|
|
1991
|
+
this.model.toolbarKey = this.updateTableColumnsKey;
|
|
1977
1992
|
},
|
|
1978
1993
|
popupClickHandler() {
|
|
1979
1994
|
var tempListData = this.model.getSelectRowData({ isMulti: this.model.isMulti });
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div ref="main" style="width: 100%;height: 100%;display: flex;" :class="{'domDisabled':pageDisabled}">
|
|
3
3
|
<div class="ct-search-list" :style="{'height': pageHeight? pageHeight:'100%','width':searchWidth?searchWidth+'px':'100%'}" >
|
|
4
4
|
<ct-searchscreen ref="screen" :api="searchConditionApi" :key="reloadKeyScreen"
|
|
5
|
-
@loaded="screenLoaded" :screenPara="screenPara" :prevParam="prevParam"
|
|
5
|
+
@loaded="screenLoaded" :screenPara="screenPara" :prevParam="prevParam" @resetSearch="resetSearch()"
|
|
6
6
|
:categoryLoaded="loaded.categoryLoaded" @search="search()" @saveShortcut="saveShortcut"
|
|
7
7
|
@showTitle="showTitleScreenHandler"></ct-searchscreen>
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
@loaded="tableLoaded" :documentWidth="documentWidth" :flagPopupSearchlist="flagPopupSearchlist" :screenTop="screenTop" :flagAppMode="flagAppMode"
|
|
11
11
|
@toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable" @searchComplate="searchComplate"
|
|
12
12
|
@rowClickHandle="rowClickHandle" @scrollHandle="scrollHandle" @refreshRowHandle="refreshRowHandle" @doClosePopoverHandle="doClosePopoverHandle"
|
|
13
|
-
@showTitle="showTitleHandler" @popupClickHandler="popupClickHandler"></ct-searchtable>
|
|
13
|
+
@showTitle="showTitleHandler" @popupClickHandler="popupClickHandler" @simpleRouterRefreshHandler="simpleRouterRefreshHandler"></ct-searchtable>
|
|
14
14
|
</div>
|
|
15
15
|
<div ref="sidebar" v-if="flagSideBar && flagSideBarOfData"
|
|
16
16
|
:style="{'height': pageHeight? pageHeight:'100%','width':sideBarWidth+'px',right:sideBarRight+'px'}"
|
|
@@ -167,6 +167,15 @@
|
|
|
167
167
|
this.$refs.table.searchComplate(this.$refs.screen.model,this.$refs.screen.model.defaultSearch);
|
|
168
168
|
}
|
|
169
169
|
},
|
|
170
|
+
resetSearch() {
|
|
171
|
+
if (this.$refs.table.model) {
|
|
172
|
+
this.$refs.table.model.sortData = [];
|
|
173
|
+
this.$refs.table.model.columns.forEach((v1) => {
|
|
174
|
+
v1.sortAction = "";
|
|
175
|
+
});
|
|
176
|
+
this.search();
|
|
177
|
+
}
|
|
178
|
+
},
|
|
170
179
|
searchComplate(index) {
|
|
171
180
|
this.pageDisabled=false;
|
|
172
181
|
if(this.flagSideBar && this.$refs.table.model.listData.length>0){
|
|
@@ -338,6 +347,10 @@
|
|
|
338
347
|
this.selectIndex=-1;
|
|
339
348
|
this.rowClickHandle();
|
|
340
349
|
},
|
|
350
|
+
simpleRouterRefreshHandler() {
|
|
351
|
+
this.selectIndex=-1;
|
|
352
|
+
this.rowClickHandle();
|
|
353
|
+
},
|
|
341
354
|
saveShortcut(){
|
|
342
355
|
this.$refs.table.getPage(1);
|
|
343
356
|
},
|
|
@@ -130,7 +130,9 @@ export default {
|
|
|
130
130
|
self.$refs.Tree.setCurrentKey(self.model.modeltree[0].code)
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
|
-
|
|
133
|
+
if (self.model.modeltree&&self.model.modeltree[0]) {
|
|
134
|
+
self.handleNodeClick(self.model.modeltree[0],true);
|
|
135
|
+
}
|
|
134
136
|
|
|
135
137
|
}
|
|
136
138
|
|
|
@@ -88,7 +88,7 @@ const formData = {
|
|
|
88
88
|
else {
|
|
89
89
|
if (this.excuteData !== null) {
|
|
90
90
|
this._excuteListData = this.excuteData.filter((v) => {
|
|
91
|
-
return typeof v.is !== undefined && v.is === 'ct-form-list-table';
|
|
91
|
+
return typeof v.is !== undefined && (v.is === 'ct-form-list-table'||v.is === 'ct-repeat');
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -99,7 +99,7 @@ const formData = {
|
|
|
99
99
|
if (fields !== null) {
|
|
100
100
|
this.excuteData=fields;
|
|
101
101
|
this._excuteListData = fields.filter((v) => {
|
|
102
|
-
return typeof v.is !== undefined && v.is === 'ct-form-list-table';
|
|
102
|
+
return typeof v.is !== undefined && (v.is === 'ct-form-list-table'||v.is === 'ct-repeat');
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
},
|
|
@@ -34,6 +34,7 @@ const Detail = function (source, para, callBack) {
|
|
|
34
34
|
_searchConditionApiTags1: null,
|
|
35
35
|
_searchDataApiTags1: null,
|
|
36
36
|
_paramDataTags1: null,
|
|
37
|
+
_appIDTags1: null,
|
|
37
38
|
_operationApiRouter: null,
|
|
38
39
|
_operationList: null,
|
|
39
40
|
_operationRouters: [],
|
|
@@ -440,6 +441,18 @@ const Detail = function (source, para, callBack) {
|
|
|
440
441
|
rtn._paramDataTags1 = {};
|
|
441
442
|
if (v) rtn._paramDataTags1 = JSON.parse(v);
|
|
442
443
|
},
|
|
444
|
+
get appIDTags1() {
|
|
445
|
+
if (rtn._searchConditionApiTags1 !== null) {
|
|
446
|
+
return rtn._appIDTags1;
|
|
447
|
+
}
|
|
448
|
+
else if (rtn.tags1 && rtn.tags1.length > 0) {
|
|
449
|
+
rtn._appIDTags1 = rtn.tags1[0].appID;
|
|
450
|
+
return rtn._appIDTags1;
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
set appIDTags1(v) {
|
|
454
|
+
rtn._appIDTags1 = v;
|
|
455
|
+
},
|
|
443
456
|
get tags2() {
|
|
444
457
|
return data.tags2;
|
|
445
458
|
},
|
|
@@ -292,7 +292,7 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
292
292
|
else {
|
|
293
293
|
if (this.excuteData !== null) {
|
|
294
294
|
this._excuteListData = this.excuteData.filter((v) => {
|
|
295
|
-
return typeof v.is !== undefined && v.is === 'ct-form-list-table';
|
|
295
|
+
return typeof v.is !== undefined && (v.is === 'ct-form-list-table'||v.is === 'ct-repeat');
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
298
|
}
|
|
@@ -303,7 +303,7 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
303
303
|
if (fields !== null) {
|
|
304
304
|
this.excuteData=fields;
|
|
305
305
|
this._excuteListData = fields.filter((v) => {
|
|
306
|
-
return typeof v.is !== undefined && v.is === 'ct-form-list-table';
|
|
306
|
+
return typeof v.is !== undefined && (v.is === 'ct-form-list-table'||v.is === 'ct-repeat');
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
309
|
},
|
|
@@ -10,6 +10,8 @@ const Repeat = function (source, master, formobj) {
|
|
|
10
10
|
form: null,
|
|
11
11
|
refField: Object,
|
|
12
12
|
refFieldsLabel: Object,
|
|
13
|
+
currentRowIndex: null,
|
|
14
|
+
currentEventField: null,
|
|
13
15
|
get id() {
|
|
14
16
|
return source.name;
|
|
15
17
|
},
|
|
@@ -77,7 +79,7 @@ const Repeat = function (source, master, formobj) {
|
|
|
77
79
|
}
|
|
78
80
|
else {
|
|
79
81
|
if (master.maxValue1) {
|
|
80
|
-
t = t + "(" + this.tableData.length + "/" + master.maxValue1 + ")";
|
|
82
|
+
t = t + "(" + this.tableData.filter((v) => {return v.deleted !== true;}).length + "/" + master.maxValue1 + ")";
|
|
81
83
|
}
|
|
82
84
|
}
|
|
83
85
|
return t;
|
|
@@ -151,14 +153,16 @@ const Repeat = function (source, master, formobj) {
|
|
|
151
153
|
else {
|
|
152
154
|
this._rows = [];
|
|
153
155
|
//遍历每一行
|
|
154
|
-
source.rows.forEach((r) => {
|
|
155
|
-
var
|
|
156
|
+
source.rows.forEach((r, i) => {
|
|
157
|
+
var gid = rtn.guid();
|
|
158
|
+
r.$sourceIndex = gid;
|
|
159
|
+
var row = rtn.initRow(r, i);
|
|
156
160
|
this._rows.push(row);
|
|
157
161
|
});
|
|
158
162
|
return this._rows;
|
|
159
163
|
}
|
|
160
164
|
},
|
|
161
|
-
initRow(r) {
|
|
165
|
+
initRow(r, index) {
|
|
162
166
|
var row = {
|
|
163
167
|
field: [],
|
|
164
168
|
get delete() {//删除权限
|
|
@@ -178,11 +182,11 @@ const Repeat = function (source, master, formobj) {
|
|
|
178
182
|
r.flagDeleted = false;
|
|
179
183
|
}
|
|
180
184
|
},
|
|
181
|
-
get
|
|
182
|
-
return
|
|
185
|
+
get $sourceIndex() {
|
|
186
|
+
return r.$sourceIndex||"";
|
|
183
187
|
},
|
|
184
|
-
set
|
|
185
|
-
r
|
|
188
|
+
set $sourceIndex(v) {
|
|
189
|
+
r.$sourceIndex = v;
|
|
186
190
|
},
|
|
187
191
|
};
|
|
188
192
|
//遍历每一列
|
|
@@ -192,7 +196,7 @@ const Repeat = function (source, master, formobj) {
|
|
|
192
196
|
//let value = source.fields[key];
|
|
193
197
|
value.onChanged = value.onChange ? value.onChange : source.rows[0].columns[rowIndex].onChanged;//事件使用第一条的
|
|
194
198
|
value.onBlur = value.onBlur ? value.onBlur : source.rows[0].columns[rowIndex].onBlur;//事件使用第一条的
|
|
195
|
-
|
|
199
|
+
|
|
196
200
|
let showLabel = true;
|
|
197
201
|
if (typeof master.spanCols !== "undefined") {
|
|
198
202
|
source.colSpan = master.spanCols;
|
|
@@ -200,16 +204,19 @@ const Repeat = function (source, master, formobj) {
|
|
|
200
204
|
else {
|
|
201
205
|
source.colSpan = formobj.colSpan;
|
|
202
206
|
}
|
|
203
|
-
let item = LibFunction.GetControl(value,
|
|
204
|
-
item.locked=!r.rightEdit;
|
|
207
|
+
let item = LibFunction.GetControl(value, formobj, showLabel, false);
|
|
205
208
|
if (item instanceof Object) {
|
|
206
209
|
item.form = rtn.form;
|
|
210
|
+
item.rowKey=Math.random();
|
|
207
211
|
row.field.push(item);
|
|
208
212
|
}
|
|
213
|
+
//rtn.allRequiredHandle(index);
|
|
214
|
+
rowIndex++;
|
|
209
215
|
});
|
|
210
216
|
//}
|
|
211
217
|
return row;
|
|
212
218
|
},
|
|
219
|
+
currentRow: null,
|
|
213
220
|
_tableData: undefined,
|
|
214
221
|
get tableData() {
|
|
215
222
|
if (this._tableData) {
|
|
@@ -225,28 +232,128 @@ const Repeat = function (source, master, formobj) {
|
|
|
225
232
|
}
|
|
226
233
|
else {
|
|
227
234
|
let newRow = this.getCloneRowData(0)
|
|
228
|
-
this.
|
|
229
|
-
this.addSourceRow();
|
|
235
|
+
this._tableData.push(newRow);
|
|
236
|
+
this.addSourceRow(newRow.$sourceIndex);
|
|
230
237
|
}
|
|
231
238
|
return this._tableData;
|
|
232
239
|
}
|
|
233
240
|
},
|
|
234
|
-
addSourceRow() {
|
|
241
|
+
addSourceRow($sourceIndex) {
|
|
235
242
|
let sourceRow = JSON.parse(JSON.stringify(source.rows[0]));
|
|
243
|
+
sourceRow.$sourceIndex = $sourceIndex;
|
|
236
244
|
source.rows.push(sourceRow);
|
|
237
|
-
let iRow = this.initRow(sourceRow);
|
|
245
|
+
let iRow = this.initRow(sourceRow, rtn.tableData.length - 1);
|
|
238
246
|
iRow.isNewFlag = true;
|
|
239
|
-
iRow
|
|
247
|
+
iRow.$sourceIndex = $sourceIndex;
|
|
240
248
|
rtn._rows.push(iRow);
|
|
241
249
|
},
|
|
242
250
|
getCloneRowData(index) {
|
|
243
251
|
let sourceRow = source.rows[index];
|
|
244
|
-
let rowData = rtn.initRow(JSON.parse(JSON.stringify(sourceRow)));
|
|
252
|
+
let rowData = rtn.initRow(JSON.parse(JSON.stringify(sourceRow)), rtn.tableData.length - 1);
|
|
245
253
|
rowData.isNewFlag = true;
|
|
246
|
-
rowData
|
|
254
|
+
rowData.$sourceIndex = this.guid();
|
|
247
255
|
return rowData;
|
|
248
256
|
},
|
|
249
|
-
|
|
257
|
+
getCurrentRowData(index) {
|
|
258
|
+
let row = {};
|
|
259
|
+
let i = rtn.tableData.findIndex(v => v.$sourceIndex ===index);
|
|
260
|
+
let rowData =rtn.tableData[i];
|
|
261
|
+
for (let j = 0; j < rowData.field.length; j++) {//遍历每一列
|
|
262
|
+
row[rowData.field[j].id] = rowData.field[j];
|
|
263
|
+
}
|
|
264
|
+
row.$sourceIndex = rowData.$sourceIndex+"";
|
|
265
|
+
return row;
|
|
266
|
+
},
|
|
267
|
+
//隐藏关联组件
|
|
268
|
+
hiddenHandle(item, index, update) {
|
|
269
|
+
if (item.id) {
|
|
270
|
+
let sign = false;
|
|
271
|
+
let field = null;
|
|
272
|
+
if (rtn.tableData.length > 0) {
|
|
273
|
+
for (var i in rtn.tableData[index].field) {
|
|
274
|
+
if (rtn.tableData[index].field[i].hiddenId === item.id) {
|
|
275
|
+
field = rtn.tableData[index].field[i];
|
|
276
|
+
if (field) {
|
|
277
|
+
let hiddenValueArr = field.hiddenValue.split(',');
|
|
278
|
+
if (hiddenValueArr.indexOf(item.code1) > -1) {
|
|
279
|
+
field.show = false;
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
field.show = true;
|
|
283
|
+
}
|
|
284
|
+
sign = true;
|
|
285
|
+
|
|
286
|
+
if (update && rtn.self && sign) {
|
|
287
|
+
rtn.self.$forceUpdate();
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
//验证必填关联组件
|
|
298
|
+
validMrf(item,index) {
|
|
299
|
+
let field = rtn.tableData[index].field[item.mrf];
|
|
300
|
+
|
|
301
|
+
if (field && field.self) {
|
|
302
|
+
if (field.type === Enum.ControlType.List) {
|
|
303
|
+
//f.required = '0';
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
field.self.validExcute();
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
allRequiredHandle(index) {
|
|
311
|
+
if (rtn.tableData.length > 0) {
|
|
312
|
+
rtn.tableData[index].field.forEach(v => {
|
|
313
|
+
rtn.requiredHandle(v, index, null, false);
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
},
|
|
318
|
+
//处理必填关联组件
|
|
319
|
+
requiredHandle(item, index, update, doMrf) {
|
|
320
|
+
if (item.id) {
|
|
321
|
+
let field = null;
|
|
322
|
+
let value = rtn.getFieldValue(item);
|
|
323
|
+
if (rtn.tableData.length > 0) {
|
|
324
|
+
for (var i in rtn.tableData[index].field) {
|
|
325
|
+
if (rtn.tableData[index].field[i].mrf === item.id) {
|
|
326
|
+
field = rtn.tableData[index].field[i];
|
|
327
|
+
|
|
328
|
+
if (field) {
|
|
329
|
+
let hiddenValueArr = field.mrv.split(',');
|
|
330
|
+
if (hiddenValueArr.indexOf(value) > -1) {
|
|
331
|
+
field.required = true;
|
|
332
|
+
}
|
|
333
|
+
else {
|
|
334
|
+
field.required = false;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
if (update && rtn.self) {
|
|
338
|
+
rtn.self.$forceUpdate();
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
if (doMrf !== false) {
|
|
345
|
+
rtn.validMrf(item,index);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
getFieldValue(field) {
|
|
351
|
+
if (field.type == Enum.ControlType.Switch
|
|
352
|
+
|| field.type == Enum.ControlType.CheckBox) {
|
|
353
|
+
return field.value ? '1' : '0';
|
|
354
|
+
}
|
|
355
|
+
return field.value;
|
|
356
|
+
},
|
|
250
357
|
get formListChange() {
|
|
251
358
|
return master.onChanged;
|
|
252
359
|
},
|
|
@@ -273,7 +380,7 @@ const Repeat = function (source, master, formobj) {
|
|
|
273
380
|
S4() {
|
|
274
381
|
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
|
|
275
382
|
}
|
|
276
|
-
|
|
383
|
+
|
|
277
384
|
};
|
|
278
385
|
return rtn;
|
|
279
386
|
};
|
|
@@ -329,10 +329,10 @@ const SearchScreen = function (source, callBack, screenPara, prevParam) {
|
|
|
329
329
|
this.screen.forEach((v) => {
|
|
330
330
|
if (v.type !== Enum.ControlType.Hidden) {
|
|
331
331
|
var tempObj = common.deepClone(v.searchObj);
|
|
332
|
+
if (that.isHandle(v.type)) {
|
|
333
|
+
tempObj.searchValue1 = that.getNewSearchValue(tempObj);
|
|
334
|
+
}
|
|
332
335
|
if ((tempObj.searchValue1 && tempObj.searchValue1 !== '') || (tempObj.searchValue2 && tempObj.searchValue2 !== '')) {
|
|
333
|
-
if (that.isHandle(v.type)) {
|
|
334
|
-
tempObj.searchValue1 = that.getNewSearchValue(tempObj);
|
|
335
|
-
}
|
|
336
336
|
rtn.fields.push(tempObj);
|
|
337
337
|
}
|
|
338
338
|
}
|
|
@@ -340,10 +340,10 @@ const SearchScreen = function (source, callBack, screenPara, prevParam) {
|
|
|
340
340
|
this.highScreen.forEach((v) => {
|
|
341
341
|
if (v.type !== Enum.ControlType.Hidden) {
|
|
342
342
|
var tempObj = common.deepClone(v.searchObj);
|
|
343
|
+
if (that.isHandle(v.type)) {
|
|
344
|
+
tempObj.searchValue1 = that.getNewSearchValue(tempObj);
|
|
345
|
+
}
|
|
343
346
|
if ((tempObj.searchValue1 && tempObj.searchValue1 !== '') || (tempObj.searchValue2 && tempObj.searchValue2 !== '')) {
|
|
344
|
-
if (that.isHandle(v.type)) {
|
|
345
|
-
tempObj.searchValue1 = that.getNewSearchValue(tempObj);
|
|
346
|
-
}
|
|
347
347
|
rtn.fields.push(tempObj);
|
|
348
348
|
}
|
|
349
349
|
}
|
|
@@ -816,7 +816,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
816
816
|
if (equalNum === rtn.rowMergedColumns.length) {
|
|
817
817
|
row.$rowspan = 0;
|
|
818
818
|
rtn._lastRowspan.$rowspan++;
|
|
819
|
-
if(rtn._lastRowspan.$rowsMerged==undefined){
|
|
819
|
+
if(rtn._lastRowspan.$rowsMerged==undefined || rtn._lastRowspan.$rowsMerged==''){
|
|
820
820
|
rtn._lastRowspan.$rowsMerged=[];
|
|
821
821
|
if(rtn._lastRowIndex>-1){
|
|
822
822
|
rtn._lastRowspan.$rowsMerged.push(rtn._lastRowIndex);
|
|
@@ -75,11 +75,16 @@ export default {
|
|
|
75
75
|
this.percentage = data.percentage;
|
|
76
76
|
if (data.flagFinished) {
|
|
77
77
|
if (this.progressType == 'export' && data.content) {
|
|
78
|
-
if
|
|
79
|
-
|
|
78
|
+
if(data.content.indexOf(".zip") > -1){
|
|
79
|
+
window.location.href = encodeURI(data.content);
|
|
80
80
|
}
|
|
81
|
-
else
|
|
82
|
-
|
|
81
|
+
else{
|
|
82
|
+
if (data.content.indexOf("?") > -1) {
|
|
83
|
+
self.downloadUrl = data.content + "&" + Math.random();
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
self.downloadUrl = data.content + "?" + Math.random();
|
|
87
|
+
}
|
|
83
88
|
}
|
|
84
89
|
// document.body.addEventListener('click', function() {
|
|
85
90
|
// window.open(data.content, "_blank");
|
package/src/main.js
CHANGED
|
@@ -17,11 +17,11 @@ Vue.use(centaline, {
|
|
|
17
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
|
-
// baseUrl: "http://10.25.10.
|
|
20
|
+
// baseUrl: "http://10.25.10.63:9999/service-api/v1/form/router",
|
|
21
21
|
// baseUrl: "http://10.25.10.67:8080/",
|
|
22
22
|
// baseUrl: "http://10.88.22.42:9999/service-api/v1/form/router",
|
|
23
23
|
// baseUrl: "http://10.88.22.69:8080/api/",
|
|
24
|
-
// baseUrl: "http://10.88.22.
|
|
24
|
+
// baseUrl: "http://10.88.22.39:8080/",
|
|
25
25
|
// baseUrl: "http://10.58.2.108:8080/",
|
|
26
26
|
// baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
27
27
|
// baseUrl: "http://tjcpuat.centaline.com.cn:9090/",
|
|
@@ -56,16 +56,16 @@ Vue.use(centaline, {
|
|
|
56
56
|
// 获取请求头
|
|
57
57
|
getRequestHeaders: function () {
|
|
58
58
|
return {
|
|
59
|
-
oldToken: '
|
|
59
|
+
oldToken: 'f328eca3-7e3d-41ef-beff-5533e83a8bb9',
|
|
60
60
|
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQRO_iOiv5s1570zn-NBwiIuBIoUIkkUCIuxMEdPRMMRq95s1dzOsgWmHIccikIFr0gKQsMJYCURKxKdKYlHr-BH7UNz26yCFkByg7Aiw2A-tYwLDtEubgUibRiHo9i1aRRy-dtdSIab-8gdNKvcA618uu3v5x7rRMm3YkOZAfR6BtAWp_3LQHBNI8KHbkqlHi8QQAAP__.RrBgBqaFlp478oO3g5k_EEtjPt_o8qpJBkzgSP78Wa4',
|
|
61
|
-
authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-
|
|
61
|
+
authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVbyZ-2108V20nCICIMthQqRRAIh7k4Q0NEzxSumeXOHec3QQnKdoDhojL0ySIkNdgM7DNE5ERRrCm70H_DHfBmlJM_S9th5jkiWNDoZHUaykYbU6xgSNFCuZ2il9cIKZS03MO2XtzDSqpdY53LZlds_4k7LtN0eFVUjWGI1B49UNOOWW5BE5my4lpoVPJ4AAAD__w.OX5oLp238UuHYjqOl2oF0wSleZV7Y500kQSjeRpTOIw"}',
|
|
62
62
|
|
|
63
63
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
64
64
|
EstateInfo: '{"estateId":"201806071109550C867184E8BCA56EC3","estateName":"C%E5%BE%A1%E6%9E%97%E5%B1%B1%E6%99%AF%E6%A5%BC"}',
|
|
65
65
|
estateId: '201806071109550C867184E8BCA56EC3',
|
|
66
66
|
|
|
67
|
-
// authObject: '{"currentEstate":{
|
|
68
|
-
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.
|
|
67
|
+
// authObject: '{"currentEstate":{},"platform":1,"osVersion":"","clientVersion":"","machineCode":"470cac848b892484b949c6135dff97d6","token":"","random":"IVMfRJ","time":1689822719042,"sign":"19a04c54292bd44dfa5187983e27c530"}',
|
|
68
|
+
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6Ijc5OTlkYWY4LTAzN2ItNDMyMi1iMTRmLTA1OGU4OTgxMzk3OCJ9.6ltiN_svSpuTIi45IHktKTVZLpP2Y1w3oJsjPGFKaNaZ51XDvhhqkEe_0GhnNsJWLxQc4FX4Lpfhgne0SmJjHA',
|
|
69
69
|
};
|
|
70
70
|
},
|
|
71
71
|
// 请求完成事件,可判断是否登录过期执行响应操作
|