commit
This commit is contained in:
@@ -1035,7 +1035,7 @@ export default {
|
||||
this.selectList.map(item => {
|
||||
let index;
|
||||
index = this.dataList.findIndex(items => {
|
||||
return items.id = item;
|
||||
return items.id === item;
|
||||
});
|
||||
if (index > -1) {
|
||||
this.dataList.splice(index, 1);
|
||||
|
||||
@@ -595,7 +595,7 @@ export default {
|
||||
this.selectList.map(item => {
|
||||
let index;
|
||||
index = this.dataList.findIndex(items => {
|
||||
return items.id = item;
|
||||
return items.id === item;
|
||||
});
|
||||
if (index > -1) {
|
||||
this.dataList.splice(index, 1);
|
||||
|
||||
@@ -994,6 +994,8 @@ export default {
|
||||
},
|
||||
// 点击批量删除事件
|
||||
deleteList() {
|
||||
console.log(this.selectList);
|
||||
console.log(this.dataList);
|
||||
if (this.selectList.length < 1) {
|
||||
this.$message.warning("请选择一条数据进行删除");
|
||||
} else {
|
||||
@@ -1007,10 +1009,12 @@ export default {
|
||||
this.selectList.map(item => {
|
||||
let index;
|
||||
index = this.dataList.findIndex(items => {
|
||||
return items.id = item;
|
||||
return items.id === item;
|
||||
});
|
||||
console.log(index);
|
||||
if (index > -1) {
|
||||
this.dataList.splice(index, 1);
|
||||
console.log(this.dataList);
|
||||
}
|
||||
exits.push(item);
|
||||
});
|
||||
|
||||
@@ -598,7 +598,7 @@ export default {
|
||||
this.selectList.map(item => {
|
||||
let index;
|
||||
index = this.dataList.findIndex(items => {
|
||||
return items.id = item;
|
||||
return items.id === item;
|
||||
});
|
||||
if (index > -1) {
|
||||
this.dataList.splice(index, 1);
|
||||
|
||||
@@ -394,7 +394,7 @@ export default {
|
||||
this.deleteDataList.map(item => {
|
||||
let index;
|
||||
index = this.dataList.findIndex(items => {
|
||||
return items.id = item;
|
||||
return items.id === item;
|
||||
});
|
||||
if (index > -1) {
|
||||
this.dataList.splice(index, 1);
|
||||
@@ -430,7 +430,7 @@ export default {
|
||||
this.selectedList.map(item => {
|
||||
let addList;
|
||||
addList = this.dataList.findIndex(items => {
|
||||
return items.id == item.id
|
||||
return items.id === item.id
|
||||
})
|
||||
if(addList > -1){
|
||||
// this.$refs.accessTypeSelect.clearSelection()
|
||||
|
||||
@@ -631,7 +631,7 @@ export default {
|
||||
this.selectList.map(item => {
|
||||
let index;
|
||||
index = this.dataList.findIndex(items => {
|
||||
return items.productLine = item;
|
||||
return items.productLine === item;
|
||||
});
|
||||
if (index > -1) {
|
||||
this.dataList.splice(index, 1);
|
||||
|
||||
@@ -605,7 +605,7 @@ export default {
|
||||
this.selectList.map(item => {
|
||||
let index;
|
||||
index = this.dataList.findIndex(items => {
|
||||
return items.productLine = item;
|
||||
return items.productLine === item;
|
||||
});
|
||||
if (index > -1) {
|
||||
this.dataList.splice(index, 1);
|
||||
|
||||
@@ -450,8 +450,13 @@ export default {
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.ProjectDatas = res.data.Maintenance.records;
|
||||
this.total = res.data.Maintenance.total;
|
||||
if(res.data === null){
|
||||
this.ProjectDatas = ''
|
||||
this.total = 0
|
||||
}else{
|
||||
this.ProjectDatas = res.data.Maintenance.records;
|
||||
this.total = res.data.Maintenance.total;
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
@@ -421,6 +421,7 @@ export default {
|
||||
//标准表格选择框改变
|
||||
selectStandChange(data) {
|
||||
this.selectList = data;
|
||||
console.log(this.selectList);
|
||||
},
|
||||
getTree() {
|
||||
this.$http.get("SarInstitution/institution/institutionAndUser", {}, {}, res => {
|
||||
|
||||
Reference in New Issue
Block a user