meixioacomponent 0.2.69 → 0.2.70
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 +209 -189
- package/lib/meixioacomponent.umd.js +209 -189
- package/lib/meixioacomponent.umd.min.js +14 -14
- package/package.json +1 -1
- package/packages/components/proPageTable/oa_pro-table-search.vue +1 -4
- package/packages/components/proPageTable/oa_pro_screen_item.vue +7 -4
- package/packages/components/proPageTable/oa_pro_table.vue +39 -20
package/package.json
CHANGED
|
@@ -184,10 +184,7 @@ export default {
|
|
|
184
184
|
type: "info",
|
|
185
185
|
plain: true,
|
|
186
186
|
click: () => {
|
|
187
|
-
this.$parent.cleanProscreenCondition();
|
|
188
|
-
this.$nextTick(() => {
|
|
189
|
-
this.$parent.refreshData();
|
|
190
|
-
});
|
|
187
|
+
this.$parent.cleanProscreenCondition(true);
|
|
191
188
|
},
|
|
192
189
|
},
|
|
193
190
|
];
|
|
@@ -119,10 +119,13 @@ export default {
|
|
|
119
119
|
|
|
120
120
|
deleteProscreen() {
|
|
121
121
|
const { config } = this.$props;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
if (config) {
|
|
123
|
+
let index = config.findIndex((configItem) => {
|
|
124
|
+
return configItem.key == this.item.key;
|
|
125
|
+
});
|
|
126
|
+
config[index].isCheck = false;
|
|
127
|
+
}
|
|
128
|
+
|
|
126
129
|
this.$emit("deleteProscreenItem");
|
|
127
130
|
},
|
|
128
131
|
trigerCheck(index, params) {
|
|
@@ -232,6 +232,9 @@ export default {
|
|
|
232
232
|
|
|
233
233
|
// 是否开启表格横向条纹
|
|
234
234
|
borderRow: true,
|
|
235
|
+
|
|
236
|
+
// 倒计时
|
|
237
|
+
triggerDown: null,
|
|
235
238
|
};
|
|
236
239
|
},
|
|
237
240
|
created() {
|
|
@@ -243,6 +246,7 @@ export default {
|
|
|
243
246
|
},
|
|
244
247
|
beforeDestroy() {
|
|
245
248
|
componentConfig.eventBus.$off("handleTableBorder", this.handleTableBorder);
|
|
249
|
+
clearTimeout(this.triggerDown);
|
|
246
250
|
},
|
|
247
251
|
computed: {
|
|
248
252
|
config() {
|
|
@@ -448,7 +452,8 @@ export default {
|
|
|
448
452
|
cellMouseEnter(row, column, cell, event) {
|
|
449
453
|
let content = row[`${column.property}`];
|
|
450
454
|
this.tooltip.show = false;
|
|
451
|
-
if (
|
|
455
|
+
if (typeof content == Boolean || typeof content == Object || !content)
|
|
456
|
+
return;
|
|
452
457
|
const { tooltip } = this;
|
|
453
458
|
let style = event.target;
|
|
454
459
|
let position = style.getBoundingClientRect();
|
|
@@ -654,24 +659,19 @@ export default {
|
|
|
654
659
|
}
|
|
655
660
|
|
|
656
661
|
let screenResult = this.returnProScreenResult();
|
|
657
|
-
this.$props.httpRequire(screenResult).then((res) => {
|
|
658
|
-
this.setTableData(res);
|
|
662
|
+
this.$props.httpRequire(screenResult).then((res, immediately = false) => {
|
|
663
|
+
this.setTableData(res, immediately);
|
|
659
664
|
});
|
|
660
665
|
},
|
|
661
666
|
// 设置表格数据
|
|
662
|
-
setTableData(data) {
|
|
667
|
+
setTableData(data, immediately = false) {
|
|
663
668
|
this.tableData = [];
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
this.computedTotalList();
|
|
671
|
-
this.$nextTick(() => {
|
|
672
|
-
this.scrollToTop();
|
|
673
|
-
});
|
|
674
|
-
}, 1000);
|
|
669
|
+
this.tableData = data;
|
|
670
|
+
if (immediately) {
|
|
671
|
+
this.tableDataCompleted();
|
|
672
|
+
} else {
|
|
673
|
+
this.setTriggerDown();
|
|
674
|
+
}
|
|
675
675
|
},
|
|
676
676
|
|
|
677
677
|
// 表格如果有滚动条将滚动条拉到顶部
|
|
@@ -689,11 +689,14 @@ export default {
|
|
|
689
689
|
});
|
|
690
690
|
},
|
|
691
691
|
// 清空高级筛选的条件
|
|
692
|
-
cleanProscreenCondition() {
|
|
692
|
+
cleanProscreenCondition(flag = false) {
|
|
693
693
|
if (this.proScreenList.length <= 0) return;
|
|
694
694
|
this.proScreenList.forEach((item) => {
|
|
695
695
|
item.value = null;
|
|
696
696
|
});
|
|
697
|
+
if (flag) {
|
|
698
|
+
this.refreshData(true);
|
|
699
|
+
}
|
|
697
700
|
},
|
|
698
701
|
// 自定义表格的列
|
|
699
702
|
setTableHeaderConfig(configList) {
|
|
@@ -710,7 +713,7 @@ export default {
|
|
|
710
713
|
label: "",
|
|
711
714
|
key: "noData",
|
|
712
715
|
lock: false,
|
|
713
|
-
width:
|
|
716
|
+
width: 30,
|
|
714
717
|
show: true,
|
|
715
718
|
template: false,
|
|
716
719
|
});
|
|
@@ -765,10 +768,26 @@ export default {
|
|
|
765
768
|
handleTableBorder(params) {
|
|
766
769
|
this[`${params.key}`] = params.value;
|
|
767
770
|
},
|
|
771
|
+
|
|
772
|
+
setTriggerDown() {
|
|
773
|
+
clearTimeout(this.triggerDown);
|
|
774
|
+
this.triggerDown = setTimeout(() => {
|
|
775
|
+
this.tableDataCompleted();
|
|
776
|
+
}, 1000);
|
|
777
|
+
},
|
|
778
|
+
|
|
779
|
+
tableDataCompleted() {
|
|
780
|
+
if (this.tableData.length == 0) {
|
|
781
|
+
this.defaultSvg = true;
|
|
782
|
+
}
|
|
783
|
+
this.loading = false;
|
|
784
|
+
this.computedTotalList();
|
|
785
|
+
this.$nextTick(() => {
|
|
786
|
+
this.scrollToTop();
|
|
787
|
+
});
|
|
788
|
+
},
|
|
768
789
|
},
|
|
769
|
-
watch: {
|
|
770
|
-
fixedList(newValue, oldValue) {},
|
|
771
|
-
},
|
|
790
|
+
watch: {},
|
|
772
791
|
};
|
|
773
792
|
</script>
|
|
774
793
|
|