chartRelevanceApi.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071
  1. import http from "@/api/http.js"
  2. export default{
  3. /**
  4. * 获取分类
  5. * @returns
  6. */
  7. classifyList: params =>{
  8. return http.get('/correlation/chart_classify/list',params)
  9. },
  10. /**
  11. * 新增分类
  12. * @param {*} params "ChartClassifyName": "分类1-2"
  13. * @returns
  14. */
  15. classifyAdd: params =>{
  16. return http.post('/correlation/chart_classify/add',params)
  17. },
  18. /**
  19. * 编辑分类
  20. * @param {*} params ChartClassifyName ChartClassifyId
  21. * @returns
  22. */
  23. classifyEdit: params =>{
  24. return http.post('/correlation/chart_classify/edit',params)
  25. },
  26. /**
  27. * 删除分类检测
  28. * @param {*} params ChartClassifyId
  29. * @returns
  30. */
  31. classifyDelCheck: params =>{
  32. return http.post('/correlation/chart_classify/delete/check',params)
  33. },
  34. /**
  35. * 删除分类
  36. * @param {*} params ChartClassifyId
  37. * @returns
  38. */
  39. classifyDel: params =>{
  40. return http.post('/correlation/chart_classify/delete',params)
  41. },
  42. /**
  43. * 移动分类
  44. * @param {*} params ClassifyId "PrevClassifyId":1, "NextClassifyId":2,
  45. * @returns
  46. */
  47. classifyMove: params => {
  48. return http.post('/correlation/chart_classify/move',params)
  49. },
  50. /**
  51. * 移动图表
  52. * @param {*} params
  53. * @returns
  54. */
  55. chartMove: params => {
  56. return http.post('/correlation/chart_info/move',params)
  57. },
  58. /**
  59. * 图表分类option
  60. * @param {*} params
  61. * @returns
  62. */
  63. classifyOne: params => {
  64. return http.get('/correlation/chart_classify/items',params)
  65. },
  66. /**
  67. * 相关性图表列表
  68. * @param {*} params CurrentIndex PageSize ChartClassifyId Keyword IsShowMe
  69. * @returns
  70. */
  71. getChartList: params => {
  72. return http.get('/correlation/chart_info/list',params)
  73. },
  74. /**
  75. * 相关性图表详情
  76. * @param {ChartInfoId} params
  77. * @returns
  78. */
  79. chartDetail: params => {
  80. return http.get('/correlation/chart_info/detail',params)
  81. },
  82. /**
  83. * 预览相关性图
  84. */
  85. previewRelevanceChart:params=>{
  86. return http.post('/correlation/chart_info/preview',params)
  87. },
  88. /**
  89. * 保存相关性图
  90. */
  91. saveRelevanceChart:params=>{
  92. return http.post('/correlation/chart_info/add',params)
  93. },
  94. /**
  95. * 编辑
  96. * @param {*} params
  97. * @returns
  98. */
  99. editRelevanceChart:params=>{
  100. return http.post('/correlation/chart_info/edit',params)
  101. },
  102. /**
  103. * 刷新图表
  104. * @param {*} params ChartInfoId
  105. * @returns
  106. */
  107. refreshChart: params => {
  108. return http.get('/correlation/chart_info/refresh',params)
  109. },
  110. /**
  111. * 另存为
  112. * @param {*} params ChartInfoId ChartClassifyId ChartName
  113. * @returns
  114. */
  115. saveOtherChart: params => {
  116. return http.post('/correlation/chart_info/copy',params)
  117. },
  118. /**
  119. * 编辑英文信息
  120. * @param {*} params ChartInfoId ChartNameEn UnitEn
  121. * @returns
  122. */
  123. editChartEn: params => {
  124. return http.post('/correlation/chart_info/en/edit',params)
  125. },
  126. /**
  127. * 搜索图表
  128. * @param {*} params Keyword IsShowMe
  129. * @returns
  130. */
  131. searchChart: params => {
  132. return http.get('/correlation/chart_info/search_by_es',params)
  133. },
  134. /* =============================================== */
  135. /* 改动版 */
  136. /**
  137. * 关联性图表配置
  138. * @param {*} params
  139. * {
  140. "MultipleGraphConfigId": 1,
  141. "EdbInfoIdA": 102651,
  142. "EdbInfoIdB": 102646,
  143. "Curve": {
  144. "DateType": 1,
  145. "StartDate": "2021-01-01",
  146. "EndDate": "2023-01-01",
  147. "LeftMin": 0,
  148. "LeftMax": 100,
  149. "RightMin": -10,
  150. "RightMax": 300,
  151. "IsOrder": false,
  152. "EdbInfoType": true,
  153. "LeadValue": 1,
  154. "LeadUnit": "周"
  155. },
  156. "Correlation": {
  157. "LeadValue": 6,
  158. "LeadUnit": "周",
  159. "CalculateValue": 10,
  160. "CalculateUnit": "周度"
  161. },
  162. "RollingCorrelation": [
  163. {
  164. "LeadValue": 6,
  165. "LeadUnit": "周",
  166. "CalculateValue": 10,
  167. "CalculateUnit": "周度"
  168. }
  169. ]
  170. }
  171. * @returns
  172. */
  173. chartOptionsSet: params => {
  174. return http.post('/datamanage/multiple_graph/config/save',params)
  175. },
  176. /**
  177. * 预览数据
  178. * @param {*} params 同配置参数
  179. * @returns
  180. */
  181. previewChartBatch: params => {
  182. return http.post('/datamanage/multiple_graph/preview',params)
  183. },
  184. /**
  185. * 保存图表
  186. * @param {*} params
  187. * "MultipleGraphConfigId": 1, //配置ID,为0时,代表新增,大于0:代表编辑
  188. "Source": 1, //来源,1:曲线图,2:相关性图;3:滚动相关性图1;4:滚动相关性图2;
  189. "ChartName": "多图配置的曲线图", //图表名称
  190. "ClassifyId": 243, //分类id
  191. "EdbInfoIdA": 102563, //指标A的id
  192. "EdbInfoIdB": 102561, //指标B的id
  193. IsSaveAs
  194. * @returns
  195. */
  196. saveChart: params => {
  197. return http.post('/datamanage/multiple_graph/chart/save',params)
  198. },
  199. /***
  200. * 指标保存 另存
  201. * "MultipleGraphConfigId": 1, //配置ID,为0时,代表新增,大于0:代表编辑
  202. "Source": 3, //来源,1:曲线图,2:相关性图;3:滚动相关性图1;4:滚动相关性图2;
  203. "EdbName": "多图配置的相关性指标",
  204. "Frequency": "日度",
  205. "Unit": "吨",
  206. "ClassifyId": 373, //分类id
  207. "EdbInfoIdA": 102563, //指标A的id
  208. "EdbInfoIdB": 102561, //指标B的id
  209. "IsSaveAs": false, //是否另存为,默认false
  210. */
  211. saveEdb: params => {
  212. return http.post('/datamanage/multiple_graph/edb/save',params)
  213. },
  214. /**
  215. * 获取配置详情
  216. * @param {*UniqueCode} params
  217. * @returns
  218. */
  219. getOptionByCode: params => {
  220. return http.get('/datamanage/multiple_graph/config/detail',params)
  221. },
  222. /**
  223. * 预览曲线图
  224. * @param {*} params 同配置参数
  225. * @returns
  226. */
  227. previewSplineChart: params => {
  228. return http.post('/datamanage/multiple_graph/preview_cure',params)
  229. },
  230. /**
  231. * 设置图表对应版本信息
  232. * @param {*} params
  233. * ChartInfoId ChartName
  234. * @returns
  235. */
  236. setChartLangInfo: params => {
  237. return http.post('/correlation/chart_info/base/edit',params)
  238. },
  239. }
  240. /* 拟合方程曲线 */
  241. export const fittingEquationInterface = {
  242. /**
  243. * 分类列表
  244. * @param {*} params
  245. * @returns
  246. */
  247. classifyList: params => {
  248. return http.get('/line_equation/chart_classify/list',params)
  249. },
  250. /**
  251. * 分类添加
  252. * @param {*} params ChartClassifyName
  253. * @returns
  254. */
  255. classifyAdd: params => {
  256. return http.post('/line_equation/chart_classify/add',params)
  257. },
  258. /**
  259. * 分类编辑
  260. * @param {*} params ChartClassifyName ChartClassifyId
  261. * @returns
  262. */
  263. classifyEdit: params => {
  264. return http.post('/line_equation/chart_classify/edit',params)
  265. },
  266. /**
  267. * 删除监测
  268. * @param {*} params ChartClassifyId
  269. * @returns
  270. */
  271. classifyDelCheck: params => {
  272. return http.post('/line_equation/chart_classify/delete/check',params)
  273. },
  274. /**
  275. * 删除
  276. * @param {*} params ChartClassifyId
  277. * @returns
  278. */
  279. classifyDel: params => {
  280. return http.post('/line_equation/chart_classify/delete',params)
  281. },
  282. /**
  283. * 分类移动
  284. * @param {*} params
  285. * "ClassifyId": 269,
  286. "PrevClassifyId": 0,
  287. "NextClassifyId": 227,
  288. * @returns
  289. */
  290. classifyMove: params => {
  291. return http.post('/line_equation/chart_classify/move',params)
  292. },
  293. /**
  294. * 纯分类
  295. * @param {*} params
  296. * @returns
  297. */
  298. classifyOne: params => {
  299. return http.get('/line_equation/chart_classify/items',params)
  300. },
  301. /**预览
  302. * "DateType": 2,
  303. "StartDate": "2022-01-31",
  304. "EndDate": "2023-02-14",
  305. "XEdbInfoIdList":[102563,102565],
  306. "YEdbInfoIdList":[102566,102568],
  307. * @param {*} params
  308. * @returns
  309. */
  310. previewData: params => {
  311. return http.post('/line_equation/chart_info/preview',params)
  312. },
  313. /**
  314. * 新增/编辑图表
  315. * @param {*} params
  316. * {
  317. "MultipleGraphConfigId":241,
  318. "BatchAddChart":[
  319. {
  320. "Source":5,//5:斜率图;6:截距图;7:相关性图
  321. "ChartClassifyId":270,
  322. "ChartName":"斜率图3",
  323. },{
  324. "Source":6,//5:斜率图;6:截距图;7:相关性图
  325. "ChartClassifyId":270,
  326. "ChartName":"截距图3",
  327. },{
  328. "Source":7,//5:斜率图;6:截距图;7:相关性图
  329. "ChartClassifyId":270,
  330. "ChartName":"相关性图3",
  331. }
  332. ],
  333. "ExtraConfig": {
  334. "DateType": 2,
  335. "StartDate": "2022-01-01",
  336. "EndDate": "2023-04-14",
  337. "XEdbInfoIdList": [],
  338. "YEdbInfoIdList": [],
  339. }
  340. }
  341. * @returns
  342. */
  343. chartEdit: params => {
  344. return http.post('/line_equation/chart_info/save',params)
  345. },
  346. /**
  347. * 获取图表配置 UniqueCode
  348. * @param {*} params
  349. * @returns
  350. */
  351. getConfigSetting: params => {
  352. return http.get('/line_equation/multiple_graph/config/detail',params)
  353. },
  354. /**
  355. * 图表拖动
  356. * @param {*} params
  357. * "ChartInfoId": 844,
  358. "PrevChartInfoId": 0,
  359. "NextChartInfoId": 839,
  360. "ChartClassifyId": 270
  361. * @returns
  362. */
  363. chartMove: params => {
  364. return http.post('/line_equation/chart_info/move',params)
  365. },
  366. /**
  367. * 获取图表列表
  368. * @param {*} params
  369. * CurrentIndex PageSize ChartClassifyId Keyword IsShowMe
  370. * @returns
  371. */
  372. getChartList: params => {
  373. return http.get('/line_equation/chart_info/list',params)
  374. },
  375. /**
  376. * 编辑页图表详情
  377. * @param {*} params ChartInfoId
  378. * @returns
  379. */
  380. chartDetail: params => {
  381. return http.get('/line_equation/chart_info/detail',params)
  382. },
  383. /**
  384. * 图表另存为
  385. * @param {*} params
  386. * "ChartInfoId": 843,
  387. "ChartClassifyId": 270,
  388. "ChartName": "截距图3(复制出来的)"
  389. * @returns
  390. */
  391. saveOtherChart: params => {
  392. return http.post('/line_equation/chart_info/copy',params)
  393. },
  394. enInfoEdit: params => {
  395. return http.post('')
  396. },
  397. /**
  398. * 图表搜索
  399. * @param {*} params Keyword IsShowMe CurrentIndex
  400. * @returns
  401. */
  402. searchChart: params => {
  403. return http.get('/line_equation/chart_info/search_by_es',params)
  404. },
  405. /**
  406. * 刷新图表
  407. * @param {*} params ChartInfoId
  408. * @returns
  409. */
  410. refreshChart: params => {
  411. return http.get('/line_equation/chart_info/refresh',params)
  412. },
  413. /**
  414. * 设置英文
  415. * @param {*} params ChartInfoId ChartNameEn
  416. * @returns
  417. */
  418. editChartEn: params => {
  419. return http.post('/line_equation/chart_info/en/edit',params)
  420. },
  421. /**
  422. * 设置图表对应版本信息
  423. * @param {*} params
  424. * ChartInfoId ChartName
  425. * @returns
  426. */
  427. setChartLangInfo: params => {
  428. return http.post('/line_equation/chart_info/base/edit',params)
  429. },
  430. }
  431. /* 统计特征曲线 */
  432. export const statisticFeatureInterface = {
  433. /**
  434. * 分类列表
  435. * @param {*} params
  436. * @returns
  437. */
  438. classifyList: params => {
  439. return http.get('/line_feature/chart_classify/list',params)
  440. },
  441. /**
  442. * 分类添加
  443. * @param {*} params ChartClassifyName
  444. * @returns
  445. */
  446. classifyAdd: params => {
  447. return http.post('/line_feature/chart_classify/add',params)
  448. },
  449. /**
  450. * 分类编辑
  451. * @param {*} params ChartClassifyName ChartClassifyId
  452. * @returns
  453. */
  454. classifyEdit: params => {
  455. return http.post('/line_feature/chart_classify/edit',params)
  456. },
  457. /**
  458. * 删除监测
  459. * @param {*} params ChartClassifyId
  460. * @returns
  461. */
  462. classifyDelCheck: params => {
  463. return http.post('/line_feature/chart_classify/delete/check',params)
  464. },
  465. /**
  466. * 删除
  467. * @param {*} params ChartClassifyId
  468. * @returns
  469. */
  470. classifyDel: params => {
  471. return http.post('/line_feature/chart_classify/delete',params)
  472. },
  473. /**
  474. * 分类移动
  475. * @param {*} params
  476. * "ClassifyId": 269,
  477. "PrevClassifyId": 0,
  478. "NextClassifyId": 227,
  479. * @returns
  480. */
  481. classifyMove: params => {
  482. return http.post('/line_feature/chart_classify/move',params)
  483. },
  484. /**
  485. * 纯分类
  486. * @param {*} params
  487. * @returns
  488. */
  489. classifyOne: params => {
  490. return http.get('/line_feature/chart_classify/items',params)
  491. },
  492. /**
  493. * 图表拖动
  494. * @param {*} params
  495. * "ChartInfoId": 844,
  496. "PrevChartInfoId": 0,
  497. "NextChartInfoId": 839,
  498. "ChartClassifyId": 270
  499. * @returns
  500. */
  501. chartMove: params => {
  502. return http.post('/line_feature/chart_info/move',params)
  503. },
  504. /**
  505. * 获取图表列表
  506. * @param {*} params
  507. * CurrentIndex PageSize ChartClassifyId Keyword IsShowMe
  508. * @returns
  509. */
  510. getChartList: params => {
  511. return http.get('/line_feature/chart_info/list',params)
  512. },
  513. /**
  514. * 图表详情
  515. * @param {*} params ChartInfoId
  516. * @returns
  517. */
  518. chartDetail: params => {
  519. return http.get('/line_feature/chart_info/detail',params)
  520. },
  521. /**预览
  522. * {
  523. "EdbInfoId": 102563,
  524. "Curve": {
  525. "DateType": 6,
  526. "StartDate": "2023-11-01",
  527. "EndDate": "2023-05-01",
  528. "LeftMin": 0,
  529. "LeftMax": 100,
  530. },
  531. "StandardDeviation": {
  532. "CalculateValue": 30
  533. },
  534. "Percentile": {
  535. "CalculateValue": 30,
  536. "CalculateUnit":"天"
  537. },
  538. "FrequencyDistribution":{
  539. "DateType": 6,
  540. "StartDate": "2023-11-01",
  541. "EndDate": "2023-05-01",
  542. "FrequencyValue": 10,
  543. }
  544. }
  545. * @param {*} params
  546. * @returns
  547. */
  548. previewChartBatch: params => {
  549. return http.post('/line_feature/preview',params)
  550. },
  551. /**
  552. * 保存配置
  553. * @param {*} params 参数同预览
  554. * @returns
  555. */
  556. chartOptionsSet: params => {
  557. return http.post('/line_feature/config/save',params)
  558. },
  559. /**
  560. * 获取图表配置 UniqueCode
  561. * @param {*} params
  562. * @returns
  563. */
  564. getOptionByCode: params => {
  565. return http.get('/line_feature/config/detail',params)
  566. },
  567. /**
  568. * 图表另存为
  569. * @param {*} params
  570. * "ChartInfoId": 843,
  571. "ChartClassifyId": 270,
  572. "ChartName": "截距图3(复制出来的)"
  573. * @returns
  574. */
  575. saveOtherChart: params => {
  576. return http.post('/line_feature/chart_info/copy',params)
  577. },
  578. /**
  579. * 图表搜索
  580. * @param {*} params Keyword IsShowMe CurrentIndex
  581. * @returns
  582. */
  583. searchChart: params => {
  584. return http.get('/line_feature/chart_info/search_by_es',params)
  585. },
  586. /**
  587. * 刷新图表
  588. * @param {*} params ChartInfoId
  589. * @returns
  590. */
  591. refreshChart: params => {
  592. return http.get('/line_feature/chart_info/refresh',params)
  593. },
  594. /**
  595. * 设置英文
  596. * @param {*} params ChartInfoId ChartNameEn
  597. * "TagList": [
  598. {
  599. "ChartTagId": 1,
  600. "TagNameEn": "宏观en"
  601. }
  602. ],
  603. "VarietyList": [
  604. {
  605. "ChartVarietyId": 2,
  606. "VarietyNameEn": "甲醇en"
  607. }
  608. ]
  609. * @returns
  610. */
  611. editChartEn: params => {
  612. return http.post('/line_feature/chart_info/en/edit',params)
  613. },
  614. /**
  615. * 保存图表
  616. * @param {*} params
  617. * "MultipleGraphConfigId": 1, //配置ID,为0时,代表新增,大于0:代表编辑
  618. "Source": 1, //来源,1:曲线图,8:标准差;9:百分位图;10:频率分布图;
  619. "ChartName": "多图配置的曲线图", //图表名称
  620. "ClassifyId": 243, //分类id
  621. "EdbInfoIdA": 102563, //指标A的id
  622. "EdbInfoIdB": 102561, //指标B的id
  623. IsSaveAs
  624. * @returns
  625. */
  626. saveChart: params => {
  627. return http.post('/line_feature/chart/save',params)
  628. },
  629. /***
  630. * 指标保存 另存
  631. * "MultipleGraphConfigId": 1, //配置ID,为0时,代表新增,大于0:代表编辑
  632. "Source": 3, //来源,1:曲线图,8:标准差;9:百分位图;10:频率分布图;
  633. "EdbName": "多图配置的相关性指标",
  634. "Frequency": "日度",
  635. "Unit": "吨",
  636. "ClassifyId": 373, //分类id
  637. "EdbInfoIdA": 102563, //指标A的id
  638. "EdbInfoIdB": 102561, //指标B的id
  639. "IsSaveAs": false, //是否另存为,默认false
  640. */
  641. saveEdb: params => {
  642. return http.post('/line_feature/edb/save',params)
  643. },
  644. /**
  645. * 只获取曲线图数据
  646. * @param {*} params
  647. * @returns
  648. */
  649. previewSpline: params => {
  650. return http.post('/line_feature/preview_cure',params)
  651. },
  652. /**
  653. * 设置图表对应版本信息
  654. * @param {*} params
  655. * ChartInfoId ChartName
  656. * @returns
  657. */
  658. setChartLangInfo: params => {
  659. return http.post('/line_feature/chart_info/base/edit',params)
  660. },
  661. }
  662. /* 跨品种分析 */
  663. export const crossVarietyInterface = {
  664. /**
  665. * 分类列表
  666. * @param {*} params
  667. * @returns
  668. */
  669. classifyList: params => {
  670. return http.get('/cross_variety/classify/list',params)
  671. },
  672. /**
  673. * 分类添加
  674. * @param {*} params ChartClassifyName
  675. * @returns
  676. */
  677. classifyAdd: params => {
  678. return http.post('/cross_variety/classify/add',params)
  679. },
  680. /**
  681. * 分类编辑
  682. * @param {*} params ChartClassifyName ChartClassifyId
  683. * @returns
  684. */
  685. classifyEdit: params => {
  686. return http.post('/cross_variety/classify/edit',params)
  687. },
  688. /**
  689. * 分类移动
  690. * @param {*} params
  691. * "ClassifyId": 269,
  692. "PrevClassifyId": 0,
  693. "NextClassifyId": 227,
  694. * @returns
  695. */
  696. classifyMove: params => {
  697. return http.post('/cross_variety/classify/move',params)
  698. },
  699. /**
  700. * 图表拖动
  701. * @param {*} params
  702. * "ChartInfoId": 844,
  703. "PrevChartInfoId": 0,
  704. "NextChartInfoId": 839,
  705. "ChartClassifyId": 270
  706. * @returns
  707. */
  708. chartMove: params => {
  709. return http.post('/cross_variety/chart_info/move',params)
  710. },
  711. /**
  712. * 获取图表列表
  713. * @param {*} params
  714. * CurrentIndex PageSize ChartClassifyId Keyword IsShowMe
  715. * @returns
  716. */
  717. getChartList: params => {
  718. return http.get('/cross_variety/chart_info/list',params)
  719. },
  720. /**
  721. * 图表详情
  722. * @param {*} params ChartInfoId
  723. * @returns
  724. */
  725. chartDetail: params => {
  726. return http.get('/cross_variety/chart_info/detail',params)
  727. },
  728. /**
  729. * 添加图表
  730. * @param {*} params
  731. * "ChartName": "跨品种分析图标名称",
  732. "TagX": 1,
  733. "TagY": 2,
  734. "CalculateValue": 6,
  735. "CalculateUnit": "月",
  736. "DateConfigList": [
  737. {
  738. "DateType": 2,
  739. "Num": 60
  740. }
  741. ],
  742. "VarietyList": [2,5]
  743. * @returns
  744. */
  745. chartAdd: params => {
  746. return http.post('/cross_variety/chart_info/add',params)
  747. },
  748. /**
  749. * 编辑图表
  750. * @param {*} params
  751. * ChartInfoId
  752. * "ChartName": "跨品种分析图标名称",
  753. "TagX": 1,
  754. "TagY": 2,
  755. "CalculateValue": 6,
  756. "CalculateUnit": "月",
  757. "DateConfigList": [
  758. {
  759. "DateType": 2,
  760. "Num": 60
  761. }
  762. ],
  763. "VarietyList": [2,5]
  764. * @returns
  765. */
  766. chartEdit: params => {
  767. return http.post('/cross_variety/chart_info/edit',params)
  768. },
  769. /**
  770. * 删除图表
  771. * @param {*} params ChartInfoId
  772. * @returns
  773. */
  774. chartDel: params => {
  775. return http.post('/cross_variety/chart_info/delete',params)
  776. },
  777. /**
  778. * 预览图表
  779. * @param {*} params
  780. * "TagX": 1,
  781. "TagY": 2,
  782. "CalculateValue": 6,
  783. "CalculateUnit": "月",
  784. "DateConfigList": [
  785. {
  786. "DateType": 1,
  787. "Num": 0
  788. }
  789. ],
  790. "VarietyList": [2,5]
  791. * @returns
  792. */
  793. chartPreview: params => {
  794. return http.post('/cross_variety/chart_info/preview',params)
  795. },
  796. /**
  797. * 设置英文
  798. * @param {*} params ChartInfoId ChartNameEn
  799. * "TagList": [
  800. {
  801. "ChartTagId": 1,
  802. "TagNameEn": "宏观en"
  803. }
  804. ],
  805. "VarietyList": [
  806. {
  807. "ChartVarietyId": 2,
  808. "VarietyNameEn": "甲醇en"
  809. }
  810. ]
  811. */
  812. editChartEn: params => {
  813. return http.post('/cross_variety/chart_info/en/edit',params)
  814. },
  815. /**
  816. * 图表搜索
  817. * @param {*} params Keyword
  818. * @returns
  819. */
  820. searchChart: params => {
  821. return http.get('/cross_variety/chart_info/search_by_es',params)
  822. },
  823. /**
  824. * 刷新图表
  825. * @param {*} params ChartInfoId
  826. * @returns
  827. */
  828. refreshChart: params => {
  829. return http.get('/cross_variety/chart_info/refresh',params)
  830. },
  831. /**
  832. * 图表另存为
  833. * @param {*} params ChartInfoId ChartName
  834. * @returns
  835. */
  836. saveOtherChart: params => {
  837. return http.post('/cross_variety/chart_info/copy',params)
  838. },
  839. /**
  840. * 编辑英文名称
  841. * @param {*} params
  842. * @returns
  843. */
  844. editChartEn: params => {
  845. return http.post('/cross_variety/chart_info/en/edit',params)
  846. },
  847. /**
  848. * 图表设置语言配置信息
  849. * @param {*} params ChartInfoId
  850. * @returns
  851. */
  852. chartLangOption: params => {
  853. return http.get('/cross_variety/chart_info/relation',params)
  854. },
  855. /**
  856. * 品种列表
  857. * @param {*} params
  858. */
  859. getVarietyList: params => {
  860. return http.get('/cross_variety/variety/list',params)
  861. },
  862. /**
  863. * 添加品种
  864. * @param {VarietyName} params
  865. * @returns
  866. */
  867. varietyAdd: params => {
  868. return http.post('/cross_variety/variety/add',params)
  869. },
  870. /**
  871. * 编辑品种
  872. * @param {VarietyName ChartVarietyId} params
  873. * @returns
  874. */
  875. varietyEdit: params => {
  876. return http.post('/cross_variety/variety/edit',params)
  877. },
  878. /**
  879. * 删除品种检测
  880. * @param {ChartVarietyId} params
  881. * @returns
  882. */
  883. varietyDelCheck: params => {
  884. return http.post('/cross_variety/variety/delete/check',params)
  885. },
  886. /**
  887. * 删除品种
  888. * @param {ChartVarietyId} params
  889. * @returns
  890. */
  891. varietyDel: params => {
  892. return http.post('/cross_variety/variety/delete',params)
  893. },
  894. /**
  895. * 标签列表
  896. * @param {*} params
  897. */
  898. getTagList: params => {
  899. return http.get('/cross_variety/tag/list',params)
  900. },
  901. /**
  902. * 添加标签
  903. * @param {TagName} params
  904. * @returns
  905. */
  906. tagAdd: params => {
  907. return http.post('/cross_variety/tag/add',params)
  908. },
  909. /**
  910. * 编辑标签
  911. * @param {TagName ChartTagId} params
  912. * @returns
  913. */
  914. tagEdit: params => {
  915. return http.post('/cross_variety/tag/edit',params)
  916. },
  917. /**
  918. * 删除标签检测
  919. * @param {ChartTagId} params
  920. * @returns
  921. */
  922. tagDelCheck: params => {
  923. return http.post('/cross_variety/tag/delete/check',params)
  924. },
  925. /**
  926. * 添加标签
  927. * @param {ChartTagId} params
  928. * @returns
  929. */
  930. tagDel: params => {
  931. return http.post('/cross_variety/tag/delete',params)
  932. },
  933. /**
  934. * 设置标签关联品种对应信息
  935. * @param {
  936. "ChartTagId": 1,
  937. "VarietyEdb": [
  938. {
  939. "ChartVarietyId": 2,
  940. "EdbInfoId": 103407
  941. },
  942. ]
  943. * } params
  944. * @returns
  945. */
  946. setTagRelationVariety: params => {
  947. return http.post('/cross_variety/tag/variety_edb/save',params)
  948. },
  949. /**
  950. * 获取标签关联的品种信息
  951. * @param {ChartTagId} params
  952. */
  953. getTagRelation: params => {
  954. return http.get('/cross_variety/tag/variety_edb/list',params)
  955. },
  956. /**
  957. * 保存图表上下限
  958. * @param {*} params
  959. * @returns
  960. */
  961. saveChart: params => {
  962. return http.post('/cross_variety/chart_info/save',params)
  963. },
  964. /**
  965. * 设置图表对应版本信息
  966. * @param {*} params
  967. * ChartInfoId ChartName TagList VarietyList
  968. * @returns
  969. */
  970. setChartLangInfo: params => {
  971. return http.post('/cross_variety/chart_info/base/edit',params)
  972. },
  973. }