meixioacomponent 0.2.61 → 0.2.64
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/lib/meixioacomponent.common.js +475 -416
- package/lib/meixioacomponent.umd.js +475 -416
- package/lib/meixioacomponent.umd.min.js +21 -21
- package/lib/style/element/index.css +2 -2
- package/package.json +1 -1
- package/packages/components/base/basePopoverButton/index.vue +2 -0
- package/packages/components/proForm/dialogForm/baseDialogForm.vue +6 -1
- package/packages/components/proPageTable/oa_pro-table-search.vue +56 -12
- package/packages/components/proPageTable/oa_pro_footer.vue +2 -2
- package/packages/components/proPageTable/oa_pro_screen.vue +2 -2
- package/packages/components/proPageTable/oa_pro_screen_item.vue +19 -4
- package/packages/components/proPageTable/oa_pro_table.vue +17 -14
- package/packages/components/searchHeader/searchHeader.vue +1 -1
- package/packages/components/style/element/index.css +2 -2
|
@@ -2328,10 +2328,10 @@
|
|
|
2328
2328
|
color: #1f2329;
|
|
2329
2329
|
}
|
|
2330
2330
|
.el-dialog__body {
|
|
2331
|
-
padding: var(--padding-5) calc(var(--padding-5) * 2);
|
|
2332
|
-
color: var(--font-color-d);
|
|
2333
2331
|
font-size: 14px;
|
|
2332
|
+
color: var(--font-color-d);
|
|
2334
2333
|
word-break: break-all;
|
|
2334
|
+
padding: 0px calc(var(--padding-5) * 2);
|
|
2335
2335
|
}
|
|
2336
2336
|
.el-dialog__footer {
|
|
2337
2337
|
padding: 20px;
|
package/package.json
CHANGED
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
</div>
|
|
52
52
|
</div>
|
|
53
53
|
<baseButtonHandleVue
|
|
54
|
-
:size="`small`"
|
|
55
54
|
slot="dialog-footer"
|
|
55
|
+
:size="footerButtonSize"
|
|
56
56
|
:config="footerHandleConfig"
|
|
57
57
|
></baseButtonHandleVue>
|
|
58
58
|
</base-dialog>
|
|
@@ -128,6 +128,11 @@ export default {
|
|
|
128
128
|
default: null,
|
|
129
129
|
},
|
|
130
130
|
|
|
131
|
+
footerButtonSize: {
|
|
132
|
+
type: String,
|
|
133
|
+
default: "small",
|
|
134
|
+
},
|
|
135
|
+
|
|
131
136
|
contentHeight: {
|
|
132
137
|
type: String,
|
|
133
138
|
default: "50vh",
|
|
@@ -14,30 +14,49 @@
|
|
|
14
14
|
}"
|
|
15
15
|
:disabled="_proScreenList.length <= 0"
|
|
16
16
|
@click="handleProScreenList"
|
|
17
|
-
:type="showProScreenList ? '
|
|
17
|
+
:type="showProScreenList ? 'selected' : 'info'"
|
|
18
18
|
>{{ handleScreenText }} <i :class="handleScreenIcon"></i>
|
|
19
19
|
</el-button>
|
|
20
20
|
<el-button size="medium" plain type="info" @click="handleOpenProScreen">
|
|
21
|
-
<i class="meixicomponenticonfont meixicomponenticon-shaixuan"></i
|
|
21
|
+
<i class="meixicomponenticonfont meixicomponenticon-shaixuan"></i
|
|
22
|
+
>高级筛选
|
|
22
23
|
</el-button>
|
|
23
24
|
</searchHeaderVue>
|
|
24
25
|
|
|
25
26
|
<div class="search-mid-content" v-show="showProScreenList">
|
|
26
27
|
<el-card class="box-card">
|
|
27
|
-
<
|
|
28
|
+
<div class="box-card-title">
|
|
29
|
+
<span class="tips-text">筛选条件</span>
|
|
30
|
+
|
|
31
|
+
<base-line-info-item
|
|
32
|
+
:event="false"
|
|
33
|
+
:icon="false"
|
|
34
|
+
:useSlot="true"
|
|
35
|
+
style="width: auto"
|
|
36
|
+
:valueAlign="`left`"
|
|
37
|
+
:label="`排列方式:`"
|
|
38
|
+
>
|
|
39
|
+
<base-toggle
|
|
40
|
+
slot="lineInforSlot"
|
|
41
|
+
v-model="toggle.index"
|
|
42
|
+
:toggleList="toggle.list"
|
|
43
|
+
></base-toggle>
|
|
44
|
+
</base-line-info-item>
|
|
45
|
+
</div>
|
|
28
46
|
<div class="screen-item-wrap">
|
|
29
47
|
<oa_pro_screen_itemVue
|
|
30
48
|
:key="index"
|
|
31
49
|
:item="item"
|
|
32
50
|
:disable="true"
|
|
51
|
+
:style="screenStyle"
|
|
52
|
+
:configIndex="index"
|
|
33
53
|
:config="proScreenConfig"
|
|
34
|
-
style="width: 50%"
|
|
35
54
|
v-for="(item, index) in _proScreenList"
|
|
36
55
|
></oa_pro_screen_itemVue>
|
|
37
56
|
</div>
|
|
38
57
|
<baseButtonHandle
|
|
39
58
|
:size="`mini`"
|
|
40
|
-
:align="`
|
|
59
|
+
:align="`end`"
|
|
41
60
|
:config="footerHandleConfig"
|
|
42
61
|
></baseButtonHandle>
|
|
43
62
|
</el-card>
|
|
@@ -55,6 +74,14 @@ export default {
|
|
|
55
74
|
showProScreen: false,
|
|
56
75
|
showProScreenList: false,
|
|
57
76
|
footerHandleConfig: [],
|
|
77
|
+
|
|
78
|
+
toggle: {
|
|
79
|
+
index: 1,
|
|
80
|
+
list: [
|
|
81
|
+
{ label: "三列", value: 1 },
|
|
82
|
+
{ label: "四列", value: 2 },
|
|
83
|
+
],
|
|
84
|
+
},
|
|
58
85
|
};
|
|
59
86
|
},
|
|
60
87
|
created() {
|
|
@@ -91,6 +118,15 @@ export default {
|
|
|
91
118
|
return item.exposed;
|
|
92
119
|
});
|
|
93
120
|
},
|
|
121
|
+
rowWidth() {
|
|
122
|
+
return this.toggle.index == 1 ? 33 : 25;
|
|
123
|
+
},
|
|
124
|
+
|
|
125
|
+
screenStyle() {
|
|
126
|
+
return {
|
|
127
|
+
width: `${this.rowWidth}%`,
|
|
128
|
+
};
|
|
129
|
+
},
|
|
94
130
|
|
|
95
131
|
module: {
|
|
96
132
|
get() {
|
|
@@ -103,7 +139,7 @@ export default {
|
|
|
103
139
|
},
|
|
104
140
|
methods: {
|
|
105
141
|
handleSearch() {
|
|
106
|
-
this.$parent.
|
|
142
|
+
this.$parent.refreshData();
|
|
107
143
|
},
|
|
108
144
|
handleProScreenList() {
|
|
109
145
|
this.showProScreenList = !this.showProScreenList;
|
|
@@ -132,7 +168,7 @@ export default {
|
|
|
132
168
|
type: "primary",
|
|
133
169
|
plain: false,
|
|
134
170
|
click: () => {
|
|
135
|
-
this.$parent.
|
|
171
|
+
this.$parent.refreshData();
|
|
136
172
|
},
|
|
137
173
|
},
|
|
138
174
|
{
|
|
@@ -142,7 +178,7 @@ export default {
|
|
|
142
178
|
click: () => {
|
|
143
179
|
this.$parent.cleanProscreenCondition();
|
|
144
180
|
this.$nextTick(() => {
|
|
145
|
-
this.$parent.
|
|
181
|
+
this.$parent.refreshData();
|
|
146
182
|
});
|
|
147
183
|
},
|
|
148
184
|
},
|
|
@@ -166,10 +202,18 @@ export default {
|
|
|
166
202
|
.box-card {
|
|
167
203
|
width: 100%;
|
|
168
204
|
height: 100%;
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
205
|
+
|
|
206
|
+
.box-card-title {
|
|
207
|
+
display: flex;
|
|
208
|
+
align-items: center;
|
|
209
|
+
flex-flow: row nowrap;
|
|
210
|
+
justify-content: space-between;
|
|
211
|
+
.tips-text {
|
|
212
|
+
display: block;
|
|
213
|
+
color: var(--font-color-d);
|
|
214
|
+
font-size: var(--font-size-l);
|
|
215
|
+
font-weight: var(--font-weight-kg);
|
|
216
|
+
}
|
|
173
217
|
}
|
|
174
218
|
.screen-item-wrap {
|
|
175
219
|
width: 100%;
|
|
@@ -55,11 +55,11 @@ export default {
|
|
|
55
55
|
methods: {
|
|
56
56
|
sizeChange(e) {
|
|
57
57
|
this.$emit("pageSizeChange");
|
|
58
|
-
this.$parent.
|
|
58
|
+
this.$parent.refreshData();
|
|
59
59
|
},
|
|
60
60
|
currentChange() {
|
|
61
61
|
this.$emit("pageCurrentChange");
|
|
62
|
-
this.$parent.
|
|
62
|
+
this.$parent.refreshData(false);
|
|
63
63
|
},
|
|
64
64
|
},
|
|
65
65
|
};
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
:key="index"
|
|
8
8
|
ref="oaProScreenItemVue"
|
|
9
9
|
:config="proScreenConfig"
|
|
10
|
-
:configIndex="item.configIndex < 0 ? null : item.configIndex"
|
|
11
10
|
v-for="(item, index) in proScreenList"
|
|
12
11
|
@deleteProscreenItem="deleteProscreenItem(index)"
|
|
12
|
+
:configIndex="item.configIndex < 0 ? null : item.configIndex"
|
|
13
13
|
></oa_pro_screen_itemVue>
|
|
14
14
|
</div>
|
|
15
15
|
<div class="screen-handle-wrap">
|
|
16
|
-
<el-button type="
|
|
16
|
+
<el-button type="info" size="small" @click="insertDefaultItem">
|
|
17
17
|
<i class="el-icon-plus"></i>
|
|
18
18
|
添加筛选条件</el-button
|
|
19
19
|
>
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
v-if="item.type == 'select'"
|
|
60
60
|
>
|
|
61
61
|
<el-option
|
|
62
|
-
v-for="item in config[
|
|
62
|
+
v-for="item in config[findProselectList(item)].selectList"
|
|
63
63
|
:key="item.value"
|
|
64
64
|
:value="item.value"
|
|
65
65
|
:label="item.label"
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
<base-icon
|
|
72
72
|
:color="`m`"
|
|
73
73
|
:event="true"
|
|
74
|
-
:name="`meixicomponenticon-close`"
|
|
75
74
|
@iconClick="deleteProscreen"
|
|
75
|
+
:name="`meixicomponenticon-close`"
|
|
76
76
|
></base-icon>
|
|
77
77
|
<el-checkbox v-model="item.exposed" :disabled="!item.key"
|
|
78
78
|
>外露</el-checkbox
|
|
@@ -91,7 +91,9 @@ export default {
|
|
|
91
91
|
created() {
|
|
92
92
|
this.privateConfigIndex = this.$props.configIndex;
|
|
93
93
|
},
|
|
94
|
-
mounted() {
|
|
94
|
+
mounted() {
|
|
95
|
+
console.log(this.config);
|
|
96
|
+
},
|
|
95
97
|
props: {
|
|
96
98
|
item: {},
|
|
97
99
|
config: {},
|
|
@@ -116,6 +118,11 @@ export default {
|
|
|
116
118
|
},
|
|
117
119
|
|
|
118
120
|
deleteProscreen() {
|
|
121
|
+
const { config } = this.$props;
|
|
122
|
+
let index = config.findIndex((configItem) => {
|
|
123
|
+
return configItem.key == this.item.key;
|
|
124
|
+
});
|
|
125
|
+
config[index].isCheck = false;
|
|
119
126
|
this.$emit("deleteProscreenItem");
|
|
120
127
|
},
|
|
121
128
|
trigerCheck(index, params) {
|
|
@@ -123,6 +130,14 @@ export default {
|
|
|
123
130
|
this.$props.config[index].isCheck = params;
|
|
124
131
|
}, 120);
|
|
125
132
|
},
|
|
133
|
+
|
|
134
|
+
findProselectList(item) {
|
|
135
|
+
const { config } = this.$props;
|
|
136
|
+
let index = config.findIndex((configItem) => {
|
|
137
|
+
return configItem.key == item.key;
|
|
138
|
+
});
|
|
139
|
+
return index;
|
|
140
|
+
},
|
|
126
141
|
},
|
|
127
142
|
|
|
128
143
|
watch: {
|
|
@@ -168,7 +183,7 @@ export default {
|
|
|
168
183
|
// justify-content: space-between !important;
|
|
169
184
|
.item-wrap-left,
|
|
170
185
|
.item-wrap-right {
|
|
171
|
-
width:
|
|
186
|
+
width: 45% !important;
|
|
172
187
|
}
|
|
173
188
|
}
|
|
174
189
|
</style>
|
|
@@ -157,9 +157,9 @@
|
|
|
157
157
|
|
|
158
158
|
<!-- 高级筛选的弹框 -->
|
|
159
159
|
<base-dialog
|
|
160
|
-
:title="`高级筛选`"
|
|
161
160
|
ref="dialog"
|
|
162
161
|
:width="`1000px`"
|
|
162
|
+
:title="`高级筛选`"
|
|
163
163
|
:modal="proScreenModel"
|
|
164
164
|
:modallAppendToBody="false"
|
|
165
165
|
>
|
|
@@ -172,6 +172,7 @@
|
|
|
172
172
|
></oa_pro_screenVue>
|
|
173
173
|
|
|
174
174
|
<baseButtonHandle
|
|
175
|
+
:size="`medium`"
|
|
175
176
|
slot="dialog-footer"
|
|
176
177
|
:config="footerHandleConfig"
|
|
177
178
|
></baseButtonHandle>
|
|
@@ -421,8 +422,8 @@ export default {
|
|
|
421
422
|
this.$props.tableConfig.forEach((item, index) => {
|
|
422
423
|
item.preIndex = index;
|
|
423
424
|
this.$set(item, "show", true);
|
|
424
|
-
if (!item.width || item.width <
|
|
425
|
-
item.width =
|
|
425
|
+
if (!item.width || item.width < 100) {
|
|
426
|
+
item.width = 100;
|
|
426
427
|
}
|
|
427
428
|
});
|
|
428
429
|
|
|
@@ -430,12 +431,12 @@ export default {
|
|
|
430
431
|
label: "",
|
|
431
432
|
key: "noData",
|
|
432
433
|
lock: false,
|
|
433
|
-
width:
|
|
434
|
+
width: 30,
|
|
434
435
|
show: true,
|
|
435
436
|
template: false,
|
|
436
437
|
});
|
|
437
438
|
|
|
438
|
-
this.
|
|
439
|
+
this.refreshData();
|
|
439
440
|
},
|
|
440
441
|
searchContentHeightChange(height) {
|
|
441
442
|
this.searchContentHeight = height;
|
|
@@ -445,16 +446,17 @@ export default {
|
|
|
445
446
|
let content = row[`${column.property}`];
|
|
446
447
|
this.tooltip.show = false;
|
|
447
448
|
if (!content) return;
|
|
449
|
+
const { tooltip } = this;
|
|
448
450
|
let style = event.target;
|
|
449
451
|
let position = style.getBoundingClientRect();
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
452
|
+
tooltip.width = style.clientWidth;
|
|
453
|
+
tooltip.height = style.clientHeight;
|
|
454
|
+
tooltip.top = position.top;
|
|
455
|
+
tooltip.left = position.left;
|
|
456
|
+
tooltip.content = content;
|
|
455
457
|
|
|
456
458
|
this.$nextTick(() => {
|
|
457
|
-
|
|
459
|
+
tooltip.show = true;
|
|
458
460
|
});
|
|
459
461
|
},
|
|
460
462
|
|
|
@@ -522,7 +524,7 @@ export default {
|
|
|
522
524
|
/* 当快捷筛选的按钮被点击后 */
|
|
523
525
|
handleScreen(index) {
|
|
524
526
|
this.$props.screenList.index = index;
|
|
525
|
-
this.
|
|
527
|
+
this.refreshData();
|
|
526
528
|
},
|
|
527
529
|
// 初始化高级筛选
|
|
528
530
|
initProScreenConfig() {
|
|
@@ -589,12 +591,13 @@ export default {
|
|
|
589
591
|
},
|
|
590
592
|
// 删除高级筛选的item
|
|
591
593
|
deleteProscreenItem(index) {
|
|
594
|
+
this.proScreenList[index].isCheck = false;
|
|
592
595
|
this.proScreenList.splice(index, 1);
|
|
593
596
|
},
|
|
594
597
|
// 弹框确定的按钮
|
|
595
598
|
dialogProscreenConfirm(type) {
|
|
596
599
|
if (type) {
|
|
597
|
-
this.
|
|
600
|
+
this.refreshData();
|
|
598
601
|
}
|
|
599
602
|
this.$refs.dialog.closeDialog();
|
|
600
603
|
},
|
|
@@ -636,7 +639,7 @@ export default {
|
|
|
636
639
|
return result;
|
|
637
640
|
},
|
|
638
641
|
// 开始调用http请求
|
|
639
|
-
async
|
|
642
|
+
async refreshData(init = true) {
|
|
640
643
|
this.loading = true;
|
|
641
644
|
this.defaultSvg = false;
|
|
642
645
|
this.cleanCheckValue();
|
|
@@ -2328,10 +2328,10 @@
|
|
|
2328
2328
|
color: #1f2329;
|
|
2329
2329
|
}
|
|
2330
2330
|
.el-dialog__body {
|
|
2331
|
-
padding: var(--padding-5) calc(var(--padding-5) * 2);
|
|
2332
|
-
color: var(--font-color-d);
|
|
2333
2331
|
font-size: 14px;
|
|
2332
|
+
color: var(--font-color-d);
|
|
2334
2333
|
word-break: break-all;
|
|
2334
|
+
padding: 0px calc(var(--padding-5) * 2);
|
|
2335
2335
|
}
|
|
2336
2336
|
.el-dialog__footer {
|
|
2337
2337
|
padding: 20px;
|