Fixiaobai
2023-11-09 1b82be7ee8ce6f462d8d090e6a3e3216e3aba567
src/views/technology/routing/routing-form.vue
@@ -659,6 +659,7 @@
} from '@/api/technology/routing'
import { fetchList as getBomList } from '@/api/technology/completeproductstructure'
import { getByOperation } from '@/api/aps/capability'
import { fetchListByFather} from '@/api/basic/param'
import { remote } from '@/api/admin/dict'
import diagram from './diagram'
import operationDialog from '@/views/common/operation.vue'
@@ -1376,6 +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);
      // })
      if (param.length > 0) {
        const paramrrs = {
          id: this.dataForm.id,
@@ -1387,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('添加失败')