Commit 94fb05e2 authored by tanjunxin's avatar tanjunxin

fix: 排版日历pop交互方式修改

parent 958ca2f6
...@@ -72,10 +72,10 @@ ...@@ -72,10 +72,10 @@
class="grid-content" class="grid-content"
> >
<el-popover <el-popover
ref="popoverRef" :ref="`popoverRef-${calendarDay.theDay}`"
placement="top" placement="bottom"
trigger="focus" trigger="click"
@show="handleShow(teamShift)" @show="handleShow(teamShift, `popoverRef-${calendarDay.theDay}`)"
> >
<span <span
v-for="(item, index) in content" v-for="(item, index) in content"
...@@ -300,7 +300,19 @@ export default { ...@@ -300,7 +300,19 @@ export default {
return festAndTerm == "" ? lunarMD : festAndTerm; return festAndTerm == "" ? lunarMD : festAndTerm;
}, },
handleShow(row) { handleShow(row, ref) {
Object.keys(this.$refs).forEach((key) => {
if(key.includes("popoverRef-")) {
if (
key != ref &&
this.$refs[key][0].showPopper
) {
this.$nextTick(() => {
this.$refs[key][0].doClose();
});
}
}
});
this.content = []; this.content = [];
const params = { const params = {
shiftName: row.shiftName, shiftName: row.shiftName,
......
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