|
|
@@ -307,6 +307,7 @@
|
|
|
_this.loading=false
|
|
|
_this.initData()
|
|
|
} else {
|
|
|
+ _this.loading=false
|
|
|
_this.$message({
|
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
|
@@ -381,6 +382,14 @@
|
|
|
this.Ids=[]
|
|
|
this.Ids.push(val.Id)
|
|
|
}
|
|
|
+ console.log(this.Ids)
|
|
|
+ if(this.Ids.length==0){
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请先选择删除条目'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
let _this = this
|
|
|
_this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
@@ -388,6 +397,10 @@
|
|
|
type: 'warning'
|
|
|
})
|
|
|
.then(() => {
|
|
|
+ const delload= this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '正在删除请稍后...',
|
|
|
+ });
|
|
|
_this.$axios.delete('suppliercertsub/businessdelete/' + this.Ids.join(), {})
|
|
|
.then(function (response) {
|
|
|
if (response.data.code === 0) {
|
|
|
@@ -395,8 +408,12 @@
|
|
|
type: 'success',
|
|
|
message: response.data.message
|
|
|
})
|
|
|
+ _this.Ids=[]
|
|
|
+ delload.close()
|
|
|
_this.initData()
|
|
|
} else {
|
|
|
+ _this.Ids=[]
|
|
|
+ delload.close()
|
|
|
_this.$message({
|
|
|
type: 'warning',
|
|
|
message: response.data.message
|
|
|
@@ -407,7 +424,9 @@
|
|
|
console.log(error)
|
|
|
})
|
|
|
})
|
|
|
- .catch(() => {})
|
|
|
+ .catch(() => {
|
|
|
+ _this.Ids=[]
|
|
|
+ })
|
|
|
},
|
|
|
showDialog() {
|
|
|
this.selectedorg = []
|