diff --git a/src/assets/icons/control.svg b/src/assets/icons/control.svg new file mode 100644 index 00000000..250d63bf --- /dev/null +++ b/src/assets/icons/control.svg @@ -0,0 +1,15 @@ + + \ No newline at end of file diff --git a/src/hooks/useProcessor.ts b/src/hooks/useProcessor.ts index b1ed0e9c..de90ab08 100644 --- a/src/hooks/useProcessor.ts +++ b/src/hooks/useProcessor.ts @@ -68,7 +68,7 @@ export function useQueryProcessor(config: any) { normal: selectorStore.currentService ? selectorStore.currentService.normal : true, - scope: config.catalog || dashboardStore.entity, + scope: config.catalog, topN: c.topN || 10, order: c.sortOrder || "DES", }; diff --git a/src/styles/reset.scss b/src/styles/reset.scss index e414df03..cbb3cacc 100644 --- a/src/styles/reset.scss +++ b/src/styles/reset.scss @@ -141,3 +141,15 @@ pre { .el-icon.menu-icons { margin-top: -3px !important; } + +.el-switch__label--left { + margin-right: 5px; +} + +.el-switch__label--right { + margin-left: 5px; +} + +.switch { + margin: 0 5px; +} diff --git a/src/views/dashboard/data.ts b/src/views/dashboard/data.ts index e1b0d4f5..d5e578c0 100644 --- a/src/views/dashboard/data.ts +++ b/src/views/dashboard/data.ts @@ -174,17 +174,15 @@ export const AllTools = [ { name: "device_hub", content: "Add Topology", id: "addTopology" }, { name: "merge", content: "Add Trace", id: "addTrace" }, { name: "assignment", content: "Add Log", id: "addLog" }, - { name: "save", content: "Apply", id: "apply" }, ]; export const ServiceTools = [ - { name: "playlist_add", content: "Add Widget", id: "addWidget" }, - { name: "all_inbox", content: "Add Tab", id: "addTab" }, - { name: "library_books", content: "Add Text", id: "addText" }, - { name: "device_hub", content: "Add Topology", id: "addTopology" }, - { name: "merge", content: "Add Trace", id: "addTrace" }, - { name: "timeline", content: "Add Profile", id: "addProfile" }, - { name: "assignment", content: "Add Log", id: "addLog" }, - { name: "save", content: "Apply", id: "apply" }, + { name: "playlist_add", content: "Widget", id: "addWidget" }, + { name: "all_inbox", content: "Tab", id: "addTab" }, + { name: "library_books", content: "Text", id: "addText" }, + { name: "device_hub", content: "Topology", id: "addTopology" }, + { name: "merge", content: "Trace", id: "addTrace" }, + { name: "timeline", content: "Profile", id: "addProfile" }, + { name: "assignment", content: "Log", id: "addLog" }, ]; export const InstanceTools = [ { name: "playlist_add", content: "Add Widget", id: "addWidget" }, @@ -192,7 +190,6 @@ export const InstanceTools = [ { name: "library_books", content: "Add Text", id: "addText" }, { name: "merge", content: "Add Trace", id: "addTrace" }, { name: "assignment", content: "Add Log", id: "addLog" }, - { name: "save", content: "Apply", id: "apply" }, ]; export const EndpointTools = [ { name: "playlist_add", content: "Add Widget", id: "addWidget" }, @@ -201,28 +198,24 @@ export const EndpointTools = [ { name: "device_hub", content: "Add Topology", id: "addTopology" }, { name: "merge", content: "Add Trace", id: "addTrace" }, { name: "assignment", content: "Add Log", id: "addLog" }, - { name: "save", content: "Apply", id: "apply" }, ]; export const ServiceRelationTools = [ { name: "playlist_add", content: "Add Widget", id: "addWidget" }, { name: "all_inbox", content: "Add Tab", id: "addTab" }, { name: "library_books", content: "Add Text", id: "addText" }, { name: "device_hub", content: "Add Topology", id: "addTopology" }, - { name: "save", content: "Apply", id: "apply" }, ]; export const EndpointRelationTools = [ { name: "playlist_add", content: "Add Widget", id: "addWidget" }, { name: "all_inbox", content: "Add Tab", id: "addTab" }, { name: "library_books", content: "Add Text", id: "addText" }, - { name: "save", content: "Apply", id: "apply" }, ]; export const InstanceRelationTools = [ { name: "playlist_add", content: "Add Widget", id: "addWidget" }, { name: "all_inbox", content: "Add Tab", id: "addTab" }, { name: "library_books", content: "Add Text", id: "addText" }, { name: "device_hub", content: "Add Topology", id: "addTopology" }, - { name: "save", content: "Apply", id: "apply" }, ]; export const ScopeType = [ diff --git a/src/views/dashboard/panel/Tool.vue b/src/views/dashboard/panel/Tool.vue index 7669adea..f597bc67 100644 --- a/src/views/dashboard/panel/Tool.vue +++ b/src/views/dashboard/panel/Tool.vue @@ -80,24 +80,39 @@ limitations under the License. -->
- - - - - - - + + + + + + + + + + +
@@ -105,7 +120,8 @@ limitations under the License. -->