Fixiaobai
2023-11-09 714d96dce918a093ffe046a9526e8cb723cb9481
	modified:   src/views/technology/routing/routing-form.vue
已修改1个文件
26 ■■■■ 文件已修改
src/views/technology/routing/routing-form.vue 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/technology/routing/routing-form.vue
@@ -1377,17 +1377,17 @@
    // 模板参数的选中结果返回
    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,
@@ -1399,9 +1399,7 @@
          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('添加失败')