Commit fd9b8bf7e84a7fdeaa0c91ce06f58db20d339e78
1 parent
9a1a37dc
1.新报价的盒型选择增加多语言翻译
Showing
1 changed file
with
14 additions
and
8 deletions
src/components/QuickQuote/index.jsx
| ... | ... | @@ -2587,17 +2587,22 @@ const BoxModelSelectedModal = props => { |
| 2587 | 2587 | const [boxData, setBoxData] = useState([]); |
| 2588 | 2588 | const [treeClassName, setTreeClassName] = useState(""); |
| 2589 | 2589 | const [boxTypeSelected, setBoxTypeSelected] = useState("全部"); |
| 2590 | + const UniqueID = commonFunc.showLocalMessage(props, 'UniqueID', '唯一ID'); | |
| 2591 | + const sName = commonFunc.showLocalMessage(props, 'jurCon', '名称'); | |
| 2592 | + const KnifeLineChart = commonFunc.showLocalMessage(props, 'KnifeLineChart', '刀线图'); | |
| 2593 | + const ThreeDGraph = commonFunc.showLocalMessage(props, '3DGraph', '3D图'); | |
| 2594 | + const BtnOperations = commonFunc.showLocalMessage(props, 'BtnOperations', '操作'); | |
| 2590 | 2595 | |
| 2591 | 2596 | useEffect(() => { |
| 2592 | 2597 | const boxList = [ |
| 2593 | - ["sId", "唯一ID"], | |
| 2598 | + ["sId", UniqueID], | |
| 2594 | 2599 | ["iOrder", "#", 60], |
| 2595 | 2600 | // ["sBoxId", "盒型ID"], |
| 2596 | - ["sName", "名称", 119], | |
| 2597 | - ["sPackDetailPathUpLoad", "刀线图", 300], | |
| 2601 | + ["sName", sName, 119], | |
| 2602 | + ["sPackDetailPathUpLoad", KnifeLineChart, 300], | |
| 2598 | 2603 | // ["sPackDetailPathUpLoad", "刀线图", 300], |
| 2599 | - ["sPackPath", "3D图", 300], | |
| 2600 | - ["operation", "操作", 80], | |
| 2604 | + ["sPackPath", ThreeDGraph, 300], | |
| 2605 | + ["operation", BtnOperations, 80], | |
| 2601 | 2606 | ]; |
| 2602 | 2607 | const config = { |
| 2603 | 2608 | sId: commonUtils.createSid(), |
| ... | ... | @@ -2772,16 +2777,17 @@ const BoxModelSelectedModal = props => { |
| 2772 | 2777 | }); |
| 2773 | 2778 | }, |
| 2774 | 2779 | }; |
| 2775 | - | |
| 2780 | + const BoxSelection = commonFunc.showLocalMessage(props, 'Box-TypeSelection', '盒型选择'); | |
| 2781 | + const BtnClose = commonFunc.showLocalMessage(props, 'BtnClose', '关闭'); | |
| 2776 | 2782 | return ( |
| 2777 | 2783 | <AntdDraggableModal |
| 2778 | 2784 | width="min(calc(100vw - 350px), 1100px)" |
| 2779 | - title="盒型选择" | |
| 2785 | + title={BoxSelection} | |
| 2780 | 2786 | visible={boxModelSelectedModalVisible} |
| 2781 | 2787 | onCancel={onCancel} |
| 2782 | 2788 | footer={ |
| 2783 | 2789 | <Button type="primary" onClick={onCancel}> |
| 2784 | - 关闭 | |
| 2790 | + {BtnClose} | |
| 2785 | 2791 | </Button> |
| 2786 | 2792 | } |
| 2787 | 2793 | > | ... | ... |