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,17 +2587,22 @@ const BoxModelSelectedModal = props => { | ||
| 2587 | const [boxData, setBoxData] = useState([]); | 2587 | const [boxData, setBoxData] = useState([]); |
| 2588 | const [treeClassName, setTreeClassName] = useState(""); | 2588 | const [treeClassName, setTreeClassName] = useState(""); |
| 2589 | const [boxTypeSelected, setBoxTypeSelected] = useState("全部"); | 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 | useEffect(() => { | 2596 | useEffect(() => { |
| 2592 | const boxList = [ | 2597 | const boxList = [ |
| 2593 | - ["sId", "唯一ID"], | 2598 | + ["sId", UniqueID], |
| 2594 | ["iOrder", "#", 60], | 2599 | ["iOrder", "#", 60], |
| 2595 | // ["sBoxId", "盒型ID"], | 2600 | // ["sBoxId", "盒型ID"], |
| 2596 | - ["sName", "名称", 119], | ||
| 2597 | - ["sPackDetailPathUpLoad", "刀线图", 300], | 2601 | + ["sName", sName, 119], |
| 2602 | + ["sPackDetailPathUpLoad", KnifeLineChart, 300], | ||
| 2598 | // ["sPackDetailPathUpLoad", "刀线图", 300], | 2603 | // ["sPackDetailPathUpLoad", "刀线图", 300], |
| 2599 | - ["sPackPath", "3D图", 300], | ||
| 2600 | - ["operation", "操作", 80], | 2604 | + ["sPackPath", ThreeDGraph, 300], |
| 2605 | + ["operation", BtnOperations, 80], | ||
| 2601 | ]; | 2606 | ]; |
| 2602 | const config = { | 2607 | const config = { |
| 2603 | sId: commonUtils.createSid(), | 2608 | sId: commonUtils.createSid(), |
| @@ -2772,16 +2777,17 @@ const BoxModelSelectedModal = props => { | @@ -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 | return ( | 2782 | return ( |
| 2777 | <AntdDraggableModal | 2783 | <AntdDraggableModal |
| 2778 | width="min(calc(100vw - 350px), 1100px)" | 2784 | width="min(calc(100vw - 350px), 1100px)" |
| 2779 | - title="盒型选择" | 2785 | + title={BoxSelection} |
| 2780 | visible={boxModelSelectedModalVisible} | 2786 | visible={boxModelSelectedModalVisible} |
| 2781 | onCancel={onCancel} | 2787 | onCancel={onCancel} |
| 2782 | footer={ | 2788 | footer={ |
| 2783 | <Button type="primary" onClick={onCancel}> | 2789 | <Button type="primary" onClick={onCancel}> |
| 2784 | - 关闭 | 2790 | + {BtnClose} |
| 2785 | </Button> | 2791 | </Button> |
| 2786 | } | 2792 | } |
| 2787 | > | 2793 | > |