doway-coms 1.4.23 → 1.4.25
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/hs_err_pid25288.log +636 -0
- package/package.json +1 -1
- package/packages/BaseGrid/src/index.vue +25 -24
- package/packages/BaseIntervalInput/src/index.vue +21 -0
- package/dist/css/chunk-vendors.7f83d8f9.css +0 -8
- package/dist/css/index.7946d50b.css +0 -1
- package/dist/favicon.ico +0 -0
- package/dist/js/chunk-vendors.28fda91d.js +0 -340
- package/dist/js/index.49bc6add.js +0 -2
- package/lib/doway-coms.common.js +0 -120397
- package/lib/doway-coms.css +0 -1
- package/lib/doway-coms.umd.js +0 -120407
- package/lib/doway-coms.umd.min.js +0 -328
package/package.json
CHANGED
|
@@ -1135,16 +1135,7 @@ export default {
|
|
|
1135
1135
|
case "clearFilter":
|
|
1136
1136
|
// 示例
|
|
1137
1137
|
const filterList = this.$refs.baseGrid.getCheckedFilters();
|
|
1138
|
-
|
|
1139
1138
|
filterList.forEach((col) => {
|
|
1140
|
-
// if (
|
|
1141
|
-
// col.column.params.controlType === "select" ||
|
|
1142
|
-
// col.column.params.controlType === "checkbox"
|
|
1143
|
-
// ) {
|
|
1144
|
-
// col.column.filters = [{ data: [] }];
|
|
1145
|
-
// } else {
|
|
1146
|
-
// col.column.filters = [{ data: [] }];
|
|
1147
|
-
// }
|
|
1148
1139
|
this.$refs.baseGrid.clearFilter(col.column);
|
|
1149
1140
|
col.column.filters = [
|
|
1150
1141
|
{
|
|
@@ -2249,24 +2240,34 @@ export default {
|
|
|
2249
2240
|
});
|
|
2250
2241
|
},
|
|
2251
2242
|
filterConfirm(colInfo) {
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
colInfo.
|
|
2257
|
-
} else {
|
|
2258
|
-
if (item.value[0] || item.value[1]) {
|
|
2243
|
+
if (this.filterRemote) {
|
|
2244
|
+
console.log(colInfo);
|
|
2245
|
+
colInfo.filters[0].data.bindingValues = [];
|
|
2246
|
+
XEUtils.arrayEach(colInfo.filters[0].data.displayValues, (item) => {
|
|
2247
|
+
if (colInfo.params.controlType === controlType.select) {
|
|
2259
2248
|
colInfo.filters[0].data.bindingValues.push(item);
|
|
2249
|
+
} else {
|
|
2250
|
+
if (item.value[0] || item.value[1]) {
|
|
2251
|
+
colInfo.filters[0].data.bindingValues.push(item);
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
2254
|
+
});
|
|
2255
|
+
colInfo.filters[0].checked =
|
|
2256
|
+
colInfo.filters[0].data.bindingValues.length > 0;
|
|
2257
|
+
//设置筛选过滤条件
|
|
2258
|
+
this.setFilterExpression();
|
|
2259
|
+
//通知外部筛选改变事件
|
|
2260
|
+
this.$emit("filterChange", { filterCol: colInfo });
|
|
2261
|
+
} else {
|
|
2262
|
+
for (let i = 0; i < colInfo.filters.length; i++) {
|
|
2263
|
+
if (!colInfo.filters[i].value) {
|
|
2264
|
+
colInfo.filters[i].checked = true;
|
|
2265
|
+
} else {
|
|
2266
|
+
colInfo.filters[i].checked = false;
|
|
2260
2267
|
}
|
|
2261
2268
|
}
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
colInfo.filters[0].data.bindingValues.length > 0;
|
|
2265
|
-
|
|
2266
|
-
//设置筛选过滤条件
|
|
2267
|
-
this.setFilterExpression();
|
|
2268
|
-
//通知外部筛选改变事件
|
|
2269
|
-
this.$emit("filterChange", { filterCol: colInfo });
|
|
2269
|
+
this.$refs.baseGrid.updateData();
|
|
2270
|
+
}
|
|
2270
2271
|
this.$refs.baseGrid.closeFilter()
|
|
2271
2272
|
},
|
|
2272
2273
|
setFilterExpression() {
|
|
@@ -66,6 +66,13 @@
|
|
|
66
66
|
<div v-if="displayType === 'second'" style="width:20px">
|
|
67
67
|
<span>秒</span>
|
|
68
68
|
</div>
|
|
69
|
+
<input
|
|
70
|
+
@input="secondTotalChange"
|
|
71
|
+
v-if="displayType === 'second'"
|
|
72
|
+
type="number"
|
|
73
|
+
class="input-second-class"
|
|
74
|
+
v-model="secondTotalValue"
|
|
75
|
+
/>
|
|
69
76
|
</div>
|
|
70
77
|
<div class="d-error-msg">
|
|
71
78
|
{{ v.errors[0] }}
|
|
@@ -98,6 +105,7 @@ export default {
|
|
|
98
105
|
hourValue: 0,
|
|
99
106
|
minuteValue: 0,
|
|
100
107
|
secondValue: 0,
|
|
108
|
+
secondTotalValue: 0,
|
|
101
109
|
testValue: 0,
|
|
102
110
|
filterValue: '',
|
|
103
111
|
isInputChanged: false,
|
|
@@ -116,6 +124,7 @@ export default {
|
|
|
116
124
|
currentValue: {
|
|
117
125
|
// 动态计算currentValue的值
|
|
118
126
|
get: function() {
|
|
127
|
+
console.debug('get value')
|
|
119
128
|
//分钟计算成小时
|
|
120
129
|
let tempValue = this.value
|
|
121
130
|
if (this.valueType === 'hour') {
|
|
@@ -143,6 +152,7 @@ export default {
|
|
|
143
152
|
//设置秒数
|
|
144
153
|
this.secondValue = tempValue
|
|
145
154
|
}
|
|
155
|
+
this.secondTotalValue = this.value
|
|
146
156
|
|
|
147
157
|
return this.value // 将props中的value赋值给currentValue
|
|
148
158
|
},
|
|
@@ -243,6 +253,10 @@ export default {
|
|
|
243
253
|
this.setCurrentValue()
|
|
244
254
|
this.$emit('change')
|
|
245
255
|
},
|
|
256
|
+
secondTotalChange() {
|
|
257
|
+
this.currentValue = XEUtils.toNumber(this.secondTotalValue)
|
|
258
|
+
this.$emit('change')
|
|
259
|
+
},
|
|
246
260
|
setCurrentValue() {
|
|
247
261
|
if (this.valueType === 'hour') {
|
|
248
262
|
this.currentValue =
|
|
@@ -275,6 +289,13 @@ export default {
|
|
|
275
289
|
outline: none;
|
|
276
290
|
width: 25px;
|
|
277
291
|
}
|
|
292
|
+
.input-second-class {
|
|
293
|
+
border-top: none;
|
|
294
|
+
border-right: none;
|
|
295
|
+
border-left: none;
|
|
296
|
+
outline: none;
|
|
297
|
+
width: 100px;
|
|
298
|
+
}
|
|
278
299
|
input[type="number"] {
|
|
279
300
|
&::-webkit-outer-spin-button,
|
|
280
301
|
&::-webkit-inner-spin-button {
|