mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 14:26:45 +08:00
feat:增加二维码弹窗
This commit is contained in:
@@ -665,31 +665,31 @@ export default {
|
||||
//根据右侧快速选人高度,判断是否显示更多
|
||||
const selectedsHeight = () => {
|
||||
let resize = elementResizeDetectorMaker();
|
||||
resize.listenTo(document.getElementById('Ownership').querySelector("#selecteds"), function (ele) {
|
||||
resize.listenTo(document.getElementById('ProjOwnership').querySelector("#selecteds"), function (ele) {
|
||||
console.log("ele", ele.offsetHeight);
|
||||
if (ele.offsetHeight > 160 && !state.showHidden) {
|
||||
state.showMore = true;
|
||||
document.getElementById('Ownership').querySelector("#selectedsBox").style.overflow = "hidden";
|
||||
document.getElementById('Ownership').querySelector("#selectedsBox").style.height = "160px";
|
||||
document.getElementById('ProjOwnership').querySelector("#selectedsBox").style.overflow = "hidden";
|
||||
document.getElementById('ProjOwnership').querySelector("#selectedsBox").style.height = "160px";
|
||||
} else if (ele.offsetHeight < 160) {
|
||||
state.showMore = false;
|
||||
state.showHidden = false;
|
||||
document.getElementById('Ownership').querySelector("#selectedsBox").style.overflow = "hidden";
|
||||
document.getElementById('Ownership').querySelector("#selectedsBox").style.height = "160px";
|
||||
document.getElementById('ProjOwnership').querySelector("#selectedsBox").style.overflow = "hidden";
|
||||
document.getElementById('ProjOwnership').querySelector("#selectedsBox").style.height = "160px";
|
||||
}
|
||||
});
|
||||
};
|
||||
const morePeopleShow = () => {
|
||||
state.showMore = false;
|
||||
state.showHidden = true;
|
||||
document.getElementById('Ownership').querySelector("#selectedsBox").style.overflow = "";
|
||||
document.getElementById('Ownership').querySelector("#selectedsBox").style.height = "";
|
||||
document.getElementById('ProjOwnership').querySelector("#selectedsBox").style.overflow = "";
|
||||
document.getElementById('ProjOwnership').querySelector("#selectedsBox").style.height = "";
|
||||
};
|
||||
const morePeopleHidden = () => {
|
||||
state.showMore = true;
|
||||
state.showHidden = false;
|
||||
document.getElementById('Ownership').querySelector("#selectedsBox").style.overflow = "hidden";
|
||||
document.getElementById('Ownership').querySelector("#selectedsBox").style.height = "160px";
|
||||
document.getElementById('ProjOwnership').querySelector("#selectedsBox").style.overflow = "hidden";
|
||||
document.getElementById('ProjOwnership').querySelector("#selectedsBox").style.height = "160px";
|
||||
};
|
||||
|
||||
// 结束 快速选人------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user