hotfix/2.10.1.2401.01

社保方案列表名称文字过长的处理
This commit is contained in:
黎永顺 2024-01-24 17:30:26 +08:00
parent a4da6674c5
commit 9087e50aae
2 changed files with 15 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import React from "react";
import { WeaHelpfulTip, WeaInputNumber, WeaSelect, WeaTab, WeaTable } from "ecCom";
import { WeaHelpfulTip, WeaInputNumber, WeaSelect, WeaTab } from "ecCom";
import { Switch, Table } from "antd";
import { insertUpdateColumns } from "./columns";
import { inject, observer } from "mobx-react";
@ -114,7 +114,13 @@ export default class DefaultSlideForm extends React.Component {
const { programmeStore, requestParams, onChange } = this.props;
const { defaultPersonDataSource, defaultCompanyDataSource } = programmeStore;
insertUpdateColumns.map(item => {
if (item.dataIndex == "isPayment") {
if (item.dataIndex == "insuranceName") {
item.render = (text) => {
return (
<div style={{ maxWidth: 100 }} className="ellipsis" title={text}>{text}</div>
);
};
} else if (item.dataIndex == "isPayment") {
item.render = (text, record) => {
return (
<Switch
@ -320,7 +326,7 @@ export default class DefaultSlideForm extends React.Component {
item.render = (text, record) => {
if (record.paymentCycle === "0") {
return (
<div>基数*比例+固定费用</div>
<div style={{ maxWidth: 180 }} className="ellipsis">基数*比例+固定费用</div>
);
} else {
return (

View File

@ -23,6 +23,12 @@
.tableWrapper {
margin-top: 10px;
.ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ant-table-fixed-left {
tr {
height: 63px !important;