Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"bootstrap": "5.3.1",
"core-js": "^3.8.3",
"crypto-browserify": "^3.12.0",
"dayjs": "^1.11.20",
"echarts": "5.4.3",
"element-plus": "^2.4.1",
"generate-avatar": "1.4.10",
Expand All @@ -39,6 +40,8 @@
"nprogress": "0.2.0",
"socket.io-client": "^4.7.4",
"sortablejs": "^1.15.2",
"tdesign-icons-vue-next": "^0.4.2",
"tdesign-vue-next": "^1.18.5",
"tom-select": "2.2.2",
"vue": "^3.2.13",
"vue-clipboard3": "2.0.0",
Expand Down
45 changes: 3 additions & 42 deletions packages/web/projects/vgpu/components/Detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,13 @@

<script setup lang="jsx">
import BackHeader from '@/components/BackHeader.vue';
import { useRoute } from 'vue-router';
import BlockBox from '@/components/BlockBox.vue';
import { onMounted, ref, watch } from 'vue';
import { ref } from 'vue';
import CardList from '~/vgpu/views/card/admin/index.vue';
import TaskList from '~/vgpu/views/task/admin/index.vue';
import Gauge from '~/vgpu/components/gauge.vue';
import useInstantVector from '~/vgpu/hooks/useInstantVector';
import EchartsPlus from '@/components/Echarts-plus.vue';
import cardApi from '~/vgpu/api/card';
import { timeParse } from '@/utils';
import { getLineOptions } from '~/vgpu/components/config';
import TimeSelect from '~/vgpu/components/timeSelect.vue';

Expand All @@ -80,8 +77,6 @@ const props = defineProps([
'hideCp',
]);

const route = useRoute();

const time = ref(1 / 24);

const cp = useInstantVector(
Expand Down Expand Up @@ -152,42 +147,9 @@ const gaugeConfig = useInstantVector(
time,
);

// const fetchLineData = async () => {
// const start = new Date();
// start.setTime(start.getTime() - 3600 * 1000 * 24 * time.value);
//
// const lineReqs = gaugeConfig.value.map((item) =>
// cardApi.getRangeVector({
// range: {
// start: timeParse(start),
// end: timeParse(new Date()),
// step: '1m',
// },
// query: item.percentQuery.replaceAll(`$${props.type}`, props.name),
// }),
// );
//
// const res = await Promise.all(lineReqs);
//
// gaugeConfig.value = gaugeConfig.value.map((item, index) => ({
// ...item,
// data: res[index].data[0]?.values || [],
// }));
// };

// watch(
// () => props.detail,
// async () => {
// fetchLineData();
// },
// );

// watch(time, () => {
// fetchLineData();
// });
</script>

<style lang="scss">
<style scoped lang="scss">
.node-detail {
display: flex;
height: 100%;
Expand All @@ -202,10 +164,9 @@ const gaugeConfig = useInstantVector(
.title {
color: #1d2b3a;
font-family: 'PingFang SC';
font-size: 14px;
font-size: 16px;
font-style: normal;
font-weight: 500;
//line-height: 20px;
margin-bottom: 20px;
}
.node-detail-left {
Expand Down
Loading
Loading