|
@@ -1642,22 +1642,23 @@ export default {
|
|
this.allEmpty.dialogFormVisible = false;
|
|
this.allEmpty.dialogFormVisible = false;
|
|
this.getList()
|
|
this.getList()
|
|
}else{
|
|
}else{
|
|
- this.requestParam = {}
|
|
|
|
- this.requestParam.common = { 'returnmap': '0' }
|
|
|
|
- this.requestParam.data = []
|
|
|
|
- this.requestParam.data[0] = { 'name': 'deleteLpplandtl1All', 'type': 'e', 'parammaps': { pastureid: Cookies.get('pastureid') ,times:this.table.getdataListParm.parammaps.times,barid:this.allEmptySelect.toString()}},
|
|
|
|
- this.requestParam.data[1] = { 'name': 'deletefpdetailAll', 'type': 'e', 'parammaps': { pastureid: Cookies.get('pastureid') ,times:this.table.getdataListParm.parammaps.times,barid:this.allEmptySelect.toString()}},
|
|
|
|
- this.requestParam.data[1] = { 'name': 'deletefpdetailAll', 'type': 'e', 'parammaps': { pastureid: Cookies.get('pastureid') ,times:this.table.getdataListParm.parammaps.times,barid:this.allEmptySelect.toString()}},
|
|
|
|
- ExecDataByConfig(this.requestParam).then(response => {
|
|
|
|
- console.log('清空已分配栏舍', this.requestParam)
|
|
|
|
- if (response.msg === 'fail') {
|
|
|
|
- this.$notify({ title: '清空失败', message: response.data, type: 'warning', duration: 2000 })
|
|
|
|
- } else {
|
|
|
|
|
|
+ // this.requestParam = {}
|
|
|
|
+ // this.requestParam.common = { 'returnmap': '0' }
|
|
|
|
+ // this.requestParam.data = []
|
|
|
|
+ // this.requestParam.data[0] = { 'name': 'deleteLpplandtl1All', 'type': 'e', 'parammaps': { pastureid: Cookies.get('pastureid') ,times:this.table.getdataListParm.parammaps.times,barid:this.allEmptySelect.toString()}},
|
|
|
|
+ // this.requestParam.data[1] = { 'name': 'deletefpdetailAll', 'type': 'e', 'parammaps': { pastureid: Cookies.get('pastureid') ,times:this.table.getdataListParm.parammaps.times,barid:this.allEmptySelect.toString()}},
|
|
|
|
+ // this.requestParam.data[1] = { 'name': 'deletefpdetailAll', 'type': 'e', 'parammaps': { pastureid: Cookies.get('pastureid') ,times:this.table.getdataListParm.parammaps.times,barid:this.allEmptySelect.toString()}},
|
|
|
|
+ // ExecDataByConfig(this.requestParam).then(response => {
|
|
|
|
+ // console.log('清空已分配栏舍', this.requestParam)
|
|
|
|
+ // if (response.msg === 'fail') {
|
|
|
|
+ // this.$notify({ title: '清空失败', message: response.data, type: 'warning', duration: 2000 })
|
|
|
|
+ // } else {
|
|
let url = 'authdata/spillageall/del'
|
|
let url = 'authdata/spillageall/del'
|
|
let data = {}
|
|
let data = {}
|
|
data.parammaps = {}
|
|
data.parammaps = {}
|
|
data.parammaps.pastureid = Cookies.get('pastureid')
|
|
data.parammaps.pastureid = Cookies.get('pastureid')
|
|
data.parammaps.times = this.table.getdataListParm.parammaps.times
|
|
data.parammaps.times = this.table.getdataListParm.parammaps.times
|
|
|
|
+ data.parammaps.barid = this.allEmptySelect.toString()
|
|
postJson(url, data).then(response => {
|
|
postJson(url, data).then(response => {
|
|
if (response.msg !== 'fail') {
|
|
if (response.msg !== 'fail') {
|
|
this.$notify({ title: '清空成功', message: '清空成功', type: 'success', duration: 2000 })
|
|
this.$notify({ title: '清空成功', message: '清空成功', type: 'success', duration: 2000 })
|
|
@@ -1667,8 +1668,8 @@ export default {
|
|
this.$notify({ title: '清空失败', message: response.data, type: 'warning', duration: 2000 })
|
|
this.$notify({ title: '清空失败', message: response.data, type: 'warning', duration: 2000 })
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|