doway-coms 1.6.0 → 1.6.2
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
CHANGED
|
@@ -121,6 +121,8 @@
|
|
|
121
121
|
<div
|
|
122
122
|
v-for="loopItem in row.items"
|
|
123
123
|
:key="loopItem.id"
|
|
124
|
+
:name="'gantt-bar'+loopItem.taskId"
|
|
125
|
+
:id="'gantt-bar'+loopItem.id"
|
|
124
126
|
class="gantt-bar"
|
|
125
127
|
@mouseenter="ganttBarMouseEnter($event, loopItem, rowIndex)"
|
|
126
128
|
@mouseleave="ganttBarMouseLeave($event, loopItem)"
|
|
@@ -448,9 +450,11 @@ export default {
|
|
|
448
450
|
evt.clientY + evt.target.offsetHeight - evt.offsetY // (rowIndex + 1) * this.rowHeight
|
|
449
451
|
this.ganttBarTooltip.item = ordInfo
|
|
450
452
|
this.ganttBarTooltip.show = true
|
|
453
|
+
this.$emit('mouseEnter',ordInfo)
|
|
451
454
|
},
|
|
452
455
|
ganttBarMouseLeave(evt, ordInfo) {
|
|
453
456
|
this.ganttBarTooltip.show = false
|
|
457
|
+
this.$emit('mouseLeave',ordInfo)
|
|
454
458
|
},
|
|
455
459
|
bodyScroll(scrollInfo) {
|
|
456
460
|
if (scrollInfo.isX === true) {
|
|
@@ -364,41 +364,47 @@
|
|
|
364
364
|
</template>
|
|
365
365
|
<template #select_filter="scope">
|
|
366
366
|
<div class="interceptor-class">
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
</div>
|
|
367
|
+
<a-checkbox-group
|
|
368
|
+
v-model="scope.column.filters[0].data.displayValues"
|
|
369
|
+
@keyup.enter.native="filterConfirm(scope.column)"
|
|
370
|
+
>
|
|
371
|
+
<a-input placeholder="请输入搜索内容" @change="displayValueSearchTextChange(scope.column)" v-model="scope.column.filters[0].data.displayValueSearchText" :addon-before="'已选'+scope.column.filters[0].data.displayValues.length"/>
|
|
372
|
+
<div style="max-height:200px;overflow-y:scroll">
|
|
373
|
+
<div style="text-align:left;" v-for="loopSource in scope.column.params.dataSource" :key="loopSource.value">
|
|
374
|
+
<a-checkbox
|
|
375
|
+
v-show="loopSource.caption.indexOf(scope.column.filters[0].data.displayValueSearchText)>-1"
|
|
376
|
+
:value="loopSource.value"
|
|
377
|
+
style="margin: 5px 0;"
|
|
378
|
+
>{{ loopSource.caption }}
|
|
379
|
+
</a-checkbox>
|
|
381
380
|
</div>
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
<!-- v-model="scope.column.filters[0].data.displayValues"-->
|
|
385
|
-
<!-- mode="multiple"-->
|
|
386
|
-
<!-- allowClear-->
|
|
387
|
-
<!-- style="width: 300px;"-->
|
|
388
|
-
<!-- placeholder="筛选条件"-->
|
|
389
|
-
<!-- showArrow-->
|
|
390
|
-
<!-- >-->
|
|
391
|
-
<!-- <a-select-option-->
|
|
392
|
-
<!-- v-for="loopSource in scope.column.params.dataSource"-->
|
|
393
|
-
<!-- :key="loopSource.value"-->
|
|
394
|
-
<!-- :value="loopSource.value"-->
|
|
395
|
-
<!-- >{{ loopSource.caption }}</a-select-option-->
|
|
396
|
-
<!-- >-->
|
|
397
|
-
<!-- </a-select>-->
|
|
381
|
+
</div>
|
|
382
|
+
</a-checkbox-group>
|
|
398
383
|
<br>
|
|
399
384
|
<a-button @click="filterConfirm(scope.column)">确认</a-button>
|
|
400
385
|
</div>
|
|
401
386
|
</template>
|
|
387
|
+
<template #checkbox_filter="scope">
|
|
388
|
+
<div class="interceptor-class">
|
|
389
|
+
<a-checkbox-group
|
|
390
|
+
v-model="scope.column.filters[0].data.displayValues"
|
|
391
|
+
@keyup.enter.native="filterConfirm(scope.column)"
|
|
392
|
+
>
|
|
393
|
+
<div style="max-height:200px;overflow-y:scroll">
|
|
394
|
+
<div style="text-align:left;" v-for="loopSource in scope.column.params.dataSource" :key="loopSource.value">
|
|
395
|
+
<a-checkbox
|
|
396
|
+
v-show="loopSource.caption.indexOf(scope.column.filters[0].data.displayValueSearchText)>-1"
|
|
397
|
+
:value="loopSource.value"
|
|
398
|
+
style="margin: 5px 0;"
|
|
399
|
+
>{{ loopSource.caption }}
|
|
400
|
+
</a-checkbox>
|
|
401
|
+
</div>
|
|
402
|
+
</div>
|
|
403
|
+
</a-checkbox-group>
|
|
404
|
+
<br>
|
|
405
|
+
<a-button @click="filterConfirm(scope.column)">确认</a-button>
|
|
406
|
+
</div>
|
|
407
|
+
</template>
|
|
402
408
|
<template #datetime_filter="scope">
|
|
403
409
|
<div class="interceptor-class">
|
|
404
410
|
<div
|
|
@@ -1342,7 +1348,12 @@ export default {
|
|
|
1342
1348
|
if (!originCol.controlType) {
|
|
1343
1349
|
originCol.controlType = controlType.text;
|
|
1344
1350
|
}
|
|
1345
|
-
|
|
1351
|
+
if (originCol.controlType === controlType.checkbox) {
|
|
1352
|
+
originCol.dataSource = [
|
|
1353
|
+
{caption:'是',value: true},
|
|
1354
|
+
{caption:'否',value: false}
|
|
1355
|
+
]
|
|
1356
|
+
}
|
|
1346
1357
|
if (originCol.controlType === controlType.customRadio) {
|
|
1347
1358
|
colInfo["type"] = "radio";
|
|
1348
1359
|
customSlot["radio"] = "customRadio";
|
|
@@ -2349,7 +2360,7 @@ export default {
|
|
|
2349
2360
|
this.$set(col.filters[0].data,'bindingValues',[])
|
|
2350
2361
|
colInfo.filters[0].data.bindingValues = [];
|
|
2351
2362
|
XEUtils.arrayEach(colInfo.filters[0].data.displayValues, (item) => {
|
|
2352
|
-
if (colInfo.params.controlType === controlType.select) {
|
|
2363
|
+
if (colInfo.params.controlType === controlType.select || colInfo.params.controlType === controlType.checkbox) {
|
|
2353
2364
|
colInfo.filters[0].data.bindingValues.push(item);
|
|
2354
2365
|
this.$set(col.filters[0].data,'bindingValues',colInfo.filters[0].data.bindingValues)
|
|
2355
2366
|
} else {
|
|
@@ -2435,7 +2446,7 @@ export default {
|
|
|
2435
2446
|
//筛选条件过滤
|
|
2436
2447
|
let colFilterExpression = { operator: "or", expressions: [] };
|
|
2437
2448
|
|
|
2438
|
-
if (loopColInfo.params.controlType === controlType.select) {
|
|
2449
|
+
if (loopColInfo.params.controlType === controlType.select || loopColInfo.params.controlType === controlType.checkbox) {
|
|
2439
2450
|
colFilterExpression.expressions.push({
|
|
2440
2451
|
field: loopColInfo.field,
|
|
2441
2452
|
operator: "IN",
|
|
@@ -2691,9 +2702,6 @@ export default {
|
|
|
2691
2702
|
::v-deep .ant-btn {
|
|
2692
2703
|
margin: 10px 10px 0;
|
|
2693
2704
|
}
|
|
2694
|
-
::v-deep .ant-input {
|
|
2695
|
-
margin-bottom: 5px;
|
|
2696
|
-
}
|
|
2697
2705
|
::v-deep .ant-calendar-picker {
|
|
2698
2706
|
margin: 0 5px;
|
|
2699
2707
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
:page-size="pageSize"
|
|
20
20
|
:total="totalRows"
|
|
21
21
|
size="small"
|
|
22
|
-
:page-sizes="
|
|
22
|
+
:page-sizes="pageSizeOptions"
|
|
23
23
|
@page-change="onPageChange"
|
|
24
24
|
style="margin-top: 10px;"
|
|
25
25
|
:layouts="['PrevJump', 'PrevPage', 'JumpNumber', 'NextPage', 'NextJump', 'Sizes', 'FullJump', 'Total']"
|