Commit 24417f68 authored by 沈翠玲's avatar 沈翠玲

Merge branch 'dev' of http://git.local.topsunit.com/mes/mes-ui into dev

parents 67162e27 567b0410
......@@ -315,6 +315,14 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
itemCode: undefined,
itemName: undefined,
sapItemCode: undefined,
itemTypeId: 0,
}
this.resetForm("queryForm");
this.handleQuery();
},
......
......@@ -75,7 +75,7 @@
:ref="`popoverRef-${calendarDay.theDay}`"
placement="bottom"
trigger="click"
@show="handleShow(teamShift, `popoverRef-${calendarDay.theDay}`)"
@show="handleShow(teamShift, index, `popoverRef-${calendarDay.theDay}`)"
>
<span
v-for="(item, index) in content"
......@@ -300,7 +300,7 @@ export default {
return festAndTerm == "" ? lunarMD : festAndTerm;
},
handleShow(row, ref) {
handleShow(row, index, ref) {
Object.keys(this.$refs).forEach((key) => {
if(key.includes("popoverRef-")) {
if(key != ref) {
......@@ -311,6 +311,14 @@ export default {
});
}
})
} else {
this.$refs[key].forEach((ele, idx) => {
if(index != idx) {
this.$nextTick(() => {
ele.doClose();
});
}
})
}
}
});
......
......@@ -181,6 +181,7 @@ export default {
},
handleItemSelect() {
this.$refs.brSelectpro.resetQuery();
this.$refs.brSelectpro.showFlag = true;
},
onItemSelect(row) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment