diff --git a/src/components/Common/CommonTable/index.js b/src/components/Common/CommonTable/index.js
index 9da2b15..d830513 100644
--- a/src/components/Common/CommonTable/index.js
+++ b/src/components/Common/CommonTable/index.js
@@ -1229,7 +1229,7 @@ class CommonTableRc extends React.Component {
}
if (commonUtils.isNotEmptyArr(sMakeUpPath)) {
- sMakeUpPath.forEach(item => {
+ sMakeUpPath.forEach((item , index) => {
item.render = (value = '', record) => {
const { formId, name, enabled, config } = this.props;
const { token } = this.props.app;
@@ -1295,7 +1295,7 @@ class CommonTableRc extends React.Component {
if (officeFileTypeList.includes(officeFileType)) {
imgBox = fileIcon;
} else if (imgTypeList.includes(officeFileType)) {
- imgBox =
0} onClick={e => this.handlePreviewImage(e, picAddr)} style={{ width: '30px', height: '20px' }} />;
+ imgBox =
0} onClick={e => this.handlePreviewImage(e, picAddr, index)} style={{ width: '30px', height: '20px' }} />;
}
return imgBox;
@@ -4223,7 +4223,7 @@ class CommonTableRc extends React.Component {
}
/* 点击图片预览 */
- handlePreviewImage = (e, dataUrlArr) => {
+ handlePreviewImage = (e, dataUrlArr, index) => {
e.stopPropagation(); /* 阻止父级穿透 */
if (commonUtils.isNotEmptyObject(dataUrlArr)) {
const { token } = this.props.app;
@@ -4236,7 +4236,7 @@ class CommonTableRc extends React.Component {
previewImage: previewImageArr,
previewVisible: true,
showimgs: true,
- firstIndex: 0,
+ firstIndex: index,
});
}
};
@@ -5400,7 +5400,7 @@ class CommonTableRc extends React.Component {
})
}}>{fileIcon}
} else if (imgTypeList.includes(officeFileType)) {
- imgBox =
0} onClick={e => this.handlePreviewImage(e, picAddr)} style={{ width: '30px', height: '20px' }} />;
+ imgBox =
0} onClick={e => this.handlePreviewImage(e, picAddr, index)} style={{ width: '30px', height: '20px' }} />;
} else {
imgBox =
}
diff --git a/src/utils/config.js b/src/utils/config.js
index 05f028d..fbfdd4b 100644
--- a/src/utils/config.js
+++ b/src/utils/config.js
@@ -15,7 +15,7 @@ export const webSite = {
// ipAddress: localStorage.ipAddress ? localStorage.ipAddress : isDev ? '//km5cjx.gnway.cc:36867/xlyEntry/' : '//' + location.host + '/xlyEntry/',
// ipAddress: localStorage.ipAddress ? localStorage.ipAddress : isDev ? '//8.130.144.93:8088/xlyEntry/' : '//' + location.host + '/xlyEntry/',
interfaceAddress: localStorage.apiAddress ? localStorage.apiAddress : isDev ? '//km5cjx.gnway.cc:36867/xlyApi/' : '//' + location.host + '/xlyApi/', // 接口地址
- fileAddress: isDev ? '//192.168.2.19:8080/xlyEntry/' : '//' + location.host + '/xlyEntry/', // 接口地址
+ fileAddress: isDev ? '//km5cjx.gnway.cc:36867/xlyEntry/' : '//' + location.host + '/xlyEntry/', // 接口地址
fileAddressEbc: isDev ? '//km5cjx.gnway.cc:36867/xlyEntry/' : '//' + location.host + '/xlyEntry/',
};