init test of tracedetailTools

This commit is contained in:
Peter Olu 2022-05-06 03:59:09 +01:00
parent a3d7e7ee00
commit 31b0d49234
3 changed files with 8 additions and 6 deletions

View File

@ -170,6 +170,7 @@ limitations under the License. -->
</div> </div>
</div> </div>
<!-- Trace Details tools here --> <!-- Trace Details tools here -->
<TraceDetailsTools />
<Filter v-if="showFilter" /> <Filter v-if="showFilter" />
</div> </div>
</template> </template>
@ -193,6 +194,7 @@ import { useSelectorStore } from "@/store/modules/selectors";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import { Option } from "@/types/app"; import { Option } from "@/types/app";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
import TraceDetailsTools from './component/TraceDetailsTools'
const { t } = useI18n(); const { t } = useI18n();
const dashboardStore = useDashboardStore(); const dashboardStore = useDashboardStore();

View File

@ -124,6 +124,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="no-data" v-else>{{ t("noData") }}</div>
</template> </template>
<script lang="ts"> <script lang="ts">
@ -133,8 +134,6 @@ import { useI18n } from "vue-i18n";
import { useTraceStore } from "@/store/modules/trace"; import { useTraceStore } from "@/store/modules/trace";
import { Option } from "@/types/app"; import { Option } from "@/types/app";
import copy from "@/utils/copy"; import copy from "@/utils/copy";
import List from "./components/List.vue";
import graphs from "./components/index";
import LogTable from "@/views/dashboard/related/components/LogTable/Index.vue"; import LogTable from "@/views/dashboard/related/components/LogTable/Index.vue";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";

View File

@ -12,7 +12,7 @@ See the License for the specific language governing permissions and
limitations under the License. --> limitations under the License. -->
<template> <template>
<div class="trace-detail" v-loading="loading"> <div class="trace-detail" v-loading="loading">
<div <!-- <div
class="trace-detail-wrapper clear" class="trace-detail-wrapper clear"
v-if="traceStore.currentTrace.endpointNames" v-if="traceStore.currentTrace.endpointNames"
> >
@ -138,8 +138,9 @@ limitations under the License. -->
</el-button> </el-button>
</div> </div>
</div> </div>
</div> </div> -->
<div class="no-data" v-else>{{ t("noData") }}</div> <!-- <div class="no-data" v-else>{{ t("noData") }}</div> -->
<div class="trace-chart"> <div class="trace-chart">
<component <component
v-if="traceStore.currentTrace.endpointNames" v-if="traceStore.currentTrace.endpointNames"
@ -163,7 +164,7 @@ import List from "./components/List.vue";
import graphs from "./components/index"; import graphs from "./components/index";
import LogTable from "@/views/dashboard/related/components/LogTable/Index.vue"; import LogTable from "@/views/dashboard/related/components/LogTable/Index.vue";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
// import TraceDetailsTools from '@/views/dashboard'
export default defineComponent({ export default defineComponent({
name: "TraceDetail", name: "TraceDetail",
components: { components: {