forked from OpenDataology/portal-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Claimonx
committed
Mar 2, 2022
1 parent
f774454
commit 546a6e7
Showing
8 changed files
with
165 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ yarn-error.log* | |
*.sln | ||
|
||
package-lock.json | ||
https.env.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
import axios from "./http.env" | ||
import { Token } from "./http.env" | ||
/** | ||
* 获取所有的License数据 | ||
* @param {String} url | ||
* @param {Object} parms | ||
* @returns | ||
*/ | ||
export const getLicenseDataAll = (data = {}) => { | ||
return axios.request({ | ||
url: "/data-license", | ||
method: "get", | ||
params: { | ||
pageSize: data.pageSize, | ||
pageNum: data.pageNum, | ||
token: Token, | ||
}, | ||
}) | ||
} | ||
|
||
/** | ||
* 获取所有的Dataset数据 | ||
* @param {String} url | ||
* @param {Object} parms | ||
* @returns | ||
*/ | ||
export const getDatasetDataAll = (data) => { | ||
return axios.request({ | ||
url: "/dataset", | ||
method: "get", | ||
params: data | ||
}) | ||
} | ||
|
||
|
||
/** | ||
* | ||
* @param {object} data | ||
* @returns | ||
*/ | ||
export const getDatasetBasic = (data) => { | ||
return axios.request({ | ||
url: "/get_dataset_by_id", | ||
method: "get", | ||
params: data | ||
}) | ||
} | ||
|
||
|
||
/** | ||
* | ||
* @param {object} data | ||
* @returns | ||
*/ | ||
export const getLicenseBasicInfo = (data) => { | ||
return axios.request({ | ||
url: "/get_license_basic_by_id", | ||
method: "get", | ||
params: data | ||
}) | ||
} | ||
|
||
/** | ||
* | ||
* @param {object} data | ||
* @returns | ||
*/ | ||
export const getLicenseBasicDataTab = (data) => { | ||
return axios.request({ | ||
url: "/get_license_data_by_id", | ||
method: "get", | ||
params: data | ||
}) | ||
} | ||
|
||
/** | ||
* | ||
* @param {object} data | ||
* @returns | ||
*/ | ||
export const getLicenseBasicModleTab = (data) => { | ||
return axios.request({ | ||
url: "/get_license_model_by_id", | ||
method: "get", | ||
params: data | ||
}) | ||
} | ||
|
||
/** | ||
* | ||
* @param {object} data | ||
* @returns | ||
*/ | ||
export const getLicenseBasicOtherTab = (data) => { | ||
return axios.request({ | ||
url: "/get_license_other_by_id", | ||
method: "get", | ||
params: data | ||
}) | ||
} | ||
|
||
/** | ||
* | ||
* @param {object} data | ||
* @returns | ||
*/ | ||
export const getLoadLicenseAll = (data) => { | ||
return axios.request({ | ||
url: "/data-license", | ||
method: "get", | ||
params: { | ||
data: data, | ||
token: Token | ||
|
||
} | ||
}) | ||
} | ||
|
||
|
||
/** | ||
* 获取所有的Dataset数据 | ||
* @param {String} url | ||
* @param {Object} parms | ||
* @returns | ||
*/ | ||
export const getLoadDatasetAll = (data) => { | ||
return axios.request({ | ||
url: "/dataset", | ||
method: "get", | ||
params: { | ||
data: data, | ||
token: '2f6b61b197c846f2c3da8efea0b37b6d3353d7fbc8acaca0ff9f03d3980794ec', | ||
|
||
} | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters