mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-02 03:34:50 +00:00
feat: set selectors
This commit is contained in:
parent
0a417b3665
commit
ffe35b89f9
@ -28,6 +28,7 @@ interface SelectorState {
|
||||
endpoints: Option[];
|
||||
currentService: string;
|
||||
currentPod: string;
|
||||
currentDestService: string;
|
||||
durationTime: any;
|
||||
}
|
||||
|
||||
@ -40,6 +41,7 @@ export const selectorStore = defineStore({
|
||||
endpoints: [],
|
||||
currentService: "",
|
||||
currentPod: "",
|
||||
currentDestService: "",
|
||||
durationTime: useAppStoreWithOut().durationTime,
|
||||
}),
|
||||
actions: {
|
||||
|
@ -28,9 +28,11 @@ limitations under the License. -->
|
||||
/>
|
||||
</div>
|
||||
<div class="selectors-item" v-if="states.key === 3 || states.key === 4">
|
||||
<span class="label">$ServiceInstance</span>
|
||||
<span class="label">
|
||||
{{ states.entity === "endpoint" ? "$Endpoint" : "$ServiceInstance" }}
|
||||
</span>
|
||||
<el-cascader
|
||||
placeholder="Select a instance"
|
||||
placeholder="Please Select data"
|
||||
:options="SelectOpts"
|
||||
size="mini"
|
||||
filterable
|
||||
@ -40,7 +42,7 @@ limitations under the License. -->
|
||||
<div class="selectors-item" v-if="states.key === 2">
|
||||
<span class="label">$DestinationService</span>
|
||||
<Selector
|
||||
:value="states.service"
|
||||
:value="selectorStore.currentDestService"
|
||||
:options="selectorStore.services"
|
||||
size="mini"
|
||||
placeholder="Select a service"
|
||||
|
Loading…
Reference in New Issue
Block a user