|
@@ -3070,22 +3070,17 @@ export default {
|
|
|
MessageBox.confirm('当前选中' + this.selectList.length + '条信息,是否生效?', {
|
|
|
confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
|
|
|
}).then(() => {
|
|
|
+ let ids = []
|
|
|
for (let i = 0; i < this.selectList.length; i++) {
|
|
|
- // this.$set(this.selectList[i], 'enable', '1')
|
|
|
- this.selectList[i].enable = 1
|
|
|
+ ids.push(this.selectList[i].id)
|
|
|
}
|
|
|
- console.log('生效', this.selectList)
|
|
|
- this.requestParam.common = { 'returnmap': '0' }
|
|
|
- this.requestParam.data = []
|
|
|
- this.requestParam.data[0] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.selectList }}
|
|
|
- this.requestParam.data[0].children = []
|
|
|
- this.requestParam.data[0].children[0] = { 'name': 'updateRemainplanEnable', 'type': 'e', 'parammaps': {
|
|
|
- enable: '@insertSpotList.enable',
|
|
|
- id: '@insertSpotList.id',
|
|
|
- pastureid: '@insertSpotList.pastureid'
|
|
|
- }}
|
|
|
- ExecDataByConfig(this.requestParam).then(response => {
|
|
|
- console.log('生效保存发送参数', this.requestParam)
|
|
|
+ var data = {}
|
|
|
+ data.parammaps = {}
|
|
|
+ data.parammaps.enable = 1
|
|
|
+ data.parammaps.id = ids.toString()
|
|
|
+ var url = 'authdata/feedtemplet/enable'
|
|
|
+ postJson(url,data).then(response => {
|
|
|
+ console.log('生效保存发送参数', data)
|
|
|
if (response.msg === 'fail') {
|
|
|
this.$notify({ title: '生效失败', message: response.data, type: 'warning', duration: 2000 })
|
|
|
} else {
|
|
@@ -3103,21 +3098,17 @@ export default {
|
|
|
MessageBox.confirm('当前选中' + this.selectList.length + '条信息,是否禁用?', {
|
|
|
confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
|
|
|
}).then(() => {
|
|
|
+ let ids = []
|
|
|
for (let i = 0; i < this.selectList.length; i++) {
|
|
|
- // this.$set(this.selectList[i], 'enable', '1')
|
|
|
- this.selectList[i].enable = 0
|
|
|
+ ids.push(this.selectList[i].id)
|
|
|
}
|
|
|
- console.log('禁用', this.selectList)
|
|
|
- this.requestParam.common = { 'returnmap': '0' }
|
|
|
- this.requestParam.data = []
|
|
|
- this.requestParam.data[0] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.selectList }}
|
|
|
- this.requestParam.data[0].children = []
|
|
|
- this.requestParam.data[0].children[0] = { 'name': 'updateRemainplanEnable', 'type': 'e', 'parammaps': {
|
|
|
- enable: '@insertSpotList.enable',
|
|
|
- id: '@insertSpotList.id',
|
|
|
- pastureid: '@insertSpotList.pastureid'
|
|
|
- }}
|
|
|
- ExecDataByConfig(this.requestParam).then(response => {
|
|
|
+ var data = {}
|
|
|
+ data.parammaps = {}
|
|
|
+ data.parammaps.enable = 0
|
|
|
+ data.parammaps.id = ids.toString()
|
|
|
+ console.log('禁用', data)
|
|
|
+ var url = 'authdata/feedtemplet/enable'
|
|
|
+ postJson(url,data).then(response => {
|
|
|
console.log('禁用保存发送参数', this.requestParam)
|
|
|
if (response.msg === 'fail') {
|
|
|
this.$notify({ title: '禁用失败', message: response.data, type: 'warning', duration: 2000 })
|