diff --git a/src/api/device/product.ts b/src/api/device/product.ts index 1e2f4f4f..21347dc0 100644 --- a/src/api/device/product.ts +++ b/src/api/device/product.ts @@ -59,7 +59,16 @@ export const category = (data: any) => server.post('/device/category/_tree', dat * 获取接入方式 * @param data 查询条件 */ - export const queryGatewayList = (data: any) => server.post('/gateway/device/_query/no-paging', data) + const defaultGatewayData = { + paging: false, + sorts: [ + { + name: 'createTime', + order: 'desc', + }, + ], + } + export const queryGatewayList = (data: any = defaultGatewayData) => server.post('/gateway/device/_query/no-paging', data) /** * 查询产品列表(分页) diff --git a/src/components/Search/Search.vue b/src/components/Search/Search.vue index 47a75a26..167c3976 100644 --- a/src/components/Search/Search.vue +++ b/src/components/Search/Search.vue @@ -235,7 +235,7 @@ const reset = () => { urlParams.target = null } resetNumber.value += 1 - emit('search', terms) + emit('search', { terms: []}) } watch(width, (value) => { diff --git a/src/components/TitleComponent/index.vue b/src/components/TitleComponent/index.vue index 460e0e57..eae03398 100644 --- a/src/components/TitleComponent/index.vue +++ b/src/components/TitleComponent/index.vue @@ -1,21 +1,25 @@ - \ No newline at end of file diff --git a/src/views/rule-engine/Scene/Save/Device/Product.vue b/src/views/rule-engine/Scene/Save/Device/Product.vue new file mode 100644 index 00000000..26dc4671 --- /dev/null +++ b/src/views/rule-engine/Scene/Save/Device/Product.vue @@ -0,0 +1,231 @@ + + + + + \ No newline at end of file diff --git a/src/views/rule-engine/Scene/Save/Device/index.vue b/src/views/rule-engine/Scene/Save/Device/index.vue new file mode 100644 index 00000000..99f19a1e --- /dev/null +++ b/src/views/rule-engine/Scene/Save/Device/index.vue @@ -0,0 +1,45 @@ +