Commit d72f0c72 authored by 吴俊凯's avatar 吴俊凯

查看巡检项图片修改

parent 8b039539
...@@ -121,7 +121,7 @@ export const FscSerUrl = { ...@@ -121,7 +121,7 @@ export const FscSerUrl = {
fetchRegionSelectUrl: completePrefix(patrolURI, 'safe/save/curCompany/{orgCode}'), // 注入选择的厂区信息 GET fetchRegionSelectUrl: completePrefix(patrolURI, 'safe/save/curCompany/{orgCode}'), // 注入选择的厂区信息 GET
userInfoByDeptIdUrl: completePrefix(patrolURI, 'api/user/queryDeptUser?deptId={deptId}'), //查询部门下人员信息 userInfoByDeptIdUrl: completePrefix(patrolURI, 'api/user/queryDeptUser?deptId={deptId}'), //查询部门下人员信息
routePlanPointPageUrl: completePrefix(patrolURI, 'api/spc/routePlanPoint/list'), routePlanPointPageUrl: completePrefix(patrolURI, 'api/spc/routePlanPoint/list'),
searchCheckShortUrl: completePrefix(patrolURI, 'api/check/getCheckPic?checkId={checkId}&checkInputId={checkInputId}'), //根据检查项ID和检查项输入ID查询图片 searchCheckShortUrl: completePrefix(patrolURI, 'api/check/getCheckPic?checkId={checkId}&checkInputId={checkInputId}&classifyId={classifyId}'), //根据检查项ID和检查项输入ID查询图片
}; };
export const FasSerUrl = { export const FasSerUrl = {
......
...@@ -29,6 +29,6 @@ export const queryRiskSoureWarningAction = (riskSourceId) => { ...@@ -29,6 +29,6 @@ export const queryRiskSoureWarningAction = (riskSourceId) => {
return commonGet(formatUrl(FasSerUrl.riskSoureWarningUrl, { riskSourceId })); return commonGet(formatUrl(FasSerUrl.riskSoureWarningUrl, { riskSourceId }));
}; };
export const fetchShortByCheckIdAndCheckInputId = (checkId, checkInputId) => { export const fetchShortByCheckIdAndCheckInputId = (checkId, checkInputId,classifyId) => {
return commonGet(formatUrl(FscSerUrl.searchCheckShortUrl, { checkId, checkInputId })); return commonGet(formatUrl(FscSerUrl.searchCheckShortUrl, { checkId, checkInputId,classifyId }));
}; };
...@@ -321,7 +321,8 @@ class CheckDetail extends Component { ...@@ -321,7 +321,8 @@ class CheckDetail extends Component {
let { checkID } = this.props.location.state; let { checkID } = this.props.location.state;
const { checkDetail } = this.state; const { checkDetail } = this.state;
let inputItemPicShow = record.inputId ? true : false; let inputItemPicShow = record.inputId ? true : false;
inputItemPicShow && fetchShortByCheckIdAndCheckInputId(checkID, record.inputId ? record.inputId : 0).then( data => { let classifyId = record.classifyId ? record.classifyId : 0;
inputItemPicShow && fetchShortByCheckIdAndCheckInputId(checkID, record.inputId ? record.inputId : 0,classifyId).then( data => {
let photosUrl = new Array(); let photosUrl = new Array();
if (data && data.length > 0) { if (data && data.length > 0) {
photosUrl = data; photosUrl = data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment