[update]
This commit is contained in:
@@ -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]) + '&'
|
} else {
|
||||||
}
|
this.$message.warning(res.data.message)
|
||||||
return ret
|
this.flag = false
|
||||||
}],
|
this.spinLoading = false
|
||||||
headers: {
|
this.confirmLoading = false
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
|
||||||
'X-Access-Token':_this.token
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then( (res) =>{
|
// axios({
|
||||||
if (res.data.success) {
|
// url: `/jero-boot/params/manifest/copy`,
|
||||||
_this.$emit('copysubmit')
|
// method: 'post',
|
||||||
_this.$message.success(res.data.message)
|
// data: _tt,
|
||||||
_this.flag = false
|
// transformRequest: [function (data) {
|
||||||
_this.spinLoading = false
|
// let ret = ''
|
||||||
_this.confirmLoading = false
|
// for (let it in data) {
|
||||||
}else{
|
// ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
||||||
_this.$message.warning(res.data.message)
|
// }
|
||||||
_this.flag = false
|
// return ret
|
||||||
_this.spinLoading = false
|
// }],
|
||||||
_this.confirmLoading = false
|
// headers: {
|
||||||
}
|
// 'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
})
|
// 'X-Access-Token':_this.token
|
||||||
.catch( (error) =>{
|
// }
|
||||||
console.log(error);
|
// })
|
||||||
});
|
// .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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user