doway-coms 1.1.80 → 1.1.82
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 +2 -2
- package/README.md +24 -24
- package/package.json +1 -1
- package/packages/BaseGrid/src/index.vue +122 -95
- package/packages/BaseGridAdjust/src/index.vue +1 -1
- package/packages/utils/store.js +6 -1
- package/dist/doway-coms.common.js +0 -135645
- package/dist/doway-coms.css +0 -3
- package/dist/doway-coms.umd.js +0 -135655
- package/dist/doway-coms.umd.min.js +0 -317
- package/dist/package.json +0 -12
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
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
>
|
|
226
226
|
</template>
|
|
227
227
|
<template #operation_edit="scope">
|
|
228
|
-
<div
|
|
228
|
+
<div>
|
|
229
229
|
<a-button
|
|
230
230
|
type="link"
|
|
231
231
|
@click="operationButtonClick(item, scope)"
|
|
@@ -309,12 +309,12 @@
|
|
|
309
309
|
<a-input-number
|
|
310
310
|
:precision="0"
|
|
311
311
|
size="small"
|
|
312
|
-
v-model
|
|
312
|
+
v-model="loopFilterValue.value[0]"
|
|
313
313
|
/>~
|
|
314
314
|
<a-input-number
|
|
315
315
|
:precision="0"
|
|
316
316
|
size="small"
|
|
317
|
-
v-model
|
|
317
|
+
v-model="loopFilterValue.value[1]"
|
|
318
318
|
/>
|
|
319
319
|
</div>
|
|
320
320
|
<a-button @click="filterAddExp(scope.column)">添加条件</a-button>
|
|
@@ -323,17 +323,31 @@
|
|
|
323
323
|
</template>
|
|
324
324
|
<template #select_filter="scope">
|
|
325
325
|
<div class="interceptor-class">
|
|
326
|
-
<a-checkbox-group
|
|
327
|
-
|
|
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
|
|
328
342
|
>
|
|
329
|
-
<a-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
>
|
|
334
|
-
{{ 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
|
|
335
348
|
>
|
|
336
|
-
</a-
|
|
349
|
+
</a-select>
|
|
350
|
+
<br>
|
|
337
351
|
<a-button @click="filterConfirm(scope.column)">确认</a-button>
|
|
338
352
|
</div>
|
|
339
353
|
</template>
|
|
@@ -370,9 +384,9 @@
|
|
|
370
384
|
v-model="loopFilterValue.value[1]"
|
|
371
385
|
/>
|
|
372
386
|
</div>
|
|
387
|
+
<a-button @click="filterAddExp(scope.column)">添加条件</a-button>
|
|
388
|
+
<a-button @click="filterConfirm(scope.column)">确认</a-button>
|
|
373
389
|
</div>
|
|
374
|
-
<a-button @click="filterAddExp(scope.column)">添加条件</a-button>
|
|
375
|
-
<a-button @click="filterConfirm(scope.column)">确认</a-button>
|
|
376
390
|
</template>
|
|
377
391
|
<template #date_filter="scope">
|
|
378
392
|
<div class="interceptor-class">
|
|
@@ -395,9 +409,9 @@
|
|
|
395
409
|
v-model="loopFilterValue.value[1]"
|
|
396
410
|
/>
|
|
397
411
|
</div>
|
|
412
|
+
<a-button @click="filterAddExp(scope.column)">添加条件</a-button>
|
|
413
|
+
<a-button @click="filterConfirm(scope.column)">确认</a-button>
|
|
398
414
|
</div>
|
|
399
|
-
<a-button @click="filterAddExp(scope.column)">添加条件</a-button>
|
|
400
|
-
<a-button @click="filterConfirm(scope.column)">确认</a-button>
|
|
401
415
|
</template>
|
|
402
416
|
</VxeGrid>
|
|
403
417
|
<VxeModal
|
|
@@ -2394,82 +2408,95 @@ export default {
|
|
|
2394
2408
|
}
|
|
2395
2409
|
</style>
|
|
2396
2410
|
<style lang="scss" scoped>
|
|
2397
|
-
.base-grid-view .vxe-header--row .vxe-header--column.sortable-ghost,
|
|
2398
|
-
.base-grid-view .vxe-header--row .vxe-header--column.sortable-chosen {
|
|
2399
|
-
|
|
2400
|
-
}
|
|
2401
|
-
.base-grid-view .vxe-header--row .vxe-header--column.col--fixed {
|
|
2402
|
-
|
|
2403
|
-
}
|
|
2404
|
-
.inner-cell-control {
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
}
|
|
2408
|
-
.input-box {
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
}
|
|
2417
|
-
.test_filter {
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
}
|
|
2422
|
-
.test_filter_title {
|
|
2423
|
-
|
|
2424
|
-
}
|
|
2425
|
-
/*滚动条整体部分*/
|
|
2426
|
-
.base-grid-view ::-webkit-scrollbar {
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
}
|
|
2431
|
-
/*滚动条的轨道*/
|
|
2432
|
-
.base-grid-view ::-webkit-scrollbar-track {
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
}
|
|
2436
|
-
/*滚动条里面的小方块,能向上向下移动*/
|
|
2437
|
-
.base-grid-view ::-webkit-scrollbar-thumb {
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
}
|
|
2444
|
-
.base-grid-view ::-webkit-scrollbar-thumb:hover {
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
}
|
|
2448
|
-
.base-grid-view ::-webkit-scrollbar-thumb:active {
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
}
|
|
2452
|
-
/*边角,即两个滚动条的交汇处*/
|
|
2453
|
-
.base-grid-view ::-webkit-scrollbar-corner {
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
}
|
|
2457
|
-
.draggableItem {
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
}
|
|
2468
|
-
.sortable-column-demo .vxe-header--row .vxe-header--column.sortable-ghost,
|
|
2469
|
-
.sortable-column-demo .vxe-header--row .vxe-header--column.sortable-chosen {
|
|
2470
|
-
|
|
2471
|
-
}
|
|
2472
|
-
.sortable-column-demo .vxe-header--row .vxe-header--column.col--fixed {
|
|
2473
|
-
|
|
2474
|
-
}
|
|
2475
|
-
|
|
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>
|
package/packages/utils/store.js
CHANGED
|
@@ -16,11 +16,15 @@ export default new Vuex.Store({
|
|
|
16
16
|
moduleViewInfo: {},
|
|
17
17
|
controlSize: 'small',
|
|
18
18
|
newId: 0,//明细新增id
|
|
19
|
+
userId: '',
|
|
19
20
|
},
|
|
20
21
|
mutations: {
|
|
21
22
|
SET_TOKEN: (state, token) => {
|
|
22
23
|
state.token = token
|
|
23
24
|
},
|
|
25
|
+
SET_USERID: (state, userId) => {
|
|
26
|
+
state.userId = userId
|
|
27
|
+
},
|
|
24
28
|
SET_INDUSTRY_VERSION:(state,industryVersion)=>{
|
|
25
29
|
state.industryVersion = industryVersion
|
|
26
30
|
},
|
|
@@ -109,6 +113,7 @@ export default new Vuex.Store({
|
|
|
109
113
|
newId: state => () => {
|
|
110
114
|
state.newId = state.newId + 1
|
|
111
115
|
return state.newId
|
|
112
|
-
}
|
|
116
|
+
},
|
|
117
|
+
userId: state => state.userId,
|
|
113
118
|
}
|
|
114
119
|
})
|