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

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

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