CheckInfo.tsx 22.4 KB
Newer Older
R
Rongfeng Fu 已提交
1
import { intl } from '@/utils/intl';
R
Rongfeng Fu 已提交
2 3 4 5 6 7 8 9
import { useState } from 'react';
import { useModel } from 'umi';
import { Space, Button, Table, Row, Col, Alert, Tooltip } from 'antd';
import { ProCard } from '@ant-design/pro-components';
import type { ColumnsType } from 'antd/es/table';
import { EyeOutlined, EyeInvisibleOutlined } from '@ant-design/icons';
import useRequest from '@/utils/useRequest';
import { createDeploymentConfig } from '@/services/ob-deploy-web/Deployments';
R
Rongfeng Fu 已提交
10
import { handleQuit, getErrorInfo } from '@/utils';
R
Rongfeng Fu 已提交
11
import {
R
Rongfeng Fu 已提交
12
  componentsConfig,
R
Rongfeng Fu 已提交
13 14 15 16 17
  allComponentsKeys,
  onlyComponentsKeys,
  modeConfig,
  obproxyComponent,
} from '../constants';
R
Rongfeng Fu 已提交
18 19 20 21 22 23
import { getLocale } from 'umi';
import EnStyles from './indexEn.less';
import ZhStyles from './indexZh.less';

const locale = getLocale();
const styles = locale === 'zh-CN' ? ZhStyles : EnStyles;
R
Rongfeng Fu 已提交
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
interface ComponentsNodeConfig {
  name: string;
  servers: string[];
  key: string;
  isTooltip: boolean;
}

export default function CheckInfo() {
  const {
    configData,
    currentType,
    setCheckOK,
    lowVersion,
    setCurrentStep,
    handleQuitProgress,
R
Rongfeng Fu 已提交
39 40 41
    setErrorVisible,
    setErrorsList,
    errorsList,
R
Rongfeng Fu 已提交
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
  } = useModel('global');
  const { components = {}, auth, home_path } = configData || {};
  const {
    oceanbase = {},
    obproxy = {},
    ocpexpress = {},
    obagent = {},
  } = components;
  const [showPwd, setShowPwd] = useState(false);

  const { run: handleCreateConfig, loading } = useRequest(
    createDeploymentConfig,
    {
      onSuccess: ({ success }: API.OBResponse) => {
        if (success) {
          setCheckOK(true);
        }
      },
R
Rongfeng Fu 已提交
60 61 62 63 64
      onError: (e: any) => {
        const errorInfo = getErrorInfo(e);
        setErrorVisible(true);
        setErrorsList([...errorsList, errorInfo]);
      },
R
Rongfeng Fu 已提交
65 66 67 68 69
    },
  );

  const prevStep = () => {
    setCurrentStep(3);
R
Rongfeng Fu 已提交
70
    window.scrollTo(0, 0);
R
Rongfeng Fu 已提交
71 72 73 74 75 76 77 78 79 80
  };

  const handlePreCheck = () => {
    handleCreateConfig({ name: oceanbase?.appname }, { ...configData });
  };

  const getComponentsList = () => {
    const componentsList: API.TableComponentInfo[] = [];
    allComponentsKeys.forEach((key) => {
      if (components?.[key]) {
R
Rongfeng Fu 已提交
81
        const componentConfig = componentsConfig?.[key] || {};
R
Rongfeng Fu 已提交
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
        componentsList.push({
          ...componentConfig,
          version: components?.[key].version,
          key,
        });
      }
    });
    return componentsList;
  };

  const getComponentsNodeConfigList = () => {
    const componentsNodeConfigList: ComponentsNodeConfig[] = [];
    let currentOnlyComponentsKeys = onlyComponentsKeys.filter(
      (key) => key !== 'obagent',
    );
R
Rongfeng Fu 已提交
97

R
Rongfeng Fu 已提交
98 99 100 101 102
    if (lowVersion) {
      currentOnlyComponentsKeys = currentOnlyComponentsKeys.filter(
        (key) => key !== 'ocpexpress',
      );
    }
R
Rongfeng Fu 已提交
103

R
Rongfeng Fu 已提交
104
    currentOnlyComponentsKeys.forEach((key) => {
R
Rongfeng Fu 已提交
105
      if (componentsConfig?.[key]) {
R
Rongfeng Fu 已提交
106 107
        componentsNodeConfigList.push({
          key,
R
Rongfeng Fu 已提交
108
          name: componentsConfig?.[key]?.name,
R
Rongfeng Fu 已提交
109 110 111 112 113 114 115 116 117 118
          servers: components?.[key]?.servers?.join(''),
          isTooltip: key === obproxyComponent,
        });
      }
    });
    return componentsNodeConfigList;
  };

  const dbConfigColumns: ColumnsType<API.DBConfig> = [
    {
R
Rongfeng Fu 已提交
119 120 121 122
      title: intl.formatMessage({
        id: 'OBD.pages.components.CheckInfo.ZoneName',
        defaultMessage: 'Zone 名称',
      }),
R
Rongfeng Fu 已提交
123 124 125 126 127
      dataIndex: 'name',
      width: 200,
      render: (text) => text || '-',
    },
    {
R
Rongfeng Fu 已提交
128 129 130 131
      title: intl.formatMessage({
        id: 'OBD.pages.components.CheckInfo.ObServerNodes',
        defaultMessage: 'OB Server 节点',
      }),
R
Rongfeng Fu 已提交
132 133 134 135 136 137 138 139 140 141 142 143
      dataIndex: 'servers',
      render: (text) => {
        const serversIps = text.map((item: API.OceanbaseServers) => item.ip);
        const str = serversIps.join('');
        return (
          <Tooltip title={str} placement="topLeft">
            <div className="ellipsis">{str}</div>
          </Tooltip>
        );
      },
    },
    {
R
Rongfeng Fu 已提交
144 145 146 147
      title: intl.formatMessage({
        id: 'OBD.pages.components.CheckInfo.RootServerNodes',
        defaultMessage: 'Root Server 节点',
      }),
R
Rongfeng Fu 已提交
148 149 150 151 152 153 154 155 156
      dataIndex: 'rootservice',
      width: 200,
      render: (text) => text || '-',
    },
  ];

  const getMoreColumns = (label: string) => {
    const columns: ColumnsType<API.MoreParameter> = [
      {
R
Rongfeng Fu 已提交
157
        title: label,
R
Rongfeng Fu 已提交
158 159 160 161
        dataIndex: 'key',
        render: (text) => text,
      },
      {
R
Rongfeng Fu 已提交
162 163 164 165
        title: intl.formatMessage({
          id: 'OBD.pages.components.CheckInfo.ParameterValue',
          defaultMessage: '参数值',
        }),
R
Rongfeng Fu 已提交
166
        dataIndex: 'value',
R
Rongfeng Fu 已提交
167 168 169 170 171 172 173
        render: (text, record) =>
          record.adaptive
            ? intl.formatMessage({
                id: 'OBD.pages.components.CheckInfo.Adaptive',
                defaultMessage: '自动分配',
              })
            : text || '-',
R
Rongfeng Fu 已提交
174 175
      },
      {
R
Rongfeng Fu 已提交
176 177 178 179
        title: intl.formatMessage({
          id: 'OBD.pages.components.CheckInfo.Introduction',
          defaultMessage: '介绍',
        }),
R
Rongfeng Fu 已提交
180 181 182 183 184 185 186 187
        dataIndex: 'description',
        render: (text) => (
          <Tooltip title={text} placement="topLeft">
            <div className="ellipsis">{text}</div>
          </Tooltip>
        ),
      },
    ];
R
Rongfeng Fu 已提交
188

R
Rongfeng Fu 已提交
189 190 191 192 193 194 195 196 197
    return columns;
  };

  const componentsList = getComponentsList();
  const componentsNodeConfigList = getComponentsNodeConfigList();
  const initDir = `${home_path}/oceanbase/store`;
  const clusterConfigInfo = [
    {
      key: 'cluster',
R
Rongfeng Fu 已提交
198 199 200 201
      group: intl.formatMessage({
        id: 'OBD.pages.components.CheckInfo.ClusterConfiguration',
        defaultMessage: '集群配置',
      }),
R
Rongfeng Fu 已提交
202 203
      content: [
        {
R
Rongfeng Fu 已提交
204 205 206 207 208 209 210 211 212 213 214 215 216
          label: intl.formatMessage({
            id: 'OBD.pages.components.CheckInfo.ConfigurationMode',
            defaultMessage: '配置模式',
          }),
          colSpan: 5,
          value: modeConfig[oceanbase?.mode],
        },
        {
          label: intl.formatMessage({
            id: 'OBD.pages.components.CheckInfo.RootSysPassword',
            defaultMessage: 'root@sys 密码',
          }),
          colSpan: 5,
R
Rongfeng Fu 已提交
217 218 219 220 221 222 223
          value: (
            <Tooltip title={oceanbase?.root_password} placement="topLeft">
              <div className="ellipsis">{oceanbase?.root_password}</div>
            </Tooltip>
          ),
        },
        {
R
Rongfeng Fu 已提交
224 225 226 227
          label: intl.formatMessage({
            id: 'OBD.pages.components.CheckInfo.DataDirectory',
            defaultMessage: '数据目录',
          }),
R
Rongfeng Fu 已提交
228 229 230 231 232 233 234
          value: (
            <Tooltip title={oceanbase?.data_dir || initDir} placement="topLeft">
              <div className="ellipsis">{oceanbase?.data_dir || initDir}</div>
            </Tooltip>
          ),
        },
        {
R
Rongfeng Fu 已提交
235 236 237 238
          label: intl.formatMessage({
            id: 'OBD.pages.components.CheckInfo.LogDirectory',
            defaultMessage: '日志目录',
          }),
R
Rongfeng Fu 已提交
239 240 241 242 243 244
          value: (
            <Tooltip title={oceanbase?.redo_dir || initDir} placement="topLeft">
              <div className="ellipsis">{oceanbase?.redo_dir || initDir}</div>
            </Tooltip>
          ),
        },
R
Rongfeng Fu 已提交
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260
        {
          label: intl.formatMessage({
            id: 'OBD.pages.components.CheckInfo.SqlPort',
            defaultMessage: 'SQL 端口',
          }),
          colSpan: 3,
          value: oceanbase?.mysql_port,
        },
        {
          label: intl.formatMessage({
            id: 'OBD.pages.components.CheckInfo.RpcPort',
            defaultMessage: 'RPC 端口',
          }),
          colSpan: 3,
          value: oceanbase?.rpc_port,
        },
R
Rongfeng Fu 已提交
261
      ],
R
Rongfeng Fu 已提交
262

R
Rongfeng Fu 已提交
263 264 265
      more: oceanbase?.parameters?.length
        ? [
            {
R
Rongfeng Fu 已提交
266
              label: componentsConfig['oceanbase'].labelName,
R
Rongfeng Fu 已提交
267 268 269 270 271 272 273 274 275 276
              parameters: oceanbase?.parameters,
            },
          ]
        : [],
    },
  ];

  if (currentType === 'all') {
    const content = [
      {
R
Rongfeng Fu 已提交
277 278 279 280 281 282 283 284 285 286 287
        label: intl.formatMessage({
          id: 'OBD.pages.components.CheckInfo.ObproxyServicePort',
          defaultMessage: 'OBProxy 服务端口',
        }),
        value: obproxy?.listen_port,
      },
      {
        label: intl.formatMessage({
          id: 'OBD.pages.components.CheckInfo.PortObproxyExporter',
          defaultMessage: 'OBProxy Exporter 端口',
        }),
R
Rongfeng Fu 已提交
288 289
        value: obproxy?.prometheus_listen_port,
      },
R
Rongfeng Fu 已提交
290 291 292 293 294 295 296 297 298 299 300 301 302 303
      {
        label: intl.formatMessage({
          id: 'OBD.pages.components.CheckInfo.ObagentMonitoringServicePort',
          defaultMessage: 'OBAgent 监控服务端口',
        }),
        value: obagent?.monagent_http_port,
      },
      {
        label: intl.formatMessage({
          id: 'OBD.pages.components.CheckInfo.ObagentManageServicePorts',
          defaultMessage: 'OBAgent 管理服务端口',
        }),
        value: obagent?.mgragent_http_port,
      },
R
Rongfeng Fu 已提交
304 305 306
    ];

    if (!lowVersion) {
R
Rongfeng Fu 已提交
307 308 309 310 311 312 313
      content.push({
        label: intl.formatMessage({
          id: 'OBD.pages.components.CheckInfo.PortOcpExpress',
          defaultMessage: 'OCP Express 端口',
        }),
        value: ocpexpress?.port,
      });
R
Rongfeng Fu 已提交
314 315 316 317 318 319
    }

    let more: any = [];
    if (obproxy?.parameters?.length) {
      more = [
        {
R
Rongfeng Fu 已提交
320
          label: componentsConfig['obproxy'].labelName,
R
Rongfeng Fu 已提交
321 322 323
          parameters: obproxy?.parameters,
        },
        {
R
Rongfeng Fu 已提交
324
          label: componentsConfig['obagent'].labelName,
R
Rongfeng Fu 已提交
325 326 327
          parameters: obagent?.parameters,
        },
      ];
R
Rongfeng Fu 已提交
328

R
Rongfeng Fu 已提交
329 330
      if (!lowVersion) {
        more.push({
R
Rongfeng Fu 已提交
331
          label: componentsConfig['ocpexpress'].labelName,
R
Rongfeng Fu 已提交
332 333 334 335 336 337
          parameters: ocpexpress?.parameters,
        });
      }
    }
    clusterConfigInfo.push({
      key: 'components',
R
Rongfeng Fu 已提交
338 339 340 341
      group: intl.formatMessage({
        id: 'OBD.pages.components.CheckInfo.ComponentConfiguration',
        defaultMessage: '组件配置',
      }),
R
Rongfeng Fu 已提交
342 343 344 345 346 347 348 349 350 351 352 353
      content,
      more,
    });
  }

  return (
    <Space
      className={`${styles.spaceWidth} ${styles.checkInfoSpace}`}
      direction="vertical"
      size="middle"
    >
      <Alert
R
Rongfeng Fu 已提交
354 355 356 357 358
        message={intl.formatMessage({
          id: 'OBD.pages.components.CheckInfo.OceanbaseTheInstallationInformationConfiguration',
          defaultMessage:
            'OceanBase 安装信息配置已完成,请检查并确认以下配置信息,确定后开始预检查。',
        })}
R
Rongfeng Fu 已提交
359 360 361
        type="info"
        showIcon
      />
R
Rongfeng Fu 已提交
362

R
Rongfeng Fu 已提交
363 364
      <ProCard className={styles.pageCard} split="horizontal">
        <Row gutter={16}>
R
Rongfeng Fu 已提交
365 366 367 368 369 370 371
          <ProCard
            title={intl.formatMessage({
              id: 'OBD.pages.components.CheckInfo.DeploymentConfiguration',
              defaultMessage: '部署配置',
            })}
            className="card-padding-bottom-24"
          >
R
Rongfeng Fu 已提交
372 373
            <Col span={12}>
              <ProCard className={styles.infoSubCard} split="vertical">
R
Rongfeng Fu 已提交
374 375 376 377 378 379 380
                <ProCard
                  colSpan={10}
                  title={intl.formatMessage({
                    id: 'OBD.pages.components.CheckInfo.DeploymentClusterName',
                    defaultMessage: '部署集群名称',
                  })}
                >
R
Rongfeng Fu 已提交
381 382
                  {oceanbase?.appname}
                </ProCard>
R
Rongfeng Fu 已提交
383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398
                <ProCard
                  colSpan={14}
                  title={intl.formatMessage({
                    id: 'OBD.pages.components.CheckInfo.DeploymentType',
                    defaultMessage: '部署类型',
                  })}
                >
                  {currentType === 'all'
                    ? intl.formatMessage({
                        id: 'OBD.pages.components.CheckInfo.FullyDeployed',
                        defaultMessage: '完全部署',
                      })
                    : intl.formatMessage({
                        id: 'OBD.pages.components.CheckInfo.ThinDeployment',
                        defaultMessage: '精简部署',
                      })}
R
Rongfeng Fu 已提交
399 400 401 402 403
                </ProCard>
              </ProCard>
            </Col>
          </ProCard>
          <ProCard
R
Rongfeng Fu 已提交
404 405 406 407
            title={intl.formatMessage({
              id: 'OBD.pages.components.CheckInfo.DeployComponents',
              defaultMessage: '部署组件',
            })}
R
Rongfeng Fu 已提交
408 409 410 411 412 413 414 415 416 417 418 419 420 421 422
            className="card-header-padding-top-0 card-padding-bottom-24 "
          >
            <Row gutter={16}>
              {componentsList.map(
                (item: API.TableComponentInfo, index: number) => (
                  <Col
                    span={12}
                    style={index > 1 ? { marginTop: 16 } : {}}
                    key={item.key}
                  >
                    <ProCard
                      className={styles.infoSubCard}
                      split="vertical"
                      key={item.key}
                    >
R
Rongfeng Fu 已提交
423 424 425 426 427 428 429
                      <ProCard
                        colSpan={10}
                        title={intl.formatMessage({
                          id: 'OBD.pages.components.CheckInfo.Component',
                          defaultMessage: '组件',
                        })}
                      >
R
Rongfeng Fu 已提交
430 431
                        {item?.showComponentName}
                      </ProCard>
R
Rongfeng Fu 已提交
432 433 434 435 436 437 438 439
                      <ProCard
                        colSpan={7}
                        title={intl.formatMessage({
                          id: 'OBD.pages.components.CheckInfo.Type',
                          defaultMessage: '类型',
                        })}
                      >
                        {componentsConfig[item.key]?.type}
R
Rongfeng Fu 已提交
440
                      </ProCard>
R
Rongfeng Fu 已提交
441 442 443 444 445 446 447
                      <ProCard
                        colSpan={7}
                        title={intl.formatMessage({
                          id: 'OBD.pages.components.CheckInfo.Version',
                          defaultMessage: '版本',
                        })}
                      >
R
Rongfeng Fu 已提交
448 449 450 451 452 453 454 455 456 457 458 459
                        {item?.version}
                      </ProCard>
                    </ProCard>
                  </Col>
                ),
              )}
            </Row>
          </ProCard>
        </Row>
      </ProCard>
      <ProCard className={styles.pageCard} split="horizontal">
        <Row gutter={16}>
R
Rongfeng Fu 已提交
460 461 462 463 464 465 466
          <ProCard
            title={intl.formatMessage({
              id: 'OBD.pages.components.CheckInfo.DatabaseNodeConfiguration',
              defaultMessage: '数据库节点配置',
            })}
            className="card-padding-bottom-24"
          >
R
Rongfeng Fu 已提交
467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483
            <ProCard
              className={styles.infoSubCard}
              style={{ border: '1px solid #e2e8f3' }}
              split="vertical"
            >
              <Table
                className={`${styles.infoCheckTable}  ob-table`}
                columns={dbConfigColumns}
                dataSource={oceanbase?.topology}
                rowKey="id"
                scroll={{ y: 300 }}
                pagination={false}
              />
            </ProCard>
          </ProCard>
          {currentType === 'all' ? (
            <ProCard
R
Rongfeng Fu 已提交
484 485 486 487
              title={intl.formatMessage({
                id: 'OBD.pages.components.CheckInfo.ComponentNodeConfiguration',
                defaultMessage: '组件节点配置',
              })}
R
Rongfeng Fu 已提交
488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509
              className="card-header-padding-top-0 card-padding-bottom-24"
            >
              <Col span={componentsNodeConfigList?.length === 1 ? 12 : 24}>
                <ProCard className={styles.infoSubCard} split="vertical">
                  {componentsNodeConfigList.map(
                    (item: ComponentsNodeConfig) => (
                      <ProCard title={item.name} key={item.key}>
                        {item.isTooltip ? (
                          <Tooltip title={item?.servers} placement="topLeft">
                            <div className="ellipsis">{item?.servers}</div>
                          </Tooltip>
                        ) : (
                          item?.servers
                        )}
                      </ProCard>
                    ),
                  )}
                </ProCard>
              </Col>
            </ProCard>
          ) : null}
          <ProCard
R
Rongfeng Fu 已提交
510 511 512 513
            title={intl.formatMessage({
              id: 'OBD.pages.components.CheckInfo.DeployUserConfiguration',
              defaultMessage: '部署用户配置',
            })}
R
Rongfeng Fu 已提交
514 515 516 517
            className="card-header-padding-top-0 card-padding-bottom-24"
          >
            <Col span={12}>
              <ProCard className={styles.infoSubCard} split="vertical">
R
Rongfeng Fu 已提交
518 519 520 521 522 523 524 525 526 527 528 529 530 531
                <ProCard
                  title={intl.formatMessage({
                    id: 'OBD.pages.components.CheckInfo.Username',
                    defaultMessage: '用户名',
                  })}
                >
                  {auth?.user}
                </ProCard>
                <ProCard
                  title={intl.formatMessage({
                    id: 'OBD.pages.components.CheckInfo.Password',
                    defaultMessage: '密码',
                  })}
                >
R
Rongfeng Fu 已提交
532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566
                  {auth?.password ? (
                    <div style={{ position: 'relative' }}>
                      {showPwd ? (
                        <div>
                          <Tooltip title={auth?.password} placement="topLeft">
                            <div
                              className="ellipsis"
                              style={{ width: 'calc(100% - 20px)' }}
                            >
                              {auth?.password}
                            </div>
                          </Tooltip>
                          <EyeOutlined
                            className={styles.pwdIcon}
                            onClick={() => setShowPwd(false)}
                          />
                        </div>
                      ) : (
                        <div>
                          ******
                          <EyeInvisibleOutlined
                            className={styles.pwdIcon}
                            onClick={() => setShowPwd(true)}
                          />
                        </div>
                      )}
                    </div>
                  ) : (
                    '-'
                  )}
                </ProCard>
              </ProCard>
            </Col>
          </ProCard>
          <ProCard
R
Rongfeng Fu 已提交
567 568 569 570
            title={intl.formatMessage({
              id: 'OBD.pages.components.CheckInfo.SoftwarePathConfiguration',
              defaultMessage: '软件路径配置',
            })}
R
Rongfeng Fu 已提交
571 572 573 574
            className="card-header-padding-top-0 card-padding-bottom-24"
          >
            <Col span={12}>
              <ProCard className={styles.infoSubCard} split="vertical">
R
Rongfeng Fu 已提交
575 576 577 578 579 580
                <ProCard
                  title={intl.formatMessage({
                    id: 'OBD.pages.components.CheckInfo.SoftwarePath',
                    defaultMessage: '软件路径',
                  })}
                >
R
Rongfeng Fu 已提交
581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604
                  <Tooltip title={home_path} placement="topLeft">
                    {home_path}
                  </Tooltip>
                </ProCard>
              </ProCard>
            </Col>
          </ProCard>
        </Row>
      </ProCard>
      <ProCard split="horizontal">
        <Row gutter={16}>
          {clusterConfigInfo?.map((item, index) => (
            <ProCard
              title={item.group}
              key={item.key}
              className={`${
                index === clusterConfigInfo?.length - 1
                  ? 'card-header-padding-top-0 card-padding-bottom-24'
                  : 'card-padding-bottom-24'
              }`}
            >
              <Col span={24}>
                <ProCard className={styles.infoSubCard} split="vertical">
                  {item.content.map((subItem) => (
R
Rongfeng Fu 已提交
605 606 607 608 609
                    <ProCard
                      title={subItem.label}
                      key={subItem.label}
                      colSpan={subItem.colSpan}
                    >
R
Rongfeng Fu 已提交
610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649
                      {subItem.value}
                    </ProCard>
                  ))}
                </ProCard>
              </Col>
              <Space
                direction="vertical"
                size="middle"
                style={{ marginTop: 16 }}
              >
                {item?.more?.length
                  ? item?.more.map((moreItem) => (
                      <ProCard
                        className={styles.infoSubCard}
                        style={{ border: '1px solid #e2e8f3' }}
                        split="vertical"
                        key={moreItem.label}
                      >
                        <Table
                          className={`${styles.infoCheckTable}  ob-table`}
                          columns={getMoreColumns(moreItem.label)}
                          dataSource={moreItem?.parameters}
                          pagination={false}
                          scroll={{ y: 300 }}
                          rowKey="key"
                        />
                      </ProCard>
                    ))
                  : null}
              </Space>
            </ProCard>
          ))}
        </Row>
      </ProCard>
      <footer className={styles.pageFooterContainer}>
        <div className={styles.pageFooter}>
          <Space className={styles.foolterAction}>
            <Button
              onClick={() => handleQuit(handleQuitProgress, setCurrentStep)}
              data-aspm-click="c307504.d317275"
R
Rongfeng Fu 已提交
650 651 652 653
              data-aspm-desc={intl.formatMessage({
                id: 'OBD.pages.components.CheckInfo.PreCheckExit',
                defaultMessage: '预检查-退出',
              })}
R
Rongfeng Fu 已提交
654 655 656
              data-aspm-param={``}
              data-aspm-expo
            >
R
Rongfeng Fu 已提交
657 658 659 660
              {intl.formatMessage({
                id: 'OBD.pages.components.CheckInfo.Exit',
                defaultMessage: '退出',
              })}
R
Rongfeng Fu 已提交
661 662 663 664
            </Button>
            <Button
              onClick={prevStep}
              data-aspm-click="c307504.d317274"
R
Rongfeng Fu 已提交
665 666 667 668
              data-aspm-desc={intl.formatMessage({
                id: 'OBD.pages.components.CheckInfo.PreCheckPreviousStep',
                defaultMessage: '预检查-上一步',
              })}
R
Rongfeng Fu 已提交
669 670 671
              data-aspm-param={``}
              data-aspm-expo
            >
R
Rongfeng Fu 已提交
672 673 674 675
              {intl.formatMessage({
                id: 'OBD.pages.components.CheckInfo.PreviousStep',
                defaultMessage: '上一步',
              })}
R
Rongfeng Fu 已提交
676 677 678 679 680 681
            </Button>
            <Button
              type="primary"
              onClick={handlePreCheck}
              loading={loading}
              data-aspm-click="c307504.d317273"
R
Rongfeng Fu 已提交
682 683 684 685
              data-aspm-desc={intl.formatMessage({
                id: 'OBD.pages.components.CheckInfo.PreCheck',
                defaultMessage: '预检查-预检查',
              })}
R
Rongfeng Fu 已提交
686 687 688
              data-aspm-param={``}
              data-aspm-expo
            >
R
Rongfeng Fu 已提交
689 690 691 692
              {intl.formatMessage({
                id: 'OBD.pages.components.CheckInfo.PreCheck.1',
                defaultMessage: '预检查',
              })}
R
Rongfeng Fu 已提交
693 694 695 696 697 698 699
            </Button>
          </Space>
        </div>
      </footer>
    </Space>
  );
}