diff --git a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue index 1dc7d5707..e5997cb54 100644 --- a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue +++ b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue @@ -294,7 +294,42 @@ export default { // 先判断是否有权限 let permission = this.permission() if(permission) { - console.log('拥有下发收集权限') + let _array = [] + this.selectedRowKeysValue.forEach((item, index) => { + _array.push(item.id) + }) + let _this = this + let param = {projectId: this.$route.query.id, ids: _array.join(',')} + axios({ + url: '/jero-boot/params/collectManifest/issueCollection', + 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) + if (res.data.success) { + _this.$message.success(res.data.result) + _this.areaVisible = false + _this.getTableList() + _this.selectedRowKeysValue=[] + }else{ + _this.$message.warning(res.data.result) + } + }) + .catch( (error) =>{ + console.log(error); + }); } }, // 添加