diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts
index d5678efc..c1737b86 100644
--- a/src/i18n/locales/en-US.ts
+++ b/src/i18n/locales/en-US.ts
@@ -1069,6 +1069,7 @@ export default {
symbol:'Symbol',
element:'Element',
granularity:'Granularity',
+ unit:'Unit',
}
},
traceManage: {
diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts
index fe59d903..b235130f 100644
--- a/src/i18n/locales/zh-CN.ts
+++ b/src/i18n/locales/zh-CN.ts
@@ -1071,6 +1071,7 @@ export default {
symbol:"符号",
element:'元素',
granularity:'颗粒度',
+ unit:'单位',
}
},
traceManage: {
diff --git a/src/views/perfManage/customTarget/index.vue b/src/views/perfManage/customTarget/index.vue
index 21ec15dd..de384b03 100644
--- a/src/views/perfManage/customTarget/index.vue
+++ b/src/views/perfManage/customTarget/index.vue
@@ -290,13 +290,25 @@ const modalStateFrom = Form.useForm(
t('views.perfManage.customTarget.title') + t('common.unableNull'),
},
],
+ unit: [
+ {
+ required: true,
+ message:
+ t('views.perfManage.customTarget.unit') + t('common.unableNull'),
+ },
+ ],
})
);
/**性能测量数据集选择初始 value:neType*/
function fnSelectPerformanceInit(value: any) {
modalState.from.expression = '';
- modalState.neTypPerformance = [{value:'granularity',label:t('views.perfManage.customTarget.granularity')}];
+ modalState.neTypPerformance = [
+ {
+ value: 'granularity',
+ label: t('views.perfManage.customTarget.granularity'),
+ },
+ ];
// 当前语言
var language = currentLocale.value.split('_')[0];
if (language === 'zh') language = 'cn';
@@ -627,7 +639,10 @@ onMounted(() => {
-
+
{
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+