diff --git a/hx-ai-intelligent/src/view/equipmentManage/ledger/config.ts b/hx-ai-intelligent/src/view/equipmentManage/ledger/config.ts index 930df23..5fc70e7 100644 --- a/hx-ai-intelligent/src/view/equipmentManage/ledger/config.ts +++ b/hx-ai-intelligent/src/view/equipmentManage/ledger/config.ts @@ -3,7 +3,8 @@ import data from './mock.json'; export const tableConfig = { title: '设备台账', - api: '/carbon_emission/device/getDeviceList', + // api: '/carbon_emission/device/getDeviceList', + value: data.dataSource, treeConfig: { defaultExpandAll: true, api: () => { diff --git a/hx-ai-intelligent/src/view/equipmentManage/ledger/mock.json b/hx-ai-intelligent/src/view/equipmentManage/ledger/mock.json index f37a71c..624bb36 100644 --- a/hx-ai-intelligent/src/view/equipmentManage/ledger/mock.json +++ b/hx-ai-intelligent/src/view/equipmentManage/ledger/mock.json @@ -235,6 +235,272 @@ } ] } + ], + "dataSource":[ + { + "id": "d4", + "isDel": "0", + "officesId": "84", + "deviceCode": "37430200143", + "deviceName": "地听测试电表", + "category": "1", + "type": "1001", + "energyCount": "1", + "serialNumber": "69", + "pidCode": null, + "brand": "", + "types": "", + "manufacturer": "elit non in", + "contacts": "ad reprehenderit", + "phonenumber": "34", + "position": "in esse commodo", + "activeState": "1", + "measurementDirection": "1", + "deviceMagnification": 62, + "deviceAccuracy": "89", + "frequency": "anim consequat irure", + "standardFrequency": "ut elit", + "deviceHead": "pariatur ex velit", + "constructor": "84566", + "voltageType": "cillum aliquip reprehenderit", + "pt": 61, + "ct": 64, + "communicationProtocol": "cupidatat nisi ea ad", + "ip": "", + "port": "", + "com": "", + "slaveAddress": "", + "dlt": "", + "conversionIdentifier": "48", + "multiplicationAdjustment": "1", + "accessMethod": "1", + "replacementFrequency": "0", + "dataDetail": "sit", + "insertTime": null, + "children": null, + "devicePointList": null, + "insertUser": null + }, + { + "id": "d1", + "isDel": "0", + "officesId": "84", + "deviceCode": "37430200144", + "deviceName": "地听测试2", + "category": "1", + "type": "1001", + "energyCount": "1", + "serialNumber": "69", + "pidCode": null, + "brand": "", + "types": "", + "manufacturer": "elit non in", + "contacts": "ad reprehenderit", + "phonenumber": "34", + "position": "in esse commodo", + "activeState": "1", + "measurementDirection": "1", + "deviceMagnification": 62, + "deviceAccuracy": "89", + "frequency": "anim consequat irure", + "standardFrequency": "ut elit", + "deviceHead": "pariatur ex velit", + "constructor": "84566", + "voltageType": "cillum aliquip reprehenderit", + "pt": 61, + "ct": 64, + "communicationProtocol": "802", + "ip": "10.5.36.0", + "port": "6000", + "com": "", + "slaveAddress": "123测试", + "dlt": "", + "conversionIdentifier": "48", + "multiplicationAdjustment": "1", + "accessMethod": "1", + "replacementFrequency": "0", + "dataDetail": "sit", + "insertTime": "2024-02-28 11:26:58", + "children": null, + "devicePointList": null, + "insertUser": null + }, + { + "id": "d2", + "isDel": "0", + "officesId": "84", + "deviceCode": "1235623", + "deviceName": "测试设备2", + "category": "1", + "type": "1001", + "energyCount": "是", + "serialNumber": "69", + "pidCode": null, + "brand": "", + "types": "", + "manufacturer": "elit non in", + "contacts": "ad reprehenderit", + "phonenumber": "34", + "position": "in esse commodo", + "activeState": "1", + "measurementDirection": "1", + "deviceMagnification": 62, + "deviceAccuracy": "89", + "frequency": "anim consequat irure", + "standardFrequency": "ut elit", + "deviceHead": "pariatur ex velit", + "constructor": null, + "voltageType": "cillum aliquip reprehenderit", + "pt": 61, + "ct": 64, + "communicationProtocol": "cupidatat nisi ea ad", + "ip": "", + "port": "", + "com": "", + "slaveAddress": "", + "dlt": "", + "conversionIdentifier": "48", + "multiplicationAdjustment": "1", + "accessMethod": "1", + "replacementFrequency": "0", + "dataDetail": "sit", + "insertTime": "2024-02-28 11:31:57", + "children": null, + "devicePointList": null, + "insertUser": null + }, + { + "id": "d7", + "isDel": "0", + "officesId": "", + "deviceCode": "0213", + "deviceName": "测试", + "category": "1", + "type": "1001", + "energyCount": "1", + "serialNumber": "", + "pidCode": null, + "brand": "6da085e5-956d-4000-bd3c-ebb01a9c99a1", + "types": "d7a8aede-b821-4ff2-953d-601a20e5a948", + "manufacturer": "", + "contacts": "", + "phonenumber": null, + "position": "", + "activeState": "", + "measurementDirection": "", + "deviceMagnification": null, + "deviceAccuracy": null, + "frequency": "", + "standardFrequency": "", + "deviceHead": "", + "constructor": "", + "voltageType": "", + "pt": null, + "ct": null, + "communicationProtocol": "", + "ip": "", + "port": "", + "com": "", + "slaveAddress": "", + "dlt": "", + "conversionIdentifier": "1", + "multiplicationAdjustment": "1", + "accessMethod": "", + "replacementFrequency": "0", + "dataDetail": "", + "insertTime": "2024-03-14 20:01:53", + "children": null, + "devicePointList": null, + "insertUser": "" + }, + { + "id": "d3", + "isDel": "0", + "officesId": "84", + "deviceCode": "81", + "deviceName": "设备名称1111", + "category": "1", + "type": "1001", + "energyCount": "1", + "serialNumber": "69", + "pidCode": null, + "brand": "6da085e5-956d-4000-bd3c-ebb01a9c99a1", + "types": "d7a8aede-b821-4ff2-953d-601a20e5a948", + "manufacturer": "elit non in", + "contacts": "ad reprehenderit", + "phonenumber": "34", + "position": "in esse commodo", + "activeState": "1", + "measurementDirection": "1", + "deviceMagnification": 62, + "deviceAccuracy": "89", + "frequency": "anim consequat irure", + "standardFrequency": "ut elit", + "deviceHead": "pariatur ex velit", + "constructor": "84566", + "voltageType": "cillum aliquip reprehenderit", + "pt": 61, + "ct": 64, + "communicationProtocol": "cupidatat nisi ea ad", + "ip": "", + "port": "", + "com": "", + "slaveAddress": "", + "dlt": "", + "conversionIdentifier": "48", + "multiplicationAdjustment": "1", + "accessMethod": "1", + "replacementFrequency": "0", + "dataDetail": "sit", + "insertTime": "2024-03-15 17:34:24", + "children": null, + "devicePointList": null, + "insertUser": null + }, + { + "id": "d43fdfff_02_0001", + "isDel": "0", + "officesId": "843fdffff213d2d3", + "deviceCode": "00037430200143", + "deviceName": "应感者酸严", + "category": "1", + "type": "1001", + "energyCount": "esse consequat", + "serialNumber": "69", + "pidCode": null, + "brand": "", + "types": "", + "manufacturer": "elit non in", + "contacts": "ad reprehenderit", + "phonenumber": "34", + "position": "in esse commodo", + "activeState": "1", + "measurementDirection": "1", + "deviceMagnification": 62, + "deviceAccuracy": "89", + "frequency": "anim consequat irure", + "standardFrequency": "ut elit", + "deviceHead": "pariatur ex velit", + "constructor": "84566", + "voltageType": "cillum aliquip reprehenderit", + "pt": 61, + "ct": 64, + "communicationProtocol": "cupidatat nisi ea ad", + "ip": "", + "port": "", + "com": "", + "slaveAddress": "", + "dlt": "", + "conversionIdentifier": "48", + "multiplicationAdjustment": "1", + "accessMethod": "1", + "replacementFrequency": "0", + "dataDetail": "sit", + "insertTime": "2024-04-29 11:12:43", + "children": null, + "devicePointList": null, + "insertUser": null + } ] } \ No newline at end of file