forked from ezreal/BI-FR-MIX-FRONT
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.0 KiB
32 lines
1.0 KiB
;!(function () { |
|
var CLIENTID = "e43e37dd7794460f8f81731eda84b2d8"; |
|
var SECRET = "3429e051e025412d8426bcf30d60b2cb"; |
|
var Service = BI.inherit(BI.OB, { |
|
/** |
|
* 增加主题的报表 |
|
* @param subjectId |
|
* @param data |
|
* @param callback |
|
*/ |
|
subjectAddReport: function (subjectId, data, callback) { |
|
BI.CLI.template.add(subjectId, data, callback); |
|
}, |
|
getSubjectReport: function (subjectid) { |
|
var url = "/front/subject/report?subjectid=" + subjectid; |
|
var result = {}; |
|
Dec.syncAjax({ |
|
type: "GET", |
|
url: url, |
|
success: function (res) { |
|
result = res; |
|
} |
|
}) |
|
return Promise.resolve(result); |
|
}, |
|
deleteSubjectReport: function (subjectId, reportId, callback) { |
|
BI.CLI.template.delete(subjectId, reportId, callback); |
|
} |
|
}); |
|
BI.service("subject.report.service", Service); |
|
|
|
})(); |