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