[update]
This commit is contained in:
@@ -190,36 +190,43 @@ export default {
|
||||
},
|
||||
// 引用参数确定
|
||||
handleSubmit() {
|
||||
let _this = this
|
||||
let param = {ids: this.selectedRowKeysArray, ...this.formInline }
|
||||
axios({
|
||||
url: '/jero-boot/params/collectManifest/referParams',
|
||||
method: 'post',
|
||||
data: param,
|
||||
transformRequest: [function (data) {
|
||||
let ret = ''
|
||||
for (let it in data) {
|
||||
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
||||
}
|
||||
return ret
|
||||
}],
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'X-Access-Token':_this.token
|
||||
postAction('params/collectManifest/referParams', param).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.data.message)
|
||||
this.$emit('areaVisibleAssignedbyflag', false)
|
||||
} else {
|
||||
this.$message.warning(res.data.message)
|
||||
}
|
||||
})
|
||||
.then( (res) =>{
|
||||
console.log(res,'res')
|
||||
if (res.data.success) {
|
||||
_this.$message.success(res.data.message)
|
||||
this.$emit('areaVisibleAssignedbyflag', false)
|
||||
}else{
|
||||
_this.$message.warning(res.data.message)
|
||||
}
|
||||
})
|
||||
.catch( (error) =>{
|
||||
console.log(error);
|
||||
});
|
||||
// axios({
|
||||
// url: '/jero-boot/params/collectManifest/referParams',
|
||||
// method: 'post',
|
||||
// data: param,
|
||||
// transformRequest: [function (data) {
|
||||
// let ret = ''
|
||||
// for (let it in data) {
|
||||
// ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
||||
// }
|
||||
// return ret
|
||||
// }],
|
||||
// headers: {
|
||||
// 'Content-Type': 'application/x-www-form-urlencoded',
|
||||
// 'X-Access-Token':_this.token
|
||||
// }
|
||||
// })
|
||||
// .then( (res) =>{
|
||||
// console.log(res,'res')
|
||||
// if (res.data.success) {
|
||||
// _this.$message.success(res.data.message)
|
||||
// this.$emit('areaVisibleAssignedbyflag', false)
|
||||
// }else{
|
||||
// _this.$message.warning(res.data.message)
|
||||
// }
|
||||
// })
|
||||
// .catch( (error) =>{
|
||||
// console.log(error);
|
||||
// });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user