|
@@ -49,7 +49,7 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <img src="~@/assets/img/delete-minus-red.png" @click="delEdbItem(index)"/>
|
|
|
+ <img src="~@/assets/img/delete-minus-red.png" @click="delEdbItem(index)" v-if="edbForm.edbDataList.length>1" />
|
|
|
</el-row>
|
|
|
</div>
|
|
|
<div class="add-box" @click="addEdbItem">
|
|
@@ -183,9 +183,9 @@ import { steelInterface } from "@/api/modules/thirdBaseApi";
|
|
|
}
|
|
|
let lastItem = this.edbForm.edbDataList[this.edbForm.edbDataList.length-1]
|
|
|
this.edbForm.edbDataList.push({
|
|
|
- edbIndex:1+lastItem.edbIndex,
|
|
|
+ edbIndex:lastItem?1+lastItem.edbIndex:1,
|
|
|
IndexCode:'',
|
|
|
- BaseFromMysteelChemicalClassifyId:lastItem.BaseFromMysteelChemicalClassifyId
|
|
|
+ BaseFromMysteelChemicalClassifyId:lastItem?lastItem.BaseFromMysteelChemicalClassifyId:''
|
|
|
})
|
|
|
this.$nextTick(()=>{
|
|
|
// console.log(this.$refs.formBoxRef.scrollTop,this.$refs.formBoxRef.scrollHeight,'');
|