This commit is contained in:
zhaomeijing
2022-06-22 18:09:54 +08:00
parent 52410ccad1
commit ac18c693b2
@@ -275,39 +275,53 @@ export default {
paramsTemplatePublishVersion: this.selectedRowKeysDate[0].paramsTemplatePublishVersion, paramsTemplatePublishVersion: this.selectedRowKeysDate[0].paramsTemplatePublishVersion,
sourceManifestId: this.selectedRowKeysDate[0].id, sourceManifestId: this.selectedRowKeysDate[0].id,
} }
axios({ postAction('params/manifest/copy', _tt).then((res) => {
url: `/jero-boot/params/manifest/copy`, if (res.success) {
method: 'post', this.$emit('copysubmit')
data: _tt, this.$message.success(res.data.message)
transformRequest: [function (data) { this.flag = false
let ret = '' this.spinLoading = false
for (let it in data) { this.confirmLoading = false
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
}
return ret
}],
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'X-Access-Token':_this.token
}
})
.then( (res) =>{
if (res.data.success) {
_this.$emit('copysubmit')
_this.$message.success(res.data.message)
_this.flag = false
_this.spinLoading = false
_this.confirmLoading = false
} else { } else {
_this.$message.warning(res.data.message) this.$message.warning(res.data.message)
_this.flag = false this.flag = false
_this.spinLoading = false this.spinLoading = false
_this.confirmLoading = false this.confirmLoading = false
} }
}) })
.catch( (error) =>{ // axios({
console.log(error); // url: `/jero-boot/params/manifest/copy`,
}); // method: 'post',
// data: _tt,
// 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) =>{
// if (res.data.success) {
// _this.$emit('copysubmit')
// _this.$message.success(res.data.message)
// _this.flag = false
// _this.spinLoading = false
// _this.confirmLoading = false
// }else{
// _this.$message.warning(res.data.message)
// _this.flag = false
// _this.spinLoading = false
// _this.confirmLoading = false
// }
// })
// .catch( (error) =>{
// console.log(error);
// });
} else { } else {
return false return false
} }