|
|
@ -40312,24 +40312,10 @@ BI.Msg = function () { |
|
|
|
messageShow.destroy(); |
|
|
|
messageShow.destroy(); |
|
|
|
$mask.remove(); |
|
|
|
$mask.remove(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
var conf = { |
|
|
|
var controlItems = []; |
|
|
|
element: $pop, |
|
|
|
if (hasCancel === true) { |
|
|
|
type: "bi.center_adapt", |
|
|
|
controlItems.push({ |
|
|
|
items: [ |
|
|
|
el: { |
|
|
|
{ |
|
|
|
|
|
|
|
type: "bi.bar_popover", |
|
|
|
|
|
|
|
header: title, |
|
|
|
|
|
|
|
body: { |
|
|
|
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.label", |
|
|
|
|
|
|
|
text: message |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
footer: hasCancel ? { |
|
|
|
|
|
|
|
type: "bi.right_vertical_adapt", |
|
|
|
|
|
|
|
lgap: 10, |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.button", |
|
|
|
type: "bi.button", |
|
|
|
text: BI.i18nText("BI-Basic_Cancel"), |
|
|
|
text: BI.i18nText("BI-Basic_Cancel"), |
|
|
|
level: "ignore", |
|
|
|
level: "ignore", |
|
|
@ -40339,20 +40325,11 @@ BI.Msg = function () { |
|
|
|
callback.apply(null, [false]); |
|
|
|
callback.apply(null, [false]); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
|
|
|
|
type: "bi.button", |
|
|
|
|
|
|
|
text: BI.i18nText("BI-Basic_Sure"), |
|
|
|
|
|
|
|
handler: function () { |
|
|
|
|
|
|
|
close(); |
|
|
|
|
|
|
|
if (BI.isFunction(callback)) { |
|
|
|
|
|
|
|
callback.apply(null, [true]); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}] |
|
|
|
controlItems.push({ |
|
|
|
} : { |
|
|
|
el: { |
|
|
|
type: "bi.right_vertical_adapt", |
|
|
|
|
|
|
|
lgap: 10, |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.button", |
|
|
|
type: "bi.button", |
|
|
|
text: BI.i18nText("BI-Basic_OK"), |
|
|
|
text: BI.i18nText("BI-Basic_OK"), |
|
|
|
handler: function () { |
|
|
|
handler: function () { |
|
|
@ -40361,20 +40338,79 @@ BI.Msg = function () { |
|
|
|
callback.apply(null, [true]); |
|
|
|
callback.apply(null, [true]); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}] |
|
|
|
} |
|
|
|
}, |
|
|
|
}); |
|
|
|
size: "small", |
|
|
|
var conf = { |
|
|
|
listeners: [ |
|
|
|
element: $pop, |
|
|
|
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
|
|
|
items: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
eventName: "EVENT_CLOSE", |
|
|
|
type: "bi.border", |
|
|
|
action: function () { |
|
|
|
cls: "bi-card", |
|
|
|
|
|
|
|
items: { |
|
|
|
|
|
|
|
north: { |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.border", |
|
|
|
|
|
|
|
cls: "bi-message-title bi-background", |
|
|
|
|
|
|
|
items: { |
|
|
|
|
|
|
|
center: { |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.label", |
|
|
|
|
|
|
|
cls: "bi-font-bold", |
|
|
|
|
|
|
|
text: title || BI.i18nText("BI-Basic_Prompt"), |
|
|
|
|
|
|
|
textAlign: "left", |
|
|
|
|
|
|
|
hgap: 20, |
|
|
|
|
|
|
|
height: 40 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
east: { |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
|
|
|
cls: "bi-message-close close-font", |
|
|
|
|
|
|
|
// height: 50,
|
|
|
|
|
|
|
|
handler: function () { |
|
|
|
close(); |
|
|
|
close(); |
|
|
|
if (BI.isFunction(callback)) { |
|
|
|
if (BI.isFunction(callback)) { |
|
|
|
callback.apply(null, [false]); |
|
|
|
callback.apply(null, [false]); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
width: 60 |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
height: 40 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
center: { |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.label", |
|
|
|
|
|
|
|
text: message |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
south: { |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.absolute", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.right_vertical_adapt", |
|
|
|
|
|
|
|
lgap: 10, |
|
|
|
|
|
|
|
items: controlItems |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
top: 0, |
|
|
|
|
|
|
|
left: 20, |
|
|
|
|
|
|
|
right: 20, |
|
|
|
|
|
|
|
bottom: 0 |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
height: 44 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
width: 450, |
|
|
|
|
|
|
|
height: 200 |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
}; |
|
|
|
}; |
|
|
|