|
@@ -566,6 +566,13 @@
|
|
|
},
|
|
|
//启用
|
|
|
openClick(row,type){
|
|
|
+ if (this.checkedList.length == 0) {
|
|
|
+ this.$message({
|
|
|
+ type: "warning",
|
|
|
+ message: "请选择需要操作的数据",
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
if(type==1){
|
|
|
this.openLoading=true;
|
|
|
}else{
|
|
@@ -634,15 +641,7 @@
|
|
|
});
|
|
|
},
|
|
|
handleAdd(row,index) {
|
|
|
- console.log('新增', row);
|
|
|
this.tableData1.splice(index + 1, 0, {});
|
|
|
- // this.elementList = [];
|
|
|
- // this.selectedSourceOption = 1;
|
|
|
- // this.elementTableNameSelect = [];
|
|
|
- // this.elementCategorySelect = '';
|
|
|
- // this.positionList = [];
|
|
|
- // this.positionNameSelect = [];
|
|
|
- // this.partyCategorySelect = '';
|
|
|
|
|
|
|
|
|
// 新增操作的逻辑
|
|
@@ -654,6 +653,13 @@
|
|
|
},
|
|
|
rowDel() {
|
|
|
let ids=''
|
|
|
+ if (this.checkedList.length == 0) {
|
|
|
+ this.$message({
|
|
|
+ type: "warning",
|
|
|
+ message: "请选择需要删除的数据",
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (this.checkedList.length > 0) {
|
|
|
ids = this.checkedList.map(item => item.id).join(',');
|
|
|
}
|