doway-coms 1.2.1 → 1.2.3
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/packages/BaseGrid/src/index.vue +18 -70
package/package.json
CHANGED
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
:style="{
|
|
340
340
|
display: 'flex',
|
|
341
341
|
flexWrap: 'wrap',
|
|
342
|
-
justifyContent: '
|
|
342
|
+
justifyContent: 'left',
|
|
343
343
|
alignItems: 'center',
|
|
344
344
|
maxHeight: '150px',
|
|
345
345
|
overflow: 'auto',
|
|
@@ -351,10 +351,9 @@
|
|
|
351
351
|
v-for="loopSource in scope.column.params.dataSource"
|
|
352
352
|
:key="loopSource.value"
|
|
353
353
|
:value="loopSource.value"
|
|
354
|
-
style="margin: 5px 0"
|
|
354
|
+
style="margin: 5px 0;"
|
|
355
355
|
>{{ loopSource.caption }}
|
|
356
356
|
</a-checkbox>
|
|
357
|
-
|
|
358
357
|
</a-checkbox-group>
|
|
359
358
|
<!-- <a-select-->
|
|
360
359
|
<!-- v-model="scope.column.filters[0].data.displayValues"-->
|
|
@@ -523,13 +522,6 @@ export default {
|
|
|
523
522
|
data() {
|
|
524
523
|
return {
|
|
525
524
|
gridDefaultValueDisplay: gridDefaultValueDisplay,
|
|
526
|
-
// gridOptions:{
|
|
527
|
-
// border:true,
|
|
528
|
-
// stripe:true,
|
|
529
|
-
// columns:[
|
|
530
|
-
//
|
|
531
|
-
// ]
|
|
532
|
-
// },
|
|
533
525
|
showFooter: false,
|
|
534
526
|
showGridColumnUserDefine: false,
|
|
535
527
|
userDefineColumns: [],
|
|
@@ -597,13 +589,6 @@ export default {
|
|
|
597
589
|
],
|
|
598
590
|
],
|
|
599
591
|
},
|
|
600
|
-
// body:{
|
|
601
|
-
// options: [
|
|
602
|
-
// [
|
|
603
|
-
// { code: 'clearFilter', name: '清除所有筛选', visible: true, disabled: false }
|
|
604
|
-
// ]
|
|
605
|
-
// ]
|
|
606
|
-
// }
|
|
607
592
|
},
|
|
608
593
|
toolBarConfig: {
|
|
609
594
|
custom: true,
|
|
@@ -877,8 +862,7 @@ export default {
|
|
|
877
862
|
},
|
|
878
863
|
});
|
|
879
864
|
}
|
|
880
|
-
|
|
881
|
-
console.log(this.internalColumns)
|
|
865
|
+
// console.log(this.internalColumns)
|
|
882
866
|
this.gridEdit = this.edit;
|
|
883
867
|
},
|
|
884
868
|
|
|
@@ -1144,17 +1128,24 @@ export default {
|
|
|
1144
1128
|
col.column.filters = [];
|
|
1145
1129
|
}
|
|
1146
1130
|
});
|
|
1147
|
-
// vm.$refs.baseGrid.clearFilter()
|
|
1148
1131
|
vm.$emit("filterChange");
|
|
1149
1132
|
break;
|
|
1150
1133
|
case "desc":
|
|
1151
1134
|
if (this.sortRemote) {
|
|
1152
|
-
|
|
1135
|
+
let data = []
|
|
1136
|
+
$table.getSortColumns().forEach(x=> {
|
|
1137
|
+
data.push([x.field,x.order])
|
|
1138
|
+
})
|
|
1139
|
+
this.$emit("sortChange", data);
|
|
1153
1140
|
}
|
|
1154
1141
|
break;
|
|
1155
1142
|
case "asc":
|
|
1156
1143
|
if (this.sortRemote) {
|
|
1157
|
-
|
|
1144
|
+
let data = []
|
|
1145
|
+
$table.getSortColumns().forEach(x=> {
|
|
1146
|
+
data.push([x.field,x.order])
|
|
1147
|
+
})
|
|
1148
|
+
this.$emit("sortChange", data);
|
|
1158
1149
|
}
|
|
1159
1150
|
break;
|
|
1160
1151
|
case "clearSort":
|
|
@@ -1167,7 +1158,11 @@ export default {
|
|
|
1167
1158
|
}
|
|
1168
1159
|
break;
|
|
1169
1160
|
case "refresh":
|
|
1170
|
-
|
|
1161
|
+
let data = []
|
|
1162
|
+
$table.getSortColumns().forEach(x=> {
|
|
1163
|
+
data.push([x.field,x.order])
|
|
1164
|
+
})
|
|
1165
|
+
this.$emit("sortChange", data);
|
|
1171
1166
|
break;
|
|
1172
1167
|
default:
|
|
1173
1168
|
}
|
|
@@ -1541,53 +1536,6 @@ export default {
|
|
|
1541
1536
|
});
|
|
1542
1537
|
this.$emit("sortChange", tempSortList);
|
|
1543
1538
|
}
|
|
1544
|
-
|
|
1545
|
-
// let vm = this
|
|
1546
|
-
// const $table = this.$refs.baseGrid
|
|
1547
|
-
// //有children说明是 有筛选框
|
|
1548
|
-
// if (column.children && column.children.length > 0) {
|
|
1549
|
-
// if (column.children[0].order == order) {
|
|
1550
|
-
// $table.clearSort(column.children[0].field)
|
|
1551
|
-
// column.children[0].order = null
|
|
1552
|
-
// } else if (order == 'asc') {
|
|
1553
|
-
// $table.sort(column.children[0].property, order)
|
|
1554
|
-
// } else if (order == 'desc') {
|
|
1555
|
-
// $table.sort(column.children[0].property, order)
|
|
1556
|
-
// }
|
|
1557
|
-
// } else {
|
|
1558
|
-
// if (column.order == order) {
|
|
1559
|
-
// $table.clearSort(column.field)
|
|
1560
|
-
// column.order = null
|
|
1561
|
-
// } else if (order == 'asc') {
|
|
1562
|
-
// $table.sort(column.property, order)
|
|
1563
|
-
// } else if (order == 'desc') {
|
|
1564
|
-
// $table.sort(column.property, order)
|
|
1565
|
-
// }
|
|
1566
|
-
// }
|
|
1567
|
-
//远程emit 不是的话就调vxe的sort
|
|
1568
|
-
// if (vm.sortRemote) {
|
|
1569
|
-
// if (column.children && column.children.length > 0) {
|
|
1570
|
-
// if (column.children[0].order == order) {
|
|
1571
|
-
// column.children[0].order = null
|
|
1572
|
-
// } else
|
|
1573
|
-
// if (order == 'asc') {
|
|
1574
|
-
// column.children[0].order = order
|
|
1575
|
-
// } else if (order == 'desc') {
|
|
1576
|
-
// column.children[0].order = order
|
|
1577
|
-
// }
|
|
1578
|
-
// } else {
|
|
1579
|
-
// if (column.order == order) {
|
|
1580
|
-
// column.order = null
|
|
1581
|
-
// } else
|
|
1582
|
-
// if (order == 'asc') {
|
|
1583
|
-
// column.order = 'asc'
|
|
1584
|
-
// } else if (order == 'desc') {
|
|
1585
|
-
// column.order = 'desc'
|
|
1586
|
-
// }
|
|
1587
|
-
// }
|
|
1588
|
-
// let tmp = $table.getSortColumns()
|
|
1589
|
-
// vm.$emit('sortChange', tmp)
|
|
1590
|
-
// }
|
|
1591
1539
|
},
|
|
1592
1540
|
currentChange(scope) {
|
|
1593
1541
|
this.$emit("currentChange", scope.row);
|