|
...
|
...
|
@@ -261,11 +261,18 @@ class MyTableManagerHomePageState extends State<MyTableManagerHomePage> { |
|
|
|
in tableManagerModel.tableOuterList[i].list) {
|
|
|
|
item.selected = false;
|
|
|
|
}
|
|
|
|
tableManagerModel.tableOuterList[i].selectTables = [];
|
|
|
|
//单选
|
|
|
|
setState(() {
|
|
|
|
table.selected = true;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
if (table.selected) {
|
|
|
|
tableManagerModel.tableOuterList[i].selectTables.add(table);
|
|
|
|
} else {
|
|
|
|
tableManagerModel.tableOuterList[i].selectTables
|
|
|
|
.removeWhere((t) => t.id == table.id);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
);
|
|
...
|
...
|
@@ -650,27 +657,45 @@ class MyTableManagerHomePageState extends State<MyTableManagerHomePage> { |
|
|
|
: Row(children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
for (t.Table item
|
|
|
|
in tableManagerModel
|
|
|
|
tableManagerModel
|
|
|
|
.tableOuterList[
|
|
|
|
tableManagerModel
|
|
|
|
.selectNumber]
|
|
|
|
.list) {
|
|
|
|
item.selected =
|
|
|
|
false;
|
|
|
|
}
|
|
|
|
setState(() {
|
|
|
|
tableManagerModel
|
|
|
|
.tableOuterList[
|
|
|
|
tableManagerModel
|
|
|
|
.selectNumber]
|
|
|
|
.isSelect =
|
|
|
|
!tableManagerModel
|
|
|
|
.isSelect =
|
|
|
|
!tableManagerModel
|
|
|
|
.tableOuterList[
|
|
|
|
tableManagerModel
|
|
|
|
.selectNumber]
|
|
|
|
.isSelect;
|
|
|
|
|
|
|
|
if (!tableManagerModel
|
|
|
|
.tableOuterList[
|
|
|
|
tableManagerModel
|
|
|
|
.selectNumber]
|
|
|
|
.isSelect &&
|
|
|
|
tableManagerModel
|
|
|
|
.tableOuterList[
|
|
|
|
tableManagerModel
|
|
|
|
.selectNumber]
|
|
|
|
.selectTables
|
|
|
|
.length >
|
|
|
|
1) {
|
|
|
|
for (t.Table item
|
|
|
|
in tableManagerModel
|
|
|
|
.tableOuterList[
|
|
|
|
tableManagerModel
|
|
|
|
.selectNumber]
|
|
|
|
.isSelect;
|
|
|
|
});
|
|
|
|
.list) {
|
|
|
|
item.selected =
|
|
|
|
false;
|
|
|
|
}
|
|
|
|
tableManagerModel
|
|
|
|
.tableOuterList[
|
|
|
|
tableManagerModel
|
|
|
|
.selectNumber]
|
|
|
|
.selectTables = [];
|
|
|
|
}
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
...
|
...
|
@@ -709,6 +734,11 @@ class MyTableManagerHomePageState extends State<MyTableManagerHomePage> { |
|
|
|
? InkWell(
|
|
|
|
onTap: () {
|
|
|
|
tableManagerModel
|
|
|
|
.tableOuterList[
|
|
|
|
tableManagerModel
|
|
|
|
.selectNumber]
|
|
|
|
.selectTables = [];
|
|
|
|
tableManagerModel
|
|
|
|
.tableOuterList[
|
|
|
|
tableManagerModel
|
|
|
|
.selectNumber]
|
|
...
|
...
|
@@ -730,6 +760,13 @@ class MyTableManagerHomePageState extends State<MyTableManagerHomePage> { |
|
|
|
.list) {
|
|
|
|
item.selected =
|
|
|
|
true;
|
|
|
|
tableManagerModel
|
|
|
|
.tableOuterList[
|
|
|
|
tableManagerModel
|
|
|
|
.selectNumber]
|
|
|
|
.selectTables
|
|
|
|
.add(
|
|
|
|
item);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
for (t.Table item
|
...
|
...
|
|