Commit eae364ac authored by 王苓芝's avatar 王苓芝

凭证资料查看

parent 502329bc
...@@ -2,13 +2,13 @@ const isProduction = process.env.NODE_ENV === 'production'; ...@@ -2,13 +2,13 @@ const isProduction = process.env.NODE_ENV === 'production';
let envAPi = { let envAPi = {
// api: '//backstms-vcc3.liangkebang.net', // api: '//backstms-vcc3.liangkebang.net',
api: '//backstms-vcc2.liangkebang.net', api: '//backstms-test2.liangkebang.net',
// kdspApi: '//yapi.quantgroups.com/mock/351', // kdspApi: '//yapi.quantgroups.com/mock/351',
// kdspApi: 'http://192.168.28.172:8042', // kdspApi: 'http://192.168.28.172:8042',
// kdspApi: 'https://kdsp-operation-vcc3.liangkebang.net', // kdspApi: 'https://kdsp-operation-vcc3.liangkebang.net',
kdspApi: 'https://kdsp-operation-vcc2.liangkebang.net', kdspApi: 'https://kdsp-operation-test2.liangkebang.net',
qiniuHost: 'https://appsync.lkbang.net', qiniuHost: 'https://appsync.lkbang.net',
opapiHost: 'https://opapi-vcc2.liangkebang.net', opapiHost: 'https://opapi-test2.liangkebang.net',
}; };
let prodApi = { let prodApi = {
......
...@@ -34,7 +34,8 @@ const Appeal = () => { ...@@ -34,7 +34,8 @@ const Appeal = () => {
table.current.reload(); table.current.reload();
} }
}; };
const openImgModal = imgList => { const openImgModal = imgStr => {
const imgList = imgStr ? imgStr.split(',') : [];
if (!imgList.length) { if (!imgList.length) {
notification.error({ notification.error({
message: '啊哦~没有数据!', message: '啊哦~没有数据!',
......
...@@ -94,10 +94,10 @@ export function columns(res) { ...@@ -94,10 +94,10 @@ export function columns(res) {
dataIndex: 'proofs', dataIndex: 'proofs',
key: 'proofs', key: 'proofs',
hideInSearch: true, hideInSearch: true,
render: proofs => { render: (_, row) => (
const list = proofs && proofs !== '-' ? proofs.split(',') : []; // const list = proofs && proofs !== '-' ? proofs.split(',') : [];
return <a onClick={() => openImgModal(list)}>查看凭证</a>; <a onClick={() => openImgModal(row.proofs)}>查看凭证</a>
}, ),
}, },
{ {
title: '申诉单创建时间', title: '申诉单创建时间',
...@@ -126,10 +126,10 @@ export function columns(res) { ...@@ -126,10 +126,10 @@ export function columns(res) {
dataIndex: 'supplement', dataIndex: 'supplement',
key: 'supplement', key: 'supplement',
hideInSearch: true, hideInSearch: true,
render: supplement => { render: (_, row) => (
const list = supplement && supplement !== '-' ? supplement.split(',') : []; // const list = supplement && supplement !== '-' ? supplement.split(',') : [];
return <a onClick={() => openImgModal(list)}>查看补充资料</a>; <a onClick={() => openImgModal(row.supplement)}>查看补充资料</a>
}, ),
}, },
{ {
title: '协商结果', title: '协商结果',
......
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