diff --git a/src/components/Common/CommonInstructSet.js b/src/components/Common/CommonInstructSet.js index 0265795..11a8ac7 100644 --- a/src/components/Common/CommonInstructSet.js +++ b/src/components/Common/CommonInstructSet.js @@ -11,6 +11,7 @@ import * as commonBusiness from "@/components/Common/commonBusiness"; import FaceDetect from "@/components/FaceDetect"; import ShowType from "@/components/Common/CommonComponent"; +let globalProps = {}; let step = 1; // 步骤计数 let exesqlTodo = []; // 最后需要一起执行的sql let saveDataTodo = []; // 最后需要一起保存的数据 @@ -80,14 +81,17 @@ const showMsg = value => { params.content = value; } + const InstructionSetErrMsg = commonFunc.showLocalMessage(globalProps, 'InstructionSetErrMsg', '指令集错误信息'); + const InstructionSetInfoMsg = commonFunc.showLocalMessage(globalProps, 'InstructionSetInfoMsg', '指令集提示信息'); + const knew = commonFunc.showLocalMessage(globalProps, 'knew', '知道了'); const { type, content } = params; - const title = type === "error" ? "指令集错误信息" : "指令集提示信息"; + const title = type === "error" ? InstructionSetErrMsg : InstructionSetInfoMsg; Modal[type]({ width: 1000, title: title, content:
{content}
, - okText: "知道了" + okText: knew }); }; @@ -103,13 +107,13 @@ const instructCheck = props => { } if (!btnConfig) { - showMsg("没有找到按钮配置!"); + showMsg("Button configuration not found!"); return false; } const { sInstruct: sInstructStr } = btnConfig; if (!sInstructStr) { - showMsg("指令集未配置!"); + showMsg("Instruction set not configured!"); return false; } @@ -120,8 +124,8 @@ const instructCheck = props => { type: "error", content: (
-
指令集格式错误!
-
错误指令集内容:
+
Instruction set format error!
+
Error instruction set content:
{sInstructStr}
) @@ -229,6 +233,8 @@ const instructSetInit = async props => { if (!sInstruct) return; + globalProps = props; + // 添加额外数据 addExtraData(props); @@ -477,13 +483,13 @@ const handleCopy = (props, instruct) => { // content: "error", content: (
-
{`【${srcDataset}】数据源为空`}
+
{`[${srcDataset}] data source is empty`}
请检查该复制指令集:
{JSON.stringify(instruct)}
) }); - throw new Error(`【${srcDataset}】数据源为空`); + throw new Error(`[${srcDataset}] data source is empty`); } // 获取赋值后的数据 @@ -549,25 +555,25 @@ const handleAddNew = (props, instruct) => { type: "error", content: (
-
被新增的数据集desDataset不能为空!
-
请检查该新增指令集:
+
The newly added dataset desDataset cannot be empty!
+
Please check the newly added instruction set:
{JSON.stringify(instruct)}
) }); - throw new Error("被新增的数据集desDataset不能为空!"); + throw new Error("The newly added dataset desDataset cannot be empty!"); } else if (desDataset.includes("@") || desDataset.includes(",")) { showMsg({ type: "error", content: (
-
被新增的数据集desDataset不支持@或,写法!
-
请检查该新增指令集:
+
The newly added dataset desDataset does not support @ or ,!
+
Please check the newly added instruction set:
{JSON.stringify(instruct)}
) }); - throw new Error("被新增的数据集desDataset不支持@或,写法!"); + throw new Error("The newly added dataset desDataset does not support @ or ,!"); } const { @@ -908,14 +914,14 @@ const handleMesSave = (props, instruct) => { content: (
- 保存指令集data中的tablename和srcDataset为必填项,请检查该指令集配置! + The tablename and srcDataset fields in the save instruction set data are required. Please check the instruction set configuration!
{JSON.stringify(instruct)}
) }); throw new Error( - "保存指令集data中的tablename和srcDataset为必填项,请检查该指令集配置!" + "The tablename and srcDataset fields in the save instruction set data are required. Please check the instruction set configuration!" ); } const { @@ -1004,12 +1010,12 @@ const handleMesSaveAll = async (props, onSucess) => { type: "error", content: (
-
save接口报错!
-
请求地址:
+
Save interface error!
+
Request address:
{dataUrl}
-
传入参数:
+
Pass in parameters:
{JSON.stringify(values)}
-
报错信息
+
Error message
{JSON.stringify(dataReturn)}
) @@ -1190,12 +1196,12 @@ const handleSendMsgAll = async props => { type: "error", content: (
-
sendmsg接口报错!
-
请求地址:
+
The sendmsg interface reports an error!
+
Request address:
{dataUrl}
-
传入参数:
+
Pass in parameters:
{JSON.stringify(values)}
-
报错信息
+
Error message
{JSON.stringify(dataReturn)}
) @@ -1231,13 +1237,13 @@ const handlePrint = (props, instruct) => { type: "error", content: (
-
报表名称不能为空!
-
请检查打印报表指令集:
+
Report name cannot be empty!
+
Please check the print report instruction set:
{JSON.stringify(instruct)}
) }); - throw new Error("打印报表名称不能为空!"); + throw new Error("The print report name cannot be empty!"); } const dataUrl = `${ @@ -1557,13 +1563,13 @@ const handleOpenSql = async (props, instruct) => { type: "error", content: (
-
{`获取${dataNameList[index]}数据集数据为空!`}
-
错误指令集内容:
+
{`The data of ${dataNameList[index]} dataset is empty!`}
+
Error instruction set content:
{JSON.stringify(instruct)}
) }); - throw new Error(`获取${dataNameList[index]}数据集数据为空!`); + throw new Error(`The data of ${dataNameList[index]} dataset is empty!`); } srcDatasetRow = { ...srcDatasetRow, @@ -1647,12 +1653,12 @@ const handleGetSqlValue = async (props, data, srcDatasetRow = {}) => { type: "error", content: (
-
opensql查询接口报错!
-
请求地址:
+
opensql Query interface error!
+
Request address:
{dataUrl}
-
传入参数:
+
Pass in parameters:
{JSON.stringify(values)}
-
报错信息
+
Error message:
{JSON.stringify(dataReturn)}
) @@ -1682,13 +1688,13 @@ const handleExeSql = (props, instruct) => { type: "error", content: (
-
{`获取${srcDataset}数据集数据为空!`}
-
错误指令集内容:
+
{`The ${srcDataset} dataset data is empty!`}
+
Error instruction set content:
{JSON.stringify(instruct)}
) }); - throw new Error(`获取${srcDataset}数据集数据为空!`); + throw new Error(`The ${srcDataset} dataset data is empty!!`); } result.push({ @@ -1716,13 +1722,13 @@ const handleProcedure = async (props, instruct) => { type: "error", content: (
-
存储过程配置为空!
-
请检查该指令集:
+
The stored procedure configuration is empty!
+
Please check this instruction set:
{JSON.stringify(instruct)}
) }); - throw new Error("存储过程配置为空!"); + throw new Error("The stored procedure configuration is empty!"); } if (bValidateList.length) { @@ -1821,13 +1827,13 @@ const handleChangeTab = (props, instruct) => { type: "error", content: (
-
跳转tab页指令未配置tabName!
-
请检查该指令集:
+
The jump tab page instruction is not configured with tabName!
+
Please check this instruction set:
{JSON.stringify(instruct)}
) }); - throw new Error("跳转tab页指令未配置tabName!"); + throw new Error("The jump tab page instruction is not configured with tabName!"); } changeTabName = tabName; return {}; @@ -1841,13 +1847,13 @@ const handleChangePage = (props, instruct) => { type: "error", content: (
-
跳转跳转页面指令未配置pagePath!
-
请检查该指令集:
+
The jump page instruction is not configured with pagePath!
+
Please check this instruction set:
{JSON.stringify(instruct)}
) }); - throw new Error("跳转跳转页面指令未配置pagePath!"); + throw new Error("The jump page instruction is not configured with pagePath!"); } changePagePath = pagePath; return {}; @@ -1862,13 +1868,13 @@ const handlePoprepair = async (props, instruct) => { type: "error", content: (
-
跳转弹窗修改字段指令未配置title/fieldNames!
-
请检查该指令集:
+
The jump pop-up window to modify the field instruction is not configured with title/fieldNames!
+
Please check this instruction set:
{JSON.stringify(instruct)}
) }); - throw new Error("跳转弹窗修改字段指令未配置title/fieldNames!"); + throw new Error("The jump pop-up window to modify the field instruction is not configured with title/fieldNames!"); } const { tableLineParams = {} } = props; @@ -1906,14 +1912,14 @@ const handlePoprepair = async (props, instruct) => { content: (
{`未找到字段集合【${fieldNames}】对应的配置,请确认配置是否正确!`}
-
请检查该指令集:
+ >{`The configuration corresponding to the field set [${fieldNames}] was not found. Please confirm whether the configuration is correct!`}
+
Please check this instruction set:
{JSON.stringify(instruct)}
) }); throw new Error( - `未找到字段集合【${fieldNames}】对应的配置,请确认配置是否正确!` + `The configuration corresponding to the field set [${fieldNames}] was not found. Please confirm whether the configuration is correct!` ); } @@ -2057,12 +2063,12 @@ const handleExeSqlAll = async (props, onSucess) => { type: "error", content: (
-
exesql接口报错!
-
请求地址:
+
exesql interface reports an error!
+
Request address:
{dataUrl}
-
传入参数:
+
Pass in parameters:
{JSON.stringify(values)}
-
报错信息
+
Error message:
{JSON.stringify(dataReturn)}
) @@ -2078,13 +2084,13 @@ const handleRefreshConfig = (props, instruct) => { type: "error", content: (
-
未配置srcDataset或srcDataset!
-
请检查该指令集:
+
srcDataset or srcDataset not configured!
+
Please check this instruction set:
{JSON.stringify(instruct)}
) }); - throw new Error("未配置srcDataset或srcDataset!"); + throw new Error("srcDataset or srcDataset not configured!"); } const { @@ -2361,19 +2367,19 @@ const handleComputeData = (props, str, datasetList) => { type: "error", content: (
-
赋值运算错误!
-
请检查赋值运算语法!
-
赋值运算内容:
+
Assignment operation error!
+
Please check the assignment syntax!
+
Assignment operation content:
{str}
-
赋值运算被替代后的结果:
+
The result after the assignment operation is replaced:
{JSON.stringify(strNew)}
-
赋值运算可能用到的数据集:
+
The data sets that may be used for the assignment operation are:
{JSON.stringify(tempData)}
) }); window.debugger && console.log("=====err", { str, strNew, error }); - throw new Error("js运算错误"); + throw new Error("js operation error"); } return result; }; @@ -2687,13 +2693,13 @@ const utils = { type: "error", content: (
-
数据集的赋值字段sValue不能为空!
-
请检查该指令集:
+
The assigned field sValue of the dataset cannot be empty!
+
Please check this instruction set:
{JSON.stringify(instruct)}
) }); - throw new Error("数据集的赋值字段sValue不能为空!"); + throw new Error("The assigned field sValue of the dataset cannot be empty!"); } const { @@ -2710,15 +2716,15 @@ const utils = { type: "error", content: (
-
{`${targetDataset}】数据源为空`}
-
过滤出的数据集为:
+
{`${targetDataset}] data source is empty`}
+
The filtered data sets are:
{JSON.stringify(dataObj)}
-
请检查该指令集:
+
Please check this instruction set:
{JSON.stringify(instruct)}
) }); - throw new Error(`${targetDataset}】数据源为空`); + throw new Error(`${targetDataset}] data source is empty`); } // const tableDataOld = props[`${targetDataset}Data`] || []; @@ -2897,23 +2903,23 @@ const utils = { type: "error", content: (
-
conditon条件运算错误!
-
1、请检查condition语法!
-
2、请检查ccondition用到的数据集是否在dataset中正确配置!
-
conditon所在指令集:
+
Condition operation error!
+
1. Please check the condition syntax!
+
2. Please check whether the dataset used by ccondition is correctly configured in dataset!
+
Instruction set where condition is located:
{JSON.stringify(instruct)}
-
conditon内容:
+
condition content:
{condition}
-
condition被替代后的结果:
+
The result after condition is replaced:
{JSON.stringify(conditionNew)}
-
condition可能用到的数据集:
+
The data set that condition may use is:
{JSON.stringify(tempData)}
) }); window.debugger && console.log("=====err", { tempData, condition, conditionNew, error }); - throw new Error("js运算错误"); + throw new Error("js operation error"); } return bMatch; @@ -3017,9 +3023,9 @@ const utils = { if (oTabs.length === 0) { showMsg({ type: "error", - content:
{`未找到tab页面【${changeTabName}】`}
+ content:
{`Tab page [${changeTabName}] not found`}
}); - throw new error(`未找到tab页面【${changeTabName}】`); + throw new error(`Tab page [${changeTabName}] not found`); } else if (oTabs.length === 1) { oTab = oTabs[0]; } else if (oTabs.length > 1) { @@ -3034,9 +3040,9 @@ const utils = { if (!oTab) { showMsg({ type: "error", - content:
{`未找到tab页面【${changeTabName}】`}
+ content:
{`Tab page [${changeTabName}] not found`}
}); - throw new error(`未找到tab页面【${changeTabName}】`); + throw new error(`Tab page [${changeTabName}] not found`); } oTab.click(); @@ -3192,13 +3198,13 @@ const utils = { type: "error", content: (
-
js运算错误!
-
请检查js运算语法!
-
js运算内容:
+
js operation error!
+
Please check the js operation syntax!
+
js operation content:
{stringValue}
-
赋值运算被替代后的结果:
+
The result after the assignment operation is replaced:
{JSON.stringify(strNew)}
-
请联系开发人员或用window.debuggerValue功能调试!
+
Please contact the developer or use the window.debuggerValue function to debug!
) }); diff --git a/src/components/Common/CommonTable/index.js b/src/components/Common/CommonTable/index.js index febfabd..e58f1ef 100644 --- a/src/components/Common/CommonTable/index.js +++ b/src/components/Common/CommonTable/index.js @@ -11456,7 +11456,7 @@ class CommonTableRc extends React.Component { {officePreviewVisible && } {labelColorModalVisible && (
- {"白粉青蓝橙绿黄红".split("").map((item, index) => { + {commonFunc.showLocalMessage(this.props, 'eightColors', '白,粉,青,蓝,橙,绿,黄,红').split(",").map((item, index) => { return (
label { + &::before { + display: none; + } + + &::after { + display: none; + } + + display: flex; + justify-content: center; + + .xly-grid-label { + height: auto !important; + font-size: 10px !important; + display: -webkit-box; + /*! autoprefixer: ignore next */ + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + overflow: hidden; + text-overflow: ellipsis; + white-space: normal !important; + line-height: 1.2; + + &::after { + content: ':'; + position: relative; + top: -0.5px; + margin: 0 8px 0 2px; + } + } + } + + .react-grid-item .ant-form-item-label>label.ant-form-item-required:not(.ant-form-item-required-mark-optional) { + .xly-grid-label { + &::before { + display: inline-block; + margin-right: 4px; + color: #ff4d4f; + font-size: 12px; + font-family: SimSun, sans-serif; + line-height: 1; + content: '*'; + } + } + } + th[width="40"] { .th-div { width: 32px; diff --git a/src/mes/common/commonModelComponent/index.js b/src/mes/common/commonModelComponent/index.js index fe68d00..116d2fe 100644 --- a/src/mes/common/commonModelComponent/index.js +++ b/src/mes/common/commonModelComponent/index.js @@ -2460,6 +2460,13 @@ const CommonParamsModalComponent = props => { } }; + const confirm = commonFunc.showLocalMessage(props, 'confirm', '确认'); + const BtnFirst = commonFunc.showLocalMessage(props, 'BtnFirst', '首条'); + const BtnPrior = commonFunc.showLocalMessage(props, 'BtnPrior', '上一条'); + const BtnNext = commonFunc.showLocalMessage(props, 'BtnNext', '下一条'); + const BtnLast = commonFunc.showLocalMessage(props, 'BtnLast', '末条'); + const workParam = commonFunc.showLocalMessage(props, "workParam", "工单参数"); + return props[modalName] ? ( { props.onSaveState({ [modalName]: false }); }} > - 确定 + {confirm} } > @@ -2490,7 +2497,7 @@ const CommonParamsModalComponent = props => { handleBtnParamPage("first"); }} > - 首条 + {BtnFirst} {[""].map(() => { @@ -2528,7 +2535,7 @@ const CommonParamsModalComponent = props => { sParamData: [ { sParamType: "sWorkOrder", - sParamName: "工单参数" + sParamName: workParam } ], tableName: "process", diff --git a/src/mes/common/inputMultiModalComponent/index.js b/src/mes/common/inputMultiModalComponent/index.js index 0f5fff9..c7e2e87 100644 --- a/src/mes/common/inputMultiModalComponent/index.js +++ b/src/mes/common/inputMultiModalComponent/index.js @@ -70,6 +70,9 @@ const InputMultiModalComponent = props => { props.onCancel(); }; + const BtnCancel = commonFunc.showLocalMessage(props, 'BtnCancel', '取消'); + const confirm = commonFunc.showLocalMessage(props, 'confirm', '确认'); + return ( { footer={ } diff --git a/src/mes/common/siderInfoComponent/index.js b/src/mes/common/siderInfoComponent/index.js index 0141c89..9bfb8a7 100644 --- a/src/mes/common/siderInfoComponent/index.js +++ b/src/mes/common/siderInfoComponent/index.js @@ -446,7 +446,7 @@ const WorkOrderTypeComponent = () => { flex={"160px"} className={styles.productionTitle} > - {productionSchedule} + {productionSchedule} {/*
); @@ -647,41 +648,41 @@ const HeaderConponent = () => { // 停机状态栏 -const MachineMessageComponent = ({ e , shutDown, props }) => { - const value = e.item?.props?.value || {}; - const { current: startTime } = useRef(moment().format("YYYY-MM-DD HH:mm:ss")); - const { backgroundColor, conent2, fontSize } = value; - const [currentTime, setCurrentTime] = useState(""); - const [diffHours, setDiffHours] = useState(0); - const [diffMins, setDiffMins] = useState(0); - const [diffSecs, setDiffSecs] = useState(0); - useEffect(() => { - const getTime = () => { - const currentTimeNew = moment().format("YYYY-MM-DD HH:mm:ss"); - setCurrentTime(currentTimeNew); - - const duration = moment.duration( - moment(currentTimeNew).diff(moment(startTime)) - ); - const hours = duration.asHours().toString().split(".")[0]; - const minutes = (duration.asMinutes() % 60).toString().split(".")[0]; - const seconds = duration.asSeconds() % 60; - - setDiffHours(hours<=9? `0${hours}`: hours); - setDiffMins(minutes<=9? `0${minutes}`: minutes ); - setDiffSecs(seconds<=9? `0${seconds}`: seconds); - }; +const MachineMessageComponent = ({ e, shutDown, props }) => { + const value = e.item?.props?.value || {}; + const { current: startTime } = useRef(moment().format("YYYY-MM-DD HH:mm:ss")); + const { backgroundColor, conent2, fontSize } = value; + const [currentTime, setCurrentTime] = useState(""); + const [diffHours, setDiffHours] = useState(0); + const [diffMins, setDiffMins] = useState(0); + const [diffSecs, setDiffSecs] = useState(0); + useEffect(() => { + const getTime = () => { + const currentTimeNew = moment().format("YYYY-MM-DD HH:mm:ss"); + setCurrentTime(currentTimeNew); + + const duration = moment.duration( + moment(currentTimeNew).diff(moment(startTime)) + ); + const hours = duration.asHours().toString().split(".")[0]; + const minutes = (duration.asMinutes() % 60).toString().split(".")[0]; + const seconds = duration.asSeconds() % 60; + + setDiffHours(hours <= 9 ? `0${hours}` : hours); + setDiffMins(minutes <= 9 ? `0${minutes}` : minutes); + setDiffSecs(seconds <= 9 ? `0${seconds}` : seconds); + }; + getTime(); + const timer = setInterval(() => { + console.log('定时器状态') getTime(); - const timer = setInterval(() => { - console.log('定时器状态') - getTime(); - }, 1000); + }, 1000); - return () => { - clearInterval(timer); - }; - }, []); + return () => { + clearInterval(timer); + }; + }, []); const FriendlyReminder = commonFunc.showLocalMessage(props, 'FriendlyReminder', '温馨提示'); const BtnSure = commonFunc.showLocalMessage(props, 'BtnSure', '确认'); @@ -703,108 +704,108 @@ const MachineMessageComponent = ({ e , shutDown, props }) => { const about = commonFunc.showLocalMessage(props, 'about', '约:'); const handleMenuClose = () => { - Modal.confirm({ - title: FriendlyReminder, - content:
{confirmState}
, - okText: BtnSure, - cancelText: BtnCancel, - zIndex: 2000, - onOk() { - shutDown() - }, - onCancel() {} - }); - }; + Modal.confirm({ + title: FriendlyReminder, + content:
{confirmState}
, + okText: BtnSure, + cancelText: BtnCancel, + zIndex: 2000, + onOk() { + shutDown() + }, + onCancel() { } + }); + }; - const isMinMax = useRef('max'); - const draggleRef = useRef(null); - const [bounds, setBounds] = useState({ left: 0, top: 0, bottom: 0, right: 0 }); - const onStart = (_event, uiData) => { - const { clientWidth, clientHeight } = window.document.documentElement; - const targetRect = draggleRef.current?.getBoundingClientRect(); - if (!targetRect) { - return; - } - setBounds({ - left: -targetRect.left + uiData.x, - right: clientWidth - (targetRect.right - uiData.x), - top: -targetRect.top + uiData.y, - bottom: clientHeight - (targetRect.bottom - uiData.y), - }); - }; + const isMinMax = useRef('max'); + const draggleRef = useRef(null); + const [bounds, setBounds] = useState({ left: 0, top: 0, bottom: 0, right: 0 }); + const onStart = (_event, uiData) => { + const { clientWidth, clientHeight } = window.document.documentElement; + const targetRect = draggleRef.current?.getBoundingClientRect(); + if (!targetRect) { + return; + } + setBounds({ + left: -targetRect.left + uiData.x, + right: clientWidth - (targetRect.right - uiData.x), + top: -targetRect.top + uiData.y, + bottom: clientHeight - (targetRect.bottom - uiData.y), + }); + }; - return ( -
- - { - isMinMax.current == 'min'? - onStart(event, uiData)}> -
-
isMinMax.current = 'max'}> -

{conent2}

-
{beginTime} {startTime}
-
{downtimeDuration}{diffHours}{second} {diffMins}{min} {diffSecs}{second}
-
- - -
-
-
-
- : -
-
{equipmentShutdown}
-
- {conent2} -
-
- {DowntimeStartTime} - {startTime} -
-
- {sct} - {currentTime} -
-
- {cdd} - - {about} - {diffHours}{hour} {diffMins}{min} {diffSecs}{second} - -
-
- - -
+ return ( +
+ + { + isMinMax.current == 'min' ? + onStart(event, uiData)}> +
+
isMinMax.current = 'max'}> +

{conent2}

+
{beginTime} {startTime}
+
{downtimeDuration}{diffHours}{second} {diffMins}{min} {diffSecs}{second}
+
+ +
- } +
+
+
+ : +
+
{equipmentShutdown}
+
+ {conent2} +
+
+ {DowntimeStartTime} + {startTime} +
+
+ {sct} + {currentTime} +
+
+ {cdd} + + {about} + {diffHours}{hour} {diffMins}{min} {diffSecs}{second} + +
+
+ + +
+
+ } -
- ); +
+ ); }; - // 左侧侧边栏 +// 左侧侧边栏 const SiderComponent = () => { const { dispatch, hooksProps, props, ...rest } = useContext(myContext); const { currentContent, menuMap } = hooksProps; - const teamInformation= commonFunc.showLocalMessage(props, 'teamInformation', '班组信息'); + const teamInformation = commonFunc.showLocalMessage(props, 'teamInformation', '班组信息'); - const scheduledTask= commonFunc.showLocalMessage(props, 'scheduledTask', '计划任务'); + const scheduledTask = commonFunc.showLocalMessage(props, 'scheduledTask', '计划任务'); - const productionExecution= commonFunc.showLocalMessage(props, 'productionExecution', '生产执行'); + const productionExecution = commonFunc.showLocalMessage(props, 'productionExecution', '生产执行'); - const maintenanceRepair= commonFunc.showLocalMessage(props, 'maintenanceRepair', '维修保养'); + const maintenanceRepair = commonFunc.showLocalMessage(props, 'maintenanceRepair', '维修保养'); - const queryTracing= commonFunc.showLocalMessage(props, 'queryTracing', '查询追踪'); + const queryTracing = commonFunc.showLocalMessage(props, 'queryTracing', '查询追踪'); - const operationGuide= commonFunc.showLocalMessage(props, 'teamInformation', '操作指南'); + const operationGuide = commonFunc.showLocalMessage(props, 'teamInformation', '操作指南'); const menuList = [ { @@ -984,9 +985,8 @@ const SystemFunComponent = () => { value.iFlag = iFlag; } - const url = `${ - commonConfig.server_host - }procedureCall/doGenericProcedureCall?sModelsId=${sModelsId}`; + const url = `${commonConfig.server_host + }procedureCall/doGenericProcedureCall?sModelsId=${sModelsId}`; const returnData = (await commonServices.postValueService( token, value, @@ -1003,7 +1003,7 @@ const SystemFunComponent = () => { onOk() { handleProcedureCall(params, 1); }, - onCancel() {} + onCancel() { } }); } else if (code === -8) { Modal.info({ @@ -1060,9 +1060,8 @@ const SystemFunComponent = () => { value.iFlag = iFlag; } - const url = `${ - commonConfig.server_host - }procedureCall/doGenericProcedureCall?sModelsId=${sModelsId}`; + const url = `${commonConfig.server_host + }procedureCall/doGenericProcedureCall?sModelsId=${sModelsId}`; const returnData = (await commonServices.postValueService( token, value, @@ -1079,7 +1078,7 @@ const SystemFunComponent = () => { onOk() { handleProcedureCall1(params, 1); }, - onCancel() {} + onCancel() { } }); } else if (code === -8) { Modal.info({ @@ -1137,14 +1136,14 @@ const SystemFunComponent = () => { const getSystemFunContent = () => { const userinfo = commonUtils.getAppData("userinfo"); - const ModifyPassword = commonFunc.showLocalMessage(props, 'ModifyPassword','修改密码');/* 修改密码 */ + const ModifyPassword = commonFunc.showLocalMessage(props, 'ModifyPassword', '修改密码');/* 修改密码 */ const faceCollection = commonFunc.showLocalMessage(props, 'faceCollection', '人脸采集'); const moreFunctions = commonFunc.showLocalMessage(props, 'moreFunctions', '更多功能'); const Logout = commonFunc.showLocalMessage(props, 'Logout', '退出登录'); - const shutDown= commonFunc.showLocalMessage(props, 'shutDown', '关机'); - const resetDailyReport= commonFunc.showLocalMessage(props, 'resetDailyReport', '关机'); - const switchToManual= commonFunc.showLocalMessage(props, 'switchToManual', '切换手动'); - const SwitchAuto= commonFunc.showLocalMessage(props, 'SwitchAuto', '切换自动'); + const shutDown = commonFunc.showLocalMessage(props, 'shutDown', '关机'); + const resetDailyReport = commonFunc.showLocalMessage(props, 'resetDailyReport', '关机'); + const switchToManual = commonFunc.showLocalMessage(props, 'switchToManual', '切换手动'); + const SwitchAuto = commonFunc.showLocalMessage(props, 'SwitchAuto', '切换自动'); const { bPlcSd } = userinfo; diff --git a/src/mes/scheduledTasks/machineTasks/index.js b/src/mes/scheduledTasks/machineTasks/index.js index 1f99005..37d361b 100644 --- a/src/mes/scheduledTasks/machineTasks/index.js +++ b/src/mes/scheduledTasks/machineTasks/index.js @@ -374,7 +374,7 @@ const result = await new Promise(resolve => { Modal.confirm({ title: FriendlyReminder, - content:
请选择要变更的状态
, + content:
{sLanguage === "sEnglish" ? "Please select the status you want to change" : "请选择要变更的状态"}
, okText: finishConstruction, cancelText: pause, onOk() {