doway-coms 1.4.7 → 1.4.9
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
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
:filter-config="{
|
|
19
19
|
remote: filterRemote,
|
|
20
20
|
}"
|
|
21
|
-
:toolbar-config="toolBarConfig"
|
|
22
21
|
:menu-config="menuConfig"
|
|
23
22
|
@menu-click="contextMenuClickEvent"
|
|
24
23
|
@filter-change="filterChange"
|
|
@@ -73,13 +72,13 @@
|
|
|
73
72
|
<!-- {{item}}-->
|
|
74
73
|
</div>
|
|
75
74
|
</template>
|
|
76
|
-
<template #toolbar_buttons
|
|
75
|
+
<!-- <template #toolbar_buttons>-->
|
|
77
76
|
<!-- <div>-->
|
|
78
77
|
<!-- <span v-for="loopFilterStr in filterStr" :key="loopFilterStr.field">-->
|
|
79
78
|
<!-- {{ loopFilterStr.title }} {{ loopFilterStr.exp }} 并且</span-->
|
|
80
79
|
<!-- >-->
|
|
81
80
|
<!-- </div>-->
|
|
82
|
-
</template
|
|
81
|
+
<!-- </template>-->
|
|
83
82
|
<template #seqHeader>
|
|
84
83
|
<div
|
|
85
84
|
@click="clickHeader"
|
|
@@ -303,7 +302,7 @@
|
|
|
303
302
|
.displayValues"
|
|
304
303
|
:key="$index"
|
|
305
304
|
>
|
|
306
|
-
<a-input allowClear v-model="loopFilterValue.value[0]" />
|
|
305
|
+
<a-input allowClear v-model="loopFilterValue.value[0]" @keyup.enter.native="filterConfirm(scope.column)" />
|
|
307
306
|
</div>
|
|
308
307
|
<a-button @click="filterAddExp(scope.column)">添加条件</a-button>
|
|
309
308
|
<a-button @click="filterConfirm(scope.column)">确认</a-button>
|
|
@@ -321,11 +320,13 @@
|
|
|
321
320
|
:precision="0"
|
|
322
321
|
size="small"
|
|
323
322
|
v-model="loopFilterValue.value[0]"
|
|
323
|
+
@keyup.enter.native="filterConfirm(scope.column)"
|
|
324
324
|
/>~
|
|
325
325
|
<a-input-number
|
|
326
326
|
:precision="0"
|
|
327
327
|
size="small"
|
|
328
328
|
v-model="loopFilterValue.value[1]"
|
|
329
|
+
@keyup.enter.native="filterConfirm(scope.column)"
|
|
329
330
|
/>
|
|
330
331
|
</div>
|
|
331
332
|
<a-button @click="filterAddExp(scope.column)">添加条件</a-button>
|
|
@@ -345,6 +346,7 @@
|
|
|
345
346
|
overflow: 'auto',
|
|
346
347
|
maxWidth: '100px'
|
|
347
348
|
}"
|
|
349
|
+
@keyup.enter.native="filterConfirm(scope.column)"
|
|
348
350
|
>
|
|
349
351
|
<br />
|
|
350
352
|
<a-checkbox
|
|
@@ -393,6 +395,7 @@
|
|
|
393
395
|
}"
|
|
394
396
|
placeholder="开始时间"
|
|
395
397
|
v-model="loopFilterValue.value[0]"
|
|
398
|
+
@keyup.enter.native="filterConfirm(scope.column)"
|
|
396
399
|
/>
|
|
397
400
|
<a-date-picker
|
|
398
401
|
valueFormat="YYYY-MM-DD HH:mm:ss"
|
|
@@ -405,6 +408,7 @@
|
|
|
405
408
|
}"
|
|
406
409
|
placeholder="结束时间"
|
|
407
410
|
v-model="loopFilterValue.value[1]"
|
|
411
|
+
@keyup.enter.native="filterConfirm(scope.column)"
|
|
408
412
|
/>
|
|
409
413
|
</div>
|
|
410
414
|
<a-button @click="filterAddExp(scope.column)">添加条件</a-button>
|
|
@@ -424,12 +428,14 @@
|
|
|
424
428
|
format="YYYY-MM-DD"
|
|
425
429
|
placeholder="开始时间"
|
|
426
430
|
v-model="loopFilterValue.value[0]"
|
|
431
|
+
@keyup.enter.native="filterConfirm(scope.column)"
|
|
427
432
|
/>
|
|
428
433
|
<a-date-picker
|
|
429
434
|
valueFormat="YYYY-MM-DD"
|
|
430
435
|
format="YYYY-MM-DD"
|
|
431
436
|
placeholder="结束时间"
|
|
432
437
|
v-model="loopFilterValue.value[1]"
|
|
438
|
+
@keyup.enter.native="filterConfirm(scope.column)"
|
|
433
439
|
/>
|
|
434
440
|
</div>
|
|
435
441
|
<a-button @click="filterAddExp(scope.column)">添加条件</a-button>
|
|
@@ -2233,6 +2239,7 @@ export default {
|
|
|
2233
2239
|
this.setFilterExpression();
|
|
2234
2240
|
//通知外部筛选改变事件
|
|
2235
2241
|
this.$emit("filterChange", { filterCol: colInfo });
|
|
2242
|
+
this.$refs.baseGrid.clearFilter()
|
|
2236
2243
|
},
|
|
2237
2244
|
setFilterExpression() {
|
|
2238
2245
|
XEUtils.clear(this.filterExpression);
|
|
@@ -2340,10 +2347,10 @@ export default {
|
|
|
2340
2347
|
//设置第一个输入框光标选中
|
|
2341
2348
|
let tempClassName = column.field + "_filter_0";
|
|
2342
2349
|
setTimeout(() => {
|
|
2343
|
-
document
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
document.getElementsByClassName(tempClassName)[0].children[0].focus();
|
|
2350
|
+
// document
|
|
2351
|
+
// .getElementsByClassName(tempClassName)[0]
|
|
2352
|
+
// .children[0].select();
|
|
2353
|
+
// document.getElementsByClassName(tempClassName)[0].children[0].focus();
|
|
2347
2354
|
}, 10);
|
|
2348
2355
|
}
|
|
2349
2356
|
},
|