-
-
xiao12 数据达人Lv4
发表于2020-7-30 12:10
悬赏60
已解决
楼主
上面筛选很难看,如何把上面样式大小调整下,代码:
if ((typeof(isInjectionMobileJs) != "undefined") && !isInjectionMobileJs) {
//不显示钻取等待框
isShowZqWaitToast = false;
//固定tab标签页+调整参数框位置
function adjustWidgetTab(tab) {
$(".headcontainer").css({
"position": "fixed",
"top": "60px"
});
$(".bodycontainer").css({
"position": "fixed",
"top": "104px"
});
if (g_rptpage.bodyarea) {
g_rptpage.bodyarea.style.overflow = "hidden";
g_rptpage.bodyarea.style.overflowY = "hidden";
g_rptpage.bodyarea.style.position = "fixed";
}
g_rptpage.tabactive = tab.active;
$("#drillpath").css({
"z-index": "1000"
});
}
function adjustWidgetTabActive(active) {
g_rptpage.tabactive = active;
adjustTabWidgetParamTree();
}
//固定tab标签页+调整顶部两个参数框位置
function adjustWidgetBuilder(bodyarea) {
$(".headcontainer").css({
"position": "fixed",
"top": "60px"
});
$(".bodycontainer").css({
"position": "fixed",
"top": "104px"
});
bodyarea.style.overflow = "hidden";
bodyarea.style.position = "fixed";
bodyarea.style.overflowY = "hidden";
$("#drillpath").css({
"z-index": "1000"
});
}
//渲染完成后,再显示顶部两个参数框,避免显示颜色变化过程
function adjustWidgetComboxTree_initDom(basedom, pnode, edit, label) {
var wid = basedom.getAttribute("wid");
if (wid === 'WidgetParamComboBoxTree50' || wid === 'WidgetParamComboBoxTree70' || wid === 'WidgetParamComboBoxTree43' ||
wid === 'WidgetParamComboBoxTree36' || wid === 'WidgetParamComboBoxTree3' || wid === 'WidgetParamComboBoxTree1') {
basedom.style.visibility = "hidden";
}
}
//渲染完成后,再显示顶部两个参数框,避免显示颜色变化过程
function adjustWidgetComboxTree(basedom, pnode, edit, label) {
var wid = basedom.getAttribute("wid");
if (wid.indexOf('WidgetParamComboBoxTree') > -1) {
if (wid === 'WidgetParamComboBoxTree50' || wid === 'WidgetParamComboBoxTree70' || wid === 'WidgetParamComboBoxTree43' ||
wid === 'WidgetParamComboBoxTree36' || wid === 'WidgetParamComboBoxTree3' || wid === 'WidgetParamComboBoxTree1') {
basedom.style.position = "fixed";
adjustFixWidgetParamTree(basedom.id, wid, basedom);
basedom.style.visibility = "";
}
edit.style.backgroundColor = "#212339";
edit.style.color = "#1b94ff";
edit.style.border = "1px solid #1b94ff";
}
}
function adjustTabWidgetParamTree() {
var active = g_rptpage.tabactive;
hideAllWidgetParamTree();
if (active === 0) {
showWidgetParamTree("HHH553");
} else if (active === 1) {
showWidgetParamTree("HHH626");
} else if (active === 2) {
showWidgetParamTree("HHH13");
} else if (active === 3) {
showWidgetParamTree("HHH699");
} else if (active === 4) {
showWidgetParamTree("HHH379");
} else {
showWidgetParamTree("HHH553");
}
}
function hideAllWidgetParamTree() {
var obj = document.getElementById("HHH553");
if (obj) {
obj.style.display = "none";
}
obj = document.getElementById("HHH626");
if (obj) {
obj.style.display = "none";
}
obj = document.getElementById("HHH13");
if (obj) {
obj.style.display = "none";
}
obj = document.getElementById("HHH699");
if (obj) {
obj.style.display = "none";
}
obj = document.getElementById("HHH379");
if (obj) {
obj.style.display = "none";
}
}
function showWidgetParamTree(id) {
var obj = document.getElementById(id);
if (obj) {
obj.style.top = "35px";
obj.style.left = "0px";
obj.style.display = "";
}
}
function hideWidgetParamTree(id) {
var obj = document.getElementById(id);
if (obj) {
obj.style.display = "none";
}
}
function adjustFixWidgetParamTree(id, wid, basedom) {
if (wid === "WidgetParamComboBoxTree1") {
basedom.style.top = "35px";
} else {
adjustTabWidgetParamTree();
}
}
}
if ((typeof(isInjectionMobileJs) != "undefined") && !isInjectionMobileJs) {
//不显示钻取等待框
isShowZqWaitToast = false;
//固定tab标签页+调整参数框位置
function adjustWidgetTab(tab) {
$(".headcontainer").css({
"position": "fixed",
"top": "60px"
});
$(".bodycontainer").css({
"position": "fixed",
"top": "104px"
});
if (g_rptpage.bodyarea) {
g_rptpage.bodyarea.style.overflow = "hidden";
g_rptpage.bodyarea.style.overflowY = "hidden";
g_rptpage.bodyarea.style.position = "fixed";
}
g_rptpage.tabactive = tab.active;
$("#drillpath").css({
"z-index": "1000"
});
}
function adjustWidgetTabActive(active) {
g_rptpage.tabactive = active;
adjustTabWidgetParamTree();
}
//固定tab标签页+调整顶部两个参数框位置
function adjustWidgetBuilder(bodyarea) {
$(".headcontainer").css({
"position": "fixed",
"top": "60px"
});
$(".bodycontainer").css({
"position": "fixed",
"top": "104px"
});
bodyarea.style.overflow = "hidden";
bodyarea.style.position = "fixed";
bodyarea.style.overflowY = "hidden";
$("#drillpath").css({
"z-index": "1000"
});
}
//渲染完成后,再显示顶部两个参数框,避免显示颜色变化过程
function adjustWidgetComboxTree_initDom(basedom, pnode, edit, label) {
var wid = basedom.getAttribute("wid");
if (wid === 'WidgetParamComboBoxTree50' || wid === 'WidgetParamComboBoxTree70' || wid === 'WidgetParamComboBoxTree43' ||
wid === 'WidgetParamComboBoxTree36' || wid === 'WidgetParamComboBoxTree3' || wid === 'WidgetParamComboBoxTree1') {
basedom.style.visibility = "hidden";
}
}
//渲染完成后,再显示顶部两个参数框,避免显示颜色变化过程
function adjustWidgetComboxTree(basedom, pnode, edit, label) {
var wid = basedom.getAttribute("wid");
if (wid.indexOf('WidgetParamComboBoxTree') > -1) {
if (wid === 'WidgetParamComboBoxTree50' || wid === 'WidgetParamComboBoxTree70' || wid === 'WidgetParamComboBoxTree43' ||
wid === 'WidgetParamComboBoxTree36' || wid === 'WidgetParamComboBoxTree3' || wid === 'WidgetParamComboBoxTree1') {
basedom.style.position = "fixed";
adjustFixWidgetParamTree(basedom.id, wid, basedom);
basedom.style.visibility = "";
}
edit.style.backgroundColor = "#212339";
edit.style.color = "#1b94ff";
edit.style.border = "1px solid #1b94ff";
}
}
function adjustTabWidgetParamTree() {
var active = g_rptpage.tabactive;
hideAllWidgetParamTree();
if (active === 0) {
showWidgetParamTree("HHH553");
} else if (active === 1) {
showWidgetParamTree("HHH626");
} else if (active === 2) {
showWidgetParamTree("HHH13");
} else if (active === 3) {
showWidgetParamTree("HHH699");
} else if (active === 4) {
showWidgetParamTree("HHH379");
} else {
showWidgetParamTree("HHH553");
}
}
function hideAllWidgetParamTree() {
var obj = document.getElementById("HHH553");
if (obj) {
obj.style.display = "none";
}
obj = document.getElementById("HHH626");
if (obj) {
obj.style.display = "none";
}
obj = document.getElementById("HHH13");
if (obj) {
obj.style.display = "none";
}
obj = document.getElementById("HHH699");
if (obj) {
obj.style.display = "none";
}
obj = document.getElementById("HHH379");
if (obj) {
obj.style.display = "none";
}
}
function showWidgetParamTree(id) {
var obj = document.getElementById(id);
if (obj) {
obj.style.top = "35px";
obj.style.left = "0px";
obj.style.display = "";
}
}
function hideWidgetParamTree(id) {
var obj = document.getElementById(id);
if (obj) {
obj.style.display = "none";
}
}
function adjustFixWidgetParamTree(id, wid, basedom) {
if (wid === "WidgetParamComboBoxTree1") {
basedom.style.top = "35px";
} else {
adjustTabWidgetParamTree();
}
}
}

最佳答案