How to use the choerodon-front-boot.axios.get function in choerodon-front-boot

To help you get started, we’ve selected a few choerodon-front-boot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github choerodon / choerodon-front-agile / agile / src / app / agile / dashboard / VersionProgress / VersionProgress / VersionProgress.js View on Github external
loadData() {
    const { projectId } = AppState.currentMenuType;
    axios.get(`agile/v1/projects/${projectId}/product_version/versions`)
      .then((res) => {
        const latestVersionId = Math.max(...res.filter(item => item.statusCode !== 'archived').map((item => item.versionId)));
        if (latestVersionId !== -Infinity) {
          this.loadSelectData(latestVersionId);
        }
        this.setState({
          versionList: res.filter(item => item.statusCode !== 'archived'),
          currentVersionId: latestVersionId,
          loading: false,
        });
      });
  }
github choerodon / choerodon-front-agile / agile / src / app / agile / dashboard / SprintProgress / SprintProgressHome / SprintProgressHome.js View on Github external
loadData() {
    const projectId = AppState.currentMenuType.id;
    const orgId = AppState.currentMenuType.organizationId;
    axios.get(`agile/v1/projects/${projectId}/sprint/active/${orgId}`)
      .then((res) => {
        this.setState({
          sprint: res,
          loading: false,
        });
      });
  }
github choerodon / choerodon-front-agile / agile / src / app / agile / dashboard / MineUnDone / MineUnDone.js View on Github external
loadData() {
    const projectId = AppState.currentMenuType.id;
    const userId = AppState.getUserId;
    this.setState({ loading: true });
    axios.get(`/agile/v1/projects/${projectId}/issues/unfinished/${userId}`)
      .then((res) => {
        this.setState({
          issues: res,
          loading: false,
        });
      });
  }
github choerodon / choerodon-front-agile / agile / src / app / agile / containers / project / ReportBoard / ReportBoardComponent / Priority / Priority.js View on Github external
loadPriorityInfo() {
    this.setState({ loading: true });
    const projectId = AppState.currentMenuType.id;
    const orgId = AppState.currentMenuType.organizationId;
    axios.get(`agile/v1/projects/${projectId}/reports/issue_priority_distribution_chart?organizationId=${orgId}`)
      .then((res) => {
        this.setState({
          priorityInfo: res,
          loading: false,
        });
      });
  }
github choerodon / choerodon-front-agile / agile / src / app / agile / dashboard / EpicProgress / EpicProgress.js View on Github external
loadEpics() {
    const projectId = AppState.currentMenuType.id;
    const orgId = AppState.currentMenuType.organizationId;
    axios.get(`/agile/v1/projects/${projectId}/issues/epics?organizationId=${orgId}`)
      .then((res) => {
        this.handleEpics(res.slice(0, 6));
      });
  }
github choerodon / choerodon-front-iam / iam / src / app / iam / stores / global / inmail-template / InMailTemplateStore.js View on Github external
loadTemplateType = (appType, orgId) => {
    const path = appType === 'site' ? '' : `/organizations/${orgId}`;
    return axios.get(`/notify/v1/notices/send_settings/names${path}`);
  };
github choerodon / choerodon-front-iam / iam / src / app / iam / stores / global / mail-template / MailTemplateStore.js View on Github external
loadTemplateType = (appType, orgId) => {
    const path = appType === 'site' ? '' : `/organizations/${orgId}`;
    return axios.get(`/notify/v1/notices/send_settings/names${path}`);
  }
github choerodon / choerodon-front-iam / iam / src / app / iam / stores / global / send-setting / SendSettingStore.js View on Github external
loadCurrentRecord = (id, appType, orgId) => {
    const path = appType === 'site' ? '' : `/organizations/${orgId}`;
    return axios.get(`/notify/v1/notices/send_settings/${id}${path}`);
  };
github choerodon / choerodon-front-iam / iam / src / app / iam / containers / global / member-role / MemberRoleType.js View on Github external
searchMemberId(loginName) {
    if (loginName) {
      return axios.get(`/iam/v1/users?login_name=${loginName}`);
    }
  }
github choerodon / choerodon-front-iam / iam / src / app / iam / stores / global / executable-program / ExecutableProgramStore.js View on Github external
loadProgramDetail = (recordId, type, id) => {
    const path = type === 'site' ? '' : `/${type}s/${id}`;
    return axios.get(`/asgard/v1/schedules${path}/methods/${recordId}`);
  };

choerodon-front-boot

Tools to build website for Choerodon

Apache-2.0
Latest version published 5 years ago

Package Health Score

39 / 100
Full package analysis