修复接口问题
This commit is contained in:
@@ -208,7 +208,7 @@ export async function getNePerformanceList() {
|
||||
*/
|
||||
export function taskRun(data: Record<string, any>) {
|
||||
return request({
|
||||
url: `/api/rest/performanceManagement/v1/elementType/${data.neType.toLowerCase()}/objectType/measureTask?ne_id=${JSON.parse(data.neIds)[0]}`,
|
||||
url: `/api/rest/performanceManagement/v1/elementType/${data.neType.toLowerCase()}/objectType/measureTask?id=${data.id}`,
|
||||
method: 'post',
|
||||
});
|
||||
}
|
||||
@@ -220,7 +220,7 @@ export function taskRun(data: Record<string, any>) {
|
||||
*/
|
||||
export function taskStop(data: Record<string, any>) {
|
||||
return request({
|
||||
url: `/api/rest/performanceManagement/v1/elementType/${data.neType.toLowerCase()}/objectType/measureTask?ne_id=${JSON.parse(data.neIds)[0]}`,
|
||||
url: `/api/rest/performanceManagement/v1/elementType/${data.neType.toLowerCase()}/objectType/measureTask?id=${data.id}`,
|
||||
method: 'PATCH',
|
||||
});
|
||||
}
|
||||
@@ -271,7 +271,7 @@ onMounted(() => {
|
||||
:data-source="tableState.data"
|
||||
:size="tableState.size"
|
||||
:pagination="tablePagination"
|
||||
:scroll="{ x: true }"
|
||||
:scroll="{ x: true,y:400 }"
|
||||
>
|
||||
</a-table>
|
||||
</a-card>
|
||||
|
||||
@@ -305,7 +305,7 @@ const modalStateFrom = Form.useForm(
|
||||
message: t('views.perfManage.taskManage.granulOptionPlease'),
|
||||
},
|
||||
],
|
||||
performanceArr: [
|
||||
kpiSet: [
|
||||
{
|
||||
required: true,
|
||||
message: t('views.perfManage.taskManage.performanceSelect'),
|
||||
@@ -603,6 +603,7 @@ function fnRecordRun(row: Record<string, any>) {
|
||||
key,
|
||||
duration: 2,
|
||||
});
|
||||
fnGetList();
|
||||
} else {
|
||||
message.error({
|
||||
content: `${res.msg}`,
|
||||
@@ -633,6 +634,7 @@ function fnRecordStop(row: Record<string, any>) {
|
||||
key,
|
||||
duration: 2,
|
||||
});
|
||||
fnGetList();
|
||||
} else {
|
||||
message.error({
|
||||
content: `${res.msg}`,
|
||||
@@ -825,7 +827,7 @@ onMounted(() => {
|
||||
type="link"
|
||||
@click.prevent="fnRecordDelete(record)"
|
||||
:disabled="record.status !== 'Inactive'"
|
||||
>
|
||||
>
|
||||
<template #icon><DeleteOutlined /></template>
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
@@ -1004,7 +1006,7 @@ onMounted(() => {
|
||||
:label="t('views.perfManage.taskManage.performanceList')"
|
||||
name="performanceArr"
|
||||
v-show="modalState.neType.length !== 0"
|
||||
v-bind="modalStateFrom.validateInfos.performanceArr"
|
||||
v-bind="modalStateFrom.validateInfos.kpiSet"
|
||||
>
|
||||
<a-select
|
||||
mode="multiple"
|
||||
|
||||
Reference in New Issue
Block a user