| | |
| | | import req from "@/utils/request/req1.js"; |
| | | import req1 from "@/utils/request/req1.js"; |
| | | import qs from "querystring"; |
| | | import req1, { baseUrl } from "@/utils/request/req1"; |
| | | // 注册登录 |
| | | export const getaddLogin = (Obj) => { |
| | | return req1({ |
| | |
| | | |
| | | // 验证码 /account/verifyCode |
| | | export const getverifyCode = (req) => { |
| | | console.log(req, qs.encode(req), "rrr"); |
| | | return req1({ |
| | | url: "/account/verifyCode", |
| | | method: "post", |
| | |
| | | |
| | | // login 登录 |
| | | export const getLogin = (req) => { |
| | | console.log(req, qs.encode(req), "rrr"); |
| | | return req1({ |
| | | url: "/account/verification", |
| | | method: "post", |
| | |
| | | return req1({ |
| | | url: "/person/source", |
| | | method: "post", |
| | | data: data |
| | | params: data |
| | | }); |
| | | }; |
| | | // 人物相关的 个人时空地图 |
| | |
| | | return req1({ |
| | | url: "/person/spaceTime", |
| | | method: "post", |
| | | data: data |
| | | params: data |
| | | }); |
| | | }; |
| | | |
| | |
| | | return req1({ |
| | | url: "/person/images", |
| | | method: "post", |
| | | data: data |
| | | params: data |
| | | }); |
| | | }; |
| | | // 医学人物知识库 个人事迹 |
| | |
| | | return req1({ |
| | | url: "/person/biog", |
| | | method: "post", |
| | | data: data |
| | | params: data |
| | | }); |
| | | }; |
| | | // 医学人物知识库 人物关系 |
| | | export const getPersonRelationAtSchool = (data) => { |
| | | return req1({ |
| | | url: "/person/personRelationAtSchool", |
| | | method: "post", |
| | | params: data |
| | | }); |
| | | }; |
| | | // 医学人物知识库 人物关系 |
| | | export const getNodeCount = (data) => { |
| | | return req1({ |
| | | url: "/inheritMedical/nodeCount", |
| | | method: "post", |
| | | data: data |
| | | }); |
| | |
| | | return req1({ |
| | | url: "/person/writings", |
| | | method: "post", |
| | | data: data |
| | | params: data |
| | | }); |
| | | }; |
| | | // 医学人物知识库 人物详情 |
| | |
| | | return req1({ |
| | | url: "/person/getPersonInfo", |
| | | method: "post", |
| | | data: Obj |
| | | params: Obj |
| | | }); |
| | | }; |
| | | export const getWebBasic = (Obj) => { |
| | | return req1({ |
| | | url: "/person/webBasic", |
| | | method: "post", |
| | | params: Obj |
| | | }); |
| | | }; |
| | | |
| | | // 医学人物知识库 基础检索 |
| | | export const getFuzzySearch = (requestData) => { |
| | | return req1({ |
| | | url: "/person/fuzzySearch?keyword="+requestData?.keyword, |
| | | url: "/person/fuzzySearch", |
| | | method: "post", |
| | | params: { |
| | | keyword: requestData?.keyword, |
| | | personId: requestData?.personId, |
| | | } |
| | | }); |
| | | }; |
| | | |
| | |
| | | // 中国地域地谱检索人物 |
| | | export const getRetrieval = (requestData) => { |
| | | return req1({ |
| | | url: "/person/retrieval", |
| | | method: "post", |
| | | data: { |
| | | keyword: requestData?.keyword || "", |
| | | dynasty: requestData?.dynasty || "" |
| | | } |
| | | url: |
| | | "/person/retrieval?page=" + |
| | | requestData?.page + |
| | | "&pageSize=" + |
| | | requestData?.pageSize + |
| | | "&keyword=" + |
| | | requestData?.keyword + |
| | | "&dynasty=" + |
| | | requestData?.dynasty, |
| | | method: "post" |
| | | }); |
| | | }; |
| | | // 中国地域地谱检索人物 |
| | | export const getPreCount = (requestData) => { |
| | | return req1({ |
| | | url: |
| | | "/person/retrieval/preCount?keyword=" + |
| | | requestData?.keyword + |
| | | "&dynasty=" + |
| | | requestData?.dynasty, |
| | | method: "post" |
| | | }); |
| | | }; |
| | | // 医学人物知识库 |
| | |
| | | }; |
| | | // -------------------------P |
| | | |
| | | // 时期 |
| | | export const getDynastyAll = () => { |
| | | return req1({ |
| | | url: "/dynasty/list", |
| | | method: "post" |
| | | }); |
| | | }; |
| | | |
| | | export const getDynasty = () => { |
| | | return req1({ |
| | | url: "/dynasty/listAll", |
| | | method: "post" |
| | | }); |
| | | }; |
| | | export const getDynastyData = () => { |
| | | return req1({ |
| | | url: "/person/retrieval/dynasty", |
| | | method: "post" |
| | | }); |
| | | }; |
| | | |
| | | // 学术流派 |
| | | export const getDynastyStatistics = () => { |
| | | return req1({ |
| | | url: "/school/dynasty/statistics", |
| | | method: "get" |
| | | }); |
| | | }; |
| | | |
| | | export const getIntroduction = (id) => { |
| | | return req1({ |
| | | url: "/school/introduction?id=" + id, |
| | | method: "post" |
| | | }); |
| | | }; |
| | | |
| | | export const schoolAtlas = (id) => { |
| | | return req1({ |
| | | url: "/person/schoolAtlas?schoolId=" + id, |
| | | method: "post" |
| | | }); |
| | | }; |
| | | |
| | | |
| | | |
| | | export const searchSchoolPerson = (data) => { |
| | | return req1({ |
| | | url: "/person/searchSchoolPerson", |
| | | method: "post", |
| | | params: data |
| | | }); |
| | | }; |
| | | |
| | | // 医事制度 |
| | | // 数据统计 |
| | | export const getDataStatistics = () => { |
| | |
| | | }); |
| | | }; |
| | | // 详情 |
| | | export const getMedicalDetails = (Obj) => { |
| | | export const getMedicalDetails = (data) => { |
| | | return req1({ |
| | | url: "/medical/details", |
| | | method: "post", |
| | | data: Obj |
| | | data: data |
| | | }); |
| | | }; |
| | | // 取值:RDF、NT、XML、JSON |
| | |
| | | }); |
| | | }; |
| | | |
| | | export const getPersonDataOutput = (Obj) => { |
| | | return req1({ |
| | | url: "/person/dataOutput", |
| | | method: "post", |
| | | params: Obj |
| | | }); |
| | | }; |
| | | |
| | | // ----------- |
| | | |
| | | |
| | | |
| | | // 中国医学人物知识库 |
| | | // 中国历代医学人物知识库 |
| | | // 数据统计 |
| | | export const getPDataStatistics = () => { |
| | | return req1({ |
| | |
| | | }); |
| | | }; |
| | | // ---------------- |
| | | |
| | | export const getImg = (path) => { |
| | | return baseUrl + "/picture/getImageByFilePath?filePath=" + path; |
| | | }; |
| | | |
| | | export const getRelationTypeTreeList = () => { |
| | | return req1({ |
| | | url: "/personRelationType/getRelationTypeTreeList", |
| | | method: "post" |
| | | }); |
| | | }; |
| | | |
| | | export const getInstitutionList = () => { |
| | | return req1({ |
| | | url: "/medical/institutionList", |
| | | method: "post" |
| | | }); |
| | | }; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |