From 41492bc0966c11f4e33a9ca1dde61b4294f5075c Mon Sep 17 00:00:00 2001 From: zhangzhen <525765282@qq.com> Date: Fri, 5 Sep 2025 15:37:17 +0800 Subject: [PATCH] 格式化代码; --- src/mes/costomPageFun/index.js | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/src/mes/costomPageFun/index.js b/src/mes/costomPageFun/index.js index a1f667a..cd664d2 100644 --- a/src/mes/costomPageFun/index.js +++ b/src/mes/costomPageFun/index.js @@ -14,9 +14,8 @@ const costomPageFun = ({ props, tableName, sFieldName, actionName }) => { let result = false; switch ( - `${sModelsId}-${tableName}${ - sFieldName ? `-${sFieldName}` : "" - }-${actionName}` + `${sModelsId}-${tableName}${sFieldName ? `-${sFieldName}` : "" + }-${actionName}` ) { case "12710101117087404588200-table0-mesTableLineAdd": case "12710101117260270570210-table0-mesTableLineAdd": @@ -86,10 +85,10 @@ const costomPageFun = ({ props, tableName, sFieldName, actionName }) => { } break; } - case "12710101117089395856660-table1-mesTableBtnClick": { + case "12710101117089395856660-table1-mesTableBtnClick": { mesTableBtnClick4(props); result = true; - } + } default: break; } @@ -1332,7 +1331,7 @@ const handleZlxjCheck = async (props, btnName) => { sParentId: table0Data[0].sId, tPollingTime: moment().format('YYYY-MM-DD HH:mm:ss'), sPollingPerson: name, - sGroup: sTeamNo.substr(sTeamNo.length-1,1) === 'A' ? 'A' : 'B' + sGroup: sTeamNo.substr(sTeamNo.length - 1, 1) === 'A' ? 'A' : 'B' }); props.onSaveState({ @@ -1391,7 +1390,7 @@ const getFaceResult = async (props) => { let faceResult = false; - const selectMethod = commonFunc.showLocalMessage(props, 'selectMethod', '请选择验证方式'); + const selectMethod = commonFunc.showLocalMessage(props, 'selectMethod', '请选择验证方式'); const FriendlyReminder = commonFunc.showLocalMessage(props, 'FriendlyReminder', '温馨提示'); const accountPwd = commonFunc.showLocalMessage(props, 'account', '账号密码'); const faceRecognition = commonFunc.showLocalMessage(props, 'faceRecognition', '人脸识别'); @@ -1408,7 +1407,7 @@ const getFaceResult = async (props) => { closable: true, maskClosable: true, wrapClassName: "mesCommonModal", - cancelText:accountPwd, + cancelText: accountPwd, okText: faceRecognition, onOk() { resolve(1); @@ -1451,9 +1450,8 @@ const getFaceResult = async (props) => { } else if (loginType === 2) { // 账号密码登陆 let loginConfig; - const configUrl = `${ - commonConfig.server_host - }business/getModelBysId/${sModelsId}?sModelsId=${sModelsId}&sName=/commonAuto`; + const configUrl = `${commonConfig.server_host + }business/getModelBysId/${sModelsId}?sModelsId=${sModelsId}&sName=/commonAuto`; const configReturn = (await commonServices.getService("", configUrl)) .data; if (configReturn.code === 1) { @@ -1498,9 +1496,8 @@ const getFaceResult = async (props) => { } const { sBrandsId, sSubsidiaryId } = mesSysbrands; - const url = `${ - commonConfig.server_host - }userloginUserNo/${sBrandsId}/${sSubsidiaryId}`; + const url = `${commonConfig.server_host + }userloginUserNo/${sBrandsId}/${sSubsidiaryId}`; const value = { username: loginInfo.sUserNo || loginInfo.sUserName, password: loginInfo.sPassWord @@ -1593,12 +1590,12 @@ const mesTableBtnClick4 = async (props) => { doNotRefresh: true, data: [ { - tablename: "qlyqualityinspectionmaster", - srcDataset: "table0" + tablename: "qlyqualityinspectionmaster", + srcDataset: "table0" }, { - tablename: "qlyqualityinspectionslave", - srcDataset: "table1" + tablename: "qlyqualityinspectionslave", + srcDataset: "table1" } ] } -- libgit2 0.22.2