Commit 2b04ff10 authored by 涂伟's avatar 涂伟

fix: '表字段配置台账选择器形态bug修复'

parent dd063595
Pipeline #68142 passed with stages
......@@ -885,8 +885,15 @@ const AddModal = props => {
case '台账选择器':
let book = res[0].data.root.Config.split('.');
let rueslt1 = keepStandingBook.find(i => i.name == book[0]);
console.log(keepStandingBook,book[0],rueslt1,'keepStandingBook,book[0]');
getMapFelidValue(rueslt1?.tableName);
if(!rueslt1) {
notification.error({
message: '提示',
duration: 3,
description: `没有匹配到台账名(${book[0]}),请检查配置!`,
});
} else {
getMapFelidValue(rueslt1?.tableName);
}
let bb = book[1].split('?');
if (bb[0].indexOf('[') !== -1) {
let filedname = JSON.parse(bb[0]);
......@@ -968,7 +975,15 @@ const AddModal = props => {
let data11 = JSON.parse(res[0].data.root.Config);
let rueslt = keepStandingBook.find(i => i.name == data11.台账名称);
console.log(rueslt.tableName);
getMapFelidValue(rueslt.tableName);
if(!rueslt1) {
notification.error({
message: '提示',
duration: 3,
description: `没有匹配到台账名(${book[0]}),请检查配置!`,
});
} else {
getMapFelidValue(rueslt1?.tableName);
}
form.setFieldsValue({
standingBook: data11.台账名称,
workOrder: data11.映射字段[data11.映射字段.length - 1].fromField,
......@@ -1944,7 +1959,15 @@ const AddModal = props => {
let data11 = JSON.parse(aa.Config);
let rueslt = keepStandingBook.find(i => i.name == data11.台账名称);
console.log(rueslt.tableName);
getMapFelidValue(rueslt.tableName);
if(!rueslt1) {
notification.error({
message: '提示',
duration: 3,
description: `没有匹配到台账名(${book[0]}),请检查配置!`,
});
} else {
getMapFelidValue(rueslt1?.tableName);
}
form.setFieldsValue({
standingBook: data11.台账名称,
workOrder: data11.映射字段[data11.映射字段.length - 1].fromField,
......@@ -1966,7 +1989,15 @@ const AddModal = props => {
console.log(aa.Config);
let book = aa.Config.split('.');
let rueslt1 = keepStandingBook.find(j => j.name == book[0]);
getMapFelidValue(rueslt1.tableName);
if(!rueslt1) {
notification.error({
message: '提示',
duration: 3,
description: `没有匹配到台账名(${book[0]}),请检查配置!`,
});
} else {
getMapFelidValue(rueslt1?.tableName);
}
let ad = book[1].split('?');
if (ad[0].indexOf('[') !== -1) {
......@@ -2434,7 +2465,15 @@ const AddModal = props => {
let data11 = JSON.parse(res[0].data.root.Config);
let rueslt = keepStandingBook.find(i => i.name == data11.台账名称);
console.log(rueslt.tableName);
getMapFelidValue(rueslt.tableName);
if(!rueslt1) {
notification.error({
message: '提示',
duration: 3,
description: `没有匹配到台账名(${book[0]}),请检查配置!`,
});
} else {
getMapFelidValue(rueslt1?.tableName);
}
form.setFieldsValue({
standingBook: data11.台账名称,
workOrder: data11.映射字段[data11.映射字段.length - 1].fromField,
......@@ -2457,7 +2496,15 @@ const AddModal = props => {
let book = res[0].data.root.Config.split('.');
let rueslt1 = keepStandingBook.find(i => i.name == book[0]);
console.log(rueslt1.tableName);
getMapFelidValue(rueslt1.tableName);
if(!rueslt1) {
notification.error({
message: '提示',
duration: 3,
description: `没有匹配到台账名(${book[0]}),请检查配置!`,
});
} else {
getMapFelidValue(rueslt1?.tableName);
}
let ab = book[1].split('?');
console.log(ab);
......
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