|
@@ -2313,8 +2313,9 @@ export default {
|
|
|
slid: 0,
|
|
|
fid: row.fid
|
|
|
}}
|
|
|
- ExecDataByConfig(this.requestParam).then(response => {
|
|
|
- console.log('新增保存发送参数', this.requestParam)
|
|
|
+ const url = 'authdata/ftdetail/edit'
|
|
|
+ const data = this.requestParam
|
|
|
+ postJson(url, data).then(response => {
|
|
|
if (response.msg !== 'fail') {
|
|
|
this.$notify({ title: '成功', message: '保存成功', type: 'success', duration: 2000 })
|
|
|
this.getList2()
|
|
@@ -2323,6 +2324,16 @@ export default {
|
|
|
this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
|
|
|
}
|
|
|
})
|
|
|
+ // ExecDataByConfig(this.requestParam).then(response => {
|
|
|
+ // console.log('新增保存发送参数', this.requestParam)
|
|
|
+ // if (response.msg !== 'fail') {
|
|
|
+ // this.$notify({ title: '成功', message: '保存成功', type: 'success', duration: 2000 })
|
|
|
+ // this.getList2()
|
|
|
+ // this.getList3()
|
|
|
+ // } else {
|
|
|
+ // this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
|
|
|
+ // }
|
|
|
+ // })
|
|
|
},
|
|
|
createCancel2(row) {
|
|
|
console.log('点击了详情新增取消')
|
|
@@ -2600,16 +2611,27 @@ export default {
|
|
|
id: this.table2.getdataListParm.parammaps.ftid
|
|
|
}}
|
|
|
}
|
|
|
- ExecDataByConfig(this.requestParam).then(response => {
|
|
|
- console.log('新增保存发送参数', this.requestParam)
|
|
|
- if (response.msg === 'fail') {
|
|
|
- this.$notify({ title: '删除失败', message: response.data, type: 'warning', duration: 2000 })
|
|
|
- } else {
|
|
|
+ const url = 'authdata/ftdetail/edit'
|
|
|
+ const data = this.requestParam
|
|
|
+ postJson(url, data).then(response => {
|
|
|
+ if (response.msg !== 'fail') {
|
|
|
this.$notify({ title: '成功', message: '删除成功', type: 'success', duration: 2000 })
|
|
|
this.getList2()
|
|
|
this.getList3()
|
|
|
+ } else {
|
|
|
+ this.$notify({ title: '删除失败', message: response.data, type: 'warning', duration: 2000 })
|
|
|
}
|
|
|
})
|
|
|
+ // 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.$notify({ title: '成功', message: '删除成功', type: 'success', duration: 2000 })
|
|
|
+ // this.getList2()
|
|
|
+ // this.getList3()
|
|
|
+ // }
|
|
|
+ // })
|
|
|
}).catch(() => {
|
|
|
this.$message({ type: 'info', message: '已取消删除' })
|
|
|
})
|
|
@@ -2653,6 +2675,12 @@ export default {
|
|
|
pastureid: this.table2.getdataListParm.parammaps.pastureid,
|
|
|
id: this.table2.getdataListParm.parammaps.ftid
|
|
|
}}
|
|
|
+ this.requestParam.data[2] = { 'name': 'updateFPbyFTChange', 'type': 'e', 'parammaps': {
|
|
|
+ pastureid: this.table2.getdataListParm.parammaps.pastureid,
|
|
|
+ ftid:this.table2.getdataListParm.parammaps.ftid,
|
|
|
+ type: this.table2.getdataListParm.parammaps.fttypeid,
|
|
|
+ status: 1
|
|
|
+ }}
|
|
|
} else {
|
|
|
this.requestParam.common = { 'returnmap': '0' }
|
|
|
this.requestParam.data = []
|
|
@@ -2670,17 +2698,34 @@ export default {
|
|
|
pastureid: this.table2.getdataListParm.parammaps.pastureid,
|
|
|
id: this.table2.getdataListParm.parammaps.ftid
|
|
|
}}
|
|
|
+ this.requestParam.data[3] = { 'name': 'updateFPbyFTChange', 'type': 'e', 'parammaps': {
|
|
|
+ pastureid: this.table2.getdataListParm.parammaps.pastureid,
|
|
|
+ ftid:this.table2.getdataListParm.parammaps.ftid,
|
|
|
+ type: this.table2.getdataListParm.parammaps.fttypeid,
|
|
|
+ status: 1
|
|
|
+ }}
|
|
|
}
|
|
|
- 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.$notify({ title: '', message: '删除成功', type: 'success', duration: 2000 })
|
|
|
+ const url = 'authdata/ftdetail/edit'
|
|
|
+ const data = this.requestParam
|
|
|
+ postJson(url, data).then(response => {
|
|
|
+ if (response.msg !== 'fail') {
|
|
|
+ this.$notify({ title: '成功', message: '删除成功', type: 'success', duration: 2000 })
|
|
|
this.getList2()
|
|
|
this.getList3()
|
|
|
+ } else {
|
|
|
+ this.$notify({ title: '删除失败', message: response.data, type: 'warning', duration: 2000 })
|
|
|
}
|
|
|
})
|
|
|
+ // 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.$notify({ title: '', message: '删除成功', type: 'success', duration: 2000 })
|
|
|
+ // this.getList2()
|
|
|
+ // this.getList3()
|
|
|
+ // }
|
|
|
+ // })
|
|
|
})
|
|
|
}
|
|
|
},
|