centaline-data-driven 1.5.51 → 1.5.52
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 +13 -0
- package/src/Form.vue +2 -2
- package/src/centaline/dynamicBtn/src/dynamicBtn.vue +8 -3
- package/src/centaline/dynamicDetail/src/dynamicCustomerSimpleDetail.vue +1 -1
- package/src/centaline/dynamicDetail/src/dynamicEstateSimpleDetail.vue +1 -1
- package/src/centaline/dynamicDetail/src/dynamicPropertySimpleDetailRET.vue +1 -1
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +30 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +2 -2
- package/src/centaline/dynamicTree/src/dynamicSearchTree.vue +1 -1
- package/src/main.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js +67 -38
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/release-log.md
CHANGED
package/src/Form.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
3
|
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
4
|
-
<ct-form :api="'/api/distribution/commission_presentiment/
|
|
4
|
+
<ct-form :api="'/api/distribution/commission_presentiment/task'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
|
|
5
5
|
<ct-dialog-list></ct-dialog-list>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
data() {
|
|
13
13
|
return {
|
|
14
14
|
apiParam:{
|
|
15
|
-
"
|
|
15
|
+
"stepId":"1689521582976049153","businessId":"1689521146390945793","actionType":"1","pageStyle":"2","pageOnly":"true"
|
|
16
16
|
},
|
|
17
17
|
topHeight:10,
|
|
18
18
|
}
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
:style="{color:model.textColor,backgroundColor:model.imgUrl?'transparent':model.bgColor,borderColor:model.imgUrl?'transparent':model.borderColor,padding:model.imgUrl?'0px':null}"
|
|
41
41
|
:icon="model.icon"
|
|
42
42
|
:disabled="model.disabled || model.locked">
|
|
43
|
-
<el-popover class="Stats-popover" :popper-class="'
|
|
44
|
-
v-model="visible" :trigger="option.trigger?option.trigger:''">
|
|
43
|
+
<el-popover class="Stats-popover" :popper-class="visible ? 'isBlock':'isNone'" :placement="option.placement?option.placement:'left'"
|
|
44
|
+
v-model="visible" :trigger="option.trigger?option.trigger:''" >
|
|
45
45
|
<div style="border-bottom:none">
|
|
46
46
|
<div style="color: #388cd3;text-align: center;">{{message}}</div>
|
|
47
47
|
<img v-show="qrCode" :src="qrCode" style="margin-top: 5px;" :style="{'width':width+'px','height':height+'px'}" />
|
|
@@ -281,8 +281,13 @@
|
|
|
281
281
|
.labelText{
|
|
282
282
|
-webkit-transform: scale(0.85);
|
|
283
283
|
}
|
|
284
|
-
.
|
|
284
|
+
.isBlock{
|
|
285
285
|
margin-left: 5px;
|
|
286
|
+
display: block !important;
|
|
287
|
+
}
|
|
288
|
+
.isNone{
|
|
289
|
+
margin-left: 5px;
|
|
290
|
+
display: none !important;
|
|
286
291
|
}
|
|
287
292
|
.subText{
|
|
288
293
|
color:var(--chinaRed);;
|
|
@@ -169,6 +169,7 @@
|
|
|
169
169
|
itemKey: Math.random(),
|
|
170
170
|
tableColumnWith: 0,
|
|
171
171
|
fixedButtons:false,
|
|
172
|
+
scrollLeft:0,
|
|
172
173
|
}
|
|
173
174
|
},
|
|
174
175
|
created() {
|
|
@@ -183,6 +184,7 @@
|
|
|
183
184
|
});
|
|
184
185
|
},
|
|
185
186
|
mounted() {
|
|
187
|
+
let self=this;
|
|
186
188
|
this.$nextTick(function () {
|
|
187
189
|
let domT=document.querySelector('#listTable');
|
|
188
190
|
if(domT){
|
|
@@ -190,6 +192,11 @@
|
|
|
190
192
|
if(domB && domB.scrollWidth>domB.offsetWidth){
|
|
191
193
|
this.fixedButtons='right';
|
|
192
194
|
}
|
|
195
|
+
if(domB){
|
|
196
|
+
domB.addEventListener("scroll", function(){
|
|
197
|
+
self.scrollLeft=domB.scrollLeft;
|
|
198
|
+
});
|
|
199
|
+
}
|
|
193
200
|
}
|
|
194
201
|
});
|
|
195
202
|
},
|
|
@@ -223,6 +230,7 @@
|
|
|
223
230
|
app.model.currentRow.isNew = true;
|
|
224
231
|
app.model.currentRow.index = app.model.tableData.length - 1;
|
|
225
232
|
}
|
|
233
|
+
app.resetScroll();
|
|
226
234
|
},
|
|
227
235
|
//修改
|
|
228
236
|
saveRow(row, index, isCancel) {
|
|
@@ -251,6 +259,7 @@
|
|
|
251
259
|
}
|
|
252
260
|
row.isSet = !row.isSet;
|
|
253
261
|
app.itemKey = Math.random();
|
|
262
|
+
app.resetScroll();
|
|
254
263
|
return ;
|
|
255
264
|
}
|
|
256
265
|
|
|
@@ -279,6 +288,7 @@
|
|
|
279
288
|
app.itemKey = Math.random();
|
|
280
289
|
this.model.change = this.model.formListChange;
|
|
281
290
|
app.$emit('change');
|
|
291
|
+
app.resetScroll();
|
|
282
292
|
}
|
|
283
293
|
}
|
|
284
294
|
}
|
|
@@ -289,6 +299,7 @@
|
|
|
289
299
|
app.model.currentRow.isSet = true;
|
|
290
300
|
row.isSet = true;
|
|
291
301
|
app.itemKey = Math.random();
|
|
302
|
+
app.resetScroll();
|
|
292
303
|
}
|
|
293
304
|
},
|
|
294
305
|
//删除
|
|
@@ -324,6 +335,7 @@
|
|
|
324
335
|
}
|
|
325
336
|
});
|
|
326
337
|
self.itemKey = Math.random();
|
|
338
|
+
self.resetScroll();
|
|
327
339
|
});
|
|
328
340
|
},
|
|
329
341
|
fieldsValidExcute() {
|
|
@@ -490,7 +502,24 @@
|
|
|
490
502
|
// 移除 document 中临时的 span
|
|
491
503
|
document.body.removeChild(span);
|
|
492
504
|
return h('span', column.label);
|
|
493
|
-
}
|
|
505
|
+
},
|
|
506
|
+
resetScroll(){
|
|
507
|
+
let self=this;
|
|
508
|
+
this.$nextTick(function () {
|
|
509
|
+
let domT=document.querySelector('#listTable');
|
|
510
|
+
if(domT){
|
|
511
|
+
let domB=domT.querySelector('.el-table__body-wrapper');
|
|
512
|
+
if(domB){
|
|
513
|
+
if(this.scrollLeft>0){
|
|
514
|
+
domB.scrollLeft=this.scrollLeft;
|
|
515
|
+
}
|
|
516
|
+
domB.addEventListener("scroll", function(){
|
|
517
|
+
self.scrollLeft=domB.scrollLeft;
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
});
|
|
522
|
+
},
|
|
494
523
|
}
|
|
495
524
|
}
|
|
496
525
|
</script>
|
|
@@ -1338,7 +1338,7 @@ export default {
|
|
|
1338
1338
|
self.$common.closeDialog(dialogOption.dialog);
|
|
1339
1339
|
},
|
|
1340
1340
|
closeDialog() {
|
|
1341
|
-
self.updateCurrentRow(field);
|
|
1341
|
+
// self.updateCurrentRow(field);
|
|
1342
1342
|
},
|
|
1343
1343
|
},
|
|
1344
1344
|
},
|
|
@@ -1625,7 +1625,7 @@ export default {
|
|
|
1625
1625
|
self.$common.closeDialog(dialogOption.dialog);
|
|
1626
1626
|
},
|
|
1627
1627
|
closeDialog() {
|
|
1628
|
-
self.updateCurrentRow(field);
|
|
1628
|
+
// self.updateCurrentRow(field);
|
|
1629
1629
|
},
|
|
1630
1630
|
},
|
|
1631
1631
|
},
|
package/src/main.js
CHANGED
|
@@ -56,9 +56,9 @@ Vue.use(centaline, {
|
|
|
56
56
|
// 获取请求头
|
|
57
57
|
getRequestHeaders: function () {
|
|
58
58
|
return {
|
|
59
|
-
oldToken: '
|
|
59
|
+
oldToken: '2e1a6bc6-2cbe-435d-ba01-8e65d29e1e2a',
|
|
60
60
|
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQRO_iOiv5s1570zn-NBwiIuBIoUIkkUCIuxMEdPRMMRq95s1dzOsgWmHIccikIFr0gKQsMJYCURKxKdKYlHr-BH7UNz26yCFkByg7Aiw2A-tYwLDtEubgUibRiHo9i1aRRy-dtdSIab-8gdNKvcA618uu3v5x7rRMm3YkOZAfR6BtAWp_3LQHBNI8KHbkqlHi8QQAAP__.RrBgBqaFlp478oO3g5k_EEtjPt_o8qpJBkzgSP78Wa4',
|
|
61
|
-
authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.
|
|
61
|
+
authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQRO_iOis59nrXTuf403CIyCFGggqRRAIh7k4Q0NHziimeRpq5i3kdRSc0sfOJWggGLSC1BhzmDEESOZ2l1jEO7gP8iC8DcnDeJwaUPQFmk8CpkEE700dMnmMi0Yh6PYuuJaeYUbJpxLEsb0GW6SXWuV529faPc6fluM2O-0KHggpUtQhoEbdyUYCGpsnayeBYxeMJAAD__w.3jtdole2dvyRTAFLiUyYiLbrekR9ZsmkA3x1LCyg2DY"}',
|
|
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"}',
|