How to use the choerodon-front-boot.axios.post 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-devops / devops / src / app / devops / stores / project / deploymentConfig / DeploymentConfigStore.js View on Github external
loadAppData = projectId =>
    axios.post(`/devops/v1/projects/${projectId}/apps/list_by_options?active=true&type=normal&doPage=false&has_version=true`
      , JSON.stringify({searchParam: {}, param: ""})
    )
      .then((data) => {
        const res = handleProptError(data);
        if (res) {
          this.setAppDate(data.content);
        }
        return res;
      });
github choerodon / choerodon-front-devops / devops / src / app / devops / stores / project / appStore / AppStoreStore.js View on Github external
loadApps = (projectId, page = 0, size = 20, sorter = { id: 'asc' }, datas = {
    searchParam: {},
    param: '',
  }) => axios.post(`devops/v1/projects/${projectId}/apps_market/list_all?page=${page}&size=${size}`, JSON.stringify(datas))
    .then((data) => {
      this.changeLoading(true);
      if (data && data.failed) {
        Choerodon.prompt(data.message);
      } else {
        this.handleData(data);
        this.changeLoading(false);
      }
    })
    .catch((error) => {
      Choerodon.prompt(error.message);
    });
github choerodon / choerodon-front-devops / devops / src / app / devops / stores / project / appTag / AppTagStore.js View on Github external
queryBranchData = ({ projectId, sorter = { field: 'createDate', order: 'asc' }, postData = { searchParam: {}, param: '' }, size = 3 }) => {
    axios.post(`/devops/v1/projects/${projectId}/apps/${DevPipelineStore.selectedApp}/git/branches?page=0&size=${size}`, JSON.stringify(postData)).then((data) => {
      const result = handleProptError(data);
      if (result) {
        this.setBranchData(result);
      }
    }).catch(err => Choerodon.handleResponseError(err));
  };
github choerodon / choerodon-front-devops / devops / src / app / devops / stores / project / deploymentApp / DeploymentAppStore.js View on Github external
submitDeployment(projectId, applicationDeployDTO) {
    return axios
      .post(`/devops/v1/projects/${projectId}/app_instances`, JSON.stringify(applicationDeployDTO))
      .then(data => handleProptError(data));
  }
github choerodon / choerodon-front-devops / devops / src / app / devops / stores / project / branchManage / BranchStore.js View on Github external
  loadTagData = (projectId, page = 0, sizes = 10, postData = { searchParam: {}, param: '' }) => axios.post(`/devops/v1/projects/${projectId}/apps/${DevPipelineStore.selectedApp}/git/tags_list_options?page=0&size=${sizes}`, JSON.stringify(postData))
    .then((data) => {
      const res = handleProptError(data);
      if (res) {
        this.setTagData(data);
      }
    });

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