08335 / hivui-platform-template
hivui平台项目模板
Newer
Older
hivui-platform-template / project / hivuiBirt / hiSetting.js----副本

let appSettion = {
    projectName: 'birt',
    url: 'http://e5.hieap.cn/',
    serverUrl: 'e5',
    platform: 'e5',
    oauth: 'e5',
    saveUrl: 'e5' + "/data/save",
    queryUrl: 'e5' + "/data/query",
    policyUrl: 'e5' + "/data/policy",
    upload: 'e5' + "/file/upload",
    download: 'e5' + "/file/download",
    review: 'e5' + "/file/review",
    getFlowInfo: 'e5' + "/flow/open?pn=birt",
    getApprovalInfo: 'e5' + "/flow/getApprovalInfo?pn=birt",
    processFlow: 'e5' + "/flow/processFlow?pn=birt",
    queryTask: 'e5' + "/flow/queryTask?pn=birt",
    withdrawtask: 'e5' + "/flow/withdrawtask?pn=birt",
    taskDiagram: 'e5' + "/flow/taskDiagram?pn=birt",
    openOrdernumber: 'e5' + "/flow/openOrdernumber",
    birtModel: 'e5' + "/birt/model1"
}
if (window.dynamicSetting) {
    appSettion = Object.assign(appSettion, window.dynamicSetting)
}
let notUrlKey = ["projectName"]
for (let prop in appSettion) {
    if (notUrlKey.indexOf(prop) && appSettion[prop] && typeof (appSettion[prop]) == 'string' && !appSettion[prop].toLowerCase().startsWith("http"))
        appSettion[prop] = appSettion.url + appSettion[prop];
}

export default appSettion;