fix: 系统资源数据

This commit is contained in:
TsMask
2023-11-02 10:00:03 +08:00
parent 9adc5f402d
commit 0eb2744a25

View File

@@ -59,6 +59,8 @@ function fnGetList() {
type: 'all',
startTime: startTime.getTime(),
endTime: endTime.getTime(),
neType: '#',
neId: '#',
}).then(res => {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
fnLoadChart(res.data.base);
@@ -342,6 +344,8 @@ function fnGetQuery(
type: type,
startTime: startTime.getTime(),
endTime: endTime.getTime(),
neType: '#',
neId: '#',
}).then(res => {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
if (type === 'load') {
@@ -368,6 +372,8 @@ function fnGetQueryIO(v: any, dateString: [string, string]) {
type: 'io',
startTime: startTime.getTime(),
endTime: endTime.getTime(),
neType: '#',
neId: '#',
}).then(res => {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
fnIOChart(res.data.io);
@@ -386,6 +392,8 @@ function fnGetQueryNetwork(v: any, dateString: [string, string]) {
type: 'network',
startTime: startTime.getTime(),
endTime: endTime.getTime(),
neType: '#',
neId: '#',
}).then(res => {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
fnNetworkChart(res.data.network);
@@ -407,7 +415,7 @@ onMounted(() => {
<!-- 表格搜索栏 -->
<a-form name="queryParams" layout="horizontal">
<a-row :gutter="16">
<a-col :lg="8" :md="8" :xs="24">
<a-col :lg="10" :md="10" :xs="24">
<a-form-item label="全局过滤" name="neTypeSelect">
<a-range-picker
v-model:value="rangePicker.all"