fix: update style

This commit is contained in:
Qiuxia Fan 2022-02-14 18:13:41 +08:00
parent cc01598ae2
commit c697428119
6 changed files with 8 additions and 59 deletions

View File

@ -28,7 +28,6 @@ limitations under the License. -->
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
:disabled="!!item.disabled"
> >
</el-option> </el-option>
</el-select> </el-select>

View File

@ -117,49 +117,3 @@ export const InstanceTopology = {
} }
`, `,
}; };
export const TopoServiceMetric = {
variable: "$idsS: [ID!]!",
query: `
cpmS: getValues(metric: {
name: "service_relation_server_cpm"
ids: $idsS
}, duration: $duration) {
values {
id
value
}
}
latencyS: getValues(metric: {
name: "service_relation_server_resp_time"
ids: $idsS
}, duration: $duration) {
values {
id
value
}
}`,
};
export const TopoClientMetric = {
variable: "$idsC: [ID!]!",
query: `
cpmC: getValues(metric: {
name: "service_relation_client_cpm"
ids: $idsC
}, duration: $duration) {
values {
id
value
}
}
latencyC: getValues(metric: {
name: "service_relation_client_resp_time"
ids: $idsC
}, duration: $duration) {
values {
id
value
}
}`,
};

View File

@ -76,7 +76,8 @@ const msg = {
editGraph: "Edit Graph Options", editGraph: "Edit Graph Options",
dashboardName: "Select Dashboard Name", dashboardName: "Select Dashboard Name",
linkDashboard: "Dashboard name related with topology calls", linkDashboard: "Dashboard name related with topology calls",
linkMetrics: "Metrics related with topology calls", linkServerMetrics: "Server metrics related with topology calls",
linkClientMetrics: "Client metrics related with topology calls",
nodeDashboard: "Dashboard name related with topology nodes", nodeDashboard: "Dashboard name related with topology nodes",
nodeMetrics: "Metrics related with topology nodes", nodeMetrics: "Metrics related with topology nodes",
instanceDashboard: "Dashboard name related with service instances", instanceDashboard: "Dashboard name related with service instances",

View File

@ -75,7 +75,8 @@ const msg = {
editGraph: "编辑图表选项", editGraph: "编辑图表选项",
dashboardName: "选择仪表板名称", dashboardName: "选择仪表板名称",
linkDashboard: "拓扑线关联的仪表板名称", linkDashboard: "拓扑线关联的仪表板名称",
linkMetrics: "拓扑线关联的指标", linkServerMetrics: "拓扑线服务端关联的指标",
linkClientMetrics: "拓扑线客户端关联的指标",
nodeDashboard: "拓节点关联的仪表板名称", nodeDashboard: "拓节点关联的仪表板名称",
nodeMetrics: "拓扑节点关联的指标", nodeMetrics: "拓扑节点关联的指标",
instanceDashboard: "拓节点关联的实例的仪表板名称", instanceDashboard: "拓节点关联的实例的仪表板名称",

View File

@ -19,7 +19,7 @@ limitations under the License. -->
v-loading="loading" v-loading="loading"
:style="`height: ${height}`" :style="`height: ${height}`"
> >
<div class="setting" v-if="showSetting"> <div class="setting" v-show="showSetting">
<Settings @update="updateSettings" /> <Settings @update="updateSettings" />
</div> </div>
<Icon <Icon
@ -340,12 +340,6 @@ function updateSettings(config: any) {
onBeforeUnmount(() => { onBeforeUnmount(() => {
window.removeEventListener("resize", resize); window.removeEventListener("resize", resize);
}); });
// watch(
// () => [topologyStore.calls, topologyStore.nodes],
// () => {
// update();
// }
// );
</script> </script>
<style lang="scss"> <style lang="scss">
.micro-topo-chart { .micro-topo-chart {
@ -359,7 +353,7 @@ onBeforeUnmount(() => {
height: 700px; height: 700px;
background-color: #2b3037; background-color: #2b3037;
overflow: auto; overflow: auto;
padding: 0 10px; padding: 0 15px;
border-radius: 3px; border-radius: 3px;
color: #ccc; color: #ccc;
transition: all 0.5ms linear; transition: all 0.5ms linear;

View File

@ -23,7 +23,7 @@ limitations under the License. -->
size="small" size="small"
class="inputs" class="inputs"
/> />
<div class="label">{{ t("linkMetrics") }}</div> <div class="label">{{ t("linkServerMetrics") }}</div>
<Selector <Selector
class="inputs" class="inputs"
:multiple="true" :multiple="true"
@ -33,7 +33,7 @@ limitations under the License. -->
placeholder="Select metrics" placeholder="Select metrics"
@change="changeLinkServerMetrics" @change="changeLinkServerMetrics"
/> />
<div class="label">{{ t("linkMetrics") }}</div> <div class="label">{{ t("linkClientMetrics") }}</div>
<Selector <Selector
class="inputs" class="inputs"
:multiple="true" :multiple="true"