sgj
19 小时以前 67b2e6a3b7e4254be92e3ecbcd7b6e9f61b3aae3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 全局JS每个View.xml文件都自动引入 //
window.$alert = function (msg) {
    dorado.MessageBox.alert(msg);
};
 
window.$confirm = function (msg, action) {
    dorado.MessageBox.confirm(msg, action);
};
 
window.$notify = function (msg) {
    dorado.widget.NotifyTipManager.notify(msg);
};
 
 
window.$openTab = function (name,url) {
    var panelId = window.frameElement.getAttribute('data-id');
    window.parent.$.modal.openTab(name, url, false, panelId);
    //window.parent.$.modal.parentTab(name,url);
};
 
window.$openParentTab = function (name,url) {
    var panelId = window.parent.frameElement.getAttribute('data-id');
    window.parent.parent.$.modal.openTab(name, url, false, panelId);
};