1234567891011121314151617181920 |
- /**
- * Created by Mai on 2017/3/10.
- */
- $(function () {
- var getFullPathHtml = function (proj) {
- var fullPath = [], i, pm = '<a href="/pm">项目管理</a>', angleRight = '<i class="fa fa-angle-right fa-fw"></i>';
- fullPath.push(pm);
- for (i = 0; i < proj.fullFolder.length; i++) {
- fullPath.push(angleRight, proj.fullFolder[i]);
- }
- fullPath.push(angleRight, proj.name);
- return fullPath.join('');
- };
- CommonAjax.post('/pm/api/getProject', {"user_id": userID, "proj_id": scUrlUtil.GetQueryString('project')}, function (data) {
- if (data) {
- $('#fullpath').html(getFullPathHtml(data));
- }
- });
- });
|