centaline-data-driven 1.2.35 → 1.2.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/centaline/dynamicForm/src/dynamicForm.vue +6 -4
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +4 -2
- package/src/centaline/dynamicSearchList/src/dynamicTableStats.vue +27 -18
- package/src/centaline/loader/src/ctl/Form.js +6 -1
- package/src/centaline/loader/src/ctl/lib/Enum.js +7 -2
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
var self = this;
|
|
245
245
|
this.model.scripts.$fd = field.id;
|
|
246
246
|
this.model.scripts.$result = [];
|
|
247
|
-
|
|
247
|
+
|
|
248
248
|
var clickAcion = function (field) {
|
|
249
249
|
//若不是客户端方法,则直接访问接口
|
|
250
250
|
if (!field.isClientFuntion) {
|
|
@@ -262,6 +262,9 @@
|
|
|
262
262
|
self.model.pageDisabled= true;
|
|
263
263
|
field.doAction(self.getFormObj(), (data) => {
|
|
264
264
|
if (data.rtnCode === 200) {
|
|
265
|
+
if(data.notification===17){
|
|
266
|
+
self.clickHandler(self.model.getRtnRouter(data.content),null)
|
|
267
|
+
}
|
|
265
268
|
if (self.model.flagAlertClose) {
|
|
266
269
|
self.$common.confirm('操作成功,是否关闭本页面?', '提示', {
|
|
267
270
|
confirmButtonText: '确定',
|
|
@@ -397,7 +400,7 @@
|
|
|
397
400
|
}
|
|
398
401
|
submitData = field.getActionPara(submitData).para;
|
|
399
402
|
let title=field.pageTitle==undefined ?field.label:field.pageTitle;
|
|
400
|
-
submitData.actionType=field.actionType;
|
|
403
|
+
submitData.actionType=field.actionType;
|
|
401
404
|
var fun =self.$common.getDataDrivenOpts().handler[field.action];
|
|
402
405
|
fun(submitData,title,self.model);
|
|
403
406
|
}
|
|
@@ -572,8 +575,7 @@
|
|
|
572
575
|
return Object.assign(formData,{'pageStyle':this.$route.query.pageStyle});
|
|
573
576
|
}
|
|
574
577
|
return formData;
|
|
575
|
-
},
|
|
576
|
-
|
|
578
|
+
},
|
|
577
579
|
}
|
|
578
580
|
}
|
|
579
581
|
</script>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<ct-tableStats ref="tableStats" class="ct-search-table-list-header"
|
|
4
4
|
v-if="!isLoading&&searchStatsApi"
|
|
5
5
|
:api="searchStatsApi"
|
|
6
|
-
@searchStats="searchStats"
|
|
6
|
+
@searchStats="searchStats" @setTableHeight="setTableHeight"
|
|
7
7
|
:searchModel="model.searchModel"></ct-tableStats>
|
|
8
8
|
<ct-tabletoolbar ref="toolbar" v-if="!isLoading" :buttons="model.buttons"
|
|
9
9
|
@click="toolbarClickHandler($event)"
|
|
@@ -505,7 +505,9 @@
|
|
|
505
505
|
var h4 = this.$refs.footer.$el.offsetHeight | 0;
|
|
506
506
|
var h5 = this.$refs.listHeader.$el.offsetHeight | 0;
|
|
507
507
|
var h6 = this.$refs.listFooter.$el.offsetHeight | 0;
|
|
508
|
-
|
|
508
|
+
var h7 = this.$refs.tableStats?(this.$refs.tableStats.$el.offsetHeight+7 | 0):0;
|
|
509
|
+
let tableHeight = h1 - h2 - h3 - h4 - h5 - h6 - h7-22;
|
|
510
|
+
console.log(tableHeight+" "+h7);
|
|
509
511
|
this.model.tableHeight = tableHeight < 40 ? 350 : tableHeight;
|
|
510
512
|
this.$nextTick(() => {
|
|
511
513
|
self.getScrollAttr();
|
|
@@ -4,21 +4,25 @@
|
|
|
4
4
|
<!--计算占用宽度-->
|
|
5
5
|
<div style="position:relative" v-if="FlagStatistics">
|
|
6
6
|
<div style="position:absolute;left:-10000px" class="tab-list">
|
|
7
|
-
<label v-for="(item, index) in data" class="btnTab"
|
|
7
|
+
<label v-for="(item, index) in data" class="btnTab" :ref="'StatisticsItem'+index">
|
|
8
|
+
<span :class="[selectStats==item.code1?'active':'']">{{item.controlLabel}}</span></label>111
|
|
8
9
|
</div>
|
|
9
10
|
</div>
|
|
10
11
|
<!--展示-->
|
|
11
12
|
<div v-if="FlagStatistics" class="tab-list">
|
|
12
13
|
<template v-if="showData.length===1">
|
|
13
|
-
<label class="btnTab" v-for="(item, index) in showData[0]"
|
|
14
|
+
<label class="btnTab" v-for="(item, index) in showData[0]" @click="handleClick($event,item)">
|
|
15
|
+
<span :class="[selectStats==item.code1?'active':'']">{{item.controlLabel}}</span></label>
|
|
14
16
|
</template>
|
|
15
17
|
<template v-else-if="showData.length>1">
|
|
16
|
-
<label class="btnTab" v-for="(item, index) in showData[0]"
|
|
18
|
+
<label class="btnTab" v-for="(item, index) in showData[0]" @click="handleClick($event,item)">
|
|
19
|
+
<span :class="[selectStats==item.code1?'active':'']">{{item.controlLabel}}</span></label>
|
|
17
20
|
<el-popover :append-to-table="option.appendId?option.appendId:''"
|
|
18
21
|
:placement="option.placement?option.placement:'left'"
|
|
19
22
|
:trigger="option.trigger?option.trigger:''"
|
|
20
23
|
class="tabl-el">
|
|
21
|
-
<label class="tablf" v-for="(item, index) in showData[1]"
|
|
24
|
+
<label class="tablf" v-for="(item, index) in showData[1]" @click="handleClick($event,item)">
|
|
25
|
+
<span :class="[selectStats==item.code1?'active':'']">{{item.controlLabel}}</span></label>
|
|
22
26
|
<i slot="reference" class="icon-more"></i>
|
|
23
27
|
|
|
24
28
|
</el-popover>
|
|
@@ -68,7 +72,6 @@
|
|
|
68
72
|
self.selectVa = "";
|
|
69
73
|
if (self.data.length > 0) {
|
|
70
74
|
if (self.selectStats == []) {
|
|
71
|
-
debugger
|
|
72
75
|
self.selectStats = self.data[0].code1;
|
|
73
76
|
}
|
|
74
77
|
self.FlagStatistics = true;
|
|
@@ -111,12 +114,14 @@
|
|
|
111
114
|
}
|
|
112
115
|
|
|
113
116
|
}
|
|
117
|
+
|
|
118
|
+
self.$emit('setTableHeight');
|
|
114
119
|
});
|
|
115
120
|
},
|
|
116
121
|
handleClick(ev, obj) {
|
|
117
122
|
var self = this;
|
|
118
123
|
self.selectStats = obj.code1;
|
|
119
|
-
var fields = self.model.searchData(obj.fieldName1, obj.code1, obj.
|
|
124
|
+
var fields = self.model.searchData(obj.fieldName1, obj.code1, obj.searchOperation, obj.searchDataType);
|
|
120
125
|
var model = {
|
|
121
126
|
"searchData": fields
|
|
122
127
|
};
|
|
@@ -147,42 +152,46 @@
|
|
|
147
152
|
<style>
|
|
148
153
|
</style>
|
|
149
154
|
|
|
150
|
-
<style>
|
|
151
|
-
|
|
155
|
+
<style>
|
|
152
156
|
.tab-list {
|
|
153
|
-
|
|
154
|
-
border-bottom: 1px solid #E0E0E0;
|
|
157
|
+
border-bottom: 2px solid #E0E0E0;
|
|
155
158
|
margin-bottom: 10px;
|
|
159
|
+
padding-bottom: 5px;
|
|
156
160
|
}
|
|
157
161
|
|
|
158
|
-
.btnTab {
|
|
162
|
+
.tab-list .btnTab {
|
|
159
163
|
font-size: 14px !important;
|
|
160
164
|
font-weight: bold;
|
|
161
|
-
padding:
|
|
165
|
+
padding: 0px 20px 0px 20px;
|
|
166
|
+
|
|
167
|
+
|
|
162
168
|
}
|
|
163
169
|
|
|
164
|
-
|
|
170
|
+
.tab-list .btnTab:hover ,.tab-list .tablf:hover{
|
|
165
171
|
color: #ee5d56;
|
|
166
172
|
}
|
|
167
|
-
.tabl-el{
|
|
173
|
+
.tab-list .tabl-el{
|
|
168
174
|
max-width: 150px;
|
|
169
175
|
box-shadow: 0 6px 12px rgb(0 0 0 / 18%);
|
|
170
176
|
}
|
|
171
|
-
.tablf{
|
|
177
|
+
.tab-list .tablf{
|
|
172
178
|
font-size: 14px !important;
|
|
173
179
|
font-weight: bold;
|
|
174
180
|
text-align: center;
|
|
175
181
|
padding: 5px 10px;
|
|
176
182
|
display: block;
|
|
177
183
|
}
|
|
178
|
-
|
|
184
|
+
.tab-list .active {
|
|
179
185
|
color: #ee5d56 !important;
|
|
180
186
|
border-bottom: solid 3px #ee5d56 !important;
|
|
181
|
-
background: none;
|
|
187
|
+
background: none;
|
|
182
188
|
border-radius: 0 !important;
|
|
183
189
|
}
|
|
190
|
+
.tab-list .btnTab span{
|
|
191
|
+
|
|
192
|
+
}
|
|
184
193
|
|
|
185
|
-
|
|
194
|
+
.tab-list .icon-more {
|
|
186
195
|
background: url(../../../assets/vertical.png)no-repeat;
|
|
187
196
|
background-size: 80% 80%;
|
|
188
197
|
height: 20px;
|
|
@@ -348,7 +348,12 @@ const Form = function (source, callBack, apiParam, failCallBack, isFormList) {
|
|
|
348
348
|
rtn = true;
|
|
349
349
|
}
|
|
350
350
|
return rtn;
|
|
351
|
-
}
|
|
351
|
+
},
|
|
352
|
+
getRtnRouter(v){
|
|
353
|
+
var button = Router(v);
|
|
354
|
+
button.is = "ct-btn";
|
|
355
|
+
return button;
|
|
356
|
+
},
|
|
352
357
|
};
|
|
353
358
|
valid.InitForm(rtn);
|
|
354
359
|
return rtn;
|
|
@@ -356,9 +356,14 @@ const Enum = {
|
|
|
356
356
|
CloseTabThenUpdate: 16,
|
|
357
357
|
|
|
358
358
|
/// <summary>
|
|
359
|
-
///
|
|
359
|
+
/// 路由
|
|
360
360
|
/// </summary>
|
|
361
|
-
|
|
361
|
+
Router: 17,
|
|
362
|
+
|
|
363
|
+
/// <summary>
|
|
364
|
+
/// 替换当前表单内容
|
|
365
|
+
/// </summary>
|
|
366
|
+
Replace: 18,
|
|
362
367
|
},
|
|
363
368
|
|
|
364
369
|
/// <summary>
|