fix: 页面字段/接口调整
This commit is contained in:
@@ -106,6 +106,12 @@ let tableColumns: ColumnsType = [
|
||||
key: 'status',
|
||||
align: 'left',
|
||||
width: 100,
|
||||
customRender: ({ text }) => {
|
||||
if (text === '1') {
|
||||
return 'Active';
|
||||
}
|
||||
return 'Inactive';
|
||||
},
|
||||
},
|
||||
{
|
||||
title: t('common.operate'),
|
||||
@@ -190,13 +196,14 @@ function fnGetList(pageNum?: number) {
|
||||
queryParams.pageNum = pageNum;
|
||||
}
|
||||
listCustom(toRaw(queryParams)).then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
// 取消勾选
|
||||
if (tableState.selectedRowKeys.length > 0) {
|
||||
tableState.selectedRowKeys = [];
|
||||
}
|
||||
tablePagination.total = res.total;
|
||||
tableState.data = res.data;
|
||||
const { total, rows } = res.data;
|
||||
tablePagination.total = total;
|
||||
tableState.data = rows;
|
||||
|
||||
if (
|
||||
tablePagination.total <=
|
||||
@@ -247,7 +254,7 @@ let modalState: ModalStateType = reactive({
|
||||
neType: 'UDM',
|
||||
title: '',
|
||||
expression: '',
|
||||
status: 'Active',
|
||||
status: '1',
|
||||
unit: '',
|
||||
description: '',
|
||||
},
|
||||
@@ -316,7 +323,7 @@ function fnSelectPerformanceInit(value: any) {
|
||||
if (language === 'zh') language = 'cn';
|
||||
// 获取表头文字
|
||||
getKPITitle(value).then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
for (const item of res.data) {
|
||||
const kpiDisplay = item[`${language}Title`];
|
||||
const kpiValue = item[`kpiId`];
|
||||
@@ -622,12 +629,12 @@ onMounted(() => {
|
||||
:options="[
|
||||
{
|
||||
label: t('views.perfManage.customTarget.active'),
|
||||
value: 'Active',
|
||||
value: '1',
|
||||
tagType: 'success',
|
||||
},
|
||||
{
|
||||
label: t('views.perfManage.customTarget.inactive'),
|
||||
value: 'Inactive',
|
||||
value: '0',
|
||||
tagType: 'error',
|
||||
},
|
||||
]"
|
||||
@@ -685,11 +692,11 @@ onMounted(() => {
|
||||
:options="[
|
||||
{
|
||||
label: t('views.perfManage.customTarget.active'),
|
||||
value: 'Active',
|
||||
value: '1',
|
||||
},
|
||||
{
|
||||
label: t('views.perfManage.customTarget.inactive'),
|
||||
value: 'Inactive',
|
||||
value: '0',
|
||||
},
|
||||
]"
|
||||
:placeholder="t('common.selectPlease')"
|
||||
|
||||
Reference in New Issue
Block a user