index.ts 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532
  1. import { DictCode } from '@/constants';
  2. import type { IconfontIcon } from '@/icons/fonts/iconfont';
  3. import type { Component, ComponentPublicInstance } from 'vue';
  4. import type { StepProps, UploadProps } from 'ant-design-vue';
  5. import type { Rule, RuleObject } from 'ant-design-vue/es/form';
  6. import type { FormLabelAlign } from 'ant-design-vue/es/form/interface';
  7. import type { Dayjs } from 'dayjs';
  8. import type {
  9. CoolingDataType,
  10. CtrlCabinetStartType,
  11. DeviceRunningStatus,
  12. ProtocolConfigMethod,
  13. TimeScaleType,
  14. VisualModuleType,
  15. } from '@/constants';
  16. export interface ApiResponse<T> {
  17. data: T;
  18. code: number;
  19. msg: string;
  20. }
  21. export interface PageData<T> {
  22. records: T[];
  23. total: number;
  24. pageIndex: number;
  25. pageSize: number;
  26. pageNum: number;
  27. }
  28. export interface PageParams {
  29. pageIndex: number;
  30. pageSize: number;
  31. pageSorts?: PageSorts[];
  32. }
  33. export interface PageSorts {
  34. column: string;
  35. asc: boolean;
  36. }
  37. export interface OptionItem<T> {
  38. value: T;
  39. label: string;
  40. }
  41. export type CheckedType = boolean | string | number;
  42. export interface IconObject {
  43. name: IconfontIcon;
  44. size?: number;
  45. color?: string;
  46. }
  47. export interface IframeMsg {
  48. msgType: string;
  49. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  50. [key: string]: any;
  51. }
  52. export type FormRules<T> = {
  53. [K in keyof T]?: Rule[];
  54. } & {
  55. [key: string]: Rule[];
  56. };
  57. export type RuleValidator<T> = (rule: RuleObject, value: T, callback: (error?: string) => void) => Promise<void>;
  58. export type RangeValue = [Dayjs, Dayjs];
  59. export interface DictTypeDataParams {
  60. id?: number;
  61. dictCode?: DictCode;
  62. }
  63. export interface DictTypeData {
  64. dictId: number;
  65. dictCode: string;
  66. dictName: string;
  67. dictEngName: string;
  68. dictOrderNum: number | null;
  69. dictTypeDataList: DictValue[];
  70. }
  71. export interface DictValue {
  72. dictValueId: number;
  73. dictValue: string;
  74. dictEngValue: string;
  75. dictValueOrderNum: number;
  76. isDefault: boolean | null;
  77. }
  78. export interface TabComponent {
  79. key: string;
  80. name: string;
  81. component: Component;
  82. }
  83. export interface DevGroupTabCompProps {
  84. deviceGroupId: number;
  85. }
  86. export interface UseGuideStepItem extends StepProps {
  87. title: string;
  88. stepTitle?: string;
  89. stepDescription?: string;
  90. hideHeader?: boolean;
  91. hideHeaderDivider?: boolean;
  92. headerMargin?: number;
  93. component: Component;
  94. contentOffset?: number;
  95. formLayout?: 'horizontal' | 'vertical' | 'inline';
  96. labelAlign?: FormLabelAlign;
  97. labelCol?: { span?: string | number };
  98. wrapperCol?: { span?: string | number };
  99. isLastStep?: boolean;
  100. exportButtonShow?: boolean;
  101. prevStepButtonHide?: boolean;
  102. nextStepButtonHide?: boolean;
  103. nextStepButtonText?: string;
  104. nextStepButtonDisabled?: boolean;
  105. }
  106. export interface UseGuideStepItemProps<T> {
  107. form: T;
  108. steps: UseGuideStepItem[];
  109. stepIndex: number;
  110. goToStep: (index: number) => void;
  111. }
  112. export type UseGuideStepItemExpose = {
  113. exportData?: () => void | Promise<void>;
  114. /**
  115. * 在当前步骤点击返回时预先执行某些操作
  116. * @returns 是否已经返回之前的步骤
  117. */
  118. goBack?: () => boolean | Promise<boolean>;
  119. finish?: () => void | Promise<void>;
  120. };
  121. export type UseGuideStepItemInstance = ComponentPublicInstance<unknown, UseGuideStepItemExpose>;
  122. export interface SetupProtocolForm {
  123. protocolType?: string;
  124. protocolInfo: Partial<ProtocolBaseInfo>;
  125. protocolFile: UploadProps['fileList'];
  126. configMethod: ProtocolConfigMethod;
  127. deviceType?: string;
  128. }
  129. export interface CustomParamsForm {
  130. gatewayParamName: string;
  131. gatewayParamCode: string;
  132. unit: string;
  133. module: string;
  134. readWriteType: string;
  135. parsingType: string;
  136. writeFunctionCode: string;
  137. readFunctionCode: string;
  138. addressLength: number;
  139. registerAddress: number;
  140. coefficient: number;
  141. isHighFrequencyParameter: string;
  142. readCalculationFormula: string;
  143. writeCalculationFormula: string;
  144. decimalPlaces: number;
  145. contiguousAddressingRange: number;
  146. }
  147. export type ProtocolListData = PageData<ProtocolBaseInfo>;
  148. export interface ProtocolBaseInfo {
  149. id: number;
  150. protocolName: string;
  151. protocolType: string;
  152. deviceType: string;
  153. deviceTypeId: number | null;
  154. dataBit: 5 | 6 | 7 | 8;
  155. parityBit: 'N' | 'O' | 'E';
  156. stopBit: '1' | '1.5' | '2';
  157. baudRate: number;
  158. dataSendInterval: number;
  159. highFreqSendInterval: number;
  160. readTimeout: number;
  161. nextDataReadDelay: number;
  162. nextRoundDataReadDelay: number;
  163. readContinuousAddr: string;
  164. readContinuousAddrCode: number;
  165. readContinuousAddrLength: number;
  166. byteOrder: string;
  167. byteOrderCode: string;
  168. addrOrder: string;
  169. addrOrderCode: string;
  170. }
  171. export interface ProtocolListQuery extends PageParams {
  172. searchContent: string;
  173. isDraft: 0 | 1;
  174. }
  175. export type ProtocolParamData = PageData<ProtocolParamInfo>;
  176. export interface ProtocolParamInfo {
  177. id: number;
  178. createTime: string;
  179. updateTime: string;
  180. createUserId: number;
  181. updateUserId: number;
  182. baseInfoId: number;
  183. platformParamCode: string;
  184. platformParamName: string;
  185. gatewayParamCode: string;
  186. gatewayParamName: string;
  187. gatewayParamExt: string | null;
  188. paramCode: string;
  189. paramName: string;
  190. unit: string;
  191. module: string;
  192. groupType: string;
  193. readWriteType: string;
  194. readWriteTypeCode: string;
  195. readFuncCode: string;
  196. writeFuncCode: string;
  197. registerAddr: string;
  198. addrNumber: string;
  199. registerType: string;
  200. registerTypeCode: string;
  201. parsingType: string;
  202. parsingTypeCode: string;
  203. addrLength: number;
  204. wordLength: number;
  205. wordLengthCode: string;
  206. quantity: number;
  207. coefficient: number;
  208. isHighFreqParam: string;
  209. isHighFreqParamCode: string;
  210. readCalcFormula: string;
  211. writeCalcFormula: string;
  212. decimalPlace: number;
  213. recognizeResult: string | null;
  214. candidateResults: string | null;
  215. platformProtocolInfoId?: number;
  216. bitAddress1: string;
  217. bitAddress1Status: string;
  218. bitAddress1Detail: string;
  219. bitAddress2: string;
  220. bitAddress2Status: string;
  221. bitAddress2Detail: string;
  222. bitAddress3: string;
  223. bitAddress3Status: string;
  224. bitAddress3Detail: string;
  225. [key: string]: unknown;
  226. }
  227. export interface ProtocolCandidateResult {
  228. platformProtocolId: number;
  229. platformProtocolGatewayParamName: string;
  230. }
  231. export interface ProtocolParamSearchParams extends PageParams {
  232. baseInfoId: number;
  233. paramCode?: string;
  234. paramName?: string;
  235. recognizeResult?: string[];
  236. }
  237. export type ProtocolStandardParamData = PageData<ProtocolStandardParam>;
  238. export interface ProtocolStandardParam {
  239. id: number;
  240. createTime: string;
  241. updateTime: string;
  242. createUserId: number;
  243. updateUserId: number;
  244. platformParamCode: string;
  245. platformParamName: string;
  246. unit: string;
  247. module: string;
  248. deviceTypeId: number;
  249. deviceType: string;
  250. enabled: number;
  251. [key: string]: unknown;
  252. }
  253. export interface ProtocolStandardParamQuery extends PageParams {
  254. platformParamCode?: string;
  255. platformParamName?: string;
  256. }
  257. export interface RegisterGatewayForm extends EquipmentInformation {
  258. snCode: string;
  259. password: string;
  260. modelId: number;
  261. linkType: string;
  262. id: number;
  263. interfaceId?: number;
  264. protocolId?: number;
  265. linkName: string;
  266. protocolName: string;
  267. }
  268. export interface VerificationEquipment {
  269. snCode: string;
  270. password: string;
  271. }
  272. export interface GatewayInformation {
  273. createTime: string;
  274. createUserId: string;
  275. deleted: number;
  276. id: number;
  277. isRegister: number;
  278. modelId: number;
  279. password: string;
  280. snCode: string;
  281. state: number;
  282. updateTime: string;
  283. updateUserId: number;
  284. }
  285. export interface GatewayModelInfo {
  286. createTime: string;
  287. createUserId: string;
  288. deleted: number;
  289. docUrl: string;
  290. iconUrl: string;
  291. id: number;
  292. interfaceId: string;
  293. interfaceNum: string;
  294. modelName: string;
  295. surfMode: string;
  296. surfModeEn: string;
  297. updateTime: string;
  298. updateUserId: string;
  299. }
  300. export interface InterfaceNum {
  301. COM: number;
  302. DI: number;
  303. DO: number;
  304. LAN: number;
  305. WAN: number;
  306. }
  307. export interface EquipmentInformation {
  308. state: number;
  309. docUrl: string;
  310. iconUrl: string;
  311. interfaceNum: string;
  312. modelName: string;
  313. surfMode: string | string[];
  314. surfModeEn: string | string[];
  315. show: boolean;
  316. judgmentRegistration: boolean;
  317. }
  318. export interface GatewayInterface {
  319. comment: string;
  320. createTime: string;
  321. createUserId: string;
  322. deleted: number;
  323. dictCode: string;
  324. dictEngValue: string;
  325. dictValue: string;
  326. enabled: number;
  327. id: number;
  328. isDefault: string;
  329. orderNum: number;
  330. tag: string;
  331. updateTime: string;
  332. updateUserId: string;
  333. }
  334. export interface AddInterface {
  335. interfaceId?: number;
  336. linkName: string;
  337. gatewayId: number;
  338. protocolType: string;
  339. }
  340. export interface InterfaceList {
  341. value: string;
  342. label: string;
  343. }
  344. export interface InterfaceData {
  345. id: number;
  346. createTime: string;
  347. updateTime: string;
  348. createUserId: number;
  349. updateUserId: number;
  350. linkName: string;
  351. gatewayId: number;
  352. interfaceId: number;
  353. protocolType: string;
  354. bindState: number;
  355. dataBit: number;
  356. parityBit: string;
  357. stopBit: string;
  358. baudRate: number;
  359. readTimeout: number;
  360. nextDataReadDelay: number;
  361. nextRoundDataReadDelay: number;
  362. interfaceType: string;
  363. }
  364. export interface AgreementUpdate {
  365. id: number;
  366. linkName: string;
  367. gatewayId: number;
  368. interfaceId: number;
  369. bindState: number;
  370. dataBit: string;
  371. parityBit: string;
  372. stopBit: string;
  373. baudRate?: string;
  374. readTimeout: number;
  375. nextDataReadDelay: number;
  376. nextRoundDataReadDelay: number;
  377. protocolType?: string;
  378. }
  379. export interface AgreementData {
  380. protocolType: string;
  381. station: string;
  382. name: string;
  383. protocolName: string;
  384. dataSendInterval: number;
  385. highFreqSendInterval: number;
  386. protocolId?: number;
  387. isStandard: string;
  388. deviceName: string;
  389. }
  390. export interface AgreementForm {
  391. baudRate?: string;
  392. dataBit: string;
  393. parityBit: string;
  394. stopBit: string;
  395. readTimeout: number;
  396. nextDataReadDelay: number;
  397. nextRoundDataReadDelay: number;
  398. }
  399. export interface EquipmentGroup {
  400. pageIndex: number;
  401. pageSize: number;
  402. content: string;
  403. }
  404. export interface DeviceGroupItem {
  405. id: number;
  406. createTime: Date | null;
  407. updateTime: Date | null;
  408. createUserId: number | null;
  409. updateUserId: number | null;
  410. groupName: string;
  411. comment: string | null;
  412. parentId: number;
  413. userId: number;
  414. deleted: boolean | null;
  415. deviceGroupChilds: DeviceGroupChild[];
  416. }
  417. export interface DeviceGroupChild {
  418. id: number;
  419. groupName: string;
  420. comment: string | null;
  421. parentId: number;
  422. userId: number;
  423. }
  424. export interface DeviceGroupTree extends DeviceGroupItem {
  425. label: string;
  426. children: DeviceGroupTreeChild[];
  427. }
  428. export interface DeviceGroupTreeChild extends DeviceGroupChild {
  429. label: string;
  430. children: (AllDevicesList & { label: string })[];
  431. }
  432. export interface ListInfo {
  433. dataType: number;
  434. }
  435. export interface ProtocolList {
  436. pageIndex: number;
  437. pageSize: number;
  438. searchContent: string;
  439. protocolType: string;
  440. }
  441. export interface EquipmentDetailsForm {
  442. id?: number;
  443. deviceName: string;
  444. groupId?: number;
  445. deviceType?: number;
  446. brand?: string;
  447. model?: string;
  448. productionDate: string;
  449. deviceDetail: string;
  450. }
  451. export interface EquipmentInformationForm {
  452. groupId: number;
  453. deviceData: number[];
  454. deviceType?: number;
  455. deviceName: string;
  456. brand?: string;
  457. model?: string;
  458. chillerType?: string;
  459. productionDate?: Dayjs;
  460. powerRating: string;
  461. refrigerantType?: string;
  462. refrigerantDosage?: string;
  463. nominalCoolingcapacity?: string;
  464. nominalcalorificvalue?: string;
  465. nominalCopRefrigeration?: string;
  466. nominalCopHeating?: string;
  467. chilledWaterRatedFlow?: string;
  468. coolingWaterRatedFlow?: string;
  469. motorCoolingMethod?: string;
  470. copCorrectionFactor?: string;
  471. numberUnitCircuits?: string;
  472. singleLoopCompressor?: string;
  473. frequencyConversion?: string;
  474. ratedVoltage?: string;
  475. inflowTemperature?: string;
  476. waterOutletTemperature?: string;
  477. relativeHumidityTemperature?: string;
  478. fanNumber?: string;
  479. waterFlowRate?: string;
  480. coolingCapacity?: string;
  481. inletPipeDiameter?: string;
  482. outletPipeDiameter?: string;
  483. ratedFlow?: string;
  484. ratedHead?: string;
  485. ratedCurrent?: string;
  486. revolutions?: string;
  487. status: string;
  488. remarks: string;
  489. devId: number;
  490. imgUrl: string;
  491. id?: number;
  492. }
  493. export interface EquipmentTypeItem {
  494. id: number;
  495. createTime: string;
  496. updateTime: string;
  497. createUserId: number;
  498. updateUserId: number;
  499. dataType: number;
  500. dataName: string;
  501. }
  502. export type ProtocolItemData = PageData<ProtocolItem>;
  503. export interface ProtocolItem {
  504. id: number;
  505. createTime: string;
  506. updateTime: string;
  507. createUserId: number;
  508. updateUserId: number;
  509. protocolName: string;
  510. protocolType: string;
  511. deviceTypeId: number | null;
  512. deviceType: string;
  513. dataBit: number;
  514. parityBit: string;
  515. stopBit: string;
  516. baudRate: number;
  517. dataSendInterval: number;
  518. highFreqSendInterval: number;
  519. readTimeout: number | null;
  520. nextDataReadDelay: number;
  521. nextRoundDataReadDelay: number;
  522. addrOrder: string;
  523. addrOrderCode: string;
  524. byteOrder: string;
  525. byteOrderCode: string;
  526. attachment: string;
  527. readContinuousAddr: string;
  528. readContinuousAddrCode: number;
  529. readContinuousAddrLength: number;
  530. }
  531. export interface ProtocolsItem {
  532. /*协议ID */
  533. protocolId?: number;
  534. /*从站号 */
  535. station: string;
  536. /*是否平台标准协议 */
  537. isStandard: string;
  538. /*普通数据上报频率 */
  539. dataSendInterval: number;
  540. /*高频发送间隔 */
  541. highFreqSendInterval: number;
  542. }
  543. export interface ProtocolReset {
  544. linkId: number;
  545. protocols: ProtocolsItem[];
  546. }
  547. export interface VerificationAgreement {
  548. id: number;
  549. createTime: string;
  550. updateTime: string;
  551. createUserId: number;
  552. updateUserId: number;
  553. linkId: number;
  554. protocolId: number;
  555. station: number;
  556. isStandard: number;
  557. dataSendInterval: number;
  558. highFreqSendInterval: number;
  559. protocolName: string;
  560. protocolType: string;
  561. deviceName: string;
  562. }
  563. export interface ProtocolListItem {
  564. pageIndex: number;
  565. pageSize: number;
  566. id?: number;
  567. linkId?: number;
  568. readWriteTypeCode?: string;
  569. monitorType?: string;
  570. searchContent?: string;
  571. }
  572. export type ProtocolListPageItemData = PageData<ProtocolListPageItem>;
  573. export interface ProtocolListPageItem {
  574. id: number;
  575. createTime: string | null;
  576. updateTime: string | null;
  577. createUserId: number | null;
  578. updateUserId: number | null;
  579. baseInfoId: number | null;
  580. platformParamCode: string | null;
  581. platformParamName: string | null;
  582. gatewayParamCode: string;
  583. gatewayParamName: string;
  584. paramCode: string;
  585. paramName: string;
  586. unit: string | null;
  587. module: number;
  588. readWriteType: string | null;
  589. readWriteTypeCode: string | null;
  590. readFuncCode: string | null;
  591. writeFuncCode: string | null;
  592. registerAddr: string | null;
  593. addrNumber: number | null;
  594. registerType: string | null;
  595. registerTypeCode: string | null;
  596. parsingType: string | null;
  597. parsingTypeCode: string | null;
  598. addrLength: number | null;
  599. wordLength: number | null;
  600. wordLengthCode: string | null;
  601. quantity: number | null;
  602. coefficient: number;
  603. isHighFreqParam: boolean | null;
  604. isHighFreqParamCode: string | null;
  605. readCalcFormula: string | null;
  606. writeCalcFormula: string | null;
  607. decimalPlace: number | null;
  608. }
  609. export type SerialNumberItemData = PageData<SerialNumberItem>;
  610. export interface SerialNumberItem {
  611. id: number;
  612. createTime: string;
  613. updateTime: string;
  614. createUserId: number;
  615. updateUserId: number;
  616. snCode: string;
  617. password: string;
  618. modelId: number;
  619. isRegister: number;
  620. state: number;
  621. deleted: number;
  622. modelName: string;
  623. links: PhysicalInterfaceList[];
  624. }
  625. export interface PhysicalInterfaceList {
  626. linkId: number;
  627. linkName: string;
  628. groups: GroupItem[];
  629. }
  630. export interface GroupItem {
  631. id: number;
  632. linkName: string;
  633. station: number;
  634. protocolId: number;
  635. protocolName: string;
  636. group: string;
  637. }
  638. export type ListEquipmentParametersItemData = PageData<ListEquipmentParametersItem>;
  639. export interface ListEquipmentParametersItem {
  640. gatewayParamCode: string;
  641. gatewayParamName: string;
  642. id: number;
  643. parsingType?: number;
  644. readWriteType?: string;
  645. readWriteTypeCode?: string;
  646. unit: string;
  647. groupId?: number;
  648. groupSerialNum?: number;
  649. groupParamSerialNum?: number;
  650. isProcessData: boolean;
  651. gatewayId: number;
  652. deviceParamCode: string;
  653. deviceParamName: string;
  654. groupName: string;
  655. groupIdShow: boolean;
  656. linkId: number;
  657. gatewayLinkProtocolId: number;
  658. }
  659. export interface GatewayDataItem extends ListEquipmentParametersItem {
  660. id: number;
  661. platformParamCode: string;
  662. platformParamName: string;
  663. gatewayParamCode: string;
  664. gatewayParamName: string;
  665. unit: string;
  666. readWriteType: string;
  667. readWriteTypeCode: string;
  668. parsingType?: number;
  669. paramGroupName: string;
  670. }
  671. export interface EquipmentUpdateForm {
  672. deviceId: number;
  673. gatewayId: number;
  674. gatewayProtocolId: number;
  675. linkId?: number;
  676. }
  677. export interface GetListItem {
  678. deviceId: number;
  679. monitorType: string;
  680. pageIndex: number;
  681. pageSize: number;
  682. gatewayId?: number;
  683. createUserId?: number;
  684. }
  685. export interface PostProtocolPage {
  686. pageIndex: number;
  687. pageSize: number;
  688. deviceIds: number[];
  689. gatewayIds: number[];
  690. }
  691. export type PostProtocolPageItemData = PageData<PostProtocolPageItem>;
  692. export interface PostProtocolPageItem {
  693. id: number;
  694. createTime: string;
  695. updateTime: string;
  696. createUserId: number;
  697. updateUserId: number;
  698. baseInfoId: number;
  699. platformParamCode?: string;
  700. platformParamName?: string;
  701. gatewayParamCode?: string;
  702. gatewayParamName?: string;
  703. paramCode: string;
  704. paramName: string;
  705. unit?: string;
  706. module: string;
  707. readWriteType: string;
  708. readWriteTypeCode: string;
  709. readFuncCode: string;
  710. writeFuncCode?: string;
  711. registerAddr: string;
  712. addrNumber?: string;
  713. registerType: string;
  714. registerTypeCode?: string;
  715. parsingType: string;
  716. parsingTypeCode: string;
  717. addrLength: number;
  718. wordLength?: string;
  719. wordLengthCode?: string;
  720. quantity?: string;
  721. coefficient: number;
  722. isHighFreqParam: string;
  723. isHighFreqParamCode: string;
  724. readCalcFormula?: string;
  725. writeCalcFormula?: string;
  726. decimalPlace?: number;
  727. deviceName: string;
  728. deviceNum: string;
  729. groupSerialNum: number;
  730. groupParamSerialNum: number;
  731. deviceId: number;
  732. isProcessData: boolean;
  733. gatewayId: number;
  734. deviceParamCode: string;
  735. deviceParamName: string;
  736. groupId?: number;
  737. deviceParamCodeShow: boolean;
  738. deviceParamNameShow: boolean;
  739. groupIdShow: boolean;
  740. groupParamSerialNumShow: boolean;
  741. }
  742. export interface ProtocolGatewayListListItem {
  743. pageIndex: number;
  744. pageSize: number;
  745. snCode?: number;
  746. gatewayId?: number;
  747. searchContent: string;
  748. monitorType: string;
  749. }
  750. export interface ParameterVerification {
  751. id: number;
  752. deviceParamGroupName: string;
  753. valueVos: ParameterVerificationList[];
  754. }
  755. export interface ParameterVerificationList {
  756. baseInfoId: number;
  757. platformParamCode: string;
  758. platformParamName: string;
  759. gatewayParamCode: string;
  760. gatewayParamName: string;
  761. paramCode: string;
  762. paramName: string;
  763. unit: string;
  764. module: string;
  765. readWriteType: string;
  766. readWriteTypeCode: string;
  767. readFuncCode: string;
  768. writeFuncCode: string;
  769. registerAddr: string;
  770. addrNumber: string;
  771. registerType: string;
  772. registerTypeCode: string;
  773. parsingType: string;
  774. parsingTypeCode: string;
  775. addrLength: number;
  776. wordLength: string;
  777. wordLengthCode: string;
  778. quantity: number;
  779. coefficient: number;
  780. isHighFreqParam: string;
  781. isHighFreqParamCode: string;
  782. readCalcFormula: string;
  783. writeCalcFormula: string;
  784. decimalPlace: number;
  785. valueId: number;
  786. value: number | string;
  787. }
  788. export interface GroupingList {
  789. groupName: string;
  790. serialNum?: number;
  791. id: number;
  792. }
  793. export interface GroupingListData {
  794. id: number;
  795. createTime: string;
  796. updateTime: string;
  797. createUserId: number;
  798. updateUserId: number;
  799. groupName: string;
  800. deviceId: number;
  801. serialNum: number;
  802. }
  803. export interface DevicesList {
  804. pageIndex: number;
  805. pageSize: number;
  806. groupId?: number;
  807. deviceType?: number;
  808. searchContent?: string;
  809. brandName?: string;
  810. modelName?: string;
  811. gatewaySnCode?: string;
  812. deviceName?: string;
  813. runningStatus?: number;
  814. runningStatusList?: DeviceRunningStatus[] | null;
  815. status?: number | null;
  816. errorStatus?: number;
  817. }
  818. export interface ListInterfaces {
  819. id: number;
  820. createTime: string;
  821. updateTime: string;
  822. createUserId: number;
  823. updateUserId: number;
  824. modelId: number;
  825. interfaceType: string;
  826. name: string;
  827. }
  828. export interface ListPhysicalInterfaces {
  829. id: number;
  830. createTime: string;
  831. updateTime: string;
  832. createUserId: number;
  833. updateUserId: number;
  834. interfaceId: number;
  835. protocolName: string;
  836. orderNum: number;
  837. }
  838. export interface CustomizationData {
  839. deviceParamCode: string;
  840. paramNumShow: boolean;
  841. deviceParamName: string;
  842. paramNameShow: boolean;
  843. customFormula: string;
  844. customFormulaShow: boolean;
  845. unit: string;
  846. unitShow: boolean;
  847. decimalDigits?: number;
  848. decimalDigitsShow: boolean;
  849. paramGroupId?: number;
  850. paramGroupName: string;
  851. paramGroupIdShow: boolean;
  852. groupSerialNum?: number;
  853. groupSerialNumShow: boolean;
  854. groupParamSerialNum?: number;
  855. isProcessData: boolean;
  856. }
  857. export interface CustomParameters {
  858. customFormula: string;
  859. unit: string;
  860. decimalDigits?: number;
  861. deviceId: number;
  862. isProcessData: boolean;
  863. paramGroupId?: number;
  864. groupParamSerialNum?: number;
  865. paramType?: number;
  866. deviceParamCode: string;
  867. deviceParamName: string;
  868. paramGroupName: string;
  869. }
  870. export interface SubmitSorting {
  871. protocolParamId?: number;
  872. paramGroupId?: number;
  873. serialNum?: number;
  874. paramType?: number;
  875. isProcessData?: boolean;
  876. deviceParamName?: string;
  877. deviceParamCode?: string;
  878. groupId?: number;
  879. }
  880. export type DevicesListItemData = PageData<DevicesListItem>;
  881. export interface DevicesListItem {
  882. id: number;
  883. deviceName: string;
  884. deviceDetail: string;
  885. groupId: number;
  886. deviceType: number;
  887. userId: number;
  888. brand: number;
  889. model: number;
  890. modelType: number;
  891. controlType: number;
  892. compressionLevel: number;
  893. voltageLevel: number;
  894. powerRating: number;
  895. powerUnload: number;
  896. maximumFlow: number;
  897. pressure: number;
  898. pressureMax: number;
  899. productionDate: string;
  900. productionNum: string;
  901. mainTechData: string;
  902. mountedPosition: string;
  903. department: string;
  904. respPerson: string;
  905. phone: string;
  906. serviceLife: number;
  907. status: number;
  908. runningStatus: number;
  909. remarks: string;
  910. deviceNum: string;
  911. deleted: boolean;
  912. deviceGroup: DeviceGroup;
  913. gatewayInfos: GatewayInfos[];
  914. protocolParamInfos: ProtocolParamInfos[];
  915. groupName: string;
  916. deviceTypeName: string;
  917. brandName: string;
  918. modelName: string;
  919. modelTypeName: string;
  920. controlTypeName: string;
  921. compressionLevelName: string;
  922. voltageLevelName: string;
  923. enableCopSet: boolean;
  924. }
  925. export interface DeviceGroup {
  926. id: number;
  927. createTime: string;
  928. updateTime: string;
  929. createUserId: number;
  930. updateUserId: number;
  931. groupName: string;
  932. comment: string;
  933. parentId: number;
  934. userId: number;
  935. deleted: string;
  936. orgId: number;
  937. }
  938. export interface SubmitDeviceGroup {
  939. id?: number;
  940. groupName: string;
  941. parentId?: number;
  942. }
  943. export interface DeviceParamGroup {
  944. id: number;
  945. deviceParamGroupName: string;
  946. valueVos: DeviceParamItem[];
  947. }
  948. export interface DeviceParamItem {
  949. value: string;
  950. valueId: number;
  951. serialNum: number | null;
  952. paramName: string;
  953. unit: string | null;
  954. time: string;
  955. deviceParamName: string;
  956. deviceParamCode: string;
  957. }
  958. export interface DeviceTypeCount {
  959. deviceType: number;
  960. deviceTypeName: string;
  961. count: number;
  962. }
  963. export interface DevWorkCardProps<T extends string> {
  964. realTimeData?: Partial<Record<T, number | string>>;
  965. deviceDetail: Partial<Record<string, number>>;
  966. enableCopSet: boolean;
  967. }
  968. export interface DevWorkRealTimeData {
  969. deviceId: number;
  970. deviceParamMapList: {
  971. time: string;
  972. [key: string]: string | number;
  973. }[];
  974. }
  975. export interface DevWorkHisDataQuery {
  976. deviceIds: number[];
  977. deviceParamCode: string[];
  978. startTime?: string;
  979. endTime?: string;
  980. }
  981. export interface DevWorkHistoryData {
  982. deviceId: number;
  983. hisVOS: DevWorkHistoryDataItem[];
  984. }
  985. export interface DevWorkHistoryDataItem {
  986. deviceParamCode: string;
  987. deviceParamName: string;
  988. unit: string;
  989. value: {
  990. time: string;
  991. value: string | number;
  992. }[];
  993. }
  994. export interface GatewayInfos {
  995. id: number;
  996. createTime: string;
  997. updateTime: string;
  998. createUserId: number;
  999. updateUserId: number;
  1000. snCode: string;
  1001. password: string;
  1002. modelId: number;
  1003. isRegister: string;
  1004. state: string;
  1005. deleted: string;
  1006. }
  1007. export interface ProtocolParamInfos {
  1008. id: number;
  1009. createTime: string;
  1010. updateTime: string;
  1011. createUserId: number;
  1012. updateUserId: number;
  1013. baseInfoId: number;
  1014. orgId: number;
  1015. recognizeResult: string;
  1016. candidateResults: string;
  1017. platformParamCode: string;
  1018. platformParamName: string;
  1019. gatewayParamCode: string;
  1020. gatewayParamName: string;
  1021. paramCode: string;
  1022. paramName: string;
  1023. unit: string;
  1024. module: string;
  1025. readWriteType: string;
  1026. readWriteTypeCode: string;
  1027. readFuncCode: string;
  1028. writeFuncCode: string;
  1029. registerAddr: string;
  1030. addrNumber: string;
  1031. registerType: string;
  1032. registerTypeCode: string;
  1033. parsingType: string;
  1034. parsingTypeCode: string;
  1035. addrLength: number;
  1036. wordLength: string;
  1037. wordLengthCode: string;
  1038. quantity: number;
  1039. coefficient: number;
  1040. isHighFreqParam: string;
  1041. isHighFreqParamCode: string;
  1042. readCalcFormula: string;
  1043. writeCalcFormula: string;
  1044. decimalPlace: number;
  1045. isDraft: string;
  1046. }
  1047. export interface GatewayBody {
  1048. pageIndex: number;
  1049. pageSize: number;
  1050. searchContent: string;
  1051. state: number;
  1052. }
  1053. export type GatewayListItemData = PageData<GatewayListItem>;
  1054. export interface GatewayListItem {
  1055. id: number;
  1056. createTime: string;
  1057. updateTime: string;
  1058. createUserId: number;
  1059. updateUserId: number;
  1060. snCode: string;
  1061. password: string;
  1062. modelId: number;
  1063. isRegister: string;
  1064. state: string;
  1065. deleted: string;
  1066. modelName: string;
  1067. protocolParamInfoQueryVos: protocolParamInfo[];
  1068. }
  1069. export interface protocolParamInfo {
  1070. baseInfoId: number;
  1071. orgId: number;
  1072. recognizeResult: string;
  1073. candidateResults: string;
  1074. platformParamCode: string;
  1075. platformParamName: string;
  1076. gatewayParamCode: string;
  1077. gatewayParamName: string;
  1078. paramCode: string;
  1079. paramName: string;
  1080. unit: string;
  1081. module: string;
  1082. readWriteType: string;
  1083. readWriteTypeCode: string;
  1084. readFuncCode: string;
  1085. writeFuncCode: string;
  1086. registerAddr: string;
  1087. addrNumber: string;
  1088. registerType: string;
  1089. registerTypeCode: string;
  1090. parsingType: string;
  1091. parsingTypeCode: string;
  1092. addrLength: number;
  1093. wordLength: string;
  1094. wordLengthCode: string;
  1095. quantity: number;
  1096. coefficient: number;
  1097. isHighFreqParam: string;
  1098. isHighFreqParamCode: string;
  1099. readCalcFormula: string;
  1100. writeCalcFormula: string;
  1101. decimalPlace: number;
  1102. isDraft: string;
  1103. }
  1104. export interface GatewayParameterBody {
  1105. pageIndex: number;
  1106. pageSize: number;
  1107. gatewayId: number;
  1108. gatewayLinkProtocolId: number;
  1109. }
  1110. export type GatewayParameterItemData = PageData<GatewayParameterItem>;
  1111. export interface GatewayParameterItem {
  1112. id: number;
  1113. paramName: string;
  1114. paramCode: string;
  1115. gatewayParamName: string;
  1116. gatewayParamCode: string;
  1117. unit: string;
  1118. readWriteType: string;
  1119. readWriteTypeCode: string;
  1120. value: string | number;
  1121. time: string;
  1122. monitorStatus: string;
  1123. }
  1124. export interface EquipmentDetailsItem {
  1125. deviceQueryVo: BasicInformation;
  1126. gatewayInfoVos: AssociatedGatewayParameters[];
  1127. protocolParamDeviceInfoVos: ConfigureDeviceParameters[];
  1128. protocolParamCustomDevVos: CustomParametersItem[];
  1129. }
  1130. export interface AssociatedGatewayParameters {
  1131. id: number;
  1132. createTime: string;
  1133. updateTime: string;
  1134. createUserId: number;
  1135. updateUserId: number;
  1136. snCode: string;
  1137. password: string;
  1138. modelId: number;
  1139. isRegister: string;
  1140. state: string;
  1141. deleted: string;
  1142. modelName: string;
  1143. linkName: string;
  1144. linkId: number;
  1145. gatewayLinkProtocolId: number;
  1146. protocolParamInfoQueryVos: protocolParamInfo[];
  1147. }
  1148. export interface BasicInformation {
  1149. id: number;
  1150. deviceName: string;
  1151. groupId: number;
  1152. deviceType: number;
  1153. userId: number;
  1154. brand: number;
  1155. model: number;
  1156. modelType: number;
  1157. controlType: number;
  1158. compressionLevel: number;
  1159. voltageLevel: number;
  1160. powerRating: number;
  1161. powerUnload: number;
  1162. maximumFlow: number;
  1163. pressure: number;
  1164. pressureMax: number;
  1165. productionDate: string;
  1166. productionNum: string;
  1167. mainTechData: string;
  1168. mountedPosition: string;
  1169. department: string;
  1170. respPerson: string;
  1171. phone: string;
  1172. serviceLife: number;
  1173. status: number;
  1174. remarks: string;
  1175. deviceNum: string;
  1176. runningStatus: number;
  1177. deleted: boolean;
  1178. deviceGroup: DeviceGroup;
  1179. gatewayInfos: GatewayInfos[];
  1180. protocolParamInfos: ProtocolParamInfos[];
  1181. groupName: string;
  1182. deviceTypeName: string;
  1183. brandName: string;
  1184. modelName: string;
  1185. modelTypeName: string;
  1186. controlTypeName: string;
  1187. compressionLevelName: string;
  1188. voltageLevelName: string;
  1189. errorStatus: number;
  1190. deviceDetail: string;
  1191. imgUrl: string;
  1192. mainGroupId: number;
  1193. mainGroupName: string;
  1194. }
  1195. export interface ConfigureDeviceParameters {
  1196. baseInfoId: number;
  1197. orgId: number;
  1198. recognizeResult: string;
  1199. candidateResults: string;
  1200. platformParamCode: string;
  1201. platformParamName: string;
  1202. gatewayParamCode: string;
  1203. gatewayParamName: string;
  1204. paramCode: string;
  1205. paramName: string;
  1206. unit: string;
  1207. module: string;
  1208. readWriteType: string;
  1209. readWriteTypeCode: string;
  1210. readFuncCode: string;
  1211. writeFuncCode: string;
  1212. registerAddr: string;
  1213. addrNumber: string;
  1214. registerType: string;
  1215. registerTypeCode: string;
  1216. parsingType: string;
  1217. parsingTypeCode: string;
  1218. addrLength: number;
  1219. wordLength: string;
  1220. wordLengthCode: string;
  1221. quantity: number;
  1222. coefficient: number;
  1223. isHighFreqParam: string;
  1224. isHighFreqParamCode: string;
  1225. readCalcFormula: string;
  1226. writeCalcFormula: string;
  1227. decimalPlace: number;
  1228. isDraft: string;
  1229. id: number;
  1230. deviceParamCode: string;
  1231. deviceParamName: string;
  1232. isProcessData: number;
  1233. gatewayId: string;
  1234. groupSerialNum: number;
  1235. groupParamSerialNum: number;
  1236. groupId: number;
  1237. snCode: string;
  1238. serialNum: number;
  1239. groupName: string;
  1240. linkId: string;
  1241. gatewayLinkProtocolId: number;
  1242. }
  1243. export interface CustomParametersItem {
  1244. id: number;
  1245. customFormula: string;
  1246. unit: string;
  1247. decimalDigits: number;
  1248. deviceId: number;
  1249. serialNum: number;
  1250. isProcessData: boolean;
  1251. groupSerialNum: number;
  1252. groupParamSerialNum: number;
  1253. deviceParamCode: string;
  1254. deviceParamName: string;
  1255. groupName: string;
  1256. }
  1257. export interface AllDevicesList {
  1258. id: number;
  1259. createTime: string;
  1260. updateTime: string;
  1261. createUserId: number;
  1262. updateUserId: number;
  1263. deviceName: string;
  1264. groupId: number;
  1265. deviceType: number;
  1266. userId: number;
  1267. brand: number;
  1268. model: number;
  1269. modelType: number;
  1270. controlType: number;
  1271. compressionLevel: number;
  1272. voltageLevel: number;
  1273. powerRating: number;
  1274. powerUnload: number;
  1275. maximumFlow: number;
  1276. pressure: number;
  1277. pressureMax: number;
  1278. productionDate: string;
  1279. productionNum: string;
  1280. mainTechData: string;
  1281. mountedPosition: string;
  1282. department: string;
  1283. respPerson: string;
  1284. phone: string;
  1285. serviceLife: number;
  1286. status: number;
  1287. remarks: string;
  1288. deleted: number;
  1289. deviceNum: string;
  1290. runningStatus: string;
  1291. }
  1292. export interface GatewayQuery extends PageParams {
  1293. searchContent: string;
  1294. state: number;
  1295. total: number;
  1296. }
  1297. export interface GatewayLinkProtocolQuery {
  1298. linkId: number;
  1299. monitorType: string;
  1300. searchContent: string;
  1301. linkProtocolId: number;
  1302. }
  1303. export interface DeviceBindQuery {
  1304. deviceParamGroups: DeviceParamGroups[];
  1305. deviceGateways: DeviceGateways[];
  1306. deviceParamGroupRels: DeviceParamGroupRels[];
  1307. protocolParamCustomDevDTOS: CustomParameters[];
  1308. }
  1309. export interface DeviceParamGroups {
  1310. groupName: string;
  1311. deviceId: number;
  1312. serialNum?: number;
  1313. }
  1314. export interface DeviceGateways {
  1315. deviceId: number;
  1316. gatewayId: number;
  1317. gatewayProtocolId: number;
  1318. linkId: number;
  1319. gatewayLinkProtocolId: number;
  1320. }
  1321. export interface DeviceParamGroupRels {
  1322. deviceId: number;
  1323. protocolParamId: number;
  1324. paramGroupName: string;
  1325. paramType: number;
  1326. deviceParamCode: string;
  1327. deviceParamName: string;
  1328. isProcessData: boolean;
  1329. unit: string;
  1330. gatewayId: number;
  1331. gatewayLinkProtocolId: number;
  1332. }
  1333. export interface ParamValueListAutomaticQuery {
  1334. linkId: number;
  1335. deviceTypeId: number;
  1336. deviceId: number;
  1337. linkProtocolId: number;
  1338. }
  1339. export interface ParamValueListAutomaticData {
  1340. id: number;
  1341. createTime: string;
  1342. updateTime: string;
  1343. createUserId: number;
  1344. updateUserId: number;
  1345. baseInfoId: number;
  1346. orgId: number;
  1347. recognizeResult: string;
  1348. candidateResults: string;
  1349. platformParamCode: string;
  1350. platformParamName: string;
  1351. gatewayParamCode: string;
  1352. gatewayParamName: string;
  1353. paramCode: string;
  1354. paramName: string;
  1355. unit: string;
  1356. module: string;
  1357. readWriteType: string;
  1358. readWriteTypeCode: string;
  1359. readFuncCode: string;
  1360. writeFuncCode: string;
  1361. registerAddr: string;
  1362. addrNumber: string;
  1363. registerType: string;
  1364. registerTypeCode: string;
  1365. parsingType: string;
  1366. parsingTypeCode: string;
  1367. addrLength: number;
  1368. wordLength: string;
  1369. wordLengthCode: string;
  1370. quantity: number;
  1371. coefficient: number;
  1372. isHighFreqParam: string;
  1373. isHighFreqParamCode: string;
  1374. readCalcFormula: string;
  1375. writeCalcFormula: string;
  1376. decimalPlace: number;
  1377. isDraft: string;
  1378. }
  1379. export interface BatchUpdate {
  1380. link: LinkType;
  1381. protocols: VerificationAgreement[];
  1382. }
  1383. export interface LinkType {
  1384. id: number;
  1385. createTime?: string;
  1386. updateTime?: string;
  1387. createUserId?: number;
  1388. updateUserId?: number;
  1389. linkName: string;
  1390. gatewayId: number;
  1391. interfaceId: number;
  1392. protocolType: string;
  1393. bindState: number;
  1394. dataBit: number;
  1395. parityBit: string;
  1396. stopBit: string;
  1397. baudRate: number;
  1398. readTimeout: number;
  1399. nextDataReadDelay: number;
  1400. nextRoundDataReadDelay: number;
  1401. }
  1402. export interface LinkProtocolType {
  1403. id: number;
  1404. createTime?: string;
  1405. updateTime?: string;
  1406. createUserId?: number;
  1407. updateUserId?: number;
  1408. linkId: number;
  1409. protocolId: number;
  1410. station: number;
  1411. isStandard: string;
  1412. dataSendInterval: number;
  1413. highFreqSendInterval: number;
  1414. deviceId?: number;
  1415. }
  1416. export interface DeviceGroupListQuery {
  1417. userId?: number;
  1418. orgId?: number;
  1419. parentId: number;
  1420. haveChild?: boolean;
  1421. }
  1422. export interface MonitoringForm {
  1423. id?: number;
  1424. name: string;
  1425. tempHumidityControlMode: string;
  1426. regionId?: number;
  1427. returnDevGroupId?: number;
  1428. returnDevId?: number;
  1429. returnTempParamCode?: string;
  1430. returnHumidityParamCode?: string;
  1431. supplyDevGroupId?: number;
  1432. supplyDevId?: number;
  1433. supplyTempParamCode?: string;
  1434. supplyHumidityParamCode?: string;
  1435. outdoorDevGroupId?: number;
  1436. outdoorDevId?: number;
  1437. outdoorTempParamCode?: string;
  1438. outdoorHumidityParamCode?: string;
  1439. tempUpper?: number;
  1440. tempLower?: number;
  1441. tempPreset?: number;
  1442. humidityUpper?: number;
  1443. humidityLower?: number;
  1444. humidityPreset?: number;
  1445. runStatusFlag: number;
  1446. supplyReturnTempDiff?: number;
  1447. supplyUpperTempDiff?: number;
  1448. runStatusDevGroupId?: number;
  1449. runStatusDevId?: number;
  1450. runStatusParamCode?: string;
  1451. runStatusConditionCode?: string;
  1452. runStatusConditionValue?: string;
  1453. }
  1454. export interface RegionQuery {
  1455. id?: number;
  1456. devGroupId: number;
  1457. regionName?: string;
  1458. canvas?: string;
  1459. }
  1460. export interface GroupRegions {
  1461. id: number;
  1462. createTime: string;
  1463. updateTime: string;
  1464. createUserId: number;
  1465. updateUserId: number;
  1466. orgId: number;
  1467. devGroupId: number;
  1468. regionName: string;
  1469. canvas: string;
  1470. outsideDevGroupId: number;
  1471. outsideDevId: number;
  1472. outsideDevName: string;
  1473. outsideTempParamCode: string;
  1474. outsideTempParamName: string;
  1475. outsideTempParamUnit: string;
  1476. outsideHumidityParamCode: string;
  1477. outsideHumidityParamName: string;
  1478. outsideHumidityParamUnit: string;
  1479. }
  1480. export interface DeviceParams {
  1481. id: number;
  1482. deviceParamCode: string;
  1483. deviceParamName: string;
  1484. unit: string;
  1485. }
  1486. export interface RegionsPointsItem {
  1487. id: number;
  1488. orgId: number;
  1489. devGroupId: number;
  1490. regionName: string;
  1491. canvas: string;
  1492. outsideDevGroupId: number;
  1493. outsideDevId: number;
  1494. outsideTempParamCode: string;
  1495. outsideHumidityParamCode: string;
  1496. outsideEnthalpyParamCode: string;
  1497. outSideTemperature: string;
  1498. outSideHumidity: string;
  1499. outsideEnthalpy: string;
  1500. avgTemperature: string;
  1501. avgHumidity: string;
  1502. points: MonitoringPointData[];
  1503. name?: string;
  1504. }
  1505. export interface MonitoringPointData {
  1506. id: number;
  1507. name: string;
  1508. status: number;
  1509. temperature: string;
  1510. humidity: string;
  1511. tempUpper: number;
  1512. tempLower: number;
  1513. humidityUpper: number;
  1514. humidityLower: number;
  1515. tempData: CurvedData[];
  1516. humidityData: CurvedData[];
  1517. regionId: number;
  1518. humidityExStatus: number;
  1519. tempExStatus: number;
  1520. }
  1521. export interface CurvedData {
  1522. time: string;
  1523. value: number;
  1524. }
  1525. export interface MonitorPointInfo extends MonitoringForm {
  1526. id: number;
  1527. createTime: string;
  1528. updateTime: string;
  1529. createUserId: number;
  1530. updateUserId: number;
  1531. status: number;
  1532. returnDevGroupId: number;
  1533. supplyDevGroupId: number;
  1534. returnDevId: number;
  1535. supplyDevId: number;
  1536. outdoorDevGroupId: number;
  1537. outdoorDevId: number;
  1538. }
  1539. export interface RegionNameList {
  1540. name: string;
  1541. id: number;
  1542. }
  1543. export interface OutdooForm {
  1544. regionId?: number;
  1545. outsideDevGroupId?: number;
  1546. outsideDevId?: number;
  1547. outsideTempParamCode?: string;
  1548. outsideHumidityParamCode?: string;
  1549. outsideEnthalpyParamCode?: string;
  1550. }
  1551. export interface LimitForm {
  1552. id?: number;
  1553. regionId?: number;
  1554. tempUpper?: number;
  1555. tempLower?: number;
  1556. tempPreset?: number;
  1557. humidityUpper?: number;
  1558. humidityLower?: number;
  1559. humidityPreset?: number;
  1560. batch: boolean;
  1561. batchPointIds: string;
  1562. batchIds?: number[];
  1563. }
  1564. export interface WarningItem {
  1565. id?: number;
  1566. pointId?: number;
  1567. enabled: boolean;
  1568. type: number;
  1569. val?: number;
  1570. duration?: number;
  1571. }
  1572. export interface MonitorPointItem extends WarningItem {
  1573. createTime: string;
  1574. updateTime: string;
  1575. createUserId: string;
  1576. updateUserId: string;
  1577. orgId: number;
  1578. }
  1579. export interface PointTimeSeriesQuery {
  1580. startTime: string;
  1581. endTime: string;
  1582. }
  1583. export interface TempHumidityControlSettings {
  1584. id: number;
  1585. name: string;
  1586. tempHumidityControlMode: number;
  1587. tempPreset: number;
  1588. humidityPreset: number;
  1589. tempUpper: number;
  1590. tempLower: number;
  1591. humidityUpper: number;
  1592. humidityLower: number;
  1593. supplyTempData: HistoricalDataSequence[];
  1594. supplyHumidityData: HistoricalDataSequence[];
  1595. tempData: HistoricalDataSequence[];
  1596. humidityData: HistoricalDataSequence[];
  1597. }
  1598. export interface HistoricalDataSequence {
  1599. time: string;
  1600. value: number;
  1601. }
  1602. export interface FormatterData {
  1603. componentType: string;
  1604. seriesType: string;
  1605. seriesIndex: number;
  1606. seriesName: string;
  1607. name: string;
  1608. dataIndex: number;
  1609. data: number;
  1610. value: number;
  1611. color: string; // 系列颜色
  1612. dimensionNames: string[];
  1613. encode: object;
  1614. marker: string;
  1615. }
  1616. export interface InterfaceLsit extends InterfaceData {
  1617. protocols: VerificationAgreement[];
  1618. }
  1619. export interface AlarmForm {
  1620. eventName: string;
  1621. time: [Dayjs, Dayjs];
  1622. conditionLogic: number;
  1623. enabled: boolean;
  1624. }
  1625. export interface AlarmHistoryItem {
  1626. id: number;
  1627. createTime: string;
  1628. updateTime: string;
  1629. createUserId: number;
  1630. updateUserId: number;
  1631. pointId: number;
  1632. regionId: number;
  1633. status: number;
  1634. tempExStatus: number;
  1635. humidityExStatus: number;
  1636. triggerTime: string;
  1637. recoverTime: string;
  1638. }
  1639. export interface DataType {
  1640. code: string;
  1641. value: string;
  1642. }
  1643. export interface DataSelection {
  1644. groupId?: number;
  1645. childGroupId?: number;
  1646. deviceId?: number;
  1647. paramCode: string;
  1648. paramName: string;
  1649. deviceName?: string;
  1650. }
  1651. export interface AlarmItem extends DataSelection {
  1652. id?: number;
  1653. type: number;
  1654. subType?: string;
  1655. }
  1656. export interface TriggerConditionItem extends AlarmItem {
  1657. alarmAlgOperator?: string;
  1658. alarmThreshold?: string;
  1659. alarmDeviceState?: string;
  1660. alarmScheduledTime?: Dayjs;
  1661. alarmRepeatTime?: string;
  1662. }
  1663. export interface ExecutionAction extends AlarmItem {
  1664. alarmAdjustmentValue?: string;
  1665. alarmContact?: number;
  1666. alarmAlertContent?: string;
  1667. alarmWaitTime?: Dayjs;
  1668. alarmNotifyMethod?: string;
  1669. }
  1670. export interface DataSelectionItem {
  1671. groupId: number;
  1672. childGroupId: number;
  1673. deviceId: number;
  1674. paramCode: string;
  1675. parametersName: string;
  1676. selectType: number;
  1677. deviceName: string;
  1678. }
  1679. export interface AlarmEvent {
  1680. id?: number;
  1681. eventName: string;
  1682. startTime: string;
  1683. endTime: string;
  1684. enabled: boolean;
  1685. conditionLogic: boolean;
  1686. triggerConditionList: AlarmEventItem[];
  1687. judgmentConditionList: AlarmEventItem[];
  1688. executionActionList: AlarmEventItem[];
  1689. }
  1690. export interface DataItem {
  1691. code: string;
  1692. value: string;
  1693. }
  1694. export interface AlarmEventItem extends AlarmItem {
  1695. dataList: DataItem[];
  1696. }
  1697. export interface AlarmPageParams extends PageParams {
  1698. searchContent: string;
  1699. }
  1700. export type EventTriggerData = PageData<EventTrigger>;
  1701. export interface EventTrigger {
  1702. id: number;
  1703. eventName: string;
  1704. deviceName: string;
  1705. triggerTimes: number;
  1706. lastTriggerTime: string;
  1707. updateTime: string;
  1708. enabled: boolean;
  1709. }
  1710. export interface ChangeState {
  1711. id: number;
  1712. enabled: boolean;
  1713. }
  1714. export interface AlarmHistory extends PageParams {
  1715. eventId: number;
  1716. }
  1717. export type AlarmEventHistoryItemData = PageData<AlarmEventHistoryItem>;
  1718. export interface AlarmEventHistoryItem {
  1719. id: number;
  1720. createTime: string;
  1721. updateTime: string;
  1722. createUserId: number;
  1723. updateUserId: number;
  1724. alarmEventId: number;
  1725. type: number;
  1726. errorMsg: string;
  1727. }
  1728. export interface EnergyCardItem {
  1729. value: string | number;
  1730. unit: string;
  1731. description: string;
  1732. icon: string;
  1733. bgColor: string;
  1734. }
  1735. export interface CoolingEnergyCardItem extends EnergyCardItem {
  1736. type: CoolingDataType;
  1737. }
  1738. export interface ElectricityStatisticsQuery {
  1739. deviceId?: number | string;
  1740. deviceGroupId: number;
  1741. deviceTypes?: number[];
  1742. startTime: string;
  1743. endTime: string;
  1744. }
  1745. export interface ElectricityDeviceValue {
  1746. deviceName: string;
  1747. deviceId: number;
  1748. time: string;
  1749. bill: number;
  1750. energy: number;
  1751. dailyUse: number;
  1752. ratio: number;
  1753. }
  1754. export interface ElectricityHisQueryVo {
  1755. deviceType: string;
  1756. deviceTypeName: string;
  1757. groupName?: string | null;
  1758. valueList: ElectricityDeviceValue[];
  1759. }
  1760. export interface ElectricityGroupQueryVo {
  1761. deviceType: string;
  1762. deviceTypeName: string;
  1763. groupName?: string | null;
  1764. valueList: ElectricityDeviceValue[];
  1765. totalRatio: number;
  1766. totalEnergy: number;
  1767. totalEnergyW: number;
  1768. totalBill: number;
  1769. totalBillW: number;
  1770. totalDailyUse: number;
  1771. }
  1772. export interface ElectricityStatisticsResult {
  1773. cumulativeEnergy: number;
  1774. cumulativeBill: number;
  1775. ringGrowth: number;
  1776. cumulativeDailyUse: number;
  1777. hisQueryVos: ElectricityHisQueryVo[];
  1778. groupQueryVos: ElectricityGroupQueryVo[];
  1779. timeScaleType: TimeScaleType;
  1780. }
  1781. export interface CoolingRealTimeDataQuery {
  1782. deviceGroupId: number;
  1783. startTime: string;
  1784. endTime: string;
  1785. }
  1786. export interface CoolingRealTimeDataResult {
  1787. coolingStationEnergyEfficiency: number;
  1788. coolingStationCoolingData: number;
  1789. coolingStationOutputActivePower: number;
  1790. coolingStationWaterFlow: number;
  1791. }
  1792. export interface CoolingHistoryDataQuery {
  1793. deviceTypes: number[];
  1794. deviceGroupId: number;
  1795. startTime: string;
  1796. endTime: string;
  1797. type: CoolingDataType;
  1798. }
  1799. export interface CoolingHistoryDataResult {
  1800. data: {
  1801. deviceTypeName: string;
  1802. data: {
  1803. time: string;
  1804. [key: string]: string | number;
  1805. }[];
  1806. }[];
  1807. timeScale: TimeScaleType;
  1808. }
  1809. export interface CoolingStatisticsQuery {
  1810. deviceGroupId: number;
  1811. deviceTypes: number[];
  1812. startTime: string;
  1813. endTime: string;
  1814. }
  1815. export interface CoolingDeviceValue {
  1816. bill: number;
  1817. coolingData: number;
  1818. coolingEfficiency: number;
  1819. time: string;
  1820. }
  1821. export interface CoolingHisQueryVo {
  1822. deviceType: number;
  1823. deviceTypeName: string;
  1824. groupName?: string | null;
  1825. billRatio: number;
  1826. billTotal: number;
  1827. coolingEfficiencyTotal: number;
  1828. valueList: CoolingDeviceValue[];
  1829. }
  1830. export interface CoolingStatisticsResult {
  1831. timeScaleType: TimeScaleType;
  1832. totalCoolingData: number;
  1833. groupCoolingEfficiency: number;
  1834. tempDataList: {
  1835. temperature: number;
  1836. time: string;
  1837. }[];
  1838. hisQueryVos: CoolingHisQueryVo[];
  1839. hisCoolingDataVos: {
  1840. time: string;
  1841. valueList: Omit<CoolingDeviceValue, 'time'>[];
  1842. }[];
  1843. coolingStationDataVos: {
  1844. time: string;
  1845. coolingEfficiencyTotal: number;
  1846. valueList: Omit<CoolingDeviceValue, 'time'>[];
  1847. }[];
  1848. deviceTypeCoolingEfficiencyVos: {
  1849. deviceType: number;
  1850. deviceTypeName: string;
  1851. coolingEfficiencyTotal: number;
  1852. }[];
  1853. }
  1854. export interface AutomaticMatching {
  1855. autoVos: AutomaticMatchingItem[];
  1856. paramGroupNames: string[];
  1857. }
  1858. export interface AutomaticMatchingItem {
  1859. id: number;
  1860. baseInfoId: number;
  1861. orgId: number;
  1862. platformParamCode: string;
  1863. platformParamName: string;
  1864. gatewayParamCode: string;
  1865. gatewayParamName: string;
  1866. gatewayParamExt: string;
  1867. paramCode: string;
  1868. paramName: string;
  1869. unit: string;
  1870. paramGroupName: string;
  1871. readWriteTypeCode: string;
  1872. }
  1873. export interface TemperatureRange {
  1874. time?: [Dayjs, Dayjs];
  1875. lower: number;
  1876. upper: number;
  1877. }
  1878. export interface TemperatureRangeItem {
  1879. startTime: string;
  1880. endTime: string;
  1881. lower: number;
  1882. upper: number;
  1883. }
  1884. export interface ChillersItem {
  1885. id?: number;
  1886. createTime?: string;
  1887. updateTime?: string;
  1888. createUserId?: number;
  1889. updateUserId?: number;
  1890. algId?: number;
  1891. devId?: number;
  1892. waterTempControlMode: number | string;
  1893. continuous: number | string;
  1894. stopCompensate: number;
  1895. restartCompensate: number;
  1896. safeDiffPressureLower: number;
  1897. safeLoadLower: number;
  1898. waterTempStep: number | string;
  1899. deviceName?: string;
  1900. }
  1901. export interface AlgorithmForm {
  1902. id?: number;
  1903. devGroupId?: number;
  1904. enabled: boolean;
  1905. sendCtrlCmd: boolean;
  1906. msgBox: boolean;
  1907. tempRiseCtrlPeriod: number;
  1908. tempReductionCtrlPeriod: number;
  1909. minCtrlStep: string | number;
  1910. intelligentMode: number;
  1911. controlBasis: number;
  1912. period: number;
  1913. tempSafetyMargin: number;
  1914. humiditySafetyMargin: number;
  1915. tempHumidityCollectPeriod: string | number;
  1916. waterSupplyTempSource: number;
  1917. analysis: boolean;
  1918. analysisType: number;
  1919. enableRefrigerationPipeDynamicSet: boolean;
  1920. enableCoolingPipeDynamicSet: boolean;
  1921. coolingPipeDynamicOffset: number;
  1922. coolingPipeDynamicSet: number;
  1923. coolingPipeDynamicDeadZone: number;
  1924. coolingPipeDynamicLower: number;
  1925. coolingPipeDynamicUpper: number;
  1926. }
  1927. export interface AlgorithmConfigInfo extends AlgorithmForm {
  1928. chillers: ChillersItem[];
  1929. chilledWaterOutletTempRangeList: TemperatureRangeItem[];
  1930. chilledWaterOutletTempRange?: string;
  1931. chilledWaterOutletTempSet: string;
  1932. deviceCOPList: DeviceCopItem[];
  1933. deviceCopUpdateDTOS: { deviceId: number; enableCopSet: boolean }[];
  1934. }
  1935. export interface DeviceCopItem {
  1936. id: number;
  1937. createTime: string;
  1938. updateTime: string;
  1939. createUserId: number;
  1940. updateUserId: number;
  1941. deviceName: string;
  1942. groupId: number;
  1943. deviceType: number;
  1944. userId: number;
  1945. brand: string;
  1946. model: string;
  1947. productionDate: string;
  1948. status: number;
  1949. deleted: number;
  1950. runningStatus: number;
  1951. errorStatus: number;
  1952. orgId: number;
  1953. deviceDetail: string;
  1954. addingToAlg: boolean;
  1955. enableCopSet: boolean;
  1956. }
  1957. export interface OrgDeviceLimit {
  1958. deviceGlobalId?: number;
  1959. upperLimit?: number;
  1960. }
  1961. export interface OrganizationItem {
  1962. id?: number;
  1963. orgName: string;
  1964. orderNum?: number;
  1965. logo?: string;
  1966. themeColor?: string;
  1967. startTenancy?: string;
  1968. endTenancy?: string;
  1969. dataValidityPeriod?: string;
  1970. remark?: string;
  1971. enabled?: string;
  1972. orgDeviceLimits?: OrgDeviceLimit[];
  1973. }
  1974. export interface CreateCustomer {
  1975. orgName: string;
  1976. logo: string;
  1977. themeColor: string;
  1978. id?: number;
  1979. imageUrl: string;
  1980. selectedColor: string;
  1981. leaseTerm: [Dayjs, Dayjs];
  1982. stationsNumber: number;
  1983. dataValidityPeriod: string;
  1984. }
  1985. export interface CharacterItem {
  1986. name: string;
  1987. id?: number;
  1988. }
  1989. export interface AccountItem {
  1990. name: string;
  1991. }
  1992. export interface DeviceParamType {
  1993. id: number;
  1994. deviceParamCode: string;
  1995. deviceParamName: string;
  1996. unit: string;
  1997. codeType: number;
  1998. type: number;
  1999. candidates: string[];
  2000. }
  2001. export interface GroupModuleQuery {
  2002. groupId: number;
  2003. moduleType: VisualModuleType;
  2004. }
  2005. export interface GroupModuleInfo {
  2006. id: number;
  2007. createTime: string;
  2008. updateTime: string;
  2009. createUserId: number;
  2010. updateUserId: number;
  2011. leId: number;
  2012. moduleType: number;
  2013. groupId: number;
  2014. groupName: string;
  2015. orgId: number;
  2016. deviceIds: string;
  2017. moduleInfoAi: {
  2018. id: number;
  2019. aiStartType: CtrlCabinetStartType;
  2020. aiSeekHostWaterTempValue: number;
  2021. aiSeekHostWaterTempButton: boolean;
  2022. aiSeekTowerWaterTempValue: number;
  2023. aiSeekTowerWaterTempButton: boolean;
  2024. aiSeekChildPumpValue: number;
  2025. aiSeekChildPumpButton: boolean;
  2026. aiSeekCoolingPumpValue: number;
  2027. aiSeekCoolingPumpButton: boolean;
  2028. };
  2029. }
  2030. export interface GroupModuleDevData {
  2031. deviceId: number;
  2032. deviceName: string;
  2033. dataList: {
  2034. dataCode: string;
  2035. value?: number | string;
  2036. }[];
  2037. }
  2038. export interface GroupModuleBatchItem {
  2039. deviceType: number;
  2040. deviceDataList: GroupBatchDeviceItem[];
  2041. }
  2042. export interface GroupBatchDeviceItem {
  2043. deviceId: number;
  2044. deviceName: string;
  2045. deviceType: number;
  2046. runningStatus: 0 | 1;
  2047. disableEnableStatus: 0 | 1;
  2048. manualAutoStatus: 0 | 1;
  2049. startStopOrder: 0 | 1;
  2050. localRemoteStatus?: '本地' | '远程' | null;
  2051. }
  2052. export interface AIStartStopDeviceItem {
  2053. deviceId: number;
  2054. deviceName: string;
  2055. runningStatus: 0 | 1;
  2056. startStatus: 0 | 1;
  2057. }
  2058. export interface AIStartStopDeviceParams {
  2059. deviceId: number;
  2060. status: 0 | 1;
  2061. startType: CtrlCabinetStartType;
  2062. }
  2063. export interface AIStartStopOptimizeInfo {
  2064. id: number;
  2065. groupId: number;
  2066. aiSeekHostWaterTempValue?: number;
  2067. aiSeekHostWaterTempButton?: boolean;
  2068. aiSeekTowerWaterTempValue?: number;
  2069. aiSeekTowerWaterTempButton?: boolean;
  2070. aiStartType?: CtrlCabinetStartType;
  2071. }
  2072. export interface AIOptimizeDevData {
  2073. deviceGroupId: number;
  2074. controllerDeviceId: number;
  2075. deviceName: string;
  2076. deviceIds: string;
  2077. runningStatus: number;
  2078. moduleId: number;
  2079. enableHostWaterSet: boolean;
  2080. enableTowerWaterSet: boolean;
  2081. moduleInfoAi: {
  2082. id: number;
  2083. createTime: string;
  2084. updateTime: string;
  2085. createUserId: number;
  2086. updateUserId: number;
  2087. moduleId: number;
  2088. aiStartType: number;
  2089. aiSeekHostWaterTempValue: number;
  2090. aiSeekHostWaterTempButton: boolean;
  2091. aiSeekTowerWaterTempValue: number;
  2092. aiSeekTowerWaterTempButton: boolean;
  2093. aiSeekChildPumpValue: number;
  2094. aiSeekChildPumpButton: boolean;
  2095. aiSeekCoolingPumpValue: number;
  2096. aiSeekCoolingPumpButton: boolean;
  2097. };
  2098. systemStatus: string;
  2099. }
  2100. export interface AIOptimizeDetail {
  2101. deviceList: AIOptimizeDeviceItem[];
  2102. algorithmConfig: Partial<AlgorithmConfigInfo>;
  2103. }
  2104. export type AIOptimizeSetItemExpose = {
  2105. submit?: () => void | Promise<void>;
  2106. };
  2107. export type AIOptimizeSetItemInstance = ComponentPublicInstance<unknown, AIOptimizeSetItemExpose>;
  2108. export interface AIOptimizeDeviceItem {
  2109. id: number;
  2110. createTime: string;
  2111. updateTime: string;
  2112. createUserId: number;
  2113. updateUserId: number;
  2114. deviceName: string;
  2115. groupId: number;
  2116. deviceType: number;
  2117. userId: number;
  2118. brand: string;
  2119. model: string;
  2120. productionDate: string;
  2121. status: number;
  2122. deleted: number;
  2123. runningStatus: 0 | 1;
  2124. errorStatus: number;
  2125. orgId: number;
  2126. deviceDetail: string;
  2127. addingToAlg: boolean;
  2128. enableCopSet: boolean;
  2129. }
  2130. export interface AIAdvancedParamItem {
  2131. paramId: number;
  2132. deviceId: number;
  2133. deviceParamCode: string;
  2134. deviceParamName: string;
  2135. value: string;
  2136. pullWindow: boolean;
  2137. zeroValue: string | null;
  2138. oneValue: string | null;
  2139. }
  2140. export interface UploadLogo {
  2141. etag: string;
  2142. versionId: string;
  2143. bucket: string;
  2144. region: string;
  2145. object: string;
  2146. headers: Record<string, string>;
  2147. fileName: string;
  2148. }
  2149. export interface TreeStructure {
  2150. id: number;
  2151. menuName: string;
  2152. parentId: number;
  2153. orderNum: number;
  2154. path: string;
  2155. component: string;
  2156. isLink: string;
  2157. menuType: string;
  2158. perms: string;
  2159. icon: string;
  2160. enabled: string;
  2161. subPermissions: TreeStructure[];
  2162. }
  2163. export interface EquipmentLimitationsItem {
  2164. deviceGlobalId?: number;
  2165. upperLimit: number;
  2166. }
  2167. export interface InfoListByOrg {
  2168. id: number;
  2169. createTime: string;
  2170. updateTime: string;
  2171. createUserId: number;
  2172. updateUserId: number;
  2173. orgId: number;
  2174. deviceGlobalId: number;
  2175. upperLimit: number;
  2176. }
  2177. export interface Organization {
  2178. id: number;
  2179. parentId: number;
  2180. orgName: string;
  2181. orderNum: number;
  2182. phone: string;
  2183. email: string;
  2184. managerId: string;
  2185. enabled: string;
  2186. subOrgs: Organization[];
  2187. }
  2188. export type CharacterPageItemData = PageData<CharacterPageItem>;
  2189. export interface CharacterPageItem {
  2190. id: number;
  2191. createTime: string;
  2192. updateTime: string;
  2193. createUserId: number;
  2194. updateUserId: number;
  2195. roleName: string;
  2196. roleCode: string;
  2197. orderNum: number;
  2198. dataScope: string;
  2199. enabled: string;
  2200. defaultRole: string;
  2201. remark: string;
  2202. }
  2203. export type NoticePageItemData = PageData<NoticePageItem>;
  2204. export interface NoticePageItem {
  2205. id: number;
  2206. createTime: string;
  2207. updateTime: string;
  2208. createUserId: number;
  2209. updateUserId: number;
  2210. orgId: number;
  2211. userId: number;
  2212. type: number;
  2213. targetId: number;
  2214. devGroupId: number;
  2215. content: string;
  2216. readStatus: boolean;
  2217. groupName: string;
  2218. monitorId: number;
  2219. monitorName: string;
  2220. deviceIds: number;
  2221. deviceName: string;
  2222. parentDevGroupId: number;
  2223. }
  2224. export interface UserPageParams {
  2225. pageIndex: number;
  2226. pageSize: number;
  2227. userName: string;
  2228. mobile: string;
  2229. startTenancy: string;
  2230. endTenancy: string;
  2231. enabled?: string;
  2232. orgId?: number;
  2233. roleId?: number;
  2234. }
  2235. export interface AccountParams {
  2236. id?: number;
  2237. userName: string;
  2238. mobile: string;
  2239. password: string;
  2240. startTenancy: string;
  2241. endTenancy: string;
  2242. enabled: string;
  2243. orgId: number;
  2244. roleId: number;
  2245. }
  2246. export interface AccountForm {
  2247. userName: string;
  2248. mobile: string;
  2249. password: string;
  2250. enabled: boolean;
  2251. roleId?: number;
  2252. accountTerm?: [Dayjs, Dayjs];
  2253. }
  2254. export type UserPageItemData = PageData<UserPageItem>;
  2255. export interface UserPageItem {
  2256. id: number;
  2257. createTime: string;
  2258. updateTime: string;
  2259. createUserId: number;
  2260. updateUserId: number;
  2261. userName: string;
  2262. email: string;
  2263. mobile: string;
  2264. avatar: string;
  2265. password: string;
  2266. startTenancy: string;
  2267. endTenancy: string;
  2268. enabled: number;
  2269. deleted: string;
  2270. roleId: number;
  2271. }
  2272. export interface CharacterParams {
  2273. id?: number;
  2274. roleName: string;
  2275. orgId?: number;
  2276. }
  2277. export interface DeviceCop {
  2278. id: number;
  2279. enableCopSet: boolean;
  2280. deviceName?: string;
  2281. }
  2282. export interface PermissionList {
  2283. userId?: number;
  2284. orgId?: number;
  2285. parentId?: number;
  2286. roleId?: number;
  2287. haveDevice?: boolean;
  2288. haveChild?: boolean;
  2289. }
  2290. export interface RoleIds {
  2291. roleIds: number[];
  2292. }
  2293. export interface PermissionGroupItem {
  2294. id: number;
  2295. userId: number;
  2296. groupName: string;
  2297. comment: string;
  2298. parentId: number;
  2299. deleted?: number;
  2300. orgId: number;
  2301. roleIds: RoleIds;
  2302. key?: number;
  2303. deviceGroupChilds: TwoPermissionGroupItem[];
  2304. }
  2305. export interface TwoPermissionGroupItem {
  2306. id: number;
  2307. groupName: string;
  2308. comment: string;
  2309. parentId: number;
  2310. userId: number;
  2311. orgId: number;
  2312. roleIds: RoleIds;
  2313. key?: number;
  2314. }
  2315. export interface DevicePermissionsParams {
  2316. roleId: number;
  2317. groupIds: number[];
  2318. }