diff --git a/jero-web/src/views/projectManagement/dialog/ProjectCollectionParameters.vue b/jero-web/src/views/projectManagement/dialog/ProjectCollectionParameters.vue index a94838008..90614855b 100644 --- a/jero-web/src/views/projectManagement/dialog/ProjectCollectionParameters.vue +++ b/jero-web/src/views/projectManagement/dialog/ProjectCollectionParameters.vue @@ -275,39 +275,53 @@ export default { paramsTemplatePublishVersion: this.selectedRowKeysDate[0].paramsTemplatePublishVersion, sourceManifestId: this.selectedRowKeysDate[0].id, } - axios({ - 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 + postAction('params/manifest/copy', _tt).then((res) => { + if (res.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 } }) - .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); - }); + // axios({ + // 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 { return false }