index.ts 57 KB

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