Commit 91fa20e1 authored by 皮倩雯's avatar 皮倩雯

fix: ' '

parent 3252449e
Pipeline #54961 waiting for manual action with stages
...@@ -39,10 +39,11 @@ const AddModal = props => { ...@@ -39,10 +39,11 @@ const AddModal = props => {
console.log(keepSystemName); console.log(keepSystemName);
if (visible) { if (visible) {
if (type === 'edit') { if (type === 'edit') {
console.log(pickItem);
console.log(pickItem.AccountParam[0]); console.log(pickItem.AccountParam[0]);
form.setFieldsValue({ form.setFieldsValue({
accountParamKey: pickItem.AccountParam[0].key, accountParamKey: pickItem.AccountParamKey,
accountParamValue: pickItem.AccountParam[0].value === 1 ? '熊猫ticket' : '熊猫token', accountParamValue: pickItem.AccountParamValue === 1 ? '熊猫ticket' : '熊猫token',
internetAddress: pickItem.InternetAddress, internetAddress: pickItem.InternetAddress,
intranetAddress: pickItem.IntranetAddress, intranetAddress: pickItem.IntranetAddress,
systemClient: pickItem.SystemClient, systemClient: pickItem.SystemClient,
......
...@@ -133,22 +133,24 @@ const Integrate = () => { ...@@ -133,22 +133,24 @@ const Integrate = () => {
}, },
{ {
title: '账号参数', title: '账号参数',
dataIndex: 'AccountParam', dataIndex: 'AccountParamKey',
key: 'AccountParamKey',
align: 'center', align: 'center',
render: (text, record) => ( render: (text, record) => (
<span> <span>
<Tooltip placement="top" title={text}> <Tooltip placement="top" title={text}>
{text[0].key} {text}
</Tooltip> </Tooltip>
</span> </span>
), ),
}, },
{ {
title: '账号值', title: '账号值',
dataIndex: 'AccountParam', dataIndex: 'AccountParamValue',
key: 'AccountParamValue',
align: 'center', align: 'center',
render: record => { render: record => {
if (record[0].value === 1) { if (record === 1) {
return <span>熊猫ticket</span>; return <span>熊猫ticket</span>;
} }
return <span>熊猫token</span>; return <span>熊猫token</span>;
...@@ -203,12 +205,15 @@ const Integrate = () => { ...@@ -203,12 +205,15 @@ const Integrate = () => {
console.log(resnew.data); console.log(resnew.data);
let aa = []; let aa = [];
if (resnew.data.length > 0) { if (resnew.data.length > 0) {
resnew.data.map(i => { resnew.data.map((i, j) => {
aa.push(i.SystemName); aa.push(i.SystemName);
resnew.data[j].AccountParamKey = i.AccountParam[0].key;
resnew.data[j].AccountParamValue = i.AccountParam[0].value;
}); });
} }
console.log(aa); console.log(aa);
setKeepSystemName(aa); setKeepSystemName(aa);
console.log(resnew.data);
setTableData(resnew.data); setTableData(resnew.data);
} else { } else {
notification.error({ notification.error({
......
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