diff --git a/src/mobile/common/CommobileSubBill.js b/src/mobile/common/CommobileSubBill.js index 95909fe..9bb7662 100644 --- a/src/mobile/common/CommobileSubBill.js +++ b/src/mobile/common/CommobileSubBill.js @@ -2076,7 +2076,7 @@ class CommobileBill extends React.Component { const dWidth = document.documentElement.clientWidth || document.body.clientWidth; /* 获取手机视窗宽度 */ - const dHeight = document.documentElement.clientHeight || document.body.clientHeight; /* 获取手机视窗宽度 */ + const dHeight = document.documentElement.clientHeight || document.body.clientHeight; /* 获取手机视窗宽1度 */ const formItemLayout = { labelCol: { span: 2 }, wrapperCol: { span: 18 } }; const style = { display: 'flex', @@ -2094,7 +2094,7 @@ class CommobileBill extends React.Component { const rowSum = (rowData, sectionID, rowID) => { return (
- {commonUtils.isEmptyObject(slaveConfig) ? '' : slaveConfig.gdsconfigformslave.filter(item => item.bVisible && item.sName !== '').map((child) => { + 2323232 {commonUtils.isEmptyObject(slaveConfig) ? '' : slaveConfig.gdsconfigformslave.filter(item => item.bVisible && item.sName !== '').map((child) => { const sMemo = child.sName.toLowerCase().endsWith('memo'); // sUseInfo是指被其他单据调用,或者被审核 let enabledNew = (enabled && !child.bReadonly && !child.specialControl && commonUtils.isEmpty(sUseInfo)); @@ -2261,6 +2261,11 @@ const TabComponentSlave = (props) => { const { masterConfig, masterData, slaveData: slaveDataOld, slaveConfig, sModelsId, enabled, app, sUseInfo, searchSlaveData:searchSlaveDataOld = [], bSearchModel } = props; + // 需要优化性能的模块ID列表(PDA慢的界面) + const performanceOptimizedModels = [ + '12710101117220510358930', + ]; + const isPerformanceOptimized = performanceOptimizedModels.includes(sModelsId); const slaveDataOld2 = slaveDataOld || []; let showList = slaveDataOld2; @@ -2443,7 +2448,7 @@ const TabComponentSlave = (props) => { pageSize={commonConfig.pageSize} initialListSize={0} onScroll={() => {}} - scrollRenderAheadDistance={500} + scrollRenderAheadDistance={isPerformanceOptimized ? 100 : 500} onEndReachedThreshold={10} className={styles.listView} /> @@ -2467,6 +2472,13 @@ const TabComponentSlave = (props) => { const TabComponentSlaveChild = (props) => { const { masterConfig, masterData, slaveData: slaveDataOld, slaveChildData: slaveChildDataOld, slaveChildConfig, slaveConfig, sModelsId, enabled, app, sUseInfo } = props; + + // 需要优化性能的模块ID列表(PDA慢的界面) + const performanceOptimizedModels = [ + '12710101117220510358930', + ]; + const isPerformanceOptimized = performanceOptimizedModels.includes(sModelsId); + const slaveDataOld2 = slaveDataOld === undefined ? [] : slaveDataOld; const slaveData = dataSource.cloneWithRows(slaveDataOld2); diff --git a/src/mobile/components/FileManageMobileWx.js b/src/mobile/components/FileManageMobileWx.js index 377b01d..a4b6ac8 100644 --- a/src/mobile/components/FileManageMobileWx.js +++ b/src/mobile/components/FileManageMobileWx.js @@ -290,6 +290,7 @@ class FileManageMobile extends React.Component { /* 将二进制地址存储到数据中 */ const value ={ picUrl : [base64Url]}; const returnData = (await commonServices.postValueService(app.token, value, dataUrl)).data; + console.log('结果返回:', returnData); /* 拿到上传返回的数据库地址 */ const dataReturn = returnData.dataset.rows; if (commonUtils.isNotEmptyArr(dataReturn) && dataReturn.length > 0) { @@ -395,7 +396,8 @@ class FileManageMobile extends React.Component { reader.readAsDataURL(file); reader.onload = async function (e) { const urlArr = [reader.result]; - const dataUrl = `${commonConfig.server_host}file/mobileuploadwechat?sModelsId=${sModelsId}&token=${token}`; + const dataUrl = `${commonConfig.server_host}file/mobileuploadwechat?sModelsId=${sModelsId}&token=${token}& + sLanguage=sChinese`; /* 将二进制地址存储到数据中 */ const value ={ picUrl : urlArr}; const returnData = (await commonServices.postValueService(app.token, value, dataUrl)).data; diff --git a/src/utils/config.js b/src/utils/config.js index bde42d0..4672b1e 100644 --- a/src/utils/config.js +++ b/src/utils/config.js @@ -27,7 +27,7 @@ export default { pageSize: 20, /* 一页个数 */ pageSizeOptions: ['20', '50', '100', '200', '500', '1000', '2000', '5000'], /* 选择页数参数 */ hasSum: false, - isWeiXin: false, + isWeiXin: location.search?.includes('isweixin'), server_host: bHttps ? `https:${webSite.ipAddress}` : `http:${webSite.ipAddress}`, /* 外网连内网服务器地址 */ ws_host: bHttps ? `wss:${webSite.ipAddress}` : `ws:${webSite.ipAddress}`, file_host: bHttps ? `https:${webSite.fileAddress}` : `http:${webSite.fileAddress}`, /* 外网连内网服务器地址 */