| | |
| | | export const debug = { |
| | | // web服务 |
| | | // baseUrl: 'http://gz.hugeinfo.com.cn', |
| | | baseUrl: "http://6vynrg.natappfree.cc", |
| | | baseUrl: "http://4gg4nv.natappfree.cc", |
| | | // baseUrl: 'http://mdqgnh.natappfree.cc', |
| | | |
| | | // 附件服务 |
| | | fileUrl: "http://6vynrg.natappfree.cc", |
| | | fileUrl: "http://4gg4nv.natappfree.cc", |
| | | // fileUrl: 'http://gz.hugeinfo.com.cn', |
| | | |
| | | // 文件查看url 后面接附件编号 |
| | |
| | | token |
| | | }) |
| | | if (res.type) { |
| | | setGridStatus(true) |
| | | $$.setSessionStorage('gridToken', '') |
| | | $$.clearSessionStorage(); |
| | | $$.setSessionStorage('customerSystemToken', res.data?.token); |
| | | $$.setLocal('customerSystemUser', res.data || {}); |
| | | let ctUseroleList = res.data?.ctUseroleList || []; |
| | | console.log(ctUseroleList); |
| | | const roleId = ctUseroleList[0]?.roleId |
| | | const roleName = ctUseroleList[0]?.roleName |
| | | const roleCode = ctUseroleList[0]?.roleCode |
| | | $$.setSessionStorage('role', { roleId: roleId, roleName: roleName }); |
| | | setRoleActive({ id: roleId, roleName: roleName, powerMap: {} }); |
| | | const res = await switchRoleApi({ roleCode: roleCode }); |
| | | if (res.type) { |
| | | $$.setSessionStorage('customerSystemToken', res.data); |
| | | navigate('/mediate/visit/visitWorkBench'); |
| | | const result = await switchRoleApi({ roleCode: roleCode }); |
| | | if (result.type) { |
| | | $$.setSessionStorage('customerSystemToken', result.data); |
| | | setGridStatus(true) |
| | | } |
| | | } |
| | | } |
| | |
| | | getRolePower(roleActive.id, roleActive.roleName); |
| | | } |
| | | }, [roleActive.id]); |
| | | |
| | | console.log(gridStatus); |
| | | return ( |
| | | <> |
| | | <Header |
| | |
| | | const getCaseInfo = async (id) => { |
| | | const res = await getCaseInfoApi(id) |
| | | if (res.type) { |
| | | console.log(res, 'res') |
| | | let caseDes = res.data.caseDes; |
| | | let caseClaim = res.data.caseClaim; |
| | | setCaseDetailAi(caseDes) |
| | |
| | | const partyList = data.personList.concat(data.agentList) |
| | | setInfoData({ |
| | | ...data, |
| | | questionName: data.queProvName === null ? '-' : data.queProvName + '/' + data.queCityName + '/' + data.queAreaName + '/' + data.queRoadName, |
| | | questionName: data.queProvName === null ? '-' : data.queCityName + '/' + data.queAreaName + '/' + data.queRoadName, |
| | | caseType: data.caseTypeFirstName === null ? '-' : data.caseTypeFirstName + '/' + data.caseTypeName |
| | | }) |
| | | setFakeData(partyList.map(item => { |
| | |
| | | if (fileInfoList && fileInfoList.length != 0) { |
| | | fileInfoList.forEach(item => { |
| | | if (item.ownerType == '22_00018-202' || item.ownerType == '22_00018-203') { |
| | | file.push({ |
| | | name: item.fileList[0].trueName, |
| | | uid: item.fileList[0].id, |
| | | }) |
| | | item.fileList.forEach(res => { |
| | | file.push({ |
| | | ...res, |
| | | uid: res.id, |
| | | }) |
| | | }) |
| | | } |
| | | if (item.ownerType == '22_00018-204' || item.ownerType == '22_00018-207') { |
| | | file1.push({ |
| | | name: item.fileList[0].trueName, |
| | | uid: item.fileList[0].id, |
| | | }) |
| | | item.fileList.forEach(res => { |
| | | file1.push({ |
| | | ...res, |
| | | uid: res.id, |
| | | }) |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | |
| | | file, |
| | | file1 |
| | | } |
| | | })) |
| | | }) || []) |
| | | } |
| | | |
| | | } |