| | |
| | | |
| | | // 模板参数的选中结果返回 |
| | | selectTemplateParam(param) { |
| | | console.log(param); |
| | | let idList=[] |
| | | param.forEach(item=>{ |
| | | idList.push(item.id) |
| | | }) |
| | | console.log(idList); |
| | | let formData=new FormData() |
| | | formData.append("idList",idList) |
| | | fetchListByFather(formData).then((res) => { |
| | | console.log(res); |
| | | }) |
| | | // console.log(param); |
| | | // let idList=[] |
| | | // param.forEach(item=>{ |
| | | // idList.push(item.id) |
| | | // }) |
| | | // console.log(idList); |
| | | // let formData=new FormData() |
| | | // formData.append("idList",idList) |
| | | // fetchListByFather(formData).then((res) => { |
| | | // console.log(res); |
| | | // }) |
| | | if (param.length > 0) { |
| | | const paramrrs = { |
| | | id: this.dataForm.id, |
| | |
| | | const data = response.data |
| | | if (data.code == 0) { |
| | | const newParams = response.data.data |
| | | for (let i = 0; i < newParams.length; i++) { |
| | | this.paramData.push(newParams[i]) |
| | | } |
| | | console.log(newParams); |
| | | this.$message.success('添加成功') |
| | | } else { |
| | | this.$message.error('添加失败') |