From 5b410d9ed6ffb7cefab3fc497e8f900160204b79 Mon Sep 17 00:00:00 2001
From: linqiqi077 <865530219@qq.com>
Date: Thu, 28 Dec 2023 10:19:58 +0800
Subject: [PATCH] fix: fix data-handle-detail img and replace create model-app
validatorName api
---
.../assets/img/data-handle-detail.png | Bin
src/pages/DataHandleDetail/index.tsx | 4 +++-
src/pages/ModelAppList/index.jsx | 12 ++++--------
3 files changed, 7 insertions(+), 9 deletions(-)
rename "public/\346\225\260\346\215\256\345\244\204\347\220\206\350\257\246\346\203\205.png" => src/assets/img/data-handle-detail.png (100%)
diff --git "a/public/\346\225\260\346\215\256\345\244\204\347\220\206\350\257\246\346\203\205.png" b/src/assets/img/data-handle-detail.png
similarity index 100%
rename from "public/\346\225\260\346\215\256\345\244\204\347\220\206\350\257\246\346\203\205.png"
rename to src/assets/img/data-handle-detail.png
diff --git a/src/pages/DataHandleDetail/index.tsx b/src/pages/DataHandleDetail/index.tsx
index 3009ccb..4e7108f 100644
--- a/src/pages/DataHandleDetail/index.tsx
+++ b/src/pages/DataHandleDetail/index.tsx
@@ -4,6 +4,8 @@ import type { TabsProps } from 'antd';
import { Avatar, Divider, List, Spin, Tabs, notification } from 'antd';
import React, { useEffect, useState } from 'react';
+import detail from '@/assets/img/data-handle-detail.png';
+
import Status from '../../components/Status';
import utils from '../../utils/__utils';
import DataHandle from './DataHandle';
@@ -109,7 +111,7 @@ const DataHandleDetail = props => {
// actions={[]}
>
}
+ avatar={}
description={
<>
diff --git a/src/pages/ModelAppList/index.jsx b/src/pages/ModelAppList/index.jsx
index 711f122..45de426 100644
--- a/src/pages/ModelAppList/index.jsx
+++ b/src/pages/ModelAppList/index.jsx
@@ -502,15 +502,11 @@ class ModelAppList$$Page extends React.Component {
async validatorName(v) {
if (v) {
try {
- const res = await this.utils.bff.listApplications({
- input: {
- keyword: v,
- namespace: this.utils.getAuthData()?.project,
- page: 1,
- pageSize: 10,
- },
+ const res = await this.utils.bff.getApplication({
+ name: v,
+ namespace: this.utils.getAuthData()?.project,
});
- if (res?.Application?.listApplicationMetadata?.nodes?.length) {
+ if (res?.Application?.getApplication?.metadata?.name) {
return '应用名称重复';
}
} catch (error) {}