|
...
|
...
|
@@ -1506,12 +1506,27 @@ class MyTableManagerHomePageState extends State<MyTableManagerHomePage> { |
|
|
|
return;
|
|
|
|
}
|
|
|
|
String tids = '';
|
|
|
|
String tableNameShow = '';
|
|
|
|
for (t.Table item in tableManagerModel
|
|
|
|
.tableOuterList[
|
|
|
|
tableManagerModel.selectNumber]
|
|
|
|
.selectTables) {
|
|
|
|
// 统计有合并关系的按钮
|
|
|
|
if(item.isMerge == '1' || item.isLock == '1'){
|
|
|
|
//存在合并或者被合并
|
|
|
|
tableNameShow += '${item.name},';
|
|
|
|
}
|
|
|
|
tids += '${item.id},';
|
|
|
|
}
|
|
|
|
|
|
|
|
if(tableNameShow.endsWith(',')){
|
|
|
|
tableNameShow = tableNameShow.substring(0,tableNameShow.length-1);
|
|
|
|
}
|
|
|
|
if(tableNameShow.length > 0){
|
|
|
|
//提示
|
|
|
|
Utils.showToast('${tableNameShow}不可选择,请解除关系后再删除。');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (tids.endsWith(',')) {
|
|
|
|
tids = tids.substring(0, tids.length - 1);
|
|
|
|
}
|
...
|
...
|
|