doway-coms 1.1.79 → 1.1.81

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/.browserslistrc CHANGED
@@ -1,2 +1,2 @@
1
- > 1%
2
- last 2 versions
1
+ > 1%
2
+ last 2 versions
package/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # doway-coms
2
-
3
- ## Project setup
4
- ```
5
- npm install
6
- ```
7
-
8
- ### Compiles and hot-reloads for development
9
- ```
10
- npm run serve
11
- ```
12
-
13
- ### Compiles and minifies for production
14
- ```
15
- npm run build
16
- ```
17
-
18
- ### Lints and fixes files
19
- ```
20
- npm run lint
21
- ```
22
-
23
- ### Customize configuration
24
- See [Configuration Reference](https://cli.vuejs.org/config/).
1
+ # doway-coms
2
+
3
+ ## Project setup
4
+ ```
5
+ npm install
6
+ ```
7
+
8
+ ### Compiles and hot-reloads for development
9
+ ```
10
+ npm run serve
11
+ ```
12
+
13
+ ### Compiles and minifies for production
14
+ ```
15
+ npm run build
16
+ ```
17
+
18
+ ### Lints and fixes files
19
+ ```
20
+ npm run lint
21
+ ```
22
+
23
+ ### Customize configuration
24
+ See [Configuration Reference](https://cli.vuejs.org/config/).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "1.1.79",
3
+ "version": "1.1.81",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -225,7 +225,7 @@
225
225
  >
226
226
  </template>
227
227
  <template #operation_edit="scope">
228
- <div class="interceptor-class">
228
+ <div>
229
229
  <a-button
230
230
  type="link"
231
231
  @click="operationButtonClick(item, scope)"
@@ -307,9 +307,15 @@
307
307
  :key="$index"
308
308
  >
309
309
  <a-input-number
310
- style="width: 100%"
311
- v-model:value="loopFilterValue.value[0]"
312
- ></a-input-number>
310
+ :precision="0"
311
+ size="small"
312
+ v-model="loopFilterValue.value[0]"
313
+ />~
314
+ <a-input-number
315
+ :precision="0"
316
+ size="small"
317
+ v-model="loopFilterValue.value[1]"
318
+ />
313
319
  </div>
314
320
  <a-button @click="filterAddExp(scope.column)">添加条件</a-button>
315
321
  <a-button @click="filterConfirm(scope.column)">确认</a-button>
@@ -317,17 +323,31 @@
317
323
  </template>
318
324
  <template #select_filter="scope">
319
325
  <div class="interceptor-class">
320
- <a-checkbox-group
321
- v-model="scope.column.filters[0].data.displayValues"
326
+ <!-- <a-checkbox-group v-model="scope.column.filters[0].data.displayValues">-->
327
+ <!-- <a-checkbox-->
328
+ <!-- v-for="loopData in scope.column.params.dataSource"-->
329
+ <!-- :key="loopData.value"-->
330
+ <!-- :value="loopData.value"-->
331
+ <!-- >-->
332
+ <!-- {{ loopData.caption }}</a-checkbox-->
333
+ <!-- >-->
334
+ <!-- </a-checkbox-group>-->
335
+ <a-select
336
+ v-model="scope.column.filters[0].data.displayValues"
337
+ mode="multiple"
338
+ allowClear
339
+ style="width: 300px;"
340
+ placeholder="筛选条件"
341
+ showArrow
322
342
  >
323
- <a-checkbox
324
- v-for="loopData in scope.column.params.dataSource"
325
- :key="loopData.value"
326
- :value="loopData.value"
327
- >
328
- {{ loopData.caption }}</a-checkbox
343
+ <a-select-option
344
+ v-for="loopSource in scope.column.params.dataSource"
345
+ :key="loopSource.value"
346
+ :value="loopSource.value"
347
+ >{{ loopSource.caption }}</a-select-option
329
348
  >
330
- </a-checkbox-group>
349
+ </a-select>
350
+ <br>
331
351
  <a-button @click="filterConfirm(scope.column)">确认</a-button>
332
352
  </div>
333
353
  </template>
@@ -364,9 +384,9 @@
364
384
  v-model="loopFilterValue.value[1]"
365
385
  />
366
386
  </div>
387
+ <a-button @click="filterAddExp(scope.column)">添加条件</a-button>
388
+ <a-button @click="filterConfirm(scope.column)">确认</a-button>
367
389
  </div>
368
- <a-button @click="filterAddExp(scope.column)">添加条件</a-button>
369
- <a-button @click="filterConfirm(scope.column)">确认</a-button>
370
390
  </template>
371
391
  <template #date_filter="scope">
372
392
  <div class="interceptor-class">
@@ -389,9 +409,9 @@
389
409
  v-model="loopFilterValue.value[1]"
390
410
  />
391
411
  </div>
412
+ <a-button @click="filterAddExp(scope.column)">添加条件</a-button>
413
+ <a-button @click="filterConfirm(scope.column)">确认</a-button>
392
414
  </div>
393
- <a-button @click="filterAddExp(scope.column)">添加条件</a-button>
394
- <a-button @click="filterConfirm(scope.column)">确认</a-button>
395
415
  </template>
396
416
  </VxeGrid>
397
417
  <VxeModal
@@ -2213,6 +2233,7 @@ export default {
2213
2233
  });
2214
2234
  },
2215
2235
  filterConfirm(colInfo) {
2236
+ console.log(colInfo);
2216
2237
  colInfo.filters[0].data.bindingValues = [];
2217
2238
  XEUtils.arrayEach(colInfo.filters[0].data.displayValues, (item) => {
2218
2239
  if (colInfo.params.controlType === controlType.select) {
@@ -2296,6 +2317,18 @@ export default {
2296
2317
  expStr = "小于等于";
2297
2318
  }
2298
2319
  break;
2320
+ case controlType.number:
2321
+ tempPushExp.operator = "RA";
2322
+ tempPushExp.value = loopBindingValue.value;
2323
+ console.log(tempPushExp);
2324
+ expStr = "范围";
2325
+ tempStr.exp =
2326
+ tempStr.exp +
2327
+ loopBindingValue.value[0] +
2328
+ "到" +
2329
+ loopBindingValue.value[1] +
2330
+ "或";
2331
+ break;
2299
2332
  default:
2300
2333
  tempPushExp.value = loopBindingValue.value[0];
2301
2334
  expStr = "包含";
@@ -2324,9 +2357,6 @@ export default {
2324
2357
  }
2325
2358
  //设置第一个输入框光标选中
2326
2359
  let tempClassName = column.field + "_filter_0";
2327
- console.log(tempClassName);
2328
- console.log(document);
2329
- console.log(document.getElementsByClassName(tempClassName)[0]);
2330
2360
  setTimeout(() => {
2331
2361
  document
2332
2362
  .getElementsByClassName(tempClassName)[0]
@@ -2378,82 +2408,95 @@ export default {
2378
2408
  }
2379
2409
  </style>
2380
2410
  <style lang="scss" scoped>
2381
- .base-grid-view .vxe-header--row .vxe-header--column.sortable-ghost,
2382
- .base-grid-view .vxe-header--row .vxe-header--column.sortable-chosen {
2383
- background-color: #dfecfb;
2384
- }
2385
- .base-grid-view .vxe-header--row .vxe-header--column.col--fixed {
2386
- cursor: no-drop;
2387
- }
2388
- .inner-cell-control {
2389
- width: 100% !important;
2390
- min-width: unset !important;
2391
- }
2392
- .input-box {
2393
- width: 100%;
2394
- border: 1px solid;
2395
- min-height: 24px;
2396
- border-radius: 4px;
2397
- border-color: rgb(217, 217, 217);
2398
- padding-left: 5px;
2399
- line-height: 24px !important;
2400
- }
2401
- .test_filter {
2402
- text-align: left;
2403
- // display: inline-block;
2404
- // width:90%
2405
- }
2406
- .test_filter_title {
2407
- margin-left: 2%;
2408
- }
2409
- /*滚动条整体部分*/
2410
- .base-grid-view ::-webkit-scrollbar {
2411
- width: 10px;
2412
- height: 10px;
2413
- z-index: 10;
2414
- }
2415
- /*滚动条的轨道*/
2416
- .base-grid-view ::-webkit-scrollbar-track {
2417
- background-color: #ffffff;
2418
- z-index: 10;
2419
- }
2420
- /*滚动条里面的小方块,能向上向下移动*/
2421
- .base-grid-view ::-webkit-scrollbar-thumb {
2422
- background-color: #bfbfbf;
2423
- border-radius: 5px;
2424
- border: 1px solid #f1f1f1;
2425
- box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
2426
- z-index: 10;
2427
- }
2428
- .base-grid-view ::-webkit-scrollbar-thumb:hover {
2429
- background-color: #a8a8a8;
2430
- z-index: 10;
2431
- }
2432
- .base-grid-view ::-webkit-scrollbar-thumb:active {
2433
- background-color: #787878;
2434
- z-index: 10;
2435
- }
2436
- /*边角,即两个滚动条的交汇处*/
2437
- .base-grid-view ::-webkit-scrollbar-corner {
2438
- background-color: #ffffff;
2439
- z-index: 10;
2440
- }
2441
- .draggableItem {
2442
- display: inline-block;
2443
- height: 100%;
2444
- line-height: 30px;
2445
- border: 1.3px solid #e8eaec;
2446
- margin: 0 !important;
2447
- margin: 0 10px;
2448
- // overflow: hidden;
2449
- // text-overflow: ellipsis;
2450
- // white-space: nowrap;
2451
- }
2452
- .sortable-column-demo .vxe-header--row .vxe-header--column.sortable-ghost,
2453
- .sortable-column-demo .vxe-header--row .vxe-header--column.sortable-chosen {
2454
- background-color: #dfecfb;
2455
- }
2456
- .sortable-column-demo .vxe-header--row .vxe-header--column.col--fixed {
2457
- cursor: no-drop;
2458
- }
2459
- </style>
2411
+ .base-grid-view .vxe-header--row .vxe-header--column.sortable-ghost,
2412
+ .base-grid-view .vxe-header--row .vxe-header--column.sortable-chosen {
2413
+ background-color: #dfecfb;
2414
+ }
2415
+ .base-grid-view .vxe-header--row .vxe-header--column.col--fixed {
2416
+ cursor: no-drop;
2417
+ }
2418
+ .inner-cell-control {
2419
+ width: 100% !important;
2420
+ min-width:unset!important;
2421
+ }
2422
+ .input-box {
2423
+ width: 100%;
2424
+ border: 1px solid;
2425
+ min-height: 24px;
2426
+ border-radius: 4px;
2427
+ border-color: rgb(217, 217, 217);
2428
+ padding-left: 5px;
2429
+ line-height: 24px !important;
2430
+ }
2431
+ .test_filter {
2432
+ text-align: left;
2433
+ // display: inline-block;
2434
+ // width:90%
2435
+ }
2436
+ .test_filter_title {
2437
+ margin-left: 2%;
2438
+ }
2439
+ /*滚动条整体部分*/
2440
+ .base-grid-view ::-webkit-scrollbar {
2441
+ width: 10px;
2442
+ height: 10px;
2443
+ z-index: 10;
2444
+ }
2445
+ /*滚动条的轨道*/
2446
+ .base-grid-view ::-webkit-scrollbar-track {
2447
+ background-color: #ffffff;
2448
+ z-index: 10;
2449
+ }
2450
+ /*滚动条里面的小方块,能向上向下移动*/
2451
+ .base-grid-view ::-webkit-scrollbar-thumb {
2452
+ background-color: #bfbfbf;
2453
+ border-radius: 5px;
2454
+ border: 1px solid #f1f1f1;
2455
+ box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
2456
+ z-index: 10;
2457
+ }
2458
+ .base-grid-view ::-webkit-scrollbar-thumb:hover {
2459
+ background-color: #a8a8a8;
2460
+ z-index: 10;
2461
+ }
2462
+ .base-grid-view ::-webkit-scrollbar-thumb:active {
2463
+ background-color: #787878;
2464
+ z-index: 10;
2465
+ }
2466
+ /*边角,即两个滚动条的交汇处*/
2467
+ .base-grid-view ::-webkit-scrollbar-corner {
2468
+ background-color: #ffffff;
2469
+ z-index: 10;
2470
+ }
2471
+ .draggableItem {
2472
+ display: inline-block;
2473
+ height: 100%;
2474
+ line-height: 30px;
2475
+ border: 1.3px solid #e8eaec;
2476
+ margin: 0 !important;
2477
+ margin: 0 10px;
2478
+ // overflow: hidden;
2479
+ // text-overflow: ellipsis;
2480
+ // white-space: nowrap;
2481
+ }
2482
+ .sortable-column-demo .vxe-header--row .vxe-header--column.sortable-ghost,
2483
+ .sortable-column-demo .vxe-header--row .vxe-header--column.sortable-chosen {
2484
+ background-color: #dfecfb;
2485
+ }
2486
+ .sortable-column-demo .vxe-header--row .vxe-header--column.col--fixed {
2487
+ cursor: no-drop;
2488
+ }
2489
+
2490
+ .interceptor-class {
2491
+ padding: 10px;
2492
+ ::v-deep .ant-btn {
2493
+ margin: 10px 10px 0;
2494
+ }
2495
+ ::v-deep .ant-input {
2496
+ margin-bottom: 5px;
2497
+ }
2498
+ ::v-deep .ant-calendar-picker {
2499
+ margin: 0 5px;
2500
+ }
2501
+ }
2502
+ </style>
@@ -12,7 +12,7 @@
12
12
  </template>
13
13
  <template #checkbox="{ column }">
14
14
  <a-checkbox
15
- v-model:checked="column.params.show"
15
+ v-model="column.params.show"
16
16
  @change="changeCheckbox(column)"
17
17
  ></a-checkbox>
18
18
  {{ column.title }}