修正自定义指标
This commit is contained in:
@@ -154,7 +154,9 @@ function fnTableSize({ key }: MenuInfo) {
|
|||||||
function fnRecordDelete(row: Record<string, any>) {
|
function fnRecordDelete(row: Record<string, any>) {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: t('common.tipTitle'),
|
title: t('common.tipTitle'),
|
||||||
content: t('views.perfManage.customTarget.delCustomTip', { num: row.kpiId }),
|
content: t('views.perfManage.customTarget.delCustomTip', {
|
||||||
|
num: row.kpiId,
|
||||||
|
}),
|
||||||
onOk() {
|
onOk() {
|
||||||
const key = 'delThreshold';
|
const key = 'delThreshold';
|
||||||
message.loading({ content: t('common.loading'), key });
|
message.loading({ content: t('common.loading'), key });
|
||||||
@@ -605,12 +607,12 @@ onMounted(() => {
|
|||||||
<template #icon><FormOutlined /></template>
|
<template #icon><FormOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<a-tooltip>
|
<!-- <a-tooltip>
|
||||||
<template #title>{{ t('common.deleteText') }}</template>
|
<template #title>{{ t('common.deleteText') }}</template>
|
||||||
<a-button type="link" @click.prevent="fnRecordDelete(record)">
|
<a-button type="link" @click.prevent="fnRecordDelete(record)">
|
||||||
<template #icon><DeleteOutlined /></template>
|
<template #icon><DeleteOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip> -->
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -695,7 +697,6 @@ onMounted(() => {
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :lg="24" :md="24" :xs="24">
|
<a-col :lg="24" :md="24" :xs="24">
|
||||||
<a-form-item
|
<a-form-item
|
||||||
@@ -724,6 +725,7 @@ onMounted(() => {
|
|||||||
>
|
>
|
||||||
<a-input
|
<a-input
|
||||||
v-model:value="modalState.from.expression"
|
v-model:value="modalState.from.expression"
|
||||||
|
:disabled="modalState.from.id"
|
||||||
:maxlength="1024"
|
:maxlength="1024"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
allow-clear
|
allow-clear
|
||||||
@@ -780,7 +782,6 @@ onMounted(() => {
|
|||||||
},
|
},
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
|
|
||||||
</a-auto-complete>
|
</a-auto-complete>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|||||||
@@ -318,6 +318,8 @@ function fnGetListTitle() {
|
|||||||
var language = currentLocale.value.split('_')[0];
|
var language = currentLocale.value.split('_')[0];
|
||||||
if (language === 'zh') language = 'cn';
|
if (language === 'zh') language = 'cn';
|
||||||
|
|
||||||
|
if (!state.neType[0]) return false;
|
||||||
|
|
||||||
// 获取表头文字
|
// 获取表头文字
|
||||||
listCustom({ neType: state.neType[0], status: 'Active' })
|
listCustom({ neType: state.neType[0], status: 'Active' })
|
||||||
.then(res => {
|
.then(res => {
|
||||||
@@ -580,7 +582,7 @@ function fnRanderChartData() {
|
|||||||
}
|
}
|
||||||
chartDataXAxisData = Array.from(new Set(chartDataXAxisData));
|
chartDataXAxisData = Array.from(new Set(chartDataXAxisData));
|
||||||
|
|
||||||
///console.log(queryParams.sortOrder, chartDataXAxisData);
|
//console.log(queryParams.sortOrder, chartDataXAxisData);
|
||||||
//console.log(chartDataXAxisData, chartDataYSeriesData);
|
//console.log(chartDataXAxisData, chartDataYSeriesData);
|
||||||
|
|
||||||
// 绘制图数据
|
// 绘制图数据
|
||||||
@@ -724,6 +726,7 @@ onMounted(() => {
|
|||||||
res.data.forEach((item: any) => {
|
res.data.forEach((item: any) => {
|
||||||
typeArr.push(item.neType);
|
typeArr.push(item.neType);
|
||||||
});
|
});
|
||||||
|
typeArr = Array.from(new Set(typeArr));
|
||||||
neInfoStore.fnNelist().then(res => {
|
neInfoStore.fnNelist().then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
|
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
|
||||||
if (res.data.length > 0) {
|
if (res.data.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user