main.data.ts 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996
  1. import { BasicColumn } from '/@/components/Table';
  2. import { FormSchema } from '/@/components/Table';
  3. import { rules } from '/@/utils/helper/validator';
  4. import { reactive } from 'vue';
  5. import type { EChartsOption } from 'echarts';
  6. import { useGlobSetting } from '/@/hooks/setting';
  7. import { cloneDeep } from 'lodash-es';
  8. type CtrlLockOpenType = {
  9. CtrlLockOpen: boolean | undefined;
  10. CtrlExplosionVentOpen: boolean | undefined;
  11. };
  12. export type PointMonitorType = {
  13. valueName: string;
  14. valueCode: string;
  15. value: number | string;
  16. warnMin_201: number | string;
  17. warnMin_104: number | string;
  18. readTime: string;
  19. };
  20. export const columns: BasicColumn[] = [
  21. {
  22. title: '名称',
  23. dataIndex: 'strname',
  24. width: 120,
  25. },
  26. {
  27. title: '安装位置',
  28. dataIndex: 'strinstallpos',
  29. width: 100,
  30. },
  31. {
  32. title: '是否为常闭型',
  33. dataIndex: 'bnormalclose',
  34. width: 100,
  35. // customRender: render.renderAvatar,
  36. },
  37. {
  38. title: '净宽',
  39. dataIndex: 'fclearwidth',
  40. width: 80,
  41. },
  42. {
  43. title: '净高',
  44. dataIndex: 'fclearheight',
  45. width: 100,
  46. },
  47. {
  48. title: '风门道数',
  49. dataIndex: 'ndoorcount',
  50. width: 100,
  51. },
  52. {
  53. title: '所属分站',
  54. width: 150,
  55. dataIndex: 'stationname',
  56. },
  57. {
  58. title: '点表',
  59. width: 100,
  60. dataIndex: 'strtype',
  61. },
  62. {
  63. title: '监测类型',
  64. dataIndex: 'monitorflag',
  65. width: 100,
  66. },
  67. {
  68. title: '是否模拟数据',
  69. dataIndex: 'testflag',
  70. width: 100,
  71. },
  72. ];
  73. export const recycleColumns: BasicColumn[] = [
  74. {
  75. title: '名称',
  76. dataIndex: 'strname',
  77. width: 100,
  78. },
  79. {
  80. title: '是否为常闭型',
  81. dataIndex: 'bnormalclose',
  82. width: 100,
  83. },
  84. ];
  85. export const searchFormSchema: FormSchema[] = [
  86. {
  87. label: '名称',
  88. field: 'strname',
  89. component: 'Input',
  90. colProps: { span: 6 },
  91. },
  92. {
  93. label: '安装位置',
  94. field: 'strinstallpos',
  95. component: 'Input',
  96. colProps: { span: 6 },
  97. },
  98. {
  99. label: '是否为常闭型',
  100. field: 'bnormalclose',
  101. component: 'JDictSelectTag',
  102. componentProps: {
  103. dictCode: 'user_status',
  104. placeholder: '请选择读写类型',
  105. stringToNumber: true,
  106. },
  107. colProps: { span: 6 },
  108. },
  109. ];
  110. export const formSchema: FormSchema[] = [
  111. {
  112. label: '',
  113. field: 'id',
  114. component: 'Input',
  115. show: false,
  116. },
  117. {
  118. label: '名称',
  119. field: 'strname',
  120. component: 'Input',
  121. },
  122. {
  123. label: '安装位置',
  124. field: 'strinstallpos',
  125. component: 'Input',
  126. },
  127. {
  128. label: '是否为常闭型',
  129. field: 'bnormalclose',
  130. component: 'RadioGroup',
  131. defaultValue: 1,
  132. componentProps: () => {
  133. return {
  134. options: [
  135. { label: '是', value: 1, key: '1' },
  136. { label: '否', value: 0, key: '2' },
  137. ],
  138. };
  139. },
  140. },
  141. {
  142. label: '净宽',
  143. field: 'fclearwidth',
  144. component: 'Input',
  145. },
  146. {
  147. label: '净高',
  148. field: 'fclearheight',
  149. component: 'Input',
  150. },
  151. {
  152. label: '风门道数',
  153. field: 'ndoorcount',
  154. component: 'Input',
  155. },
  156. {
  157. label: '所属分站',
  158. field: 'stationname',
  159. component: 'JDictSelectTag',
  160. componentProps: {
  161. dictCode: 'user_status',
  162. placeholder: '请选择状态',
  163. stringToNumber: true,
  164. },
  165. },
  166. {
  167. label: '点表',
  168. field: 'strtype',
  169. component: 'JDictSelectTag',
  170. componentProps: {
  171. dictCode: 'user_status',
  172. placeholder: '请选择状态',
  173. stringToNumber: true,
  174. },
  175. },
  176. {
  177. label: '监测类型',
  178. field: 'monitorflag',
  179. component: 'JDictSelectTag',
  180. componentProps: {
  181. dictCode: 'user_status',
  182. placeholder: '请选择状态',
  183. stringToNumber: true,
  184. },
  185. },
  186. {
  187. label: '是否模拟数据',
  188. field: 'testflag',
  189. component: 'RadioGroup',
  190. defaultValue: 1,
  191. componentProps: () => {
  192. return {
  193. options: [
  194. { label: '是', value: 1, key: '1' },
  195. { label: '否', value: 0, key: '2' },
  196. ],
  197. };
  198. },
  199. },
  200. ];
  201. export const tableColumns = [
  202. {
  203. title: '',
  204. dataIndex: 'isCheck',
  205. customCell: (_, index) => {
  206. if (index % 2 == 0) {
  207. return { rowSpan: 2 };
  208. } else {
  209. return { rowSpan: 0 };
  210. }
  211. },
  212. },
  213. {
  214. title: '安装位置',
  215. dataIndex: 'address',
  216. customCell: (_, index) => {
  217. if (index % 2 == 0) {
  218. return { rowSpan: 2 };
  219. } else {
  220. return { rowSpan: 0 };
  221. }
  222. },
  223. },
  224. {
  225. title: '运行风机',
  226. dataIndex: 'childName',
  227. },
  228. {
  229. title: '风机静压(Pa)',
  230. dataIndex: 'yc2',
  231. },
  232. {
  233. title: '风机全压(Pa)',
  234. dataIndex: 'dqPa',
  235. },
  236. {
  237. title: '电机流量(m³/s)',
  238. dataIndex: 'fanM3',
  239. },
  240. {
  241. title: '电机速度(rpm/s)',
  242. dataIndex: 'fanSD',
  243. },
  244. {
  245. title: '电机电压(V)',
  246. dataIndex: 'fanU',
  247. },
  248. {
  249. title: '电机电流(A)',
  250. dataIndex: 'fanA',
  251. },
  252. {
  253. title: '电机频率(Hz/s)',
  254. dataIndex: 'fanPL',
  255. },
  256. {
  257. title: '电机功率(KW/s)',
  258. dataIndex: 'fanGL',
  259. },
  260. {
  261. title: '振动X1(mm/s)',
  262. dataIndex: 'zdX1',
  263. },
  264. {
  265. title: '振动Y1(mm/s)',
  266. dataIndex: 'zdY1',
  267. },
  268. ];
  269. export const dataColumns = () => {
  270. return [
  271. {
  272. id: 'UXC',
  273. name: '电机轴温设定(℃)',
  274. id2: 'bearingFront2_F1',
  275. },
  276. { id: 'VXC', name: '电机定温设定(℃)', id2: 'bearingBack2_F1' },
  277. {
  278. id: 'WXC',
  279. name: '电机前轴温度(℃)',
  280. id2: 'stator2A_F1',
  281. },
  282. {
  283. id: 'QZC',
  284. name: '电机后轴温度(℃)',
  285. id2: 'stator2B_F1',
  286. },
  287. { id: 'ZCZ1C', name: '电机定子1温度(℃)', id2: 'fIA2_F1' },
  288. { id: 'ZCZ2C', name: '电机定子2温度(℃)', id2: 'fIB2_F1' },
  289. { id: 'FTZ1C', name: '电机定3温度(℃)', id2: 'fIC2_F1' },
  290. ];
  291. };
  292. export const stateColumns = () => {
  293. return [
  294. // {
  295. // id: 'lubeBoxTemperatureF1High',
  296. // name: '润滑站油箱油温高报警',
  297. // flag: false,
  298. // },
  299. {
  300. id: 'lubeBoxTemperatureF1Low',
  301. name: '润滑站1油箱油温低报警',
  302. flag: true,
  303. },
  304. {
  305. id: 'lubeTemperatureF1High',
  306. name: '润滑站1供油油温高报警',
  307. flag: true,
  308. },
  309. // {
  310. // id: 'lubeTemperatureF1Low',
  311. // name: '润滑站1供油油温低报警',
  312. // flag: false,
  313. // },
  314. { id: 'lubePaF1High', name: '润滑站1供油油压高报警', flag: true },
  315. { id: 'lubePaF1Low', name: '润滑站1供油油压低报警', flag: true },
  316. // { id: "ch4_F1High", name: "瓦斯值1高报警", flag: false },
  317. { id: 'singleDoorF1Warn', name: '侧开风门单模报警', flag: true },
  318. { id: 'lubeF1SlightFault', name: '稀油润滑站轻故障', flag: true },
  319. { id: 'lubeF1SevereFault', name: '稀油润滑站重故障', flag: true },
  320. { id: 'f1B1Fault', name: '变频器1故障', flag: true },
  321. { id: 'f1B2Fault', name: '变频器2故障', flag: true },
  322. { id: 'f1Fault', name: '通风机故障', flag: true },
  323. ];
  324. };
  325. export const faultDeviceHeader = [
  326. {
  327. title: '测点名称',
  328. code: 'valueName',
  329. width: '200px',
  330. },
  331. {
  332. title: '实时数据',
  333. code: 'value',
  334. width: '110px',
  335. },
  336. {
  337. title: '预警限值',
  338. code: 'warnMin_104',
  339. width: '110px',
  340. },
  341. {
  342. title: '报警限值',
  343. code: 'warnMin_201',
  344. width: '110px',
  345. },
  346. ];
  347. export const rightFaultDeviceColumns = [
  348. {
  349. title: '中端X',
  350. dataIndex: 'Fault_cd_ZX', // 测点名称
  351. width: 120,
  352. },
  353. {
  354. title: '中端X',
  355. dataIndex: 'Fault_ZX_val', // 中端X实时监测值
  356. width: 120,
  357. },
  358. ];
  359. export const modalTypeArr = {
  360. centerBtnArr: [
  361. {
  362. key: 'startSmoke',
  363. value: '一键启动/停止',
  364. permission: 'fan:startSmoke',
  365. },
  366. {
  367. key: 'startFan',
  368. value: '一键启动/停止',
  369. permission: 'fan:startFan',
  370. },
  371. {
  372. key: 'startFan',
  373. value: '一键启动/停止',
  374. permission: 'fan:startAndResetFan',
  375. },
  376. {
  377. key: 'resetFan',
  378. value: '一键复位',
  379. permission: 'fan:resetFan',
  380. },
  381. {
  382. key: 'changeSmoke',
  383. value: '不停风倒机',
  384. permission: 'fan:changeSmoke',
  385. },
  386. {
  387. key: 'changeDirection',
  388. value: '一键反风',
  389. permission: 'fan:changeDirection',
  390. },
  391. {
  392. key: 'frequency',
  393. value: '一键调频',
  394. permission: 'fan:frequency',
  395. },
  396. {
  397. key: 'fbm',
  398. value: '防爆门控制',
  399. permission: 'fan:fbm',
  400. },
  401. {
  402. key: 'kkjc',
  403. value: '工况辅助决策',
  404. permission: 'fan:kkjc',
  405. },
  406. {
  407. key: 'zhlk',
  408. value: '自主联控',
  409. permission: 'fan:zhlk',
  410. },
  411. ],
  412. };
  413. export const fbmControlData = <CtrlLockOpenType>reactive({
  414. CtrlLockOpen: false, // 远程开锁 true 为打开状态, false 为关闭状态
  415. CtrlExplosionVentOpen: false, // 远程开门 true 为打开状态, false 为关闭状态
  416. });
  417. // export const assistanceData = {
  418. // '30': {
  419. // angle: 0,
  420. // Hz: 30.0, //频率
  421. // a: -0.17624, //二次项系数
  422. // b: 34.59747, //一次项系数
  423. // c: 938.98517, //常数项系数
  424. // min: 93.0, //风量下限
  425. // max: 132.0, //风量上限
  426. // },
  427. // '31': {
  428. // angle: 0,
  429. // Hz: 31.0,
  430. // a: -0.17624,
  431. // b: 35.055694,
  432. // c: 851.596922,
  433. // min: 96.1,
  434. // max: 136.4,
  435. // },
  436. // '32': {
  437. // angle: 0,
  438. // Hz: 32.0,
  439. // a: -0.17624,
  440. // b: 35.513918,
  441. // c: 768.749733,
  442. // min: 99.2,
  443. // max: 140.8,
  444. // },
  445. // '33': {
  446. // angle: 0,
  447. // Hz: 33.0,
  448. // a: -0.17624,
  449. // b: 35.972142,
  450. // c: 690.443603,
  451. // min: 102.3,
  452. // max: 145.2,
  453. // },
  454. // '34': {
  455. // angle: 0,
  456. // Hz: 34.0,
  457. // a: -0.17624,
  458. // b: 36.430366,
  459. // c: 616.678531,
  460. // min: 105.4,
  461. // max: 149.6,
  462. // },
  463. // '35': {
  464. // angle: 0,
  465. // Hz: 35.0,
  466. // a: -0.17624,
  467. // b: 36.88859,
  468. // c: 547.454517,
  469. // min: 108.5,
  470. // max: 154.0,
  471. // },
  472. // '36': {
  473. // angle: 0,
  474. // Hz: 36.0,
  475. // a: -0.17624,
  476. // b: 37.346814,
  477. // c: 482.771563,
  478. // min: 111.6,
  479. // max: 158.4,
  480. // },
  481. // '37': {
  482. // angle: 0,
  483. // Hz: 37.0,
  484. // a: -0.17624,
  485. // b: 37.805038,
  486. // c: 422.629667,
  487. // min: 114.7,
  488. // max: 162.8,
  489. // },
  490. // '38': {
  491. // angle: 0,
  492. // Hz: 38.0,
  493. // a: -0.17624,
  494. // b: 38.263262,
  495. // c: 367.028829,
  496. // min: 117.8,
  497. // max: 167.2,
  498. // },
  499. // '39': {
  500. // angle: 0,
  501. // Hz: 39.0,
  502. // a: -0.17624,
  503. // b: 38.721486,
  504. // c: 315.96905,
  505. // min: 120.9,
  506. // max: 171.6,
  507. // },
  508. // '40': {
  509. // angle: 0,
  510. // Hz: 40.0,
  511. // a: -0.17624,
  512. // b: 39.17971,
  513. // c: 269.45033,
  514. // min: 124.0,
  515. // max: 176.0,
  516. // },
  517. // '41': {
  518. // angle: 0,
  519. // Hz: 41.0,
  520. // a: -0.17624,
  521. // b: 39.637934,
  522. // c: 227.472668,
  523. // min: 127.1,
  524. // max: 180.4,
  525. // },
  526. // '42': {
  527. // angle: 0,
  528. // Hz: 42.0,
  529. // a: -0.17624,
  530. // b: 40.096158,
  531. // c: 190.036065,
  532. // min: 130.2,
  533. // max: 184.8,
  534. // },
  535. // '43': {
  536. // angle: 0,
  537. // Hz: 43.0,
  538. // a: -0.17624,
  539. // b: 40.554382,
  540. // c: 157.140521,
  541. // min: 133.3,
  542. // max: 189.2,
  543. // },
  544. // '44': {
  545. // angle: 0,
  546. // Hz: 44.0,
  547. // a: -0.17624,
  548. // b: 41.012606,
  549. // c: 128.786035,
  550. // min: 136.4,
  551. // max: 193.6,
  552. // },
  553. // '45': {
  554. // angle: 0,
  555. // Hz: 45.0,
  556. // a: -0.17624,
  557. // b: 41.47083,
  558. // c: 104.972607,
  559. // min: 139.5,
  560. // max: 198.0,
  561. // },
  562. // '46': {
  563. // angle: 0,
  564. // Hz: 46.0,
  565. // a: -0.17624,
  566. // b: 41.929054,
  567. // c: 85.700239,
  568. // min: 142.6,
  569. // max: 202.4,
  570. // },
  571. // '47': {
  572. // angle: 0,
  573. // Hz: 47.0,
  574. // a: -0.17624,
  575. // b: 42.387278,
  576. // c: 70.968929,
  577. // min: 145.7,
  578. // max: 206.8,
  579. // },
  580. // '48': {
  581. // angle: 0,
  582. // Hz: 48.0,
  583. // a: -0.17624,
  584. // b: 42.845502,
  585. // c: 60.778677,
  586. // min: 148.8,
  587. // max: 211.2,
  588. // },
  589. // '49': {
  590. // angle: 0,
  591. // Hz: 49.0,
  592. // a: -0.17624,
  593. // b: 43.303726,
  594. // c: 55.129484,
  595. // min: 151.9,
  596. // max: 215.6,
  597. // },
  598. // '50': {
  599. // angle: 0,
  600. // Hz: 50.0,
  601. // a: -0.17624,
  602. // b: 43.76195,
  603. // c: 54.02135,
  604. // min: 155.0,
  605. // max: 220.0,
  606. // },
  607. // };
  608. export const assistanceData = {
  609. '30': {
  610. angle: 0,
  611. Hz: 30.0, //频率
  612. a: -0.17624, //二次项系数
  613. b: 43.40947, //一次项系数
  614. c: 97.60705999999982, //常数项系数
  615. min: 93.0, //风量下限
  616. max: 132.0, //风量上限
  617. },
  618. '31': {
  619. angle: 0,
  620. Hz: 31.0,
  621. a: -0.17624,
  622. b: 43.427094,
  623. c: 95.43614590000016,
  624. min: 96.1,
  625. max: 136.4,
  626. },
  627. '32': {
  628. angle: 0,
  629. Hz: 32.0,
  630. a: -0.17624,
  631. b: 43.444718,
  632. c: 93.26435059999994,
  633. min: 99.2,
  634. max: 140.8,
  635. },
  636. '33': {
  637. angle: 0,
  638. Hz: 33.0,
  639. a: -0.17624,
  640. b: 43.462342,
  641. c: 91.09167409999964,
  642. min: 102.3,
  643. max: 145.2,
  644. },
  645. '34': {
  646. angle: 0,
  647. Hz: 34.0,
  648. a: -0.17624,
  649. b: 43.479966000000005,
  650. c: 88.91811639999969,
  651. min: 105.4,
  652. max: 149.6,
  653. },
  654. '35': {
  655. angle: 0,
  656. Hz: 35.0,
  657. a: -0.17624,
  658. b: 43.49759,
  659. c: 86.74367749999965,
  660. min: 108.5,
  661. max: 154.0,
  662. },
  663. '36': {
  664. angle: 0,
  665. Hz: 36.0,
  666. a: -0.17624,
  667. b: 43.515214,
  668. c: 84.56835739999997,
  669. min: 111.6,
  670. max: 158.4,
  671. },
  672. '37': {
  673. angle: 0,
  674. Hz: 37.0,
  675. a: -0.17624,
  676. b: 43.532838,
  677. c: 82.3921561000002,
  678. min: 114.7,
  679. max: 162.8,
  680. },
  681. '38': {
  682. angle: 0,
  683. Hz: 38.0,
  684. a: -0.17624,
  685. b: 43.550462,
  686. c: 80.21507359999941,
  687. min: 117.8,
  688. max: 167.2,
  689. },
  690. '39': {
  691. angle: 0,
  692. Hz: 39.0,
  693. a: -0.17624,
  694. b: 43.568086,
  695. c: 78.0371098999999,
  696. min: 120.9,
  697. max: 171.6,
  698. },
  699. '40': {
  700. angle: 0,
  701. Hz: 40.0,
  702. a: -0.17624,
  703. b: 43.58571,
  704. c: 75.85826499999985,
  705. min: 124.0,
  706. max: 176.0,
  707. },
  708. '41': {
  709. angle: 0,
  710. Hz: 41.0,
  711. a: -0.17624,
  712. b: 43.603334,
  713. c: 73.67853890000015,
  714. min: 127.1,
  715. max: 180.4,
  716. },
  717. '42': {
  718. angle: 0,
  719. Hz: 42.0,
  720. a: -0.17624,
  721. b: 43.620958,
  722. c: 71.4979315999999,
  723. min: 130.2,
  724. max: 184.8,
  725. },
  726. '43': {
  727. angle: 0,
  728. Hz: 43.0,
  729. a: -0.17624,
  730. b: 43.638582,
  731. c: 69.31644309999956,
  732. min: 133.3,
  733. max: 189.2,
  734. },
  735. '44': {
  736. angle: 0,
  737. Hz: 44.0,
  738. a: -0.17624,
  739. b: 43.656206000000005,
  740. c: 67.13407339999958,
  741. min: 136.4,
  742. max: 193.6,
  743. },
  744. '45': {
  745. angle: 0,
  746. Hz: 45.0,
  747. a: -0.17624,
  748. b: 43.67383,
  749. c: 64.9508224999995,
  750. min: 139.5,
  751. max: 198.0,
  752. },
  753. '46': {
  754. angle: 0,
  755. Hz: 46.0,
  756. a: -0.17624,
  757. b: 43.691454,
  758. c: 62.76669039999979,
  759. min: 142.6,
  760. max: 202.4,
  761. },
  762. '47': {
  763. angle: 0,
  764. Hz: 47.0,
  765. a: -0.17624,
  766. b: 43.709078,
  767. c: 60.58167709999998,
  768. min: 145.7,
  769. max: 206.8,
  770. },
  771. '48': {
  772. angle: 0,
  773. Hz: 48.0,
  774. a: -0.17624,
  775. b: 43.726702,
  776. c: 58.39578259999962,
  777. min: 148.8,
  778. max: 211.2,
  779. },
  780. '49': {
  781. angle: 0,
  782. Hz: 49.0,
  783. a: -0.17624,
  784. b: 43.744326,
  785. c: 56.20900689999962,
  786. min: 151.9,
  787. max: 215.6,
  788. },
  789. '50': {
  790. angle: 0,
  791. Hz: 50.0,
  792. a: -0.17624,
  793. b: 43.76195,
  794. c: 54.021349999999984,
  795. min: 155.0,
  796. max: 220.0,
  797. },
  798. };
  799. export const setOption = (deviceType?) => {
  800. let yMax = 4500;
  801. const { sysOrgCode } = useGlobSetting();
  802. // const sysOrgCode = 'sdmtjtltmk';
  803. if (sysOrgCode == 'sdmtjtdltmk') {
  804. // 这里判断白家渠还是五当沟
  805. if (deviceType == 'fanmain_bjq') {
  806. yMax = 5500;
  807. } else if (deviceType == 'fanmain_wdg') {
  808. yMax = 1200;
  809. }
  810. } else if (sysOrgCode == 'sdmtjtswmk') {
  811. if (deviceType == 'fanmain_bfj') {
  812. yMax = 5000;
  813. } else if (deviceType == 'fanmain_nfj') {
  814. yMax = 4500;
  815. }
  816. } else if (sysOrgCode == 'sdmtjtbdmk') {
  817. if (deviceType == 'fanmain_ljy') {
  818. yMax = 5000;
  819. } else if (deviceType == 'fanmain_zl') {
  820. yMax = 6000;
  821. }
  822. } else if (sysOrgCode == 'sdmtjtjjmk') {
  823. yMax = 6000;
  824. } else if (sysOrgCode == 'sdmtjtsgtmk') {
  825. yMax = 3000;
  826. } else if (sysOrgCode == 'sdmtjthlgmk') {
  827. yMax = 3000;
  828. } else if (sysOrgCode == 'sdmtjtdltmkhjtj') {
  829. yMax = 3000;
  830. } else if (sysOrgCode == 'sdmtjtcctrk') {
  831. yMax = 600;
  832. } else if (sysOrgCode == 'sdmtjtwlmlmk') {
  833. yMax = 4000;
  834. } else if (sysOrgCode == 'sdmtjtltmk') {
  835. yMax = 4000;
  836. } else {
  837. yMax = 4500;
  838. }
  839. return reactive<EChartsOption>({
  840. title: {
  841. text: '风机运行工况辅助曲线图',
  842. textStyle: {
  843. color: '#BF954D',
  844. },
  845. left: 'center',
  846. top: 0,
  847. },
  848. // backgroundColor: '#39deff',
  849. tooltip: {
  850. trigger: 'axis',
  851. axisPointer: {
  852. type: 'cross',
  853. label: {
  854. backgroundColor: '#6a7985',
  855. },
  856. },
  857. },
  858. toolbox: {
  859. show: true,
  860. },
  861. grid: {
  862. left: 8,
  863. right: 50,
  864. bottom: 0,
  865. containLabel: true,
  866. },
  867. xAxis: {
  868. type: 'category',
  869. name: 'm³/s',
  870. nameTextStyle: {
  871. fontWeight: 600,
  872. fontSize: 13,
  873. },
  874. splitLine: { show: true, lineStyle: { color: 'rgba(21,80,126,.5)' } },
  875. axisLabel: {
  876. margin: 20,
  877. fontSize: 14,
  878. color: '#f1f1f199',
  879. },
  880. boundaryGap: false,
  881. data: [],
  882. },
  883. yAxis: {
  884. type: 'value',
  885. axisLine: {
  886. show: true,
  887. lineStyle: {
  888. color: '#006c9d',
  889. },
  890. },
  891. splitLine: { show: true, lineStyle: { color: 'rgba(21,80,126,.5)' } },
  892. axisLabel: {
  893. show: true,
  894. fontSize: 14,
  895. formatter: '{value}',
  896. color: '#0071A5',
  897. },
  898. min: 0,
  899. max: yMax, //武当沟
  900. name: 'Pa',
  901. nameTextStyle: {
  902. fontWeight: 600,
  903. fontSize: 13,
  904. },
  905. },
  906. series: [],
  907. });
  908. };
  909. export const initData1 = () => {
  910. const assistanceData = {
  911. '30': {
  912. angle: 0,
  913. Hz: 30.0, //频率
  914. a: -0.17624, //二次项系数
  915. b: 43.40947, //一次项系数
  916. c: 97.60705999999982, //常数项系数
  917. min: 93.0, //风量下限
  918. max: 171.0, //风量上限
  919. },
  920. '31': {
  921. angle: 0,
  922. Hz: 31.0,
  923. a: -0.17624,
  924. b: 43.427094,
  925. c: 95.43614590000016,
  926. min: 96.1,
  927. max: 174.4,
  928. },
  929. '32': {
  930. angle: 0,
  931. Hz: 32.0,
  932. a: -0.17624,
  933. b: 43.444718,
  934. c: 93.26435059999994,
  935. min: 99.2,
  936. max: 177.8,
  937. },
  938. '33': {
  939. angle: 0,
  940. Hz: 33.0,
  941. a: -0.17624,
  942. b: 43.462342,
  943. c: 91.09167409999964,
  944. min: 102.3,
  945. max: 180.2,
  946. },
  947. '34': {
  948. angle: 0,
  949. Hz: 34.0,
  950. a: -0.17624,
  951. b: 43.479966000000005,
  952. c: 88.91811639999969,
  953. min: 105.4,
  954. max: 182.0,
  955. },
  956. '35': {
  957. angle: 0,
  958. Hz: 35.0,
  959. a: -0.17624,
  960. b: 43.49759,
  961. c: 86.74367749999965,
  962. min: 108.5,
  963. max: 184.5,
  964. },
  965. '36': {
  966. angle: 0,
  967. Hz: 36.0,
  968. a: -0.17624,
  969. b: 43.515214,
  970. c: 84.56835739999997,
  971. min: 111.6,
  972. max: 187.0,
  973. },
  974. '37': {
  975. angle: 0,
  976. Hz: 37.0,
  977. a: -0.17624,
  978. b: 43.532838,
  979. c: 82.3921561000002,
  980. min: 114.7,
  981. max: 190.8,
  982. },
  983. '38': {
  984. angle: 0,
  985. Hz: 38.0,
  986. a: -0.17624,
  987. b: 43.550462,
  988. c: 80.21507359999941,
  989. min: 117.8,
  990. max: 193.0,
  991. },
  992. '39': {
  993. angle: 0,
  994. Hz: 39.0,
  995. a: -0.17624,
  996. b: 43.568086,
  997. c: 78.0371098999999,
  998. min: 120.9,
  999. max: 195.6,
  1000. },
  1001. '40': {
  1002. angle: 0,
  1003. Hz: 40.0,
  1004. a: -0.17624,
  1005. b: 43.58571,
  1006. c: 75.85826499999985,
  1007. min: 123.0,
  1008. max: 197.0,
  1009. },
  1010. '41': {
  1011. angle: 0,
  1012. Hz: 41.0,
  1013. a: -0.17624,
  1014. b: 43.603334,
  1015. c: 73.67853890000015,
  1016. min: 125.1,
  1017. max: 199.4,
  1018. },
  1019. '42': {
  1020. angle: 0,
  1021. Hz: 42.0,
  1022. a: -0.17624,
  1023. b: 43.620958,
  1024. c: 71.4979315999999,
  1025. min: 128.2,
  1026. max: 202.8,
  1027. },
  1028. '43': {
  1029. angle: 0,
  1030. Hz: 43.0,
  1031. a: -0.17624,
  1032. b: 43.638582,
  1033. c: 69.31644309999956,
  1034. min: 130.3,
  1035. max: 205.8,
  1036. },
  1037. '44': {
  1038. angle: 0,
  1039. Hz: 44.0,
  1040. a: -0.17624,
  1041. b: 43.656206000000005,
  1042. c: 67.13407339999958,
  1043. min: 132.4,
  1044. max: 208.5,
  1045. },
  1046. '45': {
  1047. angle: 0,
  1048. Hz: 45.0,
  1049. a: -0.17624,
  1050. b: 43.67383,
  1051. c: 64.9508224999995,
  1052. min: 134.5,
  1053. max: 211.8,
  1054. },
  1055. '46': {
  1056. angle: 0,
  1057. Hz: 46.0,
  1058. a: -0.17624,
  1059. b: 43.691454,
  1060. c: 62.76669039999979,
  1061. min: 136.6,
  1062. max: 214.4,
  1063. },
  1064. '47': {
  1065. angle: 0,
  1066. Hz: 47.0,
  1067. a: -0.17624,
  1068. b: 43.709078,
  1069. c: 60.58167709999998,
  1070. min: 138.7,
  1071. max: 217.8,
  1072. },
  1073. '48': {
  1074. angle: 0,
  1075. Hz: 48.0,
  1076. a: -0.17624,
  1077. b: 43.726702,
  1078. c: 58.39578259999962,
  1079. min: 140.8,
  1080. max: 219.2,
  1081. },
  1082. '49': {
  1083. angle: 0,
  1084. Hz: 49.0,
  1085. a: -0.17624,
  1086. b: 43.744326,
  1087. c: 56.20900689999962,
  1088. min: 143.9,
  1089. max: 221.6,
  1090. },
  1091. '50': {
  1092. angle: 0,
  1093. Hz: 50.0,
  1094. a: -0.17624,
  1095. b: 43.76195,
  1096. c: 54.021349999999984,
  1097. min: 146.0,
  1098. max: 223.0,
  1099. },
  1100. };
  1101. const num = 21;
  1102. const a = -0.17624; //-0.17624,
  1103. const m = 2770.6411125432646,
  1104. n = -124.15442010894235;
  1105. let i = 21;
  1106. const data = [];
  1107. for (const key in assistanceData) {
  1108. i -= 1;
  1109. const p = i;
  1110. const item = assistanceData[key];
  1111. item['b'] = 2 * a * (n + p);
  1112. item['c'] = a * (n + p) * (n + p) + m - i * 50;
  1113. // if (sysOrgCode == 'sdmtjtdltmk') {
  1114. // // 大柳塔井整体向右下移动
  1115. // item['min'] = item['min'] + 20;
  1116. // item['max'] = item['max'] + 20;
  1117. // item['b'] = 2 * a * (n + p) + 3;
  1118. // item['c'] = a * (n + p) * (n + p) + m - i * 60;
  1119. // } else {
  1120. // item['b'] = 2 * a * (n + p);
  1121. // item['c'] = a * (n + p) * (n + p) + m - i * 50;
  1122. // // //白家渠
  1123. // // a = -0.13424;
  1124. // // item['a'] = Math.round((a + 0.002 * (num - i)) * 10000) / 10000;
  1125. // // item['min'] = item['min'] + 50 + (num - i) * 2;
  1126. // // item['max'] = item['max'] + 65 + (num - i) * 3.5;
  1127. // // item['b'] = 2 * item['a'] * (n + p) + 8.8;
  1128. // // item['c'] = item['a'] * (n + p) * (n + p) + m - i * 60;
  1129. // // //武当沟
  1130. // // a = -0.17724;
  1131. // // item['a'] = Math.round((a - 0.002 * (num - i)) * 10000) / 10000;
  1132. // // item['min'] = item['min'] - 40 - (num - i) * 1;
  1133. // // item['max'] = item['max'] - 60 - (num - i) * 0.5;
  1134. // // item['b'] = 2 * item['a'] * (n + p) - 16.5;
  1135. // // item['c'] = item['a'] * (n + p) * (n + p) + m - i * 40;
  1136. // }
  1137. data.push(item);
  1138. }
  1139. console.log(data);
  1140. return data;
  1141. };
  1142. // 大柳塔武当沟
  1143. export const initData = (deviceType?) => {
  1144. // const { sysOrgCode } = useGlobSetting();
  1145. const sysOrgCode = 'sdtljtdhzmk';
  1146. if (sysOrgCode == 'sdmtjtdltmk') {
  1147. return initDataDlt(deviceType);
  1148. } else if (sysOrgCode == 'sdmtjtswmk') {
  1149. return initDataSw(deviceType);
  1150. } else if (sysOrgCode == 'sdmtjtbltmk') {
  1151. return initDataBlt();
  1152. } else if (sysOrgCode == 'sdmtjtbdmk') {
  1153. return initDataBd(deviceType);
  1154. } else if (sysOrgCode == 'sdmtjtjjmk') {
  1155. return initDataJj();
  1156. } else if (sysOrgCode == 'sdmtjtdltmkhjtj') {
  1157. return initDataHjt();
  1158. } else if (sysOrgCode == 'sdmtjtsgtmk') {
  1159. return initDataSgt();
  1160. } else if (sysOrgCode == 'sdmtjthlgmk') {
  1161. return initDataSgt();
  1162. } else if (sysOrgCode == 'sdmtjtyjlmk') {
  1163. return initDataJj();
  1164. } else if (sysOrgCode == 'sdmtjtcctrk') {
  1165. return initDataCctr();
  1166. } else if (sysOrgCode == 'sdmtjtwlmlmk') {
  1167. return initDataWlml();
  1168. } else if (sysOrgCode == 'sdmtjtltmk') {
  1169. return initDataLt();
  1170. } else if (sysOrgCode == 'sdtljtdhzmk') {
  1171. return initDataDhz();
  1172. } else {
  1173. return initData1();
  1174. }
  1175. };
  1176. // 柳塔
  1177. const initDataLt = () => {
  1178. const data: any[] = [];
  1179. data.push({
  1180. angle: -6,
  1181. Hz: -6,
  1182. a: -0.1154,
  1183. b: 17.723,
  1184. c: 2433.2,
  1185. min: 155,
  1186. max: 210,
  1187. });
  1188. data.push({
  1189. angle: -3,
  1190. Hz: -3,
  1191. a: -0.2064,
  1192. b: 57.303,
  1193. c: -1156.1,
  1194. min: 155,
  1195. max: 230,
  1196. });
  1197. data.push({
  1198. angle: 3,
  1199. Hz: 3,
  1200. a: -0.1228,
  1201. b: 35.838,
  1202. c: 541.83,
  1203. min: 155,
  1204. max: 266,
  1205. });
  1206. return data;
  1207. };
  1208. // 乌兰木伦
  1209. const initDataWlml = () => {
  1210. const data: any[] = [];
  1211. data.push({
  1212. angle: -3,
  1213. Hz: -3,
  1214. a: -15.607,
  1215. b: 6242.3,
  1216. c: -621571,
  1217. min: 204,
  1218. max: 212,
  1219. });
  1220. data.push({
  1221. angle: -2,
  1222. Hz: -2,
  1223. a: -8.3134,
  1224. b: 3178.9,
  1225. c: -300224,
  1226. min: 204,
  1227. max: 211,
  1228. });
  1229. data.push({
  1230. angle: 0,
  1231. Hz: 0,
  1232. a: -8.9632,
  1233. b: 3751.3,
  1234. c: -389068,
  1235. min: 216,
  1236. max: 227.2,
  1237. });
  1238. data.push({
  1239. angle: 1,
  1240. Hz: 1,
  1241. a: -12.77,
  1242. b: 5415.9,
  1243. c: -571193,
  1244. min: 216,
  1245. max: 226.8,
  1246. });
  1247. data.push({
  1248. angle: 2,
  1249. Hz: 2,
  1250. a: -12.432,
  1251. b: 5635.5,
  1252. c: -635361,
  1253. min: 234.5,
  1254. max: 242.4,
  1255. });
  1256. data.push({
  1257. angle: 3,
  1258. Hz: 3,
  1259. a: -2.9424,
  1260. b: 1147.7,
  1261. c: -104620,
  1262. min: 234.5,
  1263. max: 243.5,
  1264. });
  1265. return data;
  1266. };
  1267. // 石圪台
  1268. const initDataCctr = () => {
  1269. const data: any[] = [];
  1270. data.push({
  1271. angle: 0,
  1272. Hz: 0,
  1273. a: -0.0221,
  1274. b: -1.2494,
  1275. c: 552.28,
  1276. min: 52,
  1277. max: 125,
  1278. });
  1279. data.push({
  1280. angle: 3,
  1281. Hz: 3,
  1282. a: -0.0232,
  1283. b: -0.8204,
  1284. c: 603.39,
  1285. min: 50,
  1286. max: 139,
  1287. });
  1288. data.push({
  1289. angle: 6,
  1290. Hz: 6,
  1291. a: -0.0417,
  1292. b: 3.1004,
  1293. c: 498.9,
  1294. min: 45,
  1295. max: 150,
  1296. });
  1297. return data;
  1298. };
  1299. // 石圪台
  1300. const initDataSgt = () => {
  1301. const data: any[] = [];
  1302. data.push({
  1303. angle: -6,
  1304. Hz: -6,
  1305. a: -0.0438,
  1306. b: 14.5078,
  1307. c: 986.6,
  1308. min: 130,
  1309. max: 370,
  1310. });
  1311. data.push({
  1312. angle: -3,
  1313. Hz: -3,
  1314. a: -0.035,
  1315. b: 11.7875,
  1316. c: 1226.8,
  1317. min: 140,
  1318. max: 400,
  1319. });
  1320. data.push({
  1321. angle: 0,
  1322. Hz: 0,
  1323. a: -0.0354,
  1324. b: 13.6986,
  1325. c: 1078.6,
  1326. min: 150,
  1327. max: 430,
  1328. });
  1329. data.push({
  1330. angle: 3,
  1331. Hz: 3,
  1332. a: -0.0444,
  1333. b: 19.5673,
  1334. c: 504,
  1335. min: 170,
  1336. max: 445,
  1337. });
  1338. data.push({
  1339. angle: 6,
  1340. Hz: 6,
  1341. a: -0.0507,
  1342. b: 24.3336,
  1343. c: -70,
  1344. min: 190,
  1345. max: 460,
  1346. });
  1347. return data;
  1348. };
  1349. // 大柳塔白家渠
  1350. const initDataDlt = (deviceType?) => {
  1351. if (deviceType == 'fanmain_bjq') {
  1352. const num = 2;
  1353. const obj = {
  1354. angle: 0,
  1355. Hz: -0,
  1356. a: -0.0656,
  1357. b: 17.398283350755946,
  1358. c: 3241.38254718147,
  1359. min: 300,
  1360. max: 1100.0,
  1361. };
  1362. const a = -0.0656,
  1363. m = 17.398283350755946,
  1364. n = 3241.38254718147;
  1365. const maxList = [339.4, 359.4, 379.4, 399.4, 419.4];
  1366. const minList = [143, 152, 161, 170, 180];
  1367. const data = [];
  1368. for (let i = -2; i <= num; i++) {
  1369. const item = cloneDeep(obj);
  1370. item['Hz'] = 0 + i * 3;
  1371. item['c'] = n + 5 * i;
  1372. item['b'] = m + i * 2;
  1373. item['max'] = maxList[i + 2];
  1374. item['min'] = minList[i + 2];
  1375. data.push(item);
  1376. }
  1377. return data;
  1378. } else if (deviceType == 'fanmain_wdg') {
  1379. // 武当沟
  1380. const num = 2;
  1381. const obj = {
  1382. angle: 0,
  1383. Hz: -0,
  1384. a: -0.1424,
  1385. b: 26.316238660115914,
  1386. c: -370.62808803303426,
  1387. min: 300,
  1388. max: 1100.0,
  1389. };
  1390. const a = -0.1424,
  1391. m = 26.086238660115914,
  1392. n = -370.62808803303426;
  1393. const maxList = [138, 148, 158, 168, 178];
  1394. const minList = [90, 95, 100, 105, 110];
  1395. const data = [];
  1396. for (let i = -2; i <= num; i++) {
  1397. const item = cloneDeep(obj);
  1398. item['Hz'] = 0 + i * 3;
  1399. item['c'] = n + 1 * i;
  1400. item['b'] = m + i * 1.3;
  1401. item['max'] = maxList[i + 2];
  1402. item['min'] = minList[i + 2];
  1403. data.push(item);
  1404. }
  1405. return data;
  1406. }
  1407. };
  1408. const initDataSw = (deviceType?) => {
  1409. if (deviceType == 'fanmain_bfj') {
  1410. // 北风井
  1411. const num = 2;
  1412. const obj = {
  1413. angle: 0,
  1414. Hz: 0,
  1415. a: -0.2486,
  1416. b: 14.998999006593294,
  1417. c: 3672.488224167444,
  1418. min: 300,
  1419. max: 1100.0,
  1420. };
  1421. const a = -0.2486,
  1422. m = 14.998999006593294,
  1423. n = 3672.488224167444;
  1424. const maxList = [115.67, 130.67, 146.67, 165.67, 185.67];
  1425. const minList = [50, 60, 70, 85, 100];
  1426. const data = [];
  1427. for (let i = -2; i <= num; i++) {
  1428. const item = cloneDeep(obj);
  1429. item['Hz'] = 0 + i * 3;
  1430. item['c'] = n + 5 * i;
  1431. item['b'] = m + i * 8;
  1432. item['max'] = maxList[i + 2];
  1433. item['min'] = minList[i + 2];
  1434. data.push(item);
  1435. }
  1436. return data;
  1437. } else if (deviceType == 'fanmain_nfj') {
  1438. // 南风井
  1439. const num = 2;
  1440. const obj = {
  1441. angle: 0,
  1442. Hz: -0,
  1443. a: -0.0445,
  1444. b: 15.46559392987956,
  1445. c: 2607.959183673496,
  1446. min: 300,
  1447. max: 1100.0,
  1448. };
  1449. const a = -0.0455,
  1450. m = 15.46559392987956,
  1451. n = 2607.959183673496;
  1452. const maxList = [315, 345, 375, 410, 450, 500];
  1453. const minList = [90, 105, 120, 145, 170, 185];
  1454. const data = [];
  1455. for (let i = -3; i <= num; i++) {
  1456. const item = cloneDeep(obj);
  1457. item['Hz'] = 0 + i * 3;
  1458. item['a'] = Math.round((a - 0.003 * (num - i)) * 10000) / 10000;
  1459. item['c'] = n + 10 * i;
  1460. item['b'] = m + i * 1.2;
  1461. item['max'] = maxList[i + 3];
  1462. item['min'] = minList[i + 3];
  1463. data.push(item);
  1464. }
  1465. return data;
  1466. }
  1467. };
  1468. const initDataHjt = () => {
  1469. const data: any[] = [];
  1470. data.push({
  1471. angle: -10,
  1472. Hz: -10,
  1473. a: -0.0357,
  1474. b: 13.657,
  1475. c: 515.38,
  1476. min: 170,
  1477. max: 400,
  1478. });
  1479. data.push({
  1480. angle: -7,
  1481. Hz: -7,
  1482. a: -0.0371,
  1483. b: 15.478,
  1484. c: 452.43,
  1485. min: 170,
  1486. max: 400,
  1487. });
  1488. data.push({
  1489. angle: -5,
  1490. Hz: -5,
  1491. a: -0.0357,
  1492. b: 13.657,
  1493. c: 515.38,
  1494. min: 170,
  1495. max: 400,
  1496. });
  1497. data.push({
  1498. angle: -4,
  1499. Hz: -4,
  1500. a: -0.0361,
  1501. b: 16.706,
  1502. c: 228.85,
  1503. min: 170,
  1504. max: 400,
  1505. });
  1506. data.push({
  1507. angle: -2,
  1508. Hz: -2,
  1509. a: -0.0357,
  1510. b: 15.478,
  1511. c: 452.43,
  1512. min: 170,
  1513. max: 400,
  1514. });
  1515. data.push({
  1516. angle: 1,
  1517. Hz: 1,
  1518. a: -0.0361,
  1519. b: 16.706,
  1520. c: 228.85,
  1521. min: 170,
  1522. max: 400,
  1523. });
  1524. return data;
  1525. };
  1526. const initDataBd = (deviceType?) => {
  1527. if (deviceType == 'fanmain_ljy') {
  1528. // 刘家宴
  1529. const num = 2;
  1530. const obj = {
  1531. angle: 0,
  1532. Hz: 0,
  1533. a: -0.02674,
  1534. b: 10.070078367532346,
  1535. c: 3048.210229423783,
  1536. min: 300,
  1537. max: 1100.0,
  1538. };
  1539. const a = -0.02774,
  1540. m = 10.090078367532346,
  1541. n = 3988.210229423783;
  1542. const maxList = [370, 410, 450, 500, 560, 624];
  1543. const minList = [70, 80, 100, 130, 160, 210];
  1544. const data = [];
  1545. let index = 0;
  1546. for (let i = -3; i <= num; i++) {
  1547. ++index;
  1548. const item = cloneDeep(obj);
  1549. item['a'] = Math.round((a - 0.002 * (6 - index)) * 10000) / 10000;
  1550. item['Hz'] = 0 + i * 3;
  1551. item['c'] = n + 10 * i;
  1552. item['b'] = m + i * 1.3;
  1553. item['max'] = maxList[i + 3];
  1554. item['min'] = minList[i + 3];
  1555. data.push(item);
  1556. }
  1557. return data;
  1558. } else if (deviceType == 'fanmain_zl') {
  1559. // 枣庄
  1560. const num = 2;
  1561. const obj = {
  1562. angle: 0,
  1563. Hz: 0,
  1564. a: -0.02674,
  1565. b: 10.070078367532346,
  1566. c: 3048.210229423783,
  1567. min: 300,
  1568. max: 1100.0,
  1569. };
  1570. const a = -0.05874,
  1571. m = 17.090078367532346,
  1572. n = 3588.210229423783;
  1573. const maxList = [315, 344, 379, 415, 454];
  1574. const minList = [160, 170, 180, 190, 200, 210];
  1575. const data = [];
  1576. let index = 0;
  1577. for (let i = -2; i <= num; i++) {
  1578. ++index;
  1579. const item = cloneDeep(obj);
  1580. item['a'] = Math.round((a - 0.003 * (6 - index)) * 10000) / 10000;
  1581. item['Hz'] = 0 + i * 3;
  1582. item['c'] = n + 6 * i;
  1583. item['b'] = m + i * 1.9;
  1584. item['max'] = maxList[i + 2];
  1585. item['min'] = minList[i + 2];
  1586. data.push(item);
  1587. }
  1588. return data;
  1589. }
  1590. };
  1591. const initDataBlt = () => {
  1592. const num = 2;
  1593. const obj = {
  1594. angle: 0,
  1595. Hz: 0,
  1596. a: -0.02674,
  1597. b: 10.070078367532346,
  1598. c: 3048.210229423783,
  1599. min: 300,
  1600. max: 1100.0,
  1601. };
  1602. const a = -0.02874,
  1603. m = 10.070078367532346,
  1604. n = 3048.210229423783;
  1605. const maxList = [370, 400, 440, 480, 525, 580];
  1606. const minList = [70, 80, 100, 130, 160, 210];
  1607. const data = [];
  1608. let index = 0;
  1609. for (let i = -3; i <= num; i++) {
  1610. ++index;
  1611. const item = cloneDeep(obj);
  1612. item['a'] = Math.round((a - 0.002 * (6 - index)) * 10000) / 10000;
  1613. item['Hz'] = 0 + i * 3;
  1614. item['c'] = n + 10 * i;
  1615. item['b'] = m + i * 1;
  1616. item['max'] = maxList[i + 3];
  1617. item['min'] = minList[i + 3];
  1618. data.push(item);
  1619. }
  1620. return data;
  1621. };
  1622. const initDataJj = () => {
  1623. const num = 2;
  1624. const obj = {
  1625. angle: 0,
  1626. Hz: 0,
  1627. a: -0.02674,
  1628. b: 10.070078367532346,
  1629. c: 3048.210229423783,
  1630. min: 300,
  1631. max: 1100.0,
  1632. };
  1633. const a = -0.09874,
  1634. m = 21.090078367532346,
  1635. n = 3588.210229423783;
  1636. const maxList = [239, 264, 292, 322, 354];
  1637. const minList = [60, 70, 80, 90, 100, 110];
  1638. const data = [];
  1639. let index = 0;
  1640. for (let i = -2; i <= num; i++) {
  1641. ++index;
  1642. const item = cloneDeep(obj);
  1643. item['a'] = Math.round((a - 0.003 * (6 - index)) * 10000) / 10000;
  1644. item['Hz'] = 0 + i * 3;
  1645. item['c'] = n + 10 * i;
  1646. item['b'] = m + i * 3;
  1647. item['max'] = maxList[i + 2];
  1648. item['min'] = minList[i + 2];
  1649. data.push(item);
  1650. }
  1651. return data;
  1652. };
  1653. const initDataDhz = () => {
  1654. const data: any[] = [];
  1655. data.push({
  1656. Hz: 30,
  1657. a: -0.1686,
  1658. b: 74.953,
  1659. c: 4655.7,
  1660. min: 130,
  1661. max: 370,
  1662. });
  1663. data.push({
  1664. Hz: 40,
  1665. a: -0.1568,
  1666. b: 58.594,
  1667. c: 1986.9,
  1668. min: 140,
  1669. max: 400,
  1670. });
  1671. data.push({
  1672. Hz: 50,
  1673. a: -0.1607,
  1674. b: 68.39,
  1675. c: 4642.5,
  1676. min: 150,
  1677. max: 430,
  1678. });
  1679. return data;
  1680. };
  1681. export const fanInfoData = reactive({
  1682. fj: '一号回风井',
  1683. xh: 'FBCDZ No.29',
  1684. gl: '2×500',
  1685. edgl: '740',
  1686. eddy: '10000',
  1687. eddl: '38.4',
  1688. flfw: '110~260',
  1689. fyfw: '200~4100',
  1690. fbdj: 'ExdI',
  1691. ccrq: '2010.07',
  1692. sccj: '南阳防爆',
  1693. tjfs: '变频调节',
  1694. plfw: '30~50',
  1695. });
  1696. export const fanInfo = [
  1697. {
  1698. title: '风井',
  1699. code: 'windWell_mainFanInfo',
  1700. value: '一号回风井',
  1701. },
  1702. {
  1703. title: '型号',
  1704. code: 'modelType_mainFanInfo',
  1705. value: 'FBCDZ No.29',
  1706. },
  1707. {
  1708. title: '功率(kW)',
  1709. code: 'powerRating_mainFanInfo',
  1710. value: '2×500',
  1711. },
  1712. {
  1713. title: '额定转速(r/min)',
  1714. code: 'ratedSpeed_mainFanInfo',
  1715. value: '740',
  1716. },
  1717. {
  1718. title: '额定电压(V)',
  1719. code: 'ratedVoltage_mainFanInfo',
  1720. value: '10000',
  1721. },
  1722. {
  1723. title: '额定电流(A)',
  1724. code: 'ratedCurrent_mainFanInfo',
  1725. value: '38.4',
  1726. },
  1727. {
  1728. title: '风量范围(m³/s)',
  1729. code: 'airflowRange_mainFanInfo',
  1730. value: '110~260',
  1731. },
  1732. {
  1733. title: '风压范围(Pa)',
  1734. code: 'pressureRange_mainFanInfo',
  1735. value: '200~4100',
  1736. },
  1737. {
  1738. title: '防爆等级',
  1739. code: 'explosionProofRating_mainFanInfo',
  1740. value: 'ExdI',
  1741. },
  1742. {
  1743. title: '出厂日期',
  1744. code: 'manufactureDate_mainFanInfo',
  1745. value: '2010.07',
  1746. },
  1747. {
  1748. title: '生产厂家',
  1749. code: 'manufacturer_mainFanInfo',
  1750. value: '南阳防爆',
  1751. },
  1752. {
  1753. title: '调节方式',
  1754. code: 'adjustmentMethod_mainFanInfo',
  1755. value: '变频调节',
  1756. },
  1757. {
  1758. title: '频率可调范围(Hz)',
  1759. code: 'angleAdjustableRange_mainFanInfo',
  1760. value: '30~50',
  1761. },
  1762. ];
  1763. export const getSchamas = (): FormSchema[] => {
  1764. return [
  1765. {
  1766. field: 'fj',
  1767. component: 'Input',
  1768. label: '风井',
  1769. colProps: {
  1770. span: 6,
  1771. },
  1772. },
  1773. {
  1774. field: 'xh',
  1775. component: 'Input',
  1776. label: '型号',
  1777. colProps: {
  1778. span: 6,
  1779. },
  1780. },
  1781. {
  1782. field: 'gl',
  1783. component: 'Input',
  1784. label: '功率(kW)',
  1785. colProps: {
  1786. span: 6,
  1787. },
  1788. },
  1789. {
  1790. field: 'edgl',
  1791. component: 'Input',
  1792. label: '额定转速(r/min)',
  1793. colProps: {
  1794. span: 6,
  1795. },
  1796. },
  1797. {
  1798. field: 'eddy',
  1799. component: 'Input',
  1800. label: '额定电压(V)',
  1801. colProps: {
  1802. span: 6,
  1803. },
  1804. },
  1805. {
  1806. field: 'eddl',
  1807. component: 'Input',
  1808. label: '额定电流(A)',
  1809. colProps: {
  1810. span: 6,
  1811. },
  1812. },
  1813. {
  1814. field: 'flfw',
  1815. component: 'Input',
  1816. label: '风量范围(m³/s)',
  1817. colProps: {
  1818. span: 6,
  1819. },
  1820. },
  1821. {
  1822. field: 'fyfw',
  1823. component: 'Input',
  1824. label: '风压范围(Pa)',
  1825. colProps: {
  1826. span: 6,
  1827. },
  1828. },
  1829. {
  1830. field: 'fbdj',
  1831. component: 'Select',
  1832. label: '防爆等级',
  1833. colProps: {
  1834. span: 6,
  1835. },
  1836. componentProps: {
  1837. options: [
  1838. {
  1839. label: 'ExdI',
  1840. value: 'ExdI',
  1841. key: '1',
  1842. },
  1843. ],
  1844. },
  1845. },
  1846. {
  1847. field: 'ccrq',
  1848. component: 'Input',
  1849. label: '出厂日期',
  1850. colProps: {
  1851. span: 6,
  1852. },
  1853. },
  1854. {
  1855. field: 'sccj',
  1856. component: 'Input',
  1857. label: '生产厂家',
  1858. colProps: {
  1859. span: 6,
  1860. },
  1861. },
  1862. {
  1863. field: 'tjfs',
  1864. component: 'Select',
  1865. label: '调节方式',
  1866. colProps: {
  1867. span: 6,
  1868. },
  1869. componentProps: {
  1870. options: [
  1871. {
  1872. label: '变频调节',
  1873. value: '变频调节',
  1874. key: '1',
  1875. },
  1876. ],
  1877. },
  1878. },
  1879. {
  1880. field: 'plfw',
  1881. component: 'Input',
  1882. label: '频率可调范围(Hz)',
  1883. colProps: {
  1884. span: 6,
  1885. },
  1886. },
  1887. ];
  1888. };
  1889. export const getSchamas1 = (): FormSchema[] => {
  1890. return [
  1891. {
  1892. field: 'Hz',
  1893. component: 'InputNumber',
  1894. label: '频率(Hz)',
  1895. required: true,
  1896. colProps: {
  1897. span: 6,
  1898. },
  1899. },
  1900. {
  1901. field: 'a',
  1902. component: 'InputNumber',
  1903. label: '二次项系数',
  1904. required: true,
  1905. colProps: {
  1906. span: 6,
  1907. },
  1908. },
  1909. {
  1910. field: 'b',
  1911. component: 'InputNumber',
  1912. label: '一次项系数',
  1913. required: true,
  1914. colProps: {
  1915. span: 6,
  1916. },
  1917. },
  1918. {
  1919. field: 'c',
  1920. component: 'InputNumber',
  1921. label: '常数项系数',
  1922. required: true,
  1923. colProps: {
  1924. span: 6,
  1925. },
  1926. },
  1927. {
  1928. field: 'min',
  1929. component: 'InputNumber',
  1930. label: '风量下限(m³/s)',
  1931. required: true,
  1932. colProps: {
  1933. span: 6,
  1934. },
  1935. },
  1936. {
  1937. field: 'max',
  1938. component: 'InputNumber',
  1939. label: '风量上限(m³/s)',
  1940. required: true,
  1941. colProps: {
  1942. span: 6,
  1943. },
  1944. },
  1945. ];
  1946. };
  1947. export const lineFormData = reactive({
  1948. Hz: null,
  1949. a: null,
  1950. b: null,
  1951. c: null,
  1952. min: null,
  1953. max: null,
  1954. });