n20-project-component 1.0.8 → 1.0.10
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/dist/n20-project-component.common.js +75 -70
- package/dist/n20-project-component.css +1 -1
- package/dist/n20-project-component.umd.js +75 -70
- package/dist/n20-project-component.umd.min.js +5 -5
- package/package.json +1 -1
- package/src/components/ProFilterView/AdvancedFilter/index.vue +3 -0
- package/src/components/ProFilterView/index.vue +12 -10
- package/src/components/ProFilterView/style/iconfont.css +2 -2
- package/dist/fonts/n20-iconfont.09d221ee.woff +0 -0
- package/dist/fonts/n20-iconfont.1c4bfacc.ttf +0 -0
- package/dist/fonts/n20-iconfont.a6f34dc7.woff2 +0 -0
- package/dist/fonts/v3-iconfont.38d4b428.woff +0 -0
- package/dist/fonts/v3-iconfont.b56977e8.woff2 +0 -0
- package/dist/fonts/v3-iconfont.f0839d3b.ttf +0 -0
package/package.json
CHANGED
|
@@ -325,6 +325,7 @@ export default {
|
|
|
325
325
|
this.stVisible = true
|
|
326
326
|
this.form.type = 1
|
|
327
327
|
this.form.keyIds = this.checkList
|
|
328
|
+
this.$set(this.form, 'viewName', '')
|
|
328
329
|
},
|
|
329
330
|
getDefaultCheck() {
|
|
330
331
|
let _checkList = this.filterList
|
|
@@ -554,6 +555,8 @@ export default {
|
|
|
554
555
|
*/
|
|
555
556
|
getFilterList() {
|
|
556
557
|
if (!this.filterId) {
|
|
558
|
+
console.log(this.checkIds, 1122);
|
|
559
|
+
|
|
557
560
|
if (this.checkIds.length === 0) {
|
|
558
561
|
this.GroupData = []
|
|
559
562
|
} else {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
trigger="click"
|
|
13
13
|
class="m-r-s"
|
|
14
14
|
>
|
|
15
|
-
<el-button slot="reference" class="botton" :class="{ activiti:
|
|
15
|
+
<el-button slot="reference" class="botton" :class="{ activiti: !!selectItem.viewId }">
|
|
16
16
|
<div class="flex-box flex-v m-r">
|
|
17
17
|
<i class="v3-icon-inbox"></i>
|
|
18
18
|
<div class="popover-title" style="margin: 0 8px" :title="selectedItem">{{ selectedItem }}</div>
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
<div class="filter-view-wrapper">
|
|
26
26
|
<cl-drag-list class="flex-item" :list="filteredList" :hide-delete="true" @change="handleDragSort">
|
|
27
27
|
<template v-slot="{ item }">
|
|
28
|
-
<div class="proFilterView-list-item" :class="{ 'is-selected':
|
|
28
|
+
<div class="proFilterView-list-item" :class="{ 'is-selected': selectItem.viewId === item.viewId }">
|
|
29
29
|
<span class="proFilterView-list-item__name" :title="item.viewName" @click="handleSelect(item)">{{
|
|
30
30
|
item.viewName
|
|
31
31
|
}}</span>
|
|
32
|
-
<i v-if="
|
|
32
|
+
<i v-if="selectItem.viewId === item.viewId" class="el-icon-check selected-icon"></i>
|
|
33
33
|
<el-dropdown
|
|
34
|
-
v-if="
|
|
34
|
+
v-if="item.viewId && selectItem.viewId !== item.viewId"
|
|
35
35
|
trigger="click"
|
|
36
36
|
class="proFilterView-list-item__more"
|
|
37
37
|
@command="command => handleCommand(command, item)"
|
|
@@ -114,6 +114,7 @@
|
|
|
114
114
|
</cl-advanced-filter>
|
|
115
115
|
<cl-dialog
|
|
116
116
|
v-drag
|
|
117
|
+
v-if="visible"
|
|
117
118
|
width="85%"
|
|
118
119
|
:visible.sync="visible"
|
|
119
120
|
:title="isAdd ? $lc('新建视图') : $lc('编辑视图')"
|
|
@@ -446,12 +447,12 @@ export default {
|
|
|
446
447
|
},
|
|
447
448
|
// 新增
|
|
448
449
|
add() {
|
|
449
|
-
let keyIds = this.filterList.filter(v => v.required).map(v => v.id);
|
|
450
|
-
|
|
451
450
|
this.isRefresh = false;
|
|
452
451
|
this.viewPopoverVisible = false;
|
|
453
452
|
this.visible = true;
|
|
454
453
|
this.isAdd = true;
|
|
454
|
+
|
|
455
|
+
let keyIds = this.filterList.filter(v => v.required || v.static).map(v => v.id);
|
|
455
456
|
this.form = {
|
|
456
457
|
userNo: sessionStorage.getItem('userNo'),
|
|
457
458
|
pageNo: this.filterId,
|
|
@@ -469,6 +470,8 @@ export default {
|
|
|
469
470
|
this.visible = true;
|
|
470
471
|
this.isAdd = false;
|
|
471
472
|
this.dialogFilterKey++;
|
|
473
|
+
console.log(this.form, 123);
|
|
474
|
+
|
|
472
475
|
// 浅拷贝,避免修改 form 时污染原始 item
|
|
473
476
|
this.form = { ...item };
|
|
474
477
|
this.viewId = item.viewId;
|
|
@@ -547,10 +550,12 @@ export default {
|
|
|
547
550
|
},
|
|
548
551
|
// 选中视图
|
|
549
552
|
handleSelect(item) {
|
|
553
|
+
console.log(item, 111);
|
|
554
|
+
|
|
550
555
|
this.viewPopoverVisible = false;
|
|
551
556
|
this.selectItem = item;
|
|
552
557
|
this.selectedItem = item.viewName;
|
|
553
|
-
if (item.
|
|
558
|
+
if (!item.viewId) {
|
|
554
559
|
this.selectItem = '';
|
|
555
560
|
this.searchValue = { ...this.getInitialSearchValue, ...JSON.parse(JSON.stringify(this.initialValue || {})) };
|
|
556
561
|
// 无视图时恢复原来的筛选逻辑
|
|
@@ -629,9 +634,6 @@ export default {
|
|
|
629
634
|
</script>
|
|
630
635
|
|
|
631
636
|
<style scoped>
|
|
632
|
-
@import './style/iconfont.css';
|
|
633
|
-
@import './style/style.scss';
|
|
634
|
-
|
|
635
637
|
.filter.is-hidden {
|
|
636
638
|
padding: 4px;
|
|
637
639
|
border-bottom: none !important;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|