Commit 7190995f9d43de1f89c0e40484b74fec703d8293
1 parent
ca2c1154
1.增加状态按钮 转产,产品打样,日常保养等英文翻译
Showing
1 changed file
with
33 additions
and
22 deletions
src/mes/scheduledTasks/machineTasks/index.js
| ... | ... | @@ -775,7 +775,7 @@ |
| 775 | 775 | <h3>{taskInfoData.sStatusNameTitle}:</h3> |
| 776 | 776 | <p>{taskInfoData.sStatusNameConent}</p> |
| 777 | 777 | </div> |
| 778 | - <StatusBtnComponent /> | |
| 778 | + <StatusBtnComponent props = {props}/> | |
| 779 | 779 | </div> |
| 780 | 780 | </Col> |
| 781 | 781 | <Col span={10} className="taskInfoBox"> |
| ... | ... | @@ -953,38 +953,49 @@ |
| 953 | 953 | }; |
| 954 | 954 | |
| 955 | 955 | // 全屏状态 |
| 956 | - const StatusBtnComponent = () => { | |
| 956 | + const StatusBtnComponent = (props) => { | |
| 957 | + | |
| 958 | + const test = commonFunc.showLocalMessage(props, 'test', '测试'); | |
| 959 | + const switchProduction = commonFunc.showLocalMessage(props, 'switchProduction', '转产'); | |
| 960 | + const maintain = commonFunc.showLocalMessage(props, 'maintain', '保养'); | |
| 961 | + const productSampling = commonFunc.showLocalMessage(props, 'productSampling', '产品打样'); | |
| 962 | + const processTesting = commonFunc.showLocalMessage(props, 'processTesting', '工艺测试'); | |
| 963 | + const dailyMaintenance = commonFunc.showLocalMessage(props, 'dailyMaintenance', '日常保养'); | |
| 964 | + const firstMaintenance = commonFunc.showLocalMessage(props, 'firstMaintenance', '日常保养'); | |
| 965 | + const secondMaintenance = commonFunc.showLocalMessage(props, 'secondMaintenance', '二级保养'); | |
| 966 | + const FSMaintenance = commonFunc.showLocalMessage(props, 'FSMaintenance', '一级+二级保养'); | |
| 967 | + const annualMaintenance = commonFunc.showLocalMessage(props, 'annualMaintenance', '年度保养'); | |
| 957 | 968 | |
| 958 | 969 | const items = [ |
| 959 | 970 | { |
| 960 | 971 | key: "4", |
| 961 | - label: <span className={styles.statusDropdown}>转产</span>, | |
| 972 | + label: <span className={styles.statusDropdown}>{switchProduction}</span>, | |
| 962 | 973 | value: { |
| 963 | - conent2: "转产", | |
| 974 | + conent2: switchProduction, | |
| 964 | 975 | backgroundColor: "#752AFE" |
| 965 | 976 | } |
| 966 | 977 | }, |
| 967 | 978 | { |
| 968 | 979 | key: "1", |
| 969 | - label: <span className={styles.statusDropdown}>测试</span>, | |
| 980 | + label: <span className={styles.statusDropdown}>{test}</span>, | |
| 970 | 981 | value: { |
| 971 | - conent2: "转产", | |
| 982 | + conent2: switchProduction, | |
| 972 | 983 | backgroundColor: "#21C9FE" |
| 973 | 984 | }, |
| 974 | 985 | children: [ |
| 975 | 986 | { |
| 976 | 987 | key: "1-1", |
| 977 | - label: <span className={styles.statusDropdown}>产品打样</span>, | |
| 988 | + label: <span className={styles.statusDropdown}>{productSampling}</span>, | |
| 978 | 989 | value: { |
| 979 | - conent2: "产品打样", | |
| 990 | + conent2: processTesting, | |
| 980 | 991 | backgroundColor: "#21C9FE" |
| 981 | 992 | } |
| 982 | 993 | }, |
| 983 | 994 | { |
| 984 | 995 | key: "1-2", |
| 985 | - label: <span className={styles.statusDropdown}>工艺测试</span>, | |
| 996 | + label: <span className={styles.statusDropdown}>{processTesting}</span>, | |
| 986 | 997 | value: { |
| 987 | - conent2: "工艺测试", | |
| 998 | + conent2: processTesting, | |
| 988 | 999 | backgroundColor: "#21C9FE" |
| 989 | 1000 | } |
| 990 | 1001 | } |
| ... | ... | @@ -992,50 +1003,50 @@ |
| 992 | 1003 | }, |
| 993 | 1004 | { |
| 994 | 1005 | key: "2", |
| 995 | - label: <span className={styles.statusDropdown}>保养</span>, | |
| 1006 | + label: <span className={styles.statusDropdown}>{maintain}</span>, | |
| 996 | 1007 | value: { |
| 997 | - conent2: "保养", | |
| 1008 | + conent2: maintain, | |
| 998 | 1009 | backgroundColor: "#FF6600" |
| 999 | 1010 | }, |
| 1000 | 1011 | children: [ |
| 1001 | 1012 | { |
| 1002 | 1013 | key: "2-1", |
| 1003 | - label: <span className={styles.statusDropdown}>日常保养</span>, | |
| 1014 | + label: <span className={styles.statusDropdown}>{dailyMaintenance}</span>, | |
| 1004 | 1015 | value: { |
| 1005 | - conent2: "日常保养", | |
| 1016 | + conent2: dailyMaintenance, | |
| 1006 | 1017 | backgroundColor: "#FF6600" |
| 1007 | 1018 | } |
| 1008 | 1019 | }, |
| 1009 | 1020 | { |
| 1010 | 1021 | key: "2-2", |
| 1011 | - label: <span className={styles.statusDropdown}>一级保养</span>, | |
| 1022 | + label: <span className={styles.statusDropdown}>{firstMaintenance}</span>, | |
| 1012 | 1023 | value: { |
| 1013 | - conent2: "一级保养", | |
| 1024 | + conent2: firstMaintenance, | |
| 1014 | 1025 | backgroundColor: "#FF6600" |
| 1015 | 1026 | } |
| 1016 | 1027 | }, |
| 1017 | 1028 | { |
| 1018 | 1029 | key: "2-3", |
| 1019 | - label: <span className={styles.statusDropdown}>二级保养</span>, | |
| 1030 | + label: <span className={styles.statusDropdown}>{secondMaintenance}</span>, | |
| 1020 | 1031 | value: { |
| 1021 | - conent2: "二级保养", | |
| 1032 | + conent2: secondMaintenance, | |
| 1022 | 1033 | backgroundColor: "#FF6600" |
| 1023 | 1034 | } |
| 1024 | 1035 | }, |
| 1025 | 1036 | { |
| 1026 | 1037 | key: "2-4", |
| 1027 | - label: <span className={styles.statusDropdown}>一级+二级保养</span>, | |
| 1038 | + label: <span className={styles.statusDropdown}>{FSMaintenance}</span>, | |
| 1028 | 1039 | value: { |
| 1029 | - conent2: "一级+二级保养", | |
| 1040 | + conent2: FSMaintenance, | |
| 1030 | 1041 | backgroundColor: "#FF6600", |
| 1031 | 1042 | fontSize: 130 |
| 1032 | 1043 | } |
| 1033 | 1044 | }, |
| 1034 | 1045 | { |
| 1035 | 1046 | key: "2-5", |
| 1036 | - label: <span className={styles.statusDropdown}>年度保养</span>, | |
| 1047 | + label: <span className={styles.statusDropdown}>{annualMaintenance}</span>, | |
| 1037 | 1048 | value: { |
| 1038 | - conent2: "年度保养", | |
| 1049 | + conent2: annualMaintenance, | |
| 1039 | 1050 | backgroundColor: "#FF6600" |
| 1040 | 1051 | } |
| 1041 | 1052 | } | ... | ... |