123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359 |
- import http from "@/api/http.js"
- /* 数据库管理模块 */
- const dataBaseInterface = {
- /**
- * 指标库目录
- */
- targetCatalog:params=>{
- return http.get('/datamanage/classify/simple',params)
- },
- /**
- * 指标和目录拖动排序
- */
- classifyMoveSort:params=>{
- return http.post('/datamanage/edb_classify/move',params)
- },
- /**
- * 新增分类
- * @param {ClassifyName} params
- * @param {ParentId} params
- * @returns
- */
- nodeAdd: params => {
- return http.post('/datamanage/classify/add',params)
- },
- nodeAddV2: params => {
- return http.post('/datamanage/classify/addv2',params)
- },
- /**
- * 删除分类接口
- * @param {ClassifyId} params
- * @param {EdbInfoId} params
- * @returns
- */
- nodeDelete: params => {
- return http.post('/datamanage/classify/delete',params)
- },
- /**
- * 删除检测
- * @param {ClassifyId} params
- * @param {EdbInfoId} params
- * @returns 0:默认值,如果为0,继续走其他校验,1:若目录关联指标不可删除,2:确认删除当前目录及包含的子目录吗,3:当前指标已用作画图,不可删除
- */
- nodeDelCheck: params => {
- return http.post('/datamanage/classify/delete/check',params)
- },
- /**
- * 修改分类
- * @param {ClassifyId} params
- * @param {ClassifyName} params
- * @returns
- */
- nodeEdit: params => {
- return http.post('/datamanage/classify/edit',params)
- },
- /**
- * 获取分类层级 截止到3及目录
- * @param {*} params
- * @returns
- */
- menuList: params => {
- return http.get('/datamanage/classify/items',params)
- },
- /**
- * 获取分类层级 截止到3及目录
- * @param {*} params
- * @returns
- */
- menuListV2: params => {
- return http.get('/datamanage/classify/items/v2',params)
- },
- menuListV3: params => {
- // return http.get('/datamanage/classify/items/v3',params)
- return http.get('/datamanage/classify/tree',params)
- },
- /**
- * 通过分类查找指标列表数据
- * @param ClassifyId
- */
- getEdbListForClassify:params=>{
- return http.get('/datamanage/classify/edb_info/list',params)
- },
- /**
- * 树列表
- * @returns
- */
- nodeTree: params => {
- return http.get('/datamanage/classify/list',params)
- },
- /**
- * 搜索指标
- * @param {Source } params 1:同花顺,2:wind
- * @param {EdbCode } params 指标编码
- * @returns
- */
- getTarget: params => {
- return http.get('/datamanage/edb_info/search',params)
- },
- /**
- * 新增指标
- * @param {*} params
- *
- "ClassifyId": 0,
- "EdbCode": "string",
- "EdbName": "string",
- "EndDate": "string",
- "Frequency": "string",
- "Source": 0,
- "StartDate": "string",
- "Unit": "string"
- * @returns
- */
- targetAdd: params => {
- return http.post('/datamanage/edb_info/add',params)
- },
- /**
- * 编辑指标
- * @param {*} params
- * @returns
- */
- targetEdit: params => {
- return http.post('/datamanage/edb_info/edit',params)
- },
- /**
- * 获取指标详情接口
- * @param {EdbInfoId} params 指标id
- * @returns
- */
- targetDetail: params => {
- return http.get('/datamanage/edb_info/detail',params)
- },
- /**
- * 分类移动
- * @param {ClassifyId} 分类id
- * @param {ParentClassifyId} 父级分类id
- * @param {PrevClassifyId} 上一个兄弟节点分类id
- * @returns
- */
- classifyMove:params=>{
- return http.post('/datamanage/edb_classify/move',params)
- },
- /**
- * 移动指标
- * @param {ClassifyId} params
- * @param {EdbInfoId} params
- * @returns
- */
- targetMove: params => {
- return http.post('/datamanage/edb_info/move',params)
- },
- /**
- * 指标数据列表
- * @param { PageSize } params
- * @param { CurrentIndex } params
- * @param { EdbInfoId } params
- * @param { KeyWord } params
- * @returns
- */
- targetList: params => {
- return http.get('/datamanage/edb_info/list',params)
- },
- /**
- * 获取最新指标
- * @returns
- */
- targetNew: params => {
- return http.get('/datamanage/edb_info/newest',params)
- },
- /**
- * 指标刷新
- * @param {EdbInfoId} params 指标id
- * @returns
- */
- targetRefresh: params => {
- return http.get('/datamanage/edb_info/refresh',params)
- },
- /**
- * 指标搜索
- * @param {KeyWord} params
- * @param {FilterSource} params 1其他 2转月值 3变频 4基础
- * @returns
- */
- targetSearch: params => {
- return http.get('/datamanage/edb_info/filter',params)
- },
- /**
- * 指标搜索分页
- * @param {KeyWord} params
- * @param {FilterSource} params 1其他 2转月值 3变频 4基础
- * @param {CurrentIndex} params
- * @returns
- */
- targetSearchByPage: params => {
- return http.get('/datamanage/edb_info/filter_by_es',params)
- },
- /**
- * 生成计算指标
- * @param {CalculateFormula} params
- * @param {ClassifyId} params
- * @param {EdbInfoIdArr} params { EdbInfoId FromTag }
- * @param {EdbName} params
- * @param {Frequency} params
- * @param {Unit} params
- * @returns
- */
- calculateAdd: params => {
- return http.post('/datamanage/edb_info/calculate/save',params)
- },
- /**
- * 修改计算指标
- * @param {EdbInfoId} params
- * @returns
- */
- calculateEdit: params => {
- return http.post('/datamanage/edb_info/calculate/edit',params)
- },
- /**
- * 获取计算指标详情
- * @param {EdbInfoId} params
- * @returns
- */
- calculateDetail: params => {
- return http.get('/datamanage/edb_info/calculate/detail',params)
- },
- /**
- * 累计值转月-同比值-同差等计算
- * @param {ClassifyId} params
- * @param {FromEdbInfoId} params
- * @param {EdbName} params
- * @param {Formula} params N值
- * @param {Frequency} params
- * @param {Source} params 1:同花顺,2:wind,3:彭博,4:指标运算,5:累计值转月,6:同比值,7:同差值,8:N数值移动平均计算 12:环比 13:环差 14变频
- * @param {Unit} params
- * @returns
- */
- calculateTargetSave: params => {
- return http.post('/datamanage/edb_info/calculate/batch/save',params)
- },
- /**
- * 累计值转月-同比值-同差编辑
- * @param {ClassifyId} params
- * @param {EdbInfoId} params
- * @param {EdbName} params
- * @param {Formula} params
- * @param {Frequency} params
- * @param {FromEdbInfoId} params
- * @param {Source} params
- * @param {Unit} params
- * @returns
- */
- calculateTargetEdit: params => {
- return http.post('/datamanage/edb_info/calculate/batch/edit',params)
- },
- /**
- * 重新计算
- * @param {EdbInfoId} params
- * @returns
- */
- reCalculateTarget: params => {
- return http.post('/datamanage/edb_info/calculate/batch/reset',params)
- },
- /**
- * 基础指标刷新
- * @param {EdbInfoId} params
- */
- refreshBaseTarget: params => {
- return http.get('/datamanage/edb_info/refresh/all',params)
- },
- /**
- * 一键成图获取指标所有历史数据
- * @param {EdbInfoId} params
- * @param {DateType} params
- * 1:00年至今,2:10年至今,3:15年至今,4:21年至今,5:自定义时间,6:自定义起始时间至今,7:18年至今,8:19年至今,9:20年至今,10:全部
- * @param {StartDate} params
- * @param {EndDate} params
- * @returns
- */
- ebd_data: params => {
- return http.get('/datamanage/edb_info/data',params)
- },
- /**
- * 指标更新数据
- * @param {Status} params 1:未更新,2:已更新
- * @param {Source} params 0:全部,1:同花顺,2:wind,3:彭博,9:手工指标,10:隆众,11:有色,99:计算指标
- * @returns
- */
- updateData: params => {
- return http.get('/datamanage/edb_info/updates/list',params)
- },
- /**
- * 更新统计
- * @param {*} params
- */
- updateStatistical: params => {
- return http.get('/datamanage/edb_info/updates/statistical')
- },
- /**
- * 指标一键刷新
- * @param {*} params
- * @returns
- */
- edbUpdate: params => {
- return http.post('/datamanage/edb_info/updates',params)
- },
- /* 刷新校验 */
- updateCheck: params => {
- return http.post('/datamanage/edb_info/updates/check',params)
- },
- /**
- * 设置指标刷新状态
- * @param {EdbInfoId} params
- * @param {ModifyStatus} params 需要更改的状态:启用、暂停
- * @returns
- */
- edbRefreshStatusSet: params => {
- return http.post('/datamanage/edb_info/single_refresh/status/save',params)
- },
- /**
- * 指标替换
- * @param {NewEdbInfoId} params
- * @param {OldEdbInfoId} params
- * @returns
- */
- edbReplace: params => {
- return http.post('/datamanage/edb_info/replace',params)
- },
- /**
- * 替换校验
- * @param {*} params
- * @returns
- */
- replaceCheck: params => {
- return http.post('/datamanage/edb_info/replace/check',params)
- },
- /**
- * 获取同比数据
- * @param {*} params EdbInfoId DateType StartDate EndDate
- * @returns
- */
- edbOnyearData: params => {
- return http.get('/datamanage/edb_info/data/tb',params)
- },
- /**
- * 获取指标季节数据
- * @param {*} params EdbInfoId Calendar StartDate EndDate
- * @returns
- */
- ebdSeasonData: params => {
- return http.get('/datamanage/edb_info/data/seasonal',params)
- },
- /**
- * 设置插入值
- * @param {*} params EdbInfoId Date Value
- * @returns
- */
- insertData: params => {
- return http.post('/datamanage/edb_info/insert_config/set',params)
- },
- /**
- * 记录指标库中英文
- * @param {*} params
- * ConfigCode edb指标库:edb_language;预测指标库:predict_edb_language
- * ConfigValue 中文:CN;英文:EN
- * @returns
- */
- setUserLang: params => {
- return http.post('/system/sysuser/config/set',params)
- },
- /**
- * 获取指标历史生成记录
- * @param {*} params EdbInfoId
- * @returns
- */
- getEdbCreateHistory: params => {
- return http.get('datamanage/edb_info/trace',params)
- },
- /** 拟合残差相关系数
- * @param {*} params
- *"Formula": "2020-01-01,2022-12-13",
- "EdbInfoIdArr": [
- {
- "EdbInfoId": 113123,
- "FromTag": "A",
- "MoveValue": 0
- }
- ]
- */
- correlationIndex: params => {
- return http.post('/datamanage/edb_info/calculate/compute_correlation',params)
- },
- /**
- * 代码运算的sourceList
- * @param {*} params
- */
- getCodecountEdbSources: params => {
- return http.get('/datamanage/edb_source/list/python')
- },
- /**
- * 新增指标 检验指标是否存在接口
- * @param {*} params Source SubSource EdbCode StockCode
- */
- edbExistCheck: params => {
- return http.get('/datamanage/edb_info/exist/check',params)
- },
- /**
- * 批量新增指标
- * @param {*} params BatchList[{Source,EdbName,Frequency,Unit,ClassifyId,StockCode,EdbCode}]
- */
- edbAddBatch: params => {
- return http.post('/datamanage/edb_info/batch/add',params)
- },
- // 批量计算指标时获取当前筛选条件下选择的指标
- /**
- * @param {Object} params
- * @param {Number} params.EdbInfoType 0-指标;1-预测指标
- * @returns
- */
- getBatchFilterAddEdbList:params=>{
- return http.get('/datamanage/edb_info/calculate/multi/choice',params)
- },
- //批量计算指标时待选指标的搜索列表
- /**
- * @param {Object} params
- * @param {Number} params.EdbInfoType 0-指标;1-预测指标
- * @returns
- */
- getBatchAddEdbSearchList:params=>{
- return http.get('/datamanage/edb_info/calculate/multi/search',params)
- },
- /**
- * 设置指标对应版本信息
- * @param {*} params
- * EdbInfoId EdbName Unit
- */
- setEdbLangInfo: params => {
- return http.post('/datamanage/edb_info/base/edit',params)
- },
- /**
- * 设置图表对应版本信息
- * @param {*} params
- * ChartInfoId ChartName ChartEdbInfoList
- * @returns
- */
- setChartLangInfo: params => {
- return http.post('/datamanage/chart_info/base/edit',params)
- },
- //========================================chart
- // /**
- // *
- // * @param {Image} params
- // * @returns
- // */
- uploadImg:params => {
- return http.post('/resource/upload_image_base64',params)
- },
- // /**
- // * 上传图片 转svg
- // * @param {Img} params
- // * @returns
- // */
- uploadImgSvg:params => {
- return http.post('/datamanage/chart_info/base64Upload',params)
- },
- /**
- * 新增图表分类
- * @param {ChartClassifyName} params
- * @param {Level} params
- * @param {ParentId} params
- * @returns
- */
- addChartClassify: params => {
- return http.post('/datamanage/chart_classify/add',params)
- },
- /**
- * 删除图表分类/图表
- * @param {ChartClassifyId} params
- * @param {ChartInfoId} params
- * @returns
- */
- delChartClassify: params => {
- return http.post('/datamanage/chart_classify/delete',params)
- },
- /**
- * 删除图表检测
- * @param {ChartClassifyId} params
- * @param {ChartInfoId} params
- * @returns
- */
- delChartCheck: params => {
- return http.post('/datamanage/chart_classify/delete/check',params)
- },
- /**
- * 修改图表分类
- * @param {ChartClassifyName} params
- * @param {ChartClassifyId} params
- * @returns
- */
- editChartClassify: params => {
- return http.post('/datamanage/chart_classify/edit',params)
- },
- /**
- * 获取图表分类 截止到3级
- * @param {*} params
- * @returns
- */
- chartClassify: params => {
- return http.get('/datamanage/chart_classify/items',params)
- },
- /**
- * 获取图表分类树
- * @param {*} params
- * @returns
- */
- chartTree: params => {
- return http.get('/datamanage/chart_classify/list',params)
- },
- /**
- * 通过分类查找分类下面的图数据
- * @param IsShowMe
- * @param ChartClassifyId
- */
- getChartListForClassify:params=>{
- return http.get('/datamanage/chart_classify/chart/list',params)
- },
- /**
- * 图表详情
- * @param {ChartInfoId } params
- * @param {Calendar } params
- * @param {DateType} params
- * @param {StartDate} params
- * @param {EndDate} params
- * @returns
- */
- chartInfo: params => {
- return http.get('/datamanage/chart_info/detail',params)
- },
- /**
- * 获取指标详情
- * @param {EdbInfoId} params
- * @param {DateType} params 1:00年至今,2:10年至今,3:15年至今,4:21年至今,5:自定义时间
- * @param {StartDate} params
- * @param {EndDate} params
- * @param {EdbInfoType} params 1:标准指标,0:领先指标
- * @param {LeadValue} params
- * @param {LeadUnit} params
- */
- edbinfoDetail: params => {
- return http.get('/datamanage/chart_info/edb_info/detail',params)
- },
- /**
- * 图表指标模糊搜索接口
- * @param {KeyWord} params
- * @returns
- */
- edbSearch: params => {
- return http.get('/datamanage/chart_info/edb_info/search',params)
- },
- /**
- * 编辑图表
- * @param {ChartClassifyId } params
- * @param {ChartInfoId } params
- * @param {ChartName } params
- * @returns
- */
- chartEdit: params => {
- return http.post('/datamanage/chart_info/edit',params)
- },
- /**
- * 分类移动
- * @param {ClassifyId} 分类id
- * @param {ParentClassifyId} 父级分类id
- * @param {PrevClassifyId} 上一个兄弟节点分类id
- * @returns
- */
- chartClassifyMove:params=>{
- return http.post('/datamanage/chart_classify/move',params)
- },
- /**
- * 移动图表
- * @param {ChartClassifyId } params
- * @param {ChartInfoId } params
- * @returns
- */
- chartMove: params => {
- return http.post('/datamanage/chart_info/move',params)
- },
- /**
- * 最新图表
- * @returns
- */
- chartNew: params => {
- return http.get('/datamanage/chart_info/newest',params)
- },
- /**
- * 保存图表
- * @param {ChartClassifyId} params
- * @param {ChartEdbInfoList} params
- * {
- "ChartColor": "string",
- "ChartStyle": "string",
- "ChartWidth": 0,
- "EdbInfoId": 0,
- "EdbInfoType": 0,
- "IsAxis": 0,
- "IsOrder": 0,
- "LeadUnit": "string",
- "LeadValue": 0,
- "MaxData": 0,
- "MinData": 0
- }
- *@param {ChartInfoId}
- @returns
- */
- chartSave: params => {
- return http.post('/datamanage/chart_info/save',params)
- },
- /**
- * 新增图表 弹窗形式
- * @param {ChartClassifyId} params
- * @param {ChartName} params
- * @param {ChartEdbInfoList} params
- * {
- * "ChartColor": "string",
- "ChartStyle": "string",
- "ChartWidth": 0,
- "EdbInfoId": 0,
- "EdbInfoType": 0,
- "IsAxis": 0,
- "IsOrder": true,
- "LeadUnit": "string",
- "LeadValue": 0,
- "MaxData": 0,
- "MinData": 0
- * }
- */
- chartAdd: params => {
- return http.post('/datamanage/chart_info/add',params)
- },
- /**
- * 编辑图表
- * @param {ChartClassifyId} params
- * @param {ChartInfoId} params
- * @param {ChartName} params
- * @param {ChartEdbInfoList} params
- * @returns
- */
- chartEdit: params => {
- return http.post('/datamanage/chart_info/edit',params)
- },
- /**
- * 搜索图表
- * @param {KeyWord} params
- * @returns
- */
- chartSearch: params => {
- return http.get('/datamanage/chart_info/search',params)
- },
- /**
- * 图表刷新接口
- * @param {ChartInfoId} params
- * @returns
- */
- chartRefresh: params => {
- return http.get('/datamanage/chart_info/refresh',params)
- },
- /**
- * 设置图表图片
- * @param {ChartInfoId} params
- * @param {ImageUrl} params
- * @returns
- */
- setChartImage: params => {
- return http.post('/datamanage/chart_info/image/set',params)
- },
- /**
- * 设置图表缩略图 formData
- * @param {Img} string
- * @param {Chartlnfold} number
- * @returns
- */
- setChartThumbnail: params => {
- return http.post('/datamanage/chart_info/image/set_by_svg',params)
- },
- /**
- * 通过unicode获取图表信息
- * @param {UniqueCode} params
- * @returns
- */
- getChartByCode: params => {
- return http.get('/datamanage/chart_info/common/detail/from_unique_code',params)
- },
- /**
- * 多图表一键刷新
- * @param {Object} params
- * @param {Array} params.ChartInfoCode
- * @param {String} params.Source 来源,枚举值:report、english_report、smart_report、ppt、en_ppt
- * @param {Number} params.PrimaryId 报告id/pptId
- * @returns
- */
- reportRefresh: params => {
- return http.post('/datamanage/chart_info/batch_refresh',params)
- },
-
- /**
- * 图表另存为
- * @param {*} params
- * @returns
- * ChartInfoId ChartClassifyId ChartName
- */
- saveChartOther: params => {
- return http.post('/datamanage/chart_info/copy',params)
- },
- // 图表类型
- chartTypeList:()=>{
- return http.get('/datamanage/chart_info/type_list',{})
- },
- /* ================代码运算========================= */
- /**
- * 新增代码运算指标
- * @param {*} params PythonCode EdbName Frequency Unit ClassifyId
- * @returns
- */
- addCountCode: params => {
- return http.post('/datamanage/edb_info/python/add',params)
- },
- /**
- * 编辑代码运算指标
- * @param {*} params PythonCode EdbName Frequency Unit ClassifyId EdbInfoId
- * @returns
- */
- editCountCode: params => {
- return http.post('/datamanage/edb_info/python/edit',params)
- },
- /**
- * 执行代码
- * @param {*} params PythonCode
- */
- runCode: params => {
- return http.post('/datamanage/edb_info/python/exec',params)
- },
-
- /**
- * py代码详情
- * @param {} params EdbInfoId
- * @returns
- */
- countCodeDetail: params => {
- return http.get('/datamanage/edb_info/python/detail',params)
- },
- /**
- * 获取指标表结构
- * @param {} params EdbInfoId
- * @returns
- */
- edbSheetDetail: params => {
- return http.get('/datamanage/edb_data/table/detail',params)
- },
- /**
- * IsShowMe Keyword PageSize CurrentIndex
- * @param {*} params
- * @returns
- */
- chartSearchByEs: params => {
- return http.get('/datamanage/chart_info/search_by_es',params)
- },
- /**
- * 编辑指标英文信息
- * @param {*} params EdbInfoId(指标ID) EdbNameEn(英文指标名称) UnitEn(英文单位)
- * @returns
- */
- edbInfoEditEn: params => {
- return http.post('datamanage/edb_info/en/edit',params)
- },
- /**
- * 编辑图表英文信息
- * @param {*} params ChartInfoId(图表ID) ChartNameEn(英文图表名称)
- * @param {*} params ChartEdbInfoList(指标数据)->{EdbInfoId(指标ID) EdbNameEn(英文指标名称) UnitEn(英文单位)}
- * @returns
- */
- chartInfoEditEn: params => {
- return http.post('datamanage/chart_info/en/edit',params)
- },
- /**
- * ETA指标关联的图表列表
- * @param EdbInfoId
- * @param CurrentIndex
- */
- edbRelationChartList:params=>{
- return http.get('datamanage/edb_info/relation/chart_list',params)
- },
- /**
- * ETA指标引用的计算指标
- * @param EdbInfoId
- * @param CurrentIndex
- */
- edbRelationComputerList:params=>{
- return http.get('datamanage/edb_info/relation/edbinfo_list',params)
- },
- /**
- * 获取柱状图数据
- * EdbInfoIdList [] { EdbInfoId,Name }
- * DateList [] {
- * Type 1最新 2N天前 3固定
- * Date
- * Value
- * Color
- * }
- * Sort { Sort DateIndex }
- */
- getBarData: params => {
- return http.post('/datamanage/chart_info/preview_bar',params)
- },
- /**
- * 数据调整指标 新增/编辑
- * @param {} params
- * "EdbName,
- "Frequency,
- "Unit",
- "ClassifyId",
- "EdbInfoId",
- "FromEdbInfoId",
- "DataList
- * @returns
- */
- adjustEdbEdit: params => {
- return http.post('/datamanage/edb_info/adjust/save',params)
- },
- /**
- * 截面散点图预览数据
- * @param {*} params
- * ExtraConfig
- * {
- * "XName" "XNameEn" "XUnitName" "XUnitNameEn" "YName" "YNameEn" "YUnitName" "YUnitNameEn" "XMinValue" "XMaxValue" "YMinValue" "YMaxValue"
- * SeriesList [{
- * Name Color ShowLine ShowEquation ShowR
- * EdbInfoList:[{
- * "XEdbInfoId":100221,
- "YEdbInfoId":100220,
- "Name":"螺纹价格",
- "NameEn":"Luo Wen",
- "XDateType":1,
- "XDate":"",
- "XDateValue":0,
- "YDateType":2,
- "YDate":"",
- "YDateValue":30,
- "IsShow":true
- * }]
- * }]
- * }
- * @returns
- */
- sectionScatterPreviewData: params => {
- return http.post('/datamanage/chart_info/preview/time_section',params)
- },
- seasonPreviewData:params=>{
- return http.post('/datamanage/chart_info/preview/season',params)
- },
- // 截面组合图预览数据
- sectionalCombinationPreviewData:params=>{
- return http.post('/datamanage/chart_info/preview/section_combine',params)
- },
- /* 批量计算
- * @param {*} params
- * CalculateId
- * CalculateInfo {
- * "ClassifyId": 341,
- "EdbName": "PVC出口占比同比2",
- "Formula": "1",
- "Frequency": "月度",
- "FromEdbInfoId": 101712,
- "MoveFrequency": "天",
- "MoveType": 1,
- "Source": 6,
- "Unit": "无"
- * }
- * @returns
- */
- batchCalculateTargetAdd: params => {
- return http.post('/datamanage/edb_info/calculate/batch/save/batch',params)
- },
- //批量计算编辑
- batchCalculateTargetEdit: params => {
- return http.post('/datamanage/edb_info/calculate/batch/edit/batch',params)
- },
- /**
- * 获取计算指标与基础指标关联信息
- * @param EdbInfoId
- */
- getEDBInfoCalculateMap:params=>{
- return http.get('/datamanage/edb_info/calculate/mapping',params)
- },
- /**
- * 获取创建人列表
- * Source - 来源 :1:手工数据指标 2:钢联化工数据库 3:ETA指标库 4:ETA预测指标 5:图库
- */
- getEdbChartAdminList: params => {
- return http.get('/datamanage/edb_chart/adminList',params)
- },
- /* eta图库 图表预览 启用之前根据传参刷数据的详情接口
- {
- ChartType:1,
- "ChartEdbInfoList": [
- {
- "EdbInfoId": 102767,
- "EdbInfoType": 1,
- "LeadUnit": "",
- "LeadValue": 0,
- },
- {
- "EdbInfoId": 102769,
- "EdbInfoType": 1,
- "LeadUnit": "",
- "LeadValue": 0,
- }
- ],
- "DateType": 3,
- "StartDate": "",
- "EndDate": "",
- Calendar
- SeasonStartDate
- SeasonEndDate
- }
- */
- getSplinePreviewData: params => {
- return http.post('/datamanage/chart_info/detail/preview',params)
- },
- /**
- * 获取图表信息 在eta图库内替换上面的图表详情接口
- * @param {*} params ChartInfoId
- * @returns
- */
- getChartInfoById: params => {
- return http.get('/datamanage/chart_info/detail/v2',params)
- },
- /**
- * 接口获取指标数据来源
- * @param params.IsBase
- */
- getDataSource:(params)=>{
- return http.get('datamanage/edb_source/list',params)
- },
- /**
- * 指标图表列表
- * @param {Number} PageSize
- * @param {Number} CurrentIndex
- * @param {Number} ClassifyId
- * @param {Number} AdminId
- * @param {Boolean} IsOnlyMe
- */
- getEdbChartList:(params)=>{
- return http.get('/datamanage/edb_info/chart/list',params)
- },
- /**
- * 保存指标上下限
- * @param {*} params
- * @returns
- */
- saveEdbChartLimit:(params)=>{
- return http.post('/datamanage/edb_info/modify',params)
- },
- /**
- * 保存指标缩略图
- * @param {Number} EdbInfoId
- * @param {String} ImageUrl
- * @returns
- */
- saveEdbChartImg:(params)=>{
- return http.post('/datamanage/edb_info/image/set',params)
- },
- /**
- * 设置图表缩略图 formData
- * @param {Number} EdbInfoId
- * @param {String} Img
- * @returns
- */
- saveEdbChartThumbnail:(params)=>{
- return http.post('/datamanage/edb_info/image/set_by_svg',params)
- },
- /**
- * 获取图表批量刷新结果
- * @param {Object} params
- * @param {String} params.Source 来源,枚举值:report、english_report、smart_report、ppt、en_ppt
- * @param {Number} params.PrimaryId 报告id/pptId
- *
- */
- getReportrefreshStatus: params => {
- return http.post('/datamanage/chart_info/batch_refresh/result',params)
- },
- /**
- * 获取雷达图预览数据
- * @param {
- * ExtraConfig: { EdbInfoIdList DateList }
- * } params
- */
- getRadarPreviewData: params => {
- return http.post('/datamanage/chart_info/preview/radar',params)
- },
- /**
- * 获取数据转换后Edb数据
- * @param {Object} params
- * @param {Number} params.IsConvert 是否数据转换
- * @param {Number} params.ConvertType 数据转换类型 1乘 2除 3对数
- * @param {Number} params.ConvertValue 数据转换值
- * @param {String} params.ConvertUnit 数据转换单位
- * @param {String} params.ConvertEnUnit 数据转换单位英文
- * @param {*} params.SeasonStartDate
- * @param {*} params.SeasonEndDate
- * @param {*} params.EdbInfoId
- * @returns
- */
- getChangeEdbData:params=>{
- return http.get('/datamanage/chart_info/convert/detail',params)
- },
- //上传至社区
- chartUploadToForum:params=>{
- return http.post('/datamanage/chart_info/forum/upload',params)
- },
- //同步至社区
- chartUpdateToForum:params=>{
- return http.post('/datamanage/chart_info/forum/update',params)
- },
- //从社区撤回
- chartWithdrawFromForum:params=>{
- return http.post('/datamanage/chart_info/forum/delete',params)
- }
-
- }
- /* 我的图库 */
- const mychartInterface = {
- /**
- * 公用图库列表
- * @param {PageSize} params
- * @param {CurrentIndex} params
- * @param {ChartClassifyId} params
- * @param {KeyWord} params
- */
- publicList: params => {
- return http.get('/my_chart/chart/list',params)
- },
- /**
- * 加入我的图库
- * @param {ChartInfoId} params
- * @param {MyChartClassifyId} params
- */
- add: params => {
- return http.post('/my_chart/add',params)
- },
- /**
- * 添加分类
- * @param {MyChartClassifyName} params
- * @returns
- */
- addClassify: params => {
- return http.post('/my_chart/classify/add',params)
- },
- /**
- * 获取图表关联的节点列表
- * @param {MyChartClassifyId} params
- */
- getFrameNode:params =>{
- return http.get('/my_chart/classify/framework_node_list',params)
- },
- /**
- * 删除分类
- * @param {MyChartClassifyId} params
- * @returns
- */
- delClassify: params => {
- return http.post('/my_chart/classify/delete',params)
- },
- /**
- * 编辑分类
- * @param {MyChartClassifyId} params
- * @param {MyChartClassifyName} params
- * @returns
- */
- editClassify: params => {
- return http.post('/my_chart/classify/edit',params)
- },
- /**
- * 我的图库分类
- * @param {*} params
- * @returns
- */
- classifyList: params => {
- return http.get('/my_chart/classify/list',params);
- },
- /**
- * 移出我的图库
- * @param {MyChartId} params
- * @param {MyChartClassifyId} params
- * @returns
- */
- del: params => {
- return http.post('/my_chart/delete',params)
- },
- /**
- * 我的图库列表
- * @param {PageSize } params
- * @param {CurrentIndex} params
- * @param {MyChartClassifyId} params
- * @returns
- */
- myList: params => {
- return http.get('/my_chart/list',params);
- },
- /**
- * 移动
- * @param {MyChartId} params
- * @param {MyChartClassifyId} params
- * @param {PrevMyChartId} params
- * @param {NextMyChartId} params
- * @returns
- */
- move: params => {
- return http.post('/my_chart/move',params)
- },
- /**
- * 图表详情 推荐图表列表
- * @param {ChartClassifyId} params
- * @returns
- */
- recommendChart: params => {
- return http.get('/my_chart/chart/recommend/list',params)
- },
- /**
- * 搜索
- * @param {KeyWord} params
- * @returns
- */
- search: params => {
- return http.get('/my_chart/search',params)
- },
- /**
- * 移动到
- * @param {MyChartClassifyId} params []
- * @param {MyChartId} params
- * @param {CurrentMyChartClassifyId} params
- */
- moveChart: params => {
- return http.post('/my_chart/edit',params)
- },
- /**
- * 拖动分类
- * @param {MyChartClassifyId} parmas
- * @param {NextClassifyId} parmas
- * @param {PrevClassifyId} parmas
- * @returns
- */
- moveClassify: params => {
- return http.post('/my_chart/classify/move',params)
- },
- /**
- * 公用分类
- * @param {*} params
- * @returns
- */
- publicClassify: params => {
- return http.get('/my_chart/classify/public_list',params)
- },
- /**
- * 设置分类是否可见
- * @param {IsPublic} params 0:own 1:public
- * @param {MyChartClassifyId} params
- * @returns
- */
- setPublic: params => {
- return http.post('/my_chart/classify/modify_public',params)
- },
- /**
- * 复制分类
- * @param {MyChartClassifyId} params
- * @returns
- */
- copyclassify: params => {
- return http.post('/my_chart/classify/copy',params)
- },
- /**
- * 我的图库中公共分类
- */
- commonClassify:()=>{
- return http.get('/my_chart/classify/company_public_list',{})
- },
- /**
- * 我的图库中公共分类
- */
- commonClassifys:params=>{
- return http.get('/my_chart/classify/company_public_list',params)
- },
- /**
- * 设置分类是否客户可见
- */
- setClassifyAuthToUser:params=>{
- return http.post('/my_chart/classify/modify_company_public',params)
- },
- /**
- * 获取当前图表所属分类
- * @param {ChartInfoId} params
- * @returns
- */
- getChartInClassify: params => {
- return http.get('/my_chart/get_mychart_classify_id_list',params)
- },
- /**
- * 复制图表到其他分类
- * @param {ChartInfoId} params
- * @param {MyChartClassifyId} params []
- * @returns
- */
- copyMyChart: params => {
- return http.post('/my_chart/add_to_classify',params)
- },
- /**
- * 图表搜素 es
- * @param {*} params Keyword CurrentIndex
- * @returns
- */
- mychartSearchByEs: params => {
- return http.get('/my_chart/search_by_es',params)
- }
- }
- /* 图库框架 */
- const chartFrameInterface = {
- /**
- * 添加框架
- * @param {Object} params
- * @param {String} params.FrameworkName 框架名称
- * @param {String} params.FrameworkImg 框架图片地址
- * @param {String} params.FrameworkContent 框架内容
- * @param {Array} params.Nodes 框架所包含的节点数组
- * @param {String} Nodes.NodeName 节点名称
- * @param {Number} Nodes.MyChartClassifyId 节点对应图库分类id
- * @returns
- */
- addFrame: params => {
- return http.post('/chart_framework/add',params)
- },
- /**
- * 编辑框架
- * @param {Object} params
- * @param {Number} params.ChartFrameworkId 框架id
- * 其他参数同上
- * @returns
- */
- editFrame: params => {
- return http.post('/chart_framework/edit',params)
- },
- getFrameDetail:params=>{
- return http.get('/chart_framework/detail',params)
- },
- /**
- * 重命名框架
- * @param {Object} params
- * @param {Number} params.ChartFrameworkId
- * @param {String} params.FrameworkName
- * @returns
- */
- reNameFrame: params => {
- return http.post('/chart_framework/rename',params)
- },
- /**
- * 删除框架
- * @param {Object} params
- * @param {Number} params.ChartFrameworkId
- * @returns
- */
- deleteFrame: params => {
- return http.post('/chart_framework/remove',params)
- },
- /**
- * 公开/隐藏框架
- * @param {Object} params
- * @param {Number} params.ChartFrameworkId
- * @param {Number} params.IsPublic 0隐藏 1公开
- * @returns
- */
- changePublicFrame: params => {
- return http.post('/chart_framework/edit_public',params)
- },
- /**
- * 框架移动排序
- * @param {Object} params
- * @param {Number} params.ChartFrameworkId
- * @param {Number} params.PrevChartFrameworkId
- * @param {Number} params.NextChartFrameworkId
- * @returns
- */
- moveFrame: params => {
- return http.post('/chart_framework/move',params)
- },
- /**
- * 获取公开框架目录
- * @returns
- */
- getPublicFrameList:params=>{
- return http.get('/chart_framework/public_menu',params)
- },
- /**
- * 获取我的框架列表
- * @param {Object} params
- * @param {Number} params.AdminId
- * @param {String} params.Keyword 筛选关键词
- * @param {Number} params.Visibility 0所有用户 1自己用户
- * @returns
- */
- getMyFrameList:params=>{
- return http.get('/chart_framework/list',params)
- },
- }
- export {
- dataBaseInterface,
- mychartInterface,
- chartFrameInterface
- }
|