centaline-data-driven 1.4.77 → 1.4.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -566,15 +566,7 @@ const FormList = function (source, master) {
|
|
|
566
566
|
})
|
|
567
567
|
if(countKey===rtn.primaryKeys.length){
|
|
568
568
|
flagAdd=false;
|
|
569
|
-
if(iRow.deleted){
|
|
570
|
-
if(rtn.disabled){
|
|
571
|
-
Vue.prototype.$message({
|
|
572
|
-
message: '已超过最大数量,不能新增!',
|
|
573
|
-
type: 'error',
|
|
574
|
-
showClose:true,
|
|
575
|
-
});
|
|
576
|
-
return;
|
|
577
|
-
}
|
|
569
|
+
if(iRow.deleted){
|
|
578
570
|
rtn.tableData.forEach((d,index) => {
|
|
579
571
|
if(d.$sourceIndex===r.$sourceIndex){
|
|
580
572
|
rtn.tableData.splice(index, 1);
|
|
@@ -606,6 +598,14 @@ const FormList = function (source, master) {
|
|
|
606
598
|
rtn.tableData.splice(tableDataIndex, 1,rowData);
|
|
607
599
|
}
|
|
608
600
|
else{
|
|
601
|
+
if(rtn.disabled){
|
|
602
|
+
Vue.prototype.$message({
|
|
603
|
+
message: '已超过最大数量,不能新增!',
|
|
604
|
+
type: 'error',
|
|
605
|
+
showClose:true,
|
|
606
|
+
});
|
|
607
|
+
return;
|
|
608
|
+
}
|
|
609
609
|
rtn.tableData.push(rowData);
|
|
610
610
|
}
|
|
611
611
|
}
|