diff --git a/src/api/rule-engine/instance.ts b/src/api/rule-engine/instance.ts new file mode 100644 index 00000000..6c8c2e45 --- /dev/null +++ b/src/api/rule-engine/instance.ts @@ -0,0 +1,30 @@ +import server from '@/utils/request' +/** + * 查询规则编排分页列表 + */ +export const queryList = (data: any) => server.post('/rule-engine/instance/_query', data); + +/** + * 新增规则 + */ +export const saveRule = (data: any) => server.post('/rule-editor/flows/_create',data); + +/** + * 修改规则 + */ +export const modify = (id:any ,data:any) => server.put(`/rule-engine/instance/${id}`,data); + +/** + * 启动规则 + */ +export const startRule = (id:string) => server.post(`/rule-engine/instance/${id}/_start`); + +/** + * 禁用规则 + */ +export const stopRule = (id:string) => server.post(`/rule-engine/instance/${id}/_stop`); + +/** + * 删除规则 + */ +export const deleteRule = (id:string) => server.remove(`/rule-engine/instance/${id}`) \ No newline at end of file diff --git a/src/views/device/DashBoard/components/BarChart.vue b/src/views/device/DashBoard/components/BarChart.vue deleted file mode 100644 index f6d4db43..00000000 --- a/src/views/device/DashBoard/components/BarChart.vue +++ /dev/null @@ -1,79 +0,0 @@ - - - - - diff --git a/src/views/device/DashBoard/components/Charts.vue b/src/views/device/DashBoard/components/Charts.vue new file mode 100644 index 00000000..9c5a4031 --- /dev/null +++ b/src/views/device/DashBoard/components/Charts.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/src/views/device/DashBoard/components/LineChart.vue b/src/views/device/DashBoard/components/LineChart.vue deleted file mode 100644 index cb06576c..00000000 --- a/src/views/device/DashBoard/components/LineChart.vue +++ /dev/null @@ -1,99 +0,0 @@ - - - - - diff --git a/src/views/device/DashBoard/components/MessageChart.vue b/src/views/device/DashBoard/components/MessageChart.vue deleted file mode 100644 index c088d53d..00000000 --- a/src/views/device/DashBoard/components/MessageChart.vue +++ /dev/null @@ -1,112 +0,0 @@ - - - - - diff --git a/src/views/device/DashBoard/components/TopCard.vue b/src/views/device/DashBoard/components/TopCard.vue index 0d3c89d4..13c5fcac 100644 --- a/src/views/device/DashBoard/components/TopCard.vue +++ b/src/views/device/DashBoard/components/TopCard.vue @@ -72,7 +72,7 @@ const props = defineProps({ } .content-right { width: 0; - height: 100%; + height: 123px; display: flex; flex-grow: .7; align-items: flex-end; diff --git a/src/views/device/DashBoard/index.vue b/src/views/device/DashBoard/index.vue index b916fef9..e1a8a051 100644 --- a/src/views/device/DashBoard/index.vue +++ b/src/views/device/DashBoard/index.vue @@ -24,10 +24,12 @@ :footer="onlineFooter" :value="onlineToday" > - --> + + - @@ -55,7 +54,7 @@
- +
@@ -74,11 +73,9 @@ \ No newline at end of file diff --git a/src/views/rule-engine/Instance/index.vue b/src/views/rule-engine/Instance/index.vue new file mode 100644 index 00000000..d47885f7 --- /dev/null +++ b/src/views/rule-engine/Instance/index.vue @@ -0,0 +1,333 @@ + + + + \ No newline at end of file diff --git a/src/views/rule-engine/Instance/typings.d.ts b/src/views/rule-engine/Instance/typings.d.ts new file mode 100644 index 00000000..28689e67 --- /dev/null +++ b/src/views/rule-engine/Instance/typings.d.ts @@ -0,0 +1,15 @@ +type InstanceItem = { + createTime: number; + modelId: string; + modelMeta: string; + modelType: string; + modelVersion: number; + description?: string; + state: { + text: string; + value: string; + }; + } & { + id:string, + name:string + } \ No newline at end of file