chartRelevanceApi.js 22 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022
  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. export const fittingEquationInterface = {
  233. /**
  234. * 分类列表
  235. * @param {*} params
  236. * @returns
  237. */
  238. classifyList: params => {
  239. return http.get('/line_equation/chart_classify/list',params)
  240. },
  241. /**
  242. * 分类添加
  243. * @param {*} params ChartClassifyName
  244. * @returns
  245. */
  246. classifyAdd: params => {
  247. return http.post('/line_equation/chart_classify/add',params)
  248. },
  249. /**
  250. * 分类编辑
  251. * @param {*} params ChartClassifyName ChartClassifyId
  252. * @returns
  253. */
  254. classifyEdit: params => {
  255. return http.post('/line_equation/chart_classify/edit',params)
  256. },
  257. /**
  258. * 删除监测
  259. * @param {*} params ChartClassifyId
  260. * @returns
  261. */
  262. classifyDelCheck: params => {
  263. return http.post('/line_equation/chart_classify/delete/check',params)
  264. },
  265. /**
  266. * 删除
  267. * @param {*} params ChartClassifyId
  268. * @returns
  269. */
  270. classifyDel: params => {
  271. return http.post('/line_equation/chart_classify/delete',params)
  272. },
  273. /**
  274. * 分类移动
  275. * @param {*} params
  276. * "ClassifyId": 269,
  277. "PrevClassifyId": 0,
  278. "NextClassifyId": 227,
  279. * @returns
  280. */
  281. classifyMove: params => {
  282. return http.post('/line_equation/chart_classify/move',params)
  283. },
  284. /**
  285. * 纯分类
  286. * @param {*} params
  287. * @returns
  288. */
  289. classifyOne: params => {
  290. return http.get('/line_equation/chart_classify/items',params)
  291. },
  292. /**预览
  293. * "DateType": 2,
  294. "StartDate": "2022-01-31",
  295. "EndDate": "2023-02-14",
  296. "XEdbInfoIdList":[102563,102565],
  297. "YEdbInfoIdList":[102566,102568],
  298. * @param {*} params
  299. * @returns
  300. */
  301. previewData: params => {
  302. return http.post('/line_equation/chart_info/preview',params)
  303. },
  304. /**
  305. * 新增/编辑图表
  306. * @param {*} params
  307. * {
  308. "MultipleGraphConfigId":241,
  309. "BatchAddChart":[
  310. {
  311. "Source":5,//5:斜率图;6:截距图;7:相关性图
  312. "ChartClassifyId":270,
  313. "ChartName":"斜率图3",
  314. },{
  315. "Source":6,//5:斜率图;6:截距图;7:相关性图
  316. "ChartClassifyId":270,
  317. "ChartName":"截距图3",
  318. },{
  319. "Source":7,//5:斜率图;6:截距图;7:相关性图
  320. "ChartClassifyId":270,
  321. "ChartName":"相关性图3",
  322. }
  323. ],
  324. "ExtraConfig": {
  325. "DateType": 2,
  326. "StartDate": "2022-01-01",
  327. "EndDate": "2023-04-14",
  328. "XEdbInfoIdList": [],
  329. "YEdbInfoIdList": [],
  330. }
  331. }
  332. * @returns
  333. */
  334. chartEdit: params => {
  335. return http.post('/line_equation/chart_info/save',params)
  336. },
  337. /**
  338. * 获取图表配置 UniqueCode
  339. * @param {*} params
  340. * @returns
  341. */
  342. getConfigSetting: params => {
  343. return http.get('/line_equation/multiple_graph/config/detail',params)
  344. },
  345. /**
  346. * 图表拖动
  347. * @param {*} params
  348. * "ChartInfoId": 844,
  349. "PrevChartInfoId": 0,
  350. "NextChartInfoId": 839,
  351. "ChartClassifyId": 270
  352. * @returns
  353. */
  354. chartMove: params => {
  355. return http.post('/line_equation/chart_info/move',params)
  356. },
  357. /**
  358. * 获取图表列表
  359. * @param {*} params
  360. * CurrentIndex PageSize ChartClassifyId Keyword IsShowMe
  361. * @returns
  362. */
  363. getChartList: params => {
  364. return http.get('/line_equation/chart_info/list',params)
  365. },
  366. /**
  367. * 编辑页图表详情
  368. * @param {*} params ChartInfoId
  369. * @returns
  370. */
  371. chartDetail: params => {
  372. return http.get('/line_equation/chart_info/detail',params)
  373. },
  374. /**
  375. * 图表另存为
  376. * @param {*} params
  377. * "ChartInfoId": 843,
  378. "ChartClassifyId": 270,
  379. "ChartName": "截距图3(复制出来的)"
  380. * @returns
  381. */
  382. saveOtherChart: params => {
  383. return http.post('/line_equation/chart_info/copy',params)
  384. },
  385. enInfoEdit: params => {
  386. return http.post('')
  387. },
  388. /**
  389. * 图表搜索
  390. * @param {*} params Keyword IsShowMe CurrentIndex
  391. * @returns
  392. */
  393. searchChart: params => {
  394. return http.get('/line_equation/chart_info/search_by_es',params)
  395. },
  396. /**
  397. * 刷新图表
  398. * @param {*} params ChartInfoId
  399. * @returns
  400. */
  401. refreshChart: params => {
  402. return http.get('/line_equation/chart_info/refresh',params)
  403. },
  404. /**
  405. * 设置英文
  406. * @param {*} params ChartInfoId ChartNameEn
  407. * @returns
  408. */
  409. editChartEn: params => {
  410. return http.post('/line_equation/chart_info/en/edit',params)
  411. }
  412. }
  413. /* 统计特征曲线 */
  414. export const statisticFeatureInterface = {
  415. /**
  416. * 分类列表
  417. * @param {*} params
  418. * @returns
  419. */
  420. classifyList: params => {
  421. return http.get('/line_feature/chart_classify/list',params)
  422. },
  423. /**
  424. * 分类添加
  425. * @param {*} params ChartClassifyName
  426. * @returns
  427. */
  428. classifyAdd: params => {
  429. return http.post('/line_feature/chart_classify/add',params)
  430. },
  431. /**
  432. * 分类编辑
  433. * @param {*} params ChartClassifyName ChartClassifyId
  434. * @returns
  435. */
  436. classifyEdit: params => {
  437. return http.post('/line_feature/chart_classify/edit',params)
  438. },
  439. /**
  440. * 删除监测
  441. * @param {*} params ChartClassifyId
  442. * @returns
  443. */
  444. classifyDelCheck: params => {
  445. return http.post('/line_feature/chart_classify/delete/check',params)
  446. },
  447. /**
  448. * 删除
  449. * @param {*} params ChartClassifyId
  450. * @returns
  451. */
  452. classifyDel: params => {
  453. return http.post('/line_feature/chart_classify/delete',params)
  454. },
  455. /**
  456. * 分类移动
  457. * @param {*} params
  458. * "ClassifyId": 269,
  459. "PrevClassifyId": 0,
  460. "NextClassifyId": 227,
  461. * @returns
  462. */
  463. classifyMove: params => {
  464. return http.post('/line_feature/chart_classify/move',params)
  465. },
  466. /**
  467. * 纯分类
  468. * @param {*} params
  469. * @returns
  470. */
  471. classifyOne: params => {
  472. return http.get('/line_feature/chart_classify/items',params)
  473. },
  474. /**
  475. * 图表拖动
  476. * @param {*} params
  477. * "ChartInfoId": 844,
  478. "PrevChartInfoId": 0,
  479. "NextChartInfoId": 839,
  480. "ChartClassifyId": 270
  481. * @returns
  482. */
  483. chartMove: params => {
  484. return http.post('/line_feature/chart_info/move',params)
  485. },
  486. /**
  487. * 获取图表列表
  488. * @param {*} params
  489. * CurrentIndex PageSize ChartClassifyId Keyword IsShowMe
  490. * @returns
  491. */
  492. getChartList: params => {
  493. return http.get('/line_feature/chart_info/list',params)
  494. },
  495. /**
  496. * 图表详情
  497. * @param {*} params ChartInfoId
  498. * @returns
  499. */
  500. chartDetail: params => {
  501. return http.get('/line_feature/chart_info/detail',params)
  502. },
  503. /**预览
  504. * {
  505. "EdbInfoId": 102563,
  506. "Curve": {
  507. "DateType": 6,
  508. "StartDate": "2023-11-01",
  509. "EndDate": "2023-05-01",
  510. "LeftMin": 0,
  511. "LeftMax": 100,
  512. },
  513. "StandardDeviation": {
  514. "CalculateValue": 30
  515. },
  516. "Percentile": {
  517. "CalculateValue": 30,
  518. "CalculateUnit":"天"
  519. },
  520. "FrequencyDistribution":{
  521. "DateType": 6,
  522. "StartDate": "2023-11-01",
  523. "EndDate": "2023-05-01",
  524. "FrequencyValue": 10,
  525. }
  526. }
  527. * @param {*} params
  528. * @returns
  529. */
  530. previewChartBatch: params => {
  531. return http.post('/line_feature/preview',params)
  532. },
  533. /**
  534. * 保存配置
  535. * @param {*} params 参数同预览
  536. * @returns
  537. */
  538. chartOptionsSet: params => {
  539. return http.post('/line_feature/config/save',params)
  540. },
  541. /**
  542. * 获取图表配置 UniqueCode
  543. * @param {*} params
  544. * @returns
  545. */
  546. getOptionByCode: params => {
  547. return http.get('/line_feature/config/detail',params)
  548. },
  549. /**
  550. * 图表另存为
  551. * @param {*} params
  552. * "ChartInfoId": 843,
  553. "ChartClassifyId": 270,
  554. "ChartName": "截距图3(复制出来的)"
  555. * @returns
  556. */
  557. saveOtherChart: params => {
  558. return http.post('/line_feature/chart_info/copy',params)
  559. },
  560. /**
  561. * 图表搜索
  562. * @param {*} params Keyword IsShowMe CurrentIndex
  563. * @returns
  564. */
  565. searchChart: params => {
  566. return http.get('/line_feature/chart_info/search_by_es',params)
  567. },
  568. /**
  569. * 刷新图表
  570. * @param {*} params ChartInfoId
  571. * @returns
  572. */
  573. refreshChart: params => {
  574. return http.get('/line_feature/chart_info/refresh',params)
  575. },
  576. /**
  577. * 设置英文
  578. * @param {*} params ChartInfoId ChartNameEn
  579. * "TagList": [
  580. {
  581. "ChartTagId": 1,
  582. "TagNameEn": "宏观en"
  583. }
  584. ],
  585. "VarietyList": [
  586. {
  587. "ChartVarietyId": 2,
  588. "VarietyNameEn": "甲醇en"
  589. }
  590. ]
  591. * @returns
  592. */
  593. editChartEn: params => {
  594. return http.post('/line_feature/chart_info/en/edit',params)
  595. },
  596. /**
  597. * 保存图表
  598. * @param {*} params
  599. * "MultipleGraphConfigId": 1, //配置ID,为0时,代表新增,大于0:代表编辑
  600. "Source": 1, //来源,1:曲线图,8:标准差;9:百分位图;10:频率分布图;
  601. "ChartName": "多图配置的曲线图", //图表名称
  602. "ClassifyId": 243, //分类id
  603. "EdbInfoIdA": 102563, //指标A的id
  604. "EdbInfoIdB": 102561, //指标B的id
  605. IsSaveAs
  606. * @returns
  607. */
  608. saveChart: params => {
  609. return http.post('/line_feature/chart/save',params)
  610. },
  611. /***
  612. * 指标保存 另存
  613. * "MultipleGraphConfigId": 1, //配置ID,为0时,代表新增,大于0:代表编辑
  614. "Source": 3, //来源,1:曲线图,8:标准差;9:百分位图;10:频率分布图;
  615. "EdbName": "多图配置的相关性指标",
  616. "Frequency": "日度",
  617. "Unit": "吨",
  618. "ClassifyId": 373, //分类id
  619. "EdbInfoIdA": 102563, //指标A的id
  620. "EdbInfoIdB": 102561, //指标B的id
  621. "IsSaveAs": false, //是否另存为,默认false
  622. */
  623. saveEdb: params => {
  624. return http.post('/line_feature/edb/save',params)
  625. },
  626. /**
  627. * 只获取曲线图数据
  628. * @param {*} params
  629. * @returns
  630. */
  631. previewSpline: params => {
  632. return http.post('/line_feature/preview_cure',params)
  633. }
  634. }
  635. /* 跨品种分析 */
  636. export const crossVarietyInterface = {
  637. /**
  638. * 分类列表
  639. * @param {*} params
  640. * @returns
  641. */
  642. classifyList: params => {
  643. return http.get('/cross_variety/classify/list',params)
  644. },
  645. /**
  646. * 分类添加
  647. * @param {*} params ChartClassifyName
  648. * @returns
  649. */
  650. classifyAdd: params => {
  651. return http.post('/cross_variety/classify/add',params)
  652. },
  653. /**
  654. * 分类编辑
  655. * @param {*} params ChartClassifyName ChartClassifyId
  656. * @returns
  657. */
  658. classifyEdit: params => {
  659. return http.post('/cross_variety/classify/edit',params)
  660. },
  661. /**
  662. * 分类移动
  663. * @param {*} params
  664. * "ClassifyId": 269,
  665. "PrevClassifyId": 0,
  666. "NextClassifyId": 227,
  667. * @returns
  668. */
  669. classifyMove: params => {
  670. return http.post('/cross_variety/classify/move',params)
  671. },
  672. /**
  673. * 图表拖动
  674. * @param {*} params
  675. * "ChartInfoId": 844,
  676. "PrevChartInfoId": 0,
  677. "NextChartInfoId": 839,
  678. "ChartClassifyId": 270
  679. * @returns
  680. */
  681. chartMove: params => {
  682. return http.post('/cross_variety/chart_info/move',params)
  683. },
  684. /**
  685. * 获取图表列表
  686. * @param {*} params
  687. * CurrentIndex PageSize ChartClassifyId Keyword IsShowMe
  688. * @returns
  689. */
  690. getChartList: params => {
  691. return http.get('/cross_variety/chart_info/list',params)
  692. },
  693. /**
  694. * 图表详情
  695. * @param {*} params ChartInfoId
  696. * @returns
  697. */
  698. chartDetail: params => {
  699. return http.get('/cross_variety/chart_info/detail',params)
  700. },
  701. /**
  702. * 添加图表
  703. * @param {*} params
  704. * "ChartName": "跨品种分析图标名称",
  705. "TagX": 1,
  706. "TagY": 2,
  707. "CalculateValue": 6,
  708. "CalculateUnit": "月",
  709. "DateConfigList": [
  710. {
  711. "DateType": 2,
  712. "Num": 60
  713. }
  714. ],
  715. "VarietyList": [2,5]
  716. * @returns
  717. */
  718. chartAdd: params => {
  719. return http.post('/cross_variety/chart_info/add',params)
  720. },
  721. /**
  722. * 编辑图表
  723. * @param {*} params
  724. * ChartInfoId
  725. * "ChartName": "跨品种分析图标名称",
  726. "TagX": 1,
  727. "TagY": 2,
  728. "CalculateValue": 6,
  729. "CalculateUnit": "月",
  730. "DateConfigList": [
  731. {
  732. "DateType": 2,
  733. "Num": 60
  734. }
  735. ],
  736. "VarietyList": [2,5]
  737. * @returns
  738. */
  739. chartEdit: params => {
  740. return http.post('/cross_variety/chart_info/edit',params)
  741. },
  742. /**
  743. * 删除图表
  744. * @param {*} params ChartInfoId
  745. * @returns
  746. */
  747. chartDel: params => {
  748. return http.post('/cross_variety/chart_info/delete',params)
  749. },
  750. /**
  751. * 预览图表
  752. * @param {*} params
  753. * "TagX": 1,
  754. "TagY": 2,
  755. "CalculateValue": 6,
  756. "CalculateUnit": "月",
  757. "DateConfigList": [
  758. {
  759. "DateType": 1,
  760. "Num": 0
  761. }
  762. ],
  763. "VarietyList": [2,5]
  764. * @returns
  765. */
  766. chartPreview: params => {
  767. return http.post('/cross_variety/chart_info/preview',params)
  768. },
  769. /**
  770. * 设置英文
  771. * @param {*} params ChartInfoId ChartNameEn
  772. * "TagList": [
  773. {
  774. "ChartTagId": 1,
  775. "TagNameEn": "宏观en"
  776. }
  777. ],
  778. "VarietyList": [
  779. {
  780. "ChartVarietyId": 2,
  781. "VarietyNameEn": "甲醇en"
  782. }
  783. ]
  784. */
  785. editChartEn: params => {
  786. return http.post('/cross_variety/chart_info/en/edit',params)
  787. },
  788. /**
  789. * 图表搜索
  790. * @param {*} params Keyword
  791. * @returns
  792. */
  793. searchChart: params => {
  794. return http.get('/cross_variety/chart_info/search_by_es',params)
  795. },
  796. /**
  797. * 刷新图表
  798. * @param {*} params ChartInfoId
  799. * @returns
  800. */
  801. refreshChart: params => {
  802. return http.get('/cross_variety/chart_info/refresh',params)
  803. },
  804. /**
  805. * 图表另存为
  806. * @param {*} params ChartInfoId ChartName
  807. * @returns
  808. */
  809. saveOtherChart: params => {
  810. return http.post('/cross_variety/chart_info/copy',params)
  811. },
  812. /**
  813. * 编辑英文名称
  814. * @param {*} params
  815. * @returns
  816. */
  817. editChartEn: params => {
  818. return http.post('/cross_variety/chart_info/en/edit',params)
  819. },
  820. /**
  821. * 图表设置语言配置信息
  822. * @param {*} params ChartInfoId
  823. * @returns
  824. */
  825. chartLangOption: params => {
  826. return http.get('/cross_variety/chart_info/relation',params)
  827. },
  828. /**
  829. * 品种列表
  830. * @param {*} params
  831. */
  832. getVarietyList: params => {
  833. return http.get('/cross_variety/variety/list',params)
  834. },
  835. /**
  836. * 添加品种
  837. * @param {VarietyName} params
  838. * @returns
  839. */
  840. varietyAdd: params => {
  841. return http.post('/cross_variety/variety/add',params)
  842. },
  843. /**
  844. * 编辑品种
  845. * @param {VarietyName ChartVarietyId} params
  846. * @returns
  847. */
  848. varietyEdit: params => {
  849. return http.post('/cross_variety/variety/edit',params)
  850. },
  851. /**
  852. * 删除品种检测
  853. * @param {ChartVarietyId} params
  854. * @returns
  855. */
  856. varietyDelCheck: params => {
  857. return http.post('/cross_variety/variety/delete/check',params)
  858. },
  859. /**
  860. * 删除品种
  861. * @param {ChartVarietyId} params
  862. * @returns
  863. */
  864. varietyDel: params => {
  865. return http.post('/cross_variety/variety/delete',params)
  866. },
  867. /**
  868. * 标签列表
  869. * @param {*} params
  870. */
  871. getTagList: params => {
  872. return http.get('/cross_variety/tag/list',params)
  873. },
  874. /**
  875. * 添加标签
  876. * @param {TagName} params
  877. * @returns
  878. */
  879. tagAdd: params => {
  880. return http.post('/cross_variety/tag/add',params)
  881. },
  882. /**
  883. * 编辑标签
  884. * @param {TagName ChartTagId} params
  885. * @returns
  886. */
  887. tagEdit: params => {
  888. return http.post('/cross_variety/tag/edit',params)
  889. },
  890. /**
  891. * 删除标签检测
  892. * @param {ChartTagId} params
  893. * @returns
  894. */
  895. tagDelCheck: params => {
  896. return http.post('/cross_variety/tag/delete/check',params)
  897. },
  898. /**
  899. * 添加标签
  900. * @param {ChartTagId} params
  901. * @returns
  902. */
  903. tagDel: params => {
  904. return http.post('/cross_variety/tag/delete',params)
  905. },
  906. /**
  907. * 设置标签关联品种对应信息
  908. * @param {
  909. "ChartTagId": 1,
  910. "VarietyEdb": [
  911. {
  912. "ChartVarietyId": 2,
  913. "EdbInfoId": 103407
  914. },
  915. ]
  916. * } params
  917. * @returns
  918. */
  919. setTagRelationVariety: params => {
  920. return http.post('/cross_variety/tag/variety_edb/save',params)
  921. },
  922. /**
  923. * 获取标签关联的品种信息
  924. * @param {ChartTagId} params
  925. */
  926. getTagRelation: params => {
  927. return http.get('/cross_variety/tag/variety_edb/list',params)
  928. }
  929. }