Commit 41492bc0966c11f4e33a9ca1dde61b4294f5075c

Authored by zhangzzzz
1 parent 3636cbc9

格式化代码;

Showing 1 changed file with 15 additions and 18 deletions
src/mes/costomPageFun/index.js
... ... @@ -14,9 +14,8 @@ const costomPageFun = ({ props, tableName, sFieldName, actionName }) => {
14 14  
15 15 let result = false;
16 16 switch (
17   - `${sModelsId}-${tableName}${
18   - sFieldName ? `-${sFieldName}` : ""
19   - }-${actionName}`
  17 + `${sModelsId}-${tableName}${sFieldName ? `-${sFieldName}` : ""
  18 + }-${actionName}`
20 19 ) {
21 20 case "12710101117087404588200-table0-mesTableLineAdd":
22 21 case "12710101117260270570210-table0-mesTableLineAdd":
... ... @@ -86,10 +85,10 @@ const costomPageFun = ({ props, tableName, sFieldName, actionName }) => {
86 85 }
87 86 break;
88 87 }
89   - case "12710101117089395856660-table1-mesTableBtnClick": {
  88 + case "12710101117089395856660-table1-mesTableBtnClick": {
90 89 mesTableBtnClick4(props);
91 90 result = true;
92   - }
  91 + }
93 92 default:
94 93 break;
95 94 }
... ... @@ -1332,7 +1331,7 @@ const handleZlxjCheck = async (props, btnName) => {
1332 1331 sParentId: table0Data[0].sId,
1333 1332 tPollingTime: moment().format('YYYY-MM-DD HH:mm:ss'),
1334 1333 sPollingPerson: name,
1335   - sGroup: sTeamNo.substr(sTeamNo.length-1,1) === 'A' ? 'A' : 'B'
  1334 + sGroup: sTeamNo.substr(sTeamNo.length - 1, 1) === 'A' ? 'A' : 'B'
1336 1335 });
1337 1336  
1338 1337 props.onSaveState({
... ... @@ -1391,7 +1390,7 @@ const getFaceResult = async (props) => {
1391 1390 let faceResult = false;
1392 1391  
1393 1392  
1394   - const selectMethod = commonFunc.showLocalMessage(props, 'selectMethod', '请选择验证方式');
  1393 + const selectMethod = commonFunc.showLocalMessage(props, 'selectMethod', '请选择验证方式');
1395 1394 const FriendlyReminder = commonFunc.showLocalMessage(props, 'FriendlyReminder', '温馨提示');
1396 1395 const accountPwd = commonFunc.showLocalMessage(props, 'account', '账号密码');
1397 1396 const faceRecognition = commonFunc.showLocalMessage(props, 'faceRecognition', '人脸识别');
... ... @@ -1408,7 +1407,7 @@ const getFaceResult = async (props) => {
1408 1407 closable: true,
1409 1408 maskClosable: true,
1410 1409 wrapClassName: "mesCommonModal",
1411   - cancelText:accountPwd,
  1410 + cancelText: accountPwd,
1412 1411 okText: faceRecognition,
1413 1412 onOk() {
1414 1413 resolve(1);
... ... @@ -1451,9 +1450,8 @@ const getFaceResult = async (props) => {
1451 1450 } else if (loginType === 2) {
1452 1451 // 账号密码登陆
1453 1452 let loginConfig;
1454   - const configUrl = `${
1455   - commonConfig.server_host
1456   - }business/getModelBysId/${sModelsId}?sModelsId=${sModelsId}&sName=/commonAuto`;
  1453 + const configUrl = `${commonConfig.server_host
  1454 + }business/getModelBysId/${sModelsId}?sModelsId=${sModelsId}&sName=/commonAuto`;
1457 1455 const configReturn = (await commonServices.getService("", configUrl))
1458 1456 .data;
1459 1457 if (configReturn.code === 1) {
... ... @@ -1498,9 +1496,8 @@ const getFaceResult = async (props) => {
1498 1496 }
1499 1497  
1500 1498 const { sBrandsId, sSubsidiaryId } = mesSysbrands;
1501   - const url = `${
1502   - commonConfig.server_host
1503   - }userloginUserNo/${sBrandsId}/${sSubsidiaryId}`;
  1499 + const url = `${commonConfig.server_host
  1500 + }userloginUserNo/${sBrandsId}/${sSubsidiaryId}`;
1504 1501 const value = {
1505 1502 username: loginInfo.sUserNo || loginInfo.sUserName,
1506 1503 password: loginInfo.sPassWord
... ... @@ -1593,12 +1590,12 @@ const mesTableBtnClick4 = async (props) => {
1593 1590 doNotRefresh: true,
1594 1591 data: [
1595 1592 {
1596   - tablename: "qlyqualityinspectionmaster",
1597   - srcDataset: "table0"
  1593 + tablename: "qlyqualityinspectionmaster",
  1594 + srcDataset: "table0"
1598 1595 },
1599 1596 {
1600   - tablename: "qlyqualityinspectionslave",
1601   - srcDataset: "table1"
  1597 + tablename: "qlyqualityinspectionslave",
  1598 + srcDataset: "table1"
1602 1599 }
1603 1600 ]
1604 1601 }
... ...