fix: 解决引入文件报错

develop2
donghao 11 months ago
parent 3c24c51993
commit dccd69ba04

@ -2,7 +2,7 @@
* @Author: zhoux zhouxia@supervision.ltd * @Author: zhoux zhouxia@supervision.ltd
* @Date: 2023-11-13 11:32:26 * @Date: 2023-11-13 11:32:26
* @LastEditors: donghao donghao@supervision.ltd * @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 * @FilePath: \general-ai-platform-web\config\defaultTable.ts
* @Description: * @Description:
*/ */
@ -38,7 +38,7 @@ export const proTableDefaultOptions: Record<string, any> = {
locale: { locale: {
emptyText: ( emptyText: (
<div className="h-full" style={{ padding: '10px 0' }}> <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> </div>
), ),
}, },

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

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

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

@ -1,3 +1,4 @@
.text_btn_box { .text_btn_box {
// font-size: 12px; // 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 className="flex flex-col items-center justify-between menubar_wrap">
<div> <div>
<div <div
className="flex items-center pl-[12px] menu_top" className="flex items-center pl-[12px] menu_top cursor-pointer"
onClick={() => { onClick={() => {
history.replace('/'); history.replace('/');
}} }}

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

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

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

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

Loading…
Cancel
Save