样式优化整合

This commit is contained in:
lix
2025-07-04 10:03:42 +08:00
parent e98ca8d9eb
commit 736f004b6b
194 changed files with 634 additions and 534 deletions

View File

@ -9,6 +9,7 @@ import '@/assets/xsy_style.less'
import { getDefId, getSessionProjectData } from '@/utils/session';
import FileDown from '@/utils/Download';
import { btnAuthority } from '@/utils/authority';
import tableProps from '@/utils/tableProps';
//新增、保存
const save = async (fields: any) => {
@ -1623,7 +1624,7 @@ const Detailed: React.FC<{}> = () => {
options={false}
search={false}
tableAlertRender={false}
pagination={{ defaultPageSize: 10, showSizeChanger: false, }}//默认显示条数
{...tableProps}
/>
</>
)
@ -1664,7 +1665,7 @@ const Detailed: React.FC<{}> = () => {
options={false}
search={false}
tableAlertRender={false}
pagination={{ defaultPageSize: 10, showSizeChanger: false, }}//默认显示条数
{...tableProps}
/>
</>
)
@ -1705,7 +1706,7 @@ const Detailed: React.FC<{}> = () => {
options={false}
search={false}
tableAlertRender={false}
pagination={{ defaultPageSize: 10, showSizeChanger: false, }}//默认显示条数
{...tableProps}
/>
</>
)
@ -2306,8 +2307,7 @@ const Detailed: React.FC<{}> = () => {
})
}
pagination={{
defaultPageSize: 10,
showSizeChanger: false,
...tableProps.pagination,
onChange: (page, pageSize) => {
let data = pageTemData;
data.pageNo = page;
@ -2357,7 +2357,7 @@ const Detailed: React.FC<{}> = () => {
};
return result;
})}
pagination={{ defaultPageSize: 10 }}//默认显示条数
{...tableProps}
/>
</Modal>
<Modal

View File

@ -1,5 +1,6 @@
import { getProMethod } from "@/utils/session";
import ProTable, { ActionType, ProColumns } from "@ant-design/pro-table";
import tableProps from '@/utils/tableProps';
import { Button, Modal, Spin, Tree } from "antd";
import React, { useEffect, useRef, useState } from "react";
import { unique1 } from "./commonFunc";
@ -215,7 +216,7 @@ const FileTree: React.FC<FileTreeType> = (props) => {
};
return result;
})}
pagination={{ defaultPageSize: 10, showSizeChanger: false, }}//默认显示条数
{...tableProps}
/>
</Modal>
</>

View File

@ -7,6 +7,7 @@ import { getURLInformation } from '@/utils/CommonUtils'
import '@/assets/xsy_style.less'
import FileDown from '@/utils/Download';
import { btnAuthority } from '@/utils/authority';
import tableProps from '@/utils/tableProps';
//保存模板
const saveT = async (fields: any) => {
@ -946,7 +947,7 @@ const First: React.FC<{}> = () => {
options={false}
search={false}
tableAlertRender={false}
pagination={{ defaultPageSize: 10, showSizeChanger: false, }}//默认显示条数
{...tableProps}
/>
</>
@ -984,7 +985,7 @@ const First: React.FC<{}> = () => {
options={false}
search={false}
tableAlertRender={false}
pagination={{ defaultPageSize: 10, showSizeChanger: false, }}//默认显示条数
{...tableProps}
/>
</>
)
@ -1021,7 +1022,7 @@ const First: React.FC<{}> = () => {
options={false}
search={false}
tableAlertRender={false}
pagination={{ defaultPageSize: 10, showSizeChanger: false, }}//默认显示条数
{...tableProps}
/>
</>
)
@ -1058,7 +1059,7 @@ const First: React.FC<{}> = () => {
options={false}
search={false}
tableAlertRender={false}
pagination={{ defaultPageSize: 10, showSizeChanger: false, }}//默认显示条数
{...tableProps}
/>
</>
)
@ -1464,7 +1465,7 @@ const First: React.FC<{}> = () => {
};
return result;
})}
pagination={{ defaultPageSize: 10, showSizeChanger: false, }}//默认显示条数
{...tableProps}
/>
</Modal>
<Modal
@ -1535,8 +1536,7 @@ const First: React.FC<{}> = () => {
})
}
pagination={{
defaultPageSize: 10,
showSizeChanger: false,
...tableProps.pagination,
onChange: (page, pageSize) => {
let data = pageTemData;
data.pageNo = page;

View File

@ -2,6 +2,7 @@ import { btnAuthority } from "@/utils/authority";
import FileDown from "@/utils/Download";
import { UploadOutlined } from "@ant-design/icons";
import ProTable, { ActionType, ProColumns } from "@ant-design/pro-table";
import tableProps from '@/utils/tableProps';
import { Button, Col, Dropdown, Form, Input, Menu, message, Modal, Row, Spin, Upload } from "antd";
import React, { useRef, useState } from "react";
import { getTemPage, saveT, useT } from "./service";
@ -246,8 +247,7 @@ const TempleteBtns: React.FC<TemType> = (props) => {
})
}
pagination={{
defaultPageSize: 10,
showSizeChanger: false,
...tableProps.pagination,
onChange: (page, pageSize) => {
let data = pageTemData;
data.pageNo = page;

View File

@ -1,6 +1,7 @@
import React, { useEffect, useRef, useState } from 'react';
import { Modal, Button, Form, Row, Col, Checkbox, message, Radio, Popconfirm, Spin } from 'antd';
import ProTable, { ActionType, ProColumns } from '@ant-design/pro-table';
import tableProps from '@/utils/tableProps';
import { addItem, getPage, delOne, getSections, useConfig, usePage } from './services';
import { Link } from 'umi';
import { getProId, getProMethod } from '@/utils/session';
@ -231,7 +232,7 @@ const List: React.FC<{}> = () => {
return result;
})}
pagination={{
defaultPageSize: 10,
...tableProps.pagination,
onChange: (page, pageSize) => setPageData({ pageNo: page, pageSize: pageSize }),
}}
/>