Commit ee7ead99 authored by 皮倩雯's avatar 皮倩雯

fix: '修复巡检反馈切换关联事件表按钮一直变灰bug'

parent ad4583e4
Pipeline #63526 passed with stages
......@@ -164,27 +164,27 @@ const AddModal = props => {
setKeepTree(res.data.root);
}
// let arrlist = [];
// let data = {};
// let listArr = [];
// res.data.root.map(i => {
// arrlist.push(i.name);
// });
// data.TableFieldNames = arrlist;
// data.TableName = e;
// listArr.push(data);
// let arr = formateArrDataA2(res.data.root, 'group');
// let newArr = [];
// Object.keys(arr).map((item, index) => {
// newArr.push({ type: item, key: index, id: index });
// });
// let aa = [];
// let bb = [];
// Object.keys(arr).forEach((item, index) => {
// aa.push({ name: item, key: index, ID: index, children: arr[item] });
// bb.push(item);
// });
// console.log(aa, 'aaaaaaaaaaaaa');
let arrlist = [];
let data = {};
let listArr = [];
res.data.root.map(i => {
arrlist.push(i.name);
});
data.TableFieldNames = arrlist;
data.TableName = e;
listArr.push(data);
let arr = formateArrDataA2(res.data.root, 'group');
let newArr = [];
Object.keys(arr).map((item, index) => {
newArr.push({ type: item, key: index, id: index });
});
let aa = [];
let bb = [];
Object.keys(arr).forEach((item, index) => {
aa.push({ name: item, key: index, ID: index, children: arr[item] });
bb.push(item);
});
console.log(aa, 'aaaaaaaaaaaaa');
// setKeepTree(aa);
// setKeepAll(aa);
// all.current = aa;
......@@ -560,6 +560,7 @@ const AddModal = props => {
// 改变关联事件类型
const onChangeEvent = (e, i) => {
if (!i) {
setKeepData(keep);
formAdd.resetFields();
}
console.log(e);
......
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