main.js 690 B

1234567891011121314151617181920
  1. /**
  2. * Created by Mai on 2017/3/10.
  3. */
  4. $(function () {
  5. var getFullPathHtml = function (proj) {
  6. var fullPath = [], i, pm = '<a href="/pm">项目管理</a>', angleRight = '<i class="fa fa-angle-right fa-fw"></i>';
  7. fullPath.push(pm);
  8. for (i = 0; i < proj.fullFolder.length; i++) {
  9. fullPath.push(angleRight, proj.fullFolder[i]);
  10. }
  11. fullPath.push(angleRight, proj.name);
  12. return fullPath.join('');
  13. };
  14. CommonAjax.post('/pm/api/getProject', {"user_id": userID, "proj_id": scUrlUtil.GetQueryString('project')}, function (data) {
  15. if (data) {
  16. $('#fullpath').html(getFullPathHtml(data));
  17. }
  18. });
  19. });