fix: 解决引入文件报错

develop2
donghao 7 months ago
parent 3c24c51993
commit dccd69ba04

@ -2,7 +2,7 @@
* @Author: zhoux zhouxia@supervision.ltd
* @Date: 2023-11-13 11:32:26
* @LastEditors: donghao donghao@supervision.ltd
* @LastEditTime: 2024-07-22 11:35:44
* @LastEditTime: 2024-07-23 09:33:01
* @FilePath: \general-ai-platform-web\config\defaultTable.ts
* @Description:
*/
@ -38,7 +38,7 @@ export const proTableDefaultOptions: Record<string, any> = {
locale: {
emptyText: (
<div className="h-full" style={{ padding: '10px 0' }}>
<Empty style={{ margin: '50px 0' }} image={emptyIcon} description="暂无数据~" />
<Empty style={{ margin: '20px 0' }} image={emptyIcon} description="暂无数据~" />
</div>
),
},

@ -648,7 +648,7 @@
.ant-empty .ant-empty-description {
color: #999;
}
:where(.css-dev-only-do-not-override-1okl62o).ant-table-wrapper .ant-table-tbody > tr > th,
:where(.css-dev-only-do-not-override-1okl62o).ant-table-wrapper .ant-table-tbody > tr > td {
.ant-table-wrapper .ant-table-tbody > tr > th,
.ant-table-wrapper .ant-table-tbody > tr > td {
border-bottom: 0;
}

@ -790,8 +790,7 @@
.ant-empty .ant-empty-description {
color: #999;
}
:where(.css-dev-only-do-not-override-1okl62o).ant-table-wrapper .ant-table-tbody > tr > th,
:where(.css-dev-only-do-not-override-1okl62o).ant-table-wrapper .ant-table-tbody > tr > td {
.ant-table-wrapper .ant-table-tbody > tr > th,
.ant-table-wrapper .ant-table-tbody > tr > td {
border-bottom: 0;
}

@ -0,0 +1,3 @@
.text_btn_box {
cursor: pointer;
}

@ -1,3 +1,4 @@
.text_btn_box {
// font-size: 12px;
cursor: pointer;
}

@ -107,7 +107,7 @@ const MenuBar: React.FC<MenuBarProps> = ({ menuData, changeMenu }) => {
<div className="flex flex-col items-center justify-between menubar_wrap">
<div>
<div
className="flex items-center pl-[12px] menu_top"
className="flex items-center pl-[12px] menu_top cursor-pointer"
onClick={() => {
history.replace('/');
}}

@ -33,13 +33,13 @@ const CreateDeviceForm: React.FC<CreateDeviceFormProps> = (props) => {
useEffect(() => {
if (props.createModalOpen) {
form.setFieldsValue({
name: 'video_2024_000',
addr: '江苏省南京市雨花台区新华汇B4栋',
// classification: null, // 设备分类的suid
device_model: '设备型号2024_001', // 设备型号
param: 'device_2024_05_24', // 设备参数
comment:
'测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注',
// name: 'video_2024_000',
// addr: '江苏省南京市雨花台区新华汇B4栋',
// // classification: null, // 设备分类的suid
// device_model: '设备型号2024_001', // 设备型号
// param: 'device_2024_05_24', // 设备参数
// comment:
// '测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注测试一下备注',
});
}
}, [props.createModalOpen]);

@ -2,7 +2,7 @@
* @Author: donghao donghao@supervision.ltd
* @Date: 2024-04-30 10:02:29
* @LastEditors: donghao donghao@supervision.ltd
* @LastEditTime: 2024-06-19 15:23:58
* @LastEditTime: 2024-07-23 09:30:33
* @FilePath: \general-ai-platform-web\src\pages\Business\DeviceGroup\components\modelDeploy.tsx
* @Description:
* @
@ -12,7 +12,6 @@
import { TextButton } from '@/components/Button';
import TableActionCard from '@/components/TableActionCard';
import { apiEntityNodesBusimodel, apiEntityNodesBusimodelInfo } from '@/services/business/entity';
import { isSuccessApi } from '@/utils/forApi';
import { ExclamationCircleFilled } from '@ant-design/icons';
import type { ActionType, ProColumns } from '@ant-design/pro-components';
@ -21,6 +20,7 @@ import { FormattedMessage } from '@umijs/max';
import { useRef, useState } from 'react';
import {
proTableCommonOptions,
proTableDefaultOptions,
proTablePaginationOptions,
} from '../../../../../config/defaultTable';
import ModelDeployConfig from './modelDeployConfig';

@ -2,7 +2,7 @@
* @Author: donghao donghao@supervision.ltd
* @Date: 2024-04-08 16:57:30
* @LastEditors: donghao donghao@supervision.ltd
* @LastEditTime: 2024-06-19 15:23:06
* @LastEditTime: 2024-07-23 09:29:54
* @FilePath: \general-ai-manage\src\pages\Project\BusinessProject\components\detailServerState.tsx
* @Description:
* @
@ -20,6 +20,7 @@ import { FormattedMessage, useIntl } from '@umijs/max';
import { Modal, message } from 'antd';
import { useEffect, useRef, useState } from 'react';
import { proFormSmallModelWidth } from '../../../../../config/defaultForm';
import { proTableDefaultOptions } from '../../../../../config/defaultTable';
type ModelDeployConfigProps = {
info: Record<string, any>;

@ -170,7 +170,7 @@ const BusinessInfo: React.FC = () => {
},
}}
pagination={
serverList.length
list.length
? {
...proTablePaginationOptions,
total: total,

Loading…
Cancel
Save