zouyu
2023-11-09 5cf1a230144fc023b07c1aeccd8795b9741f7328
src/views/quality/rawMaterial/rawMaterial-form.vue
@@ -200,7 +200,7 @@
                  </el-table-column>
                  <el-table-column fixed="right" style="background-color: white;" v-if="dataForm.id == null" label="操作" width="150">
                    <template slot-scope="scope">
                      <div v-if="scope.row.father!=null">
                      <div v-if="scope.row.fId!=null">
                          <el-button type="text"  @click="addChildren(scope.row)">添加项目</el-button>
                          <el-button type="text" @click="delChildren(scope.row,scope.$index,true)">删除行</el-button>
                      </div>
@@ -444,6 +444,7 @@
      clickAddLine(row) {
        console.log(row);
        let ele = {
            fId: Math.random(),
            father: row.father?row.father:null,
            iid: Math.random(),
            children:[]
@@ -472,7 +473,7 @@
            this.list.push(ele)
          })
        }else{
          ele.push({
          ele.children.push({
              deviceId: null,
              deviceName: null,
              iid: Math.random(),