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

fix: ' '

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