基础功能完整
This commit is contained in:
@@ -174,7 +174,6 @@ function collectDimValues(field) {
|
||||
*/
|
||||
function renderDimensionBar() {
|
||||
const p = state.currentProject;
|
||||
const empty = document.getElementById("dim-empty");
|
||||
const mappingBtn = document.getElementById("btn-dim-mapping");
|
||||
const items = [
|
||||
{ key: "idc", enable: "enableIdc", mapping: "idcMapping", field: "idc", box: "dim-idc", sel: "dim-idc-select", map: "dim-idc-mapping" },
|
||||
@@ -183,14 +182,12 @@ function renderDimensionBar() {
|
||||
];
|
||||
|
||||
if (!p) {
|
||||
empty.style.display = "";
|
||||
mappingBtn.style.display = "none";
|
||||
items.forEach((it) => (document.getElementById(it.box).style.display = "none"));
|
||||
return;
|
||||
}
|
||||
|
||||
const anyEnabled = p.enableIdc || p.enableEnvironment || p.enableGroup;
|
||||
empty.style.display = anyEnabled ? "none" : "";
|
||||
mappingBtn.style.display = anyEnabled ? "" : "none";
|
||||
|
||||
items.forEach((it) => {
|
||||
|
||||
Reference in New Issue
Block a user