centaline-data-driven 1.3.33 → 1.3.36
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/src/Form.vue +3 -7
- package/src/centaline/api/index.js +9 -2
- package/src/centaline/common/index.js +15 -6
- package/src/centaline/dialogList/src/dialog.vue +1 -1
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +36 -10
- package/src/centaline/dynamicForm/src/dynamicForm.vue +70 -6
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +35 -18
- package/src/centaline/dynamicL/src/dynamicL.vue +15 -2
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchList.vue +14 -5
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchListTable.vue +1 -3
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +70 -43
- package/src/centaline/dynamicT/src/dynamicT.vue +4 -3
- package/src/centaline/loader/src/ctl/Detail.js +39 -2
- package/src/centaline/loader/src/ctl/Form.js +5 -5
- package/src/centaline/loader/src/ctl/FormList.js +26 -20
- package/src/centaline/loader/src/ctl/SearchScreen.js +33 -15
- package/src/centaline/loader/src/ctl/SearchTable.js +5 -7
- package/src/centaline/progress/src/progress.vue +15 -4
- package/src/centaline/validate/index.js +4 -2
- package/src/main.js +5 -5
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
@@ -908,9 +908,36 @@ export default {
|
|
|
908
908
|
};
|
|
909
909
|
self.$common.openDialog(dialogOption);
|
|
910
910
|
}
|
|
911
|
-
else if (field.isExport) {
|
|
911
|
+
else if (field.isExport || field.flagAsync) {
|
|
912
912
|
if(field.flagAsync){
|
|
913
|
-
|
|
913
|
+
field.doAction(submitData, (res) => {
|
|
914
|
+
if(res.content && res.content.action){
|
|
915
|
+
var dialogOption = {
|
|
916
|
+
title: field.pageTitle || field.label,
|
|
917
|
+
content: [{
|
|
918
|
+
component: 'ct-progress',
|
|
919
|
+
attrs: {
|
|
920
|
+
progressAction: res.content.action,
|
|
921
|
+
progressKey: res.content.key,
|
|
922
|
+
progressType:'import',
|
|
923
|
+
width: '350px',
|
|
924
|
+
height: '165px'
|
|
925
|
+
},
|
|
926
|
+
on: {
|
|
927
|
+
finished() {
|
|
928
|
+
self.$common.closeDialog(dialogOption.dialog);
|
|
929
|
+
self.getPage(1);
|
|
930
|
+
},
|
|
931
|
+
error(data) {
|
|
932
|
+
self.$common.closeDialog(dialogOption.dialog);
|
|
933
|
+
self.$message.warning(data.rtnMsg);
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
}]
|
|
937
|
+
};
|
|
938
|
+
self.$common.openDialog(dialogOption);
|
|
939
|
+
}
|
|
940
|
+
});
|
|
914
941
|
}
|
|
915
942
|
else{
|
|
916
943
|
if(field.action.indexOf("http://")===0 || field.action.indexOf("https://")===0){
|
|
@@ -952,42 +979,40 @@ export default {
|
|
|
952
979
|
submit(ev) {
|
|
953
980
|
if (ev.responseData.notification == 24) {
|
|
954
981
|
//更新列
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
982
|
+
self.model.selectIndex=0;
|
|
983
|
+
if (self.currentRow !== null) {
|
|
984
|
+
for (var i = 0; i < self.currentRow.children.length; i++) {
|
|
985
|
+
self.currentRow.children[i].classList.remove("select");
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
if (typeof self.$refs.tableParent !== "undefined") {
|
|
989
|
+
self.$refs.tableParent.scrollTop = 0;
|
|
990
|
+
self.$refs.tableParent.scrollLeft = 0;
|
|
991
|
+
self.scrollTop = 0;
|
|
992
|
+
self.scrollLeft = 0;
|
|
993
|
+
}
|
|
994
|
+
self.$forceUpdate();
|
|
995
|
+
self.$nextTick(() => {
|
|
996
|
+
if (
|
|
997
|
+
self.$refs.tableParent.scrollHeight <=
|
|
998
|
+
self.$refs.tableParent.offsetHeight
|
|
999
|
+
) {
|
|
1000
|
+
self.tableLoading = true;
|
|
1001
|
+
self.model.nextPage(next);
|
|
1002
|
+
} else {
|
|
1003
|
+
self.tableLoading = false;
|
|
1004
|
+
self.rowColorChange();
|
|
1005
|
+
self.resetScroll();
|
|
1006
|
+
self.calculatingRowHeight();
|
|
1007
|
+
self.getScrollAttr();
|
|
960
1008
|
}
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
self.$refs.tableParent.scrollLeft = 0;
|
|
964
|
-
self.scrollTop = 0;
|
|
965
|
-
self.scrollLeft = 0;
|
|
966
|
-
}
|
|
967
|
-
self.$forceUpdate();
|
|
968
|
-
self.$nextTick(() => {
|
|
969
|
-
if (
|
|
970
|
-
self.$refs.tableParent.scrollHeight <=
|
|
971
|
-
self.$refs.tableParent.offsetHeight
|
|
972
|
-
) {
|
|
973
|
-
self.tableLoading = true;
|
|
974
|
-
self.model.nextPage(next);
|
|
975
|
-
} else {
|
|
976
|
-
self.tableLoading = false;
|
|
977
|
-
self.rowColorChange();
|
|
978
|
-
self.resetScroll();
|
|
979
|
-
self.calculatingRowHeight();
|
|
980
|
-
self.getScrollAttr();
|
|
981
|
-
}
|
|
982
|
-
self.setfixedSize();
|
|
983
|
-
});
|
|
1009
|
+
self.setfixedSize();
|
|
1010
|
+
});
|
|
984
1011
|
self.loaderObj.SearchTable(self.api,self.load,self.model.searchModel,true);
|
|
985
1012
|
self.$common.closeDialog(dialogOption.dialog);
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
!field.flagAddRowAfterAction
|
|
990
|
-
) {
|
|
1013
|
+
}
|
|
1014
|
+
else {
|
|
1015
|
+
if (!field.flagFreshCurrentRow &&!field.flagAddRowAfterAction) {
|
|
991
1016
|
self.model.doAction(ev);
|
|
992
1017
|
}
|
|
993
1018
|
self.$forceUpdate();
|
|
@@ -1063,10 +1088,7 @@ export default {
|
|
|
1063
1088
|
self.operationLoading = true;
|
|
1064
1089
|
field.doAction(submitData, (data) => {
|
|
1065
1090
|
self.operationLoading = false;
|
|
1066
|
-
if (
|
|
1067
|
-
!field.flagFreshCurrentRow &&
|
|
1068
|
-
!field.flagAddRowAfterAction
|
|
1069
|
-
) {
|
|
1091
|
+
if (!field.flagFreshCurrentRow && !field.flagAddRowAfterAction) {
|
|
1070
1092
|
self.model.doAction({ responseData: data });
|
|
1071
1093
|
self.$emit("refreshRowHandle");
|
|
1072
1094
|
}
|
|
@@ -1413,27 +1435,32 @@ export default {
|
|
|
1413
1435
|
var self=this;
|
|
1414
1436
|
if(field.flagAsync){
|
|
1415
1437
|
if(res.content && res.content.action){
|
|
1438
|
+
console.log(field.pageTitle || field.label)
|
|
1416
1439
|
var dialogOption = {
|
|
1417
|
-
title:
|
|
1440
|
+
title: field.pageTitle || field.label,
|
|
1418
1441
|
content: [{
|
|
1419
1442
|
component: 'ct-progress',
|
|
1420
1443
|
attrs: {
|
|
1421
1444
|
progressAction: res.content.action,
|
|
1422
1445
|
progressKey: res.content.key,
|
|
1423
1446
|
progressType:'import',
|
|
1424
|
-
width: '
|
|
1425
|
-
height: '
|
|
1447
|
+
width: '350px',
|
|
1448
|
+
height: '165px'
|
|
1426
1449
|
},
|
|
1427
1450
|
on: {
|
|
1428
1451
|
finished() {
|
|
1429
1452
|
self.$common.closeDialog(dialogOption.dialog);
|
|
1430
1453
|
self.getPage(1);
|
|
1454
|
+
},
|
|
1455
|
+
error(data) {
|
|
1456
|
+
self.$common.closeDialog(dialogOption.dialog);
|
|
1457
|
+
self.$message.warning(data.rtnMsg);
|
|
1431
1458
|
}
|
|
1432
1459
|
}
|
|
1433
1460
|
}]
|
|
1434
1461
|
};
|
|
1435
1462
|
self.$common.openDialog(dialogOption);
|
|
1436
|
-
|
|
1463
|
+
}
|
|
1437
1464
|
}
|
|
1438
1465
|
else{
|
|
1439
1466
|
if(field && field.changeCallBackFunName){
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="field-top">
|
|
3
|
-
<div style="width:100%;display:block
|
|
3
|
+
<div style="width:100%;" :style="{ display: (model.inputType === 'textarea' ? 'block' : 'flex') }">
|
|
4
4
|
<div v-if="model !== null" class="ct-text ct-flex-div max-flex-div" style="flex:1;"
|
|
5
5
|
:class="[model.showLabel?'el-input-group el-input-group--prepend':'',!valid?'inputError':'',model.attrs.size?'ct-font-size-'+model.attrs.size:'']"
|
|
6
6
|
@mouseover="mouseOverHandle" @mouseout="mouseOutHandle">
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<ctQuickInputSos v-if="!model.lock && model.paramName" class="ct-flex-div-span" :pn="model.paramName" :action="api" :flagNew="true" @click="quickSelect"></ctQuickInputSos>
|
|
25
25
|
</div>
|
|
26
26
|
<transition name="el-fade-in" class="ct-flex-div-span">
|
|
27
|
-
|
|
27
|
+
<span v-show="!valid" class="errorMessage" :class="{ 'errorMessageMarginLeft': model.inputType === 'textarea' }">
|
|
28
28
|
{{validMessage}}
|
|
29
29
|
</span>
|
|
30
30
|
</transition>
|
|
@@ -101,7 +101,8 @@
|
|
|
101
101
|
this.search();
|
|
102
102
|
},
|
|
103
103
|
},
|
|
104
|
-
}
|
|
104
|
+
}
|
|
105
|
+
</script>
|
|
105
106
|
<style scoped>
|
|
106
107
|
.errorMessageMarginLeft {
|
|
107
108
|
margin-left: 108px;
|
|
@@ -19,6 +19,7 @@ const Detail = function (source, para, callBack) {
|
|
|
19
19
|
_actionRoutersSimple: null,//页面上的动作行为
|
|
20
20
|
_contactApiRouter: null,//查看联系人
|
|
21
21
|
_commissionApiRouter: null,//查看角色
|
|
22
|
+
_actionRouterFavorite: null,//收藏动作行为
|
|
22
23
|
detailHeight: 750,
|
|
23
24
|
midlWidth: 1200,
|
|
24
25
|
activeIndex1: '0',
|
|
@@ -226,14 +227,30 @@ const Detail = function (source, para, callBack) {
|
|
|
226
227
|
return rtn._actionRoutersShow;
|
|
227
228
|
},
|
|
228
229
|
get actionRouterPrice() {
|
|
229
|
-
let routerPrice=null;
|
|
230
|
+
let routerPrice = null;
|
|
230
231
|
if (rtn.actionRoutersAll) {
|
|
231
232
|
rtn.actionRoutersAll.forEach((v, i) => {
|
|
232
|
-
if(v.id=='PropertyPriceLog') routerPrice=v;
|
|
233
|
+
if (v.id == 'PropertyPriceLog') routerPrice = v;
|
|
233
234
|
});
|
|
234
235
|
}
|
|
235
236
|
return routerPrice;
|
|
236
237
|
},
|
|
238
|
+
get actionRouterFavorite() {
|
|
239
|
+
if (rtn._actionRouterFavorite !== null) {
|
|
240
|
+
return rtn._actionRouterFavorite;
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
if (data.favoriteApiRouter) {
|
|
244
|
+
if (data.favoriteApiRouter.length > 0) {
|
|
245
|
+
var router = Router(data.favoriteApiRouter[0]);
|
|
246
|
+
router.is = "ct-btn";
|
|
247
|
+
router.attrs = { size: "mini" }
|
|
248
|
+
rtn._actionRouterFavorite = router;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
return rtn._actionRouterFavorite;
|
|
252
|
+
}
|
|
253
|
+
},
|
|
237
254
|
get actionRouters() {
|
|
238
255
|
if (rtn._actionRouters !== null) {
|
|
239
256
|
return rtn._actionRouters;
|
|
@@ -503,6 +520,26 @@ const Detail = function (source, para, callBack) {
|
|
|
503
520
|
}
|
|
504
521
|
);
|
|
505
522
|
},
|
|
523
|
+
loadFavorite() {
|
|
524
|
+
var action;
|
|
525
|
+
if (data.favoriteApiRouter.length > 1) {
|
|
526
|
+
var router = Router(data.favoriteApiRouter[1]);
|
|
527
|
+
if (router) {
|
|
528
|
+
action = router.action;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
Vue.prototype.$api.postHandler(common.globalUri(), { action: action, para: para }).then(
|
|
532
|
+
function (response) {
|
|
533
|
+
if (response.rtnCode === Enum.ReturnCode.Successful) {
|
|
534
|
+
if (response.content) {
|
|
535
|
+
if (response.content.length > 0) {
|
|
536
|
+
rtn._actionRouterFavorite = Router(response.content[0]);
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
);
|
|
542
|
+
},
|
|
506
543
|
};
|
|
507
544
|
return rtn;
|
|
508
545
|
}
|
|
@@ -301,7 +301,7 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
301
301
|
//源数据
|
|
302
302
|
else {
|
|
303
303
|
if (rowNum === null && listData.currentRowIndex) {
|
|
304
|
-
|
|
304
|
+
rowNum = listData.currentRowIndex;
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
if (rowNum === 0 || (rowNum && fiedlId)) {
|
|
@@ -350,7 +350,7 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
350
350
|
|
|
351
351
|
//若该行正在编辑,则取编辑状态的。
|
|
352
352
|
if (data && data.listData && data.listData.currentRow.data && data.listData.currentRow.data[fiedlId]
|
|
353
|
-
&& data.listData.currentRow.data.$sourceIndex ===
|
|
353
|
+
&& data.listData.currentRow.data.$sourceIndex === data.listData.source.rows[rowNum].$sourceIndex && data.listData.currentRow.isSet) {
|
|
354
354
|
if(fiedlId=='deleted' || fiedlId=='flagDeleted'){
|
|
355
355
|
return data.listData.currentRow.data.deleted || false;
|
|
356
356
|
}
|
|
@@ -396,7 +396,8 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
396
396
|
}
|
|
397
397
|
|
|
398
398
|
//正在编辑的行
|
|
399
|
-
|
|
399
|
+
if (data.listData.currentRow.data && data.listData.currentRow.data[fiedlId]
|
|
400
|
+
&& data.listData.currentRow.data.$sourceIndex === data.listData.source.rows[rowNum].$sourceIndex) {
|
|
400
401
|
let currentField = data.listData.currentRow.data[fiedlId];
|
|
401
402
|
currentField.source[attrName] = value;
|
|
402
403
|
//校验自己
|
|
@@ -577,10 +578,9 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
577
578
|
data.field = data.listData.currentEventField;
|
|
578
579
|
}
|
|
579
580
|
rowNum = rowNum !== null ? rowNum : data.listData.currentRowIndex;
|
|
580
|
-
|
|
581
581
|
//若该行正在编辑,则取编辑状态的。
|
|
582
582
|
if (data && data.listData && data.listData.currentRow.data && data.listData.currentRow.data[fiedlId]
|
|
583
|
-
&& data.listData.currentRow.data.$sourceIndex === rowNum && data.listData.currentRow.isSet) {
|
|
583
|
+
&& data.listData.currentRow.data.$sourceIndex === data.listData.source.rows[rowNum].$sourceIndex && data.listData.currentRow.isSet) {
|
|
584
584
|
return data.listData.currentRow.data[fiedlId].source[attrName];
|
|
585
585
|
}
|
|
586
586
|
else if (data && data.field) {
|
|
@@ -136,8 +136,6 @@ const FormList = function (source, master) {
|
|
|
136
136
|
},
|
|
137
137
|
get deleted() {//是否已删除
|
|
138
138
|
return r.flagDeleted === true;
|
|
139
|
-
}, get deleted() {//是否已删除
|
|
140
|
-
return r.flagDeleted === true;
|
|
141
139
|
},
|
|
142
140
|
set deleted(v) {
|
|
143
141
|
if (v) {
|
|
@@ -146,13 +144,13 @@ const FormList = function (source, master) {
|
|
|
146
144
|
else {
|
|
147
145
|
r.flagDeleted = false;
|
|
148
146
|
}
|
|
149
|
-
},
|
|
147
|
+
},
|
|
148
|
+
get $sourceIndex() {//GID
|
|
150
149
|
return r.$sourceIndex||"";
|
|
151
150
|
},
|
|
152
151
|
set $sourceIndex(v) {//GID
|
|
153
152
|
return r.$sourceIndex=v;
|
|
154
|
-
}
|
|
155
|
-
,
|
|
153
|
+
},
|
|
156
154
|
};
|
|
157
155
|
//遍历每一列
|
|
158
156
|
let rowIndex = 0;
|
|
@@ -324,8 +322,9 @@ const FormList = function (source, master) {
|
|
|
324
322
|
}).catch(() => {
|
|
325
323
|
});
|
|
326
324
|
},
|
|
327
|
-
editRow(
|
|
325
|
+
editRow(sourceIndex, callback) {
|
|
328
326
|
var self = this;
|
|
327
|
+
let index = source.rows.findIndex(v => v.$sourceIndex === sourceIndex);
|
|
329
328
|
self.currentRowIndex=index;
|
|
330
329
|
var dialogOption = {
|
|
331
330
|
title: '修改',
|
|
@@ -351,19 +350,12 @@ const FormList = function (source, master) {
|
|
|
351
350
|
},
|
|
352
351
|
on: {
|
|
353
352
|
submit: function (ev) {
|
|
354
|
-
|
|
355
|
-
//var row = rtn.rows[index].field;
|
|
353
|
+
rtn.rows[rtn.rows.findIndex(v => v.$sourceIndex === sourceIndex)].edited=true;
|
|
356
354
|
var row = source.rows[index].columns;
|
|
357
355
|
let isRepeat = rtn.isDuplicated(rtn.fieldsToTableData(ev.formData.source.fields), index);
|
|
358
356
|
|
|
359
357
|
if (!isRepeat) {
|
|
360
358
|
for (let findex = 0; findex < row.length; findex++) {//循环所在行的列
|
|
361
|
-
//let field = row[findex];
|
|
362
|
-
//field.value = ev.formData.source.Fields[findex].code1;
|
|
363
|
-
//field.value1 = field.text = ev.formData.source.Fields[findex].v2;
|
|
364
|
-
|
|
365
|
-
//Vue.set(row[findex], 'value', ev.formData.source.Fields[findex].code1);
|
|
366
|
-
//Vue.set(row[findex], 'value1', ev.formData.source.Fields[findex].v2);
|
|
367
359
|
Vue.set(row[findex], 'code1', ev.formData.source.fields[findex].code1);
|
|
368
360
|
Vue.set(row[findex], 'name1', ev.formData.source.fields[findex].name1);
|
|
369
361
|
}
|
|
@@ -507,7 +499,7 @@ const FormList = function (source, master) {
|
|
|
507
499
|
});
|
|
508
500
|
}
|
|
509
501
|
},
|
|
510
|
-
insertOrUpdateRow(row) {
|
|
502
|
+
insertOrUpdateRow(row,flag) {
|
|
511
503
|
if (row) {
|
|
512
504
|
if(rtn.primaryKeys && rtn.primaryKeys.length>0){
|
|
513
505
|
let iRow = rtn.initRow(row);
|
|
@@ -543,6 +535,10 @@ const FormList = function (source, master) {
|
|
|
543
535
|
}
|
|
544
536
|
}
|
|
545
537
|
else{
|
|
538
|
+
if(flag && r.edited){
|
|
539
|
+
return;
|
|
540
|
+
}
|
|
541
|
+
|
|
546
542
|
let rowData = rtn.rowsItemToTableData(iRow)
|
|
547
543
|
iRow.$sourceIndex = r.$sourceIndex;
|
|
548
544
|
row.$sourceIndex = r.$sourceIndex;
|
|
@@ -551,11 +547,13 @@ const FormList = function (source, master) {
|
|
|
551
547
|
rowData.delete = iRow.delete;
|
|
552
548
|
source.rows.splice(i, 1,row);
|
|
553
549
|
rtn._rows.splice(i, 1,iRow);
|
|
554
|
-
rtn.tableData.
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
550
|
+
let tableDataIndex=rtn.tableData.findIndex(v => v.$sourceIndex === r.$sourceIndex);
|
|
551
|
+
if(tableDataIndex>-1){
|
|
552
|
+
rtn.tableData.splice(tableDataIndex, 1,rowData);
|
|
553
|
+
}
|
|
554
|
+
else{
|
|
555
|
+
rtn.tableData.push(rowData);
|
|
556
|
+
}
|
|
559
557
|
}
|
|
560
558
|
}
|
|
561
559
|
}
|
|
@@ -612,6 +610,14 @@ const FormList = function (source, master) {
|
|
|
612
610
|
},
|
|
613
611
|
S4() {
|
|
614
612
|
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
|
|
613
|
+
},
|
|
614
|
+
get selectRouter() {
|
|
615
|
+
if(source.selectRouter){
|
|
616
|
+
var button = Router(source.selectRouter);
|
|
617
|
+
button.is = "ct-btn";
|
|
618
|
+
return button;
|
|
619
|
+
}
|
|
620
|
+
return null;
|
|
615
621
|
}
|
|
616
622
|
};
|
|
617
623
|
return rtn;
|
|
@@ -148,8 +148,7 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
148
148
|
});
|
|
149
149
|
},
|
|
150
150
|
//如果是复选框则searchValue1格式为 1,2
|
|
151
|
-
get searchData() {
|
|
152
|
-
|
|
151
|
+
get searchData() {
|
|
153
152
|
let that=this;
|
|
154
153
|
var rtn = {
|
|
155
154
|
fields: []
|
|
@@ -157,19 +156,16 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
157
156
|
this.screen.forEach((v) => {
|
|
158
157
|
var tempObj = common.deepClone(v.searchObj);
|
|
159
158
|
if ((tempObj.searchValue1 && tempObj.searchValue1 !== '') || (tempObj.searchValue2 && tempObj.searchValue2 !== '')) {
|
|
160
|
-
if(that.isHandle(v.type))
|
|
161
|
-
{
|
|
159
|
+
if(that.isHandle(v.type)){
|
|
162
160
|
tempObj.searchValue1=that.getNewSearchValue(tempObj);
|
|
163
161
|
}
|
|
164
|
-
rtn.fields.push(tempObj);
|
|
165
|
-
|
|
162
|
+
rtn.fields.push(tempObj);
|
|
166
163
|
}
|
|
167
164
|
});
|
|
168
165
|
this.highScreen.forEach((v) => {
|
|
169
166
|
var tempObj = common.deepClone(v.searchObj);
|
|
170
167
|
if ((tempObj.searchValue1 && tempObj.searchValue1 !== '') || (tempObj.searchValue2 && tempObj.searchValue2 !== '')) {
|
|
171
|
-
if(that.isHandle(v.type))
|
|
172
|
-
{
|
|
168
|
+
if(that.isHandle(v.type)){
|
|
173
169
|
tempObj.searchValue1=that.getNewSearchValue(tempObj);
|
|
174
170
|
}
|
|
175
171
|
rtn.fields.push(tempObj);
|
|
@@ -177,6 +173,35 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
177
173
|
});
|
|
178
174
|
return rtn;
|
|
179
175
|
},
|
|
176
|
+
get searchDataOfHide() {
|
|
177
|
+
let that=this;
|
|
178
|
+
var rtn = {
|
|
179
|
+
fields: []
|
|
180
|
+
};
|
|
181
|
+
this.screen.forEach((v) => {
|
|
182
|
+
if(v.type===Enum.ControlType.Hidden){
|
|
183
|
+
var tempObj = common.deepClone(v.searchObj);
|
|
184
|
+
if ((tempObj.searchValue1 && tempObj.searchValue1 !== '') || (tempObj.searchValue2 && tempObj.searchValue2 !== '')) {
|
|
185
|
+
if(that.isHandle(v.type)){
|
|
186
|
+
tempObj.searchValue1=that.getNewSearchValue(tempObj);
|
|
187
|
+
}
|
|
188
|
+
rtn.fields.push(tempObj);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
this.highScreen.forEach((v) => {
|
|
193
|
+
if(v.type===Enum.ControlType.Hidden){
|
|
194
|
+
var tempObj = common.deepClone(v.searchObj);
|
|
195
|
+
if ((tempObj.searchValue1 && tempObj.searchValue1 !== '') || (tempObj.searchValue2 && tempObj.searchValue2 !== '')) {
|
|
196
|
+
if(that.isHandle(v.type)){
|
|
197
|
+
tempObj.searchValue1=that.getNewSearchValue(tempObj);
|
|
198
|
+
}
|
|
199
|
+
rtn.fields.push(tempObj);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
return rtn;
|
|
204
|
+
},
|
|
180
205
|
getNewSearchValue(tempObj)
|
|
181
206
|
{
|
|
182
207
|
let codeList=JSON.parse(tempObj.searchValue1);
|
|
@@ -264,13 +289,6 @@ const SearchScreen = function (source, callBack, screenPara) {
|
|
|
264
289
|
});
|
|
265
290
|
},
|
|
266
291
|
export(btn, submitData) {
|
|
267
|
-
//Axios.post(common.globalUri(), { action: btn.action, search: this.searchData }).then((response) => {
|
|
268
|
-
// var fileName = response.data.content.fieldName1;
|
|
269
|
-
// var fileContent = window.atob(response.data.content.code1);
|
|
270
|
-
// common.saveFile(fileName, fileContent);
|
|
271
|
-
//}).catch((ex) => {
|
|
272
|
-
// console.log(ex);
|
|
273
|
-
//});
|
|
274
292
|
Vue.prototype.$api.postHandler(common.globalUri(),
|
|
275
293
|
{
|
|
276
294
|
action: btn.action,
|
|
@@ -558,7 +558,11 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
558
558
|
var self = this;
|
|
559
559
|
var searchFields = {
|
|
560
560
|
fields: []
|
|
561
|
-
};
|
|
561
|
+
};
|
|
562
|
+
//this.searchModel ? this.searchModel.searchData : { fields: [] };
|
|
563
|
+
if(this.searchModel && this.searchModel.searchDataOfHide){
|
|
564
|
+
searchFields=this.searchModel.searchDataOfHide
|
|
565
|
+
}
|
|
562
566
|
var searchValue1 = router.flagAddRowAfterAction ? rtnData.responseData.content : rtn.listData[rtn.selectIndex][self.primaryKey];
|
|
563
567
|
if (self.primaryKey) {
|
|
564
568
|
searchFields.fields.push({
|
|
@@ -835,12 +839,6 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
835
839
|
}
|
|
836
840
|
});
|
|
837
841
|
},
|
|
838
|
-
export (btn, submitData) {
|
|
839
|
-
Vue.prototype.$api.postHandler(common.globalUri(), {
|
|
840
|
-
action: btn.action,
|
|
841
|
-
para: submitData
|
|
842
|
-
});
|
|
843
|
-
},
|
|
844
842
|
_scripts: null,
|
|
845
843
|
get scripts() {
|
|
846
844
|
if (rtn._scripts !== null) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="ct-progress">
|
|
3
3
|
<div style="padding: 5px;">
|
|
4
|
-
<el-progress
|
|
5
|
-
<span
|
|
4
|
+
<el-progress type="circle" :percentage="percentage"></el-progress>
|
|
5
|
+
<span class="progressMsg">{{ message }}</span>
|
|
6
6
|
</div>
|
|
7
7
|
</div>
|
|
8
8
|
</template>
|
|
@@ -50,8 +50,11 @@
|
|
|
50
50
|
else if(data.rtnMsg){
|
|
51
51
|
self.message = data.rtnMsg;
|
|
52
52
|
}
|
|
53
|
+
else if(response.rtnMsg){
|
|
54
|
+
self.message = response.rtnMsg;
|
|
55
|
+
}
|
|
53
56
|
}
|
|
54
|
-
if (response.rtnCode === 200) {
|
|
57
|
+
if (response.rtnCode === 200 && data.rtnCode === 200) {
|
|
55
58
|
this.percentage = data.percentage;
|
|
56
59
|
if (data.flagFinished) {
|
|
57
60
|
if(this.progressType=='export'){
|
|
@@ -64,7 +67,7 @@
|
|
|
64
67
|
}
|
|
65
68
|
}
|
|
66
69
|
else {
|
|
67
|
-
|
|
70
|
+
self.$emit('error',data);
|
|
68
71
|
}
|
|
69
72
|
});
|
|
70
73
|
}
|
|
@@ -78,4 +81,12 @@
|
|
|
78
81
|
}
|
|
79
82
|
</script>
|
|
80
83
|
<style>
|
|
84
|
+
.ct-progress {
|
|
85
|
+
text-align: center;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.progressMsg {
|
|
89
|
+
margin-top: 5px;
|
|
90
|
+
display: block;
|
|
91
|
+
}
|
|
81
92
|
</style>
|
package/src/main.js
CHANGED
|
@@ -13,10 +13,10 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
13
13
|
Vue.config.productionTip = false;
|
|
14
14
|
Vue.use(centaline, {
|
|
15
15
|
// baseUrl: "http://10.88.22.46:7070/v1/form/router",
|
|
16
|
-
|
|
17
|
-
baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
16
|
+
baseUrl: "http://10.88.23.22:9999/v1/form/router",
|
|
17
|
+
// baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
18
18
|
// baseUrl: "http://10.88.22.69:8080/",
|
|
19
|
-
flagRouterSelf: true,
|
|
19
|
+
// flagRouterSelf: true,
|
|
20
20
|
zindex: 999,
|
|
21
21
|
showRequestSuccessMessage: true,
|
|
22
22
|
showRequestErrorMessage: true,
|
|
@@ -43,8 +43,8 @@ Vue.use(centaline, {
|
|
|
43
43
|
return {
|
|
44
44
|
oldToken: 'a0c6a2be-f79e-47ea-8490-212d5f4f4ff4',
|
|
45
45
|
originalRequestURL: 'http://10.88.22.67:8080',
|
|
46
|
-
EstateInfo: '
|
|
47
|
-
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.
|
|
46
|
+
EstateInfo: '{"estateId":"201703020943128D8A8FCF463E4016D6","estateName":"%E4%B8%87%E7%A7%91%E4%BA%91%E5%9F%8E"}',
|
|
47
|
+
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE2OGI1YThjLThiZTUtNDQyZi04NTA4LWMyODY4N2NkYmEzMSJ9.Rk26QdZSUzDVdjdRxGxDApOt5W6KYjmyjmsXpWeZb5E5NwZjpXnHYwhYkKjNxIeyg--OV2UrzFa2SxGzZ-Wneg',
|
|
48
48
|
};
|
|
49
49
|
},
|
|
50
50
|
// 请求完成事件,可判断是否登录过期执行响应操作
|