|
|
@ -84493,7 +84493,7 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Widget, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
|
return this.tree.getValue(); |
|
|
|
return BI.uniq(this.tree.getValue()); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getAllLeaves: function () { |
|
|
|
getAllLeaves: function () { |
|
|
@ -85043,7 +85043,7 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Widget, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
|
return this.tree.getValue(); |
|
|
|
return BI.uniq(this.tree.getValue()); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getAllLeaves: function () { |
|
|
|
getAllLeaves: function () { |
|
|
@ -91474,36 +91474,34 @@ BI.RelationViewItem = BI.inherit(BI.BasicButton, { |
|
|
|
var body = []; |
|
|
|
var body = []; |
|
|
|
var header = { |
|
|
|
var header = { |
|
|
|
type: "bi.vertical_adapt", |
|
|
|
type: "bi.vertical_adapt", |
|
|
|
cls: "primary-key-font", |
|
|
|
items: [{ |
|
|
|
items: [] |
|
|
|
type: "bi.center_adapt", |
|
|
|
}; |
|
|
|
cls: o.isPrimary ? "primary-key-region primary-key-font" : "", |
|
|
|
if (o.isPrimary) { |
|
|
|
items: [{ |
|
|
|
header.items.push({ |
|
|
|
|
|
|
|
type: "bi.icon", |
|
|
|
type: "bi.icon", |
|
|
|
width: 12, |
|
|
|
title: o.isPrimary ? BI.i18nText("BI-Primary_Key") : "" |
|
|
|
height: 16, |
|
|
|
}], |
|
|
|
title: BI.i18nText("BI-Primary_Key") |
|
|
|
width: 36, |
|
|
|
}); |
|
|
|
height: 16 |
|
|
|
} |
|
|
|
}, { |
|
|
|
header.items.push({ |
|
|
|
|
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
text: o.text.length > 1 ? BI.i18nText("BI-Basic_Union_Relation") : o.text[0], |
|
|
|
text: o.text.length > 1 ? BI.i18nText("BI-Basic_Union_Relation") : o.text[0], |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
height: 25, |
|
|
|
height: 24, |
|
|
|
textAlign: "left", |
|
|
|
textAlign: "left" |
|
|
|
width: o.isPrimary ? 70 : 90, |
|
|
|
}] |
|
|
|
lgap: o.isPrimary ? 0 : 10 |
|
|
|
}; |
|
|
|
}); |
|
|
|
|
|
|
|
if(o.text.length > 1){ |
|
|
|
if(o.text.length > 1){ |
|
|
|
body = BI.map(o.text, function (idx, text) { |
|
|
|
body = BI.map(o.text, function (idx, text) { |
|
|
|
return { |
|
|
|
return { |
|
|
|
|
|
|
|
el: { |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
text: text, |
|
|
|
text: text, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
height: 25, |
|
|
|
height: 24, |
|
|
|
textAlign: "left", |
|
|
|
textAlign: "left" |
|
|
|
width: 70, |
|
|
|
}, |
|
|
|
lgap: 15 |
|
|
|
lgap: 49 |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
@ -91856,7 +91854,7 @@ BI.RelationViewRegionContainer = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.RelationViewRegionContainer.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.RelationViewRegionContainer.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-relation-view-region-container", |
|
|
|
baseCls: "bi-relation-view-region-container", |
|
|
|
width: 200 |
|
|
|
width: 210 |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -91971,9 +91969,9 @@ BI.RelationViewRegion = BI.inherit(BI.BasicButton, { |
|
|
|
|
|
|
|
|
|
|
|
this.preview = BI.createWidget({ |
|
|
|
this.preview = BI.createWidget({ |
|
|
|
type: "bi.icon_button", |
|
|
|
type: "bi.icon_button", |
|
|
|
cls: "relation-table-preview-font", |
|
|
|
cls: "eye relation-table-preview-font", |
|
|
|
width: 25, |
|
|
|
width: 36, |
|
|
|
height: 25, |
|
|
|
height: 24, |
|
|
|
stopPropagation: true |
|
|
|
stopPropagation: true |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.preview.on(BI.IconButton.EVENT_CHANGE, function () { |
|
|
|
this.preview.on(BI.IconButton.EVENT_CHANGE, function () { |
|
|
@ -91982,11 +91980,12 @@ BI.RelationViewRegion = BI.inherit(BI.BasicButton, { |
|
|
|
|
|
|
|
|
|
|
|
this.title = BI.createWidget({ |
|
|
|
this.title = BI.createWidget({ |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
height: 25, |
|
|
|
height: 24, |
|
|
|
width: 70, |
|
|
|
width: 70, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
textAlign: "left" |
|
|
|
textAlign: "left", |
|
|
|
|
|
|
|
disabled: o.disabled |
|
|
|
}); |
|
|
|
}); |
|
|
|
// title放body上
|
|
|
|
// title放body上
|
|
|
|
if (BI.isKey(o.header)) { |
|
|
|
if (BI.isKey(o.header)) { |
|
|
@ -92026,7 +92025,8 @@ BI.RelationViewRegion = BI.inherit(BI.BasicButton, { |
|
|
|
var texts = BI.isArray(item.text) ? item.text : [item.text]; |
|
|
|
var texts = BI.isArray(item.text) ? item.text : [item.text]; |
|
|
|
return BI.extend(item, { |
|
|
|
return BI.extend(item, { |
|
|
|
type: "bi.relation_view_item", |
|
|
|
type: "bi.relation_view_item", |
|
|
|
height: texts.length > 1 ? (texts.length + 1) * 25 : 25, |
|
|
|
height: texts.length > 1 ? (texts.length + 1) * 24 : 24, |
|
|
|
|
|
|
|
cls: i === items.length - 1 ? "" : "split-line", |
|
|
|
hoverIn: function () { |
|
|
|
hoverIn: function () { |
|
|
|
self.setValue(item.value); |
|
|
|
self.setValue(item.value); |
|
|
|
self.fireEvent(BI.RelationViewRegion.EVENT_HOVER_IN, item.value); |
|
|
|
self.fireEvent(BI.RelationViewRegion.EVENT_HOVER_IN, item.value); |
|
|
@ -92053,10 +92053,12 @@ BI.RelationViewRegion = BI.inherit(BI.BasicButton, { |
|
|
|
|
|
|
|
|
|
|
|
getHeight: function () { |
|
|
|
getHeight: function () { |
|
|
|
var height = 0; |
|
|
|
var height = 0; |
|
|
|
BI.each(this.button_group.getAllButtons(), function (idx, button) { |
|
|
|
var buttons = this.button_group.getAllButtons(); |
|
|
|
height += button.getHeight(); |
|
|
|
BI.each(buttons, function (idx, button) { |
|
|
|
|
|
|
|
//获取item高度的时候加上边框
|
|
|
|
|
|
|
|
height += button.getHeight() + (idx === buttons.length - 1 ? 0 : 1); |
|
|
|
}); |
|
|
|
}); |
|
|
|
return height + 25 + 2 * 20 + 3; |
|
|
|
return height + 24 + 2 * 20 + 3; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 获取上方开始划线的位置
|
|
|
|
// 获取上方开始划线的位置
|
|
|
|