| | |
| | | |
| | | const emit = defineEmits(['gaveParent']) |
| | | const saveBasicData = () =>{ |
| | | console.log(basic.value.basicType[1]) |
| | | if(basic.value.basicType[1]==="hollowThickness"||basic.value.basicType[1]==="stuffThickness"||basic.value.basicType[1]==="InterlayerThickness"){ |
| | | if(!basic.value.input.includes("mm")){ |
| | | basic.value.input=basic.value.input+"mm" |
| | | } |
| | | } |
| | | console.log(basic.value.input) |
| | | request.post(`/basicData/addBasicData`, basic.value).then(res => { |
| | | if (res.data) { |
| | | ElMessage.success(t('basicData.msg.saveSuccess')) |
| | |
| | | }) |
| | | } |
| | | const updateBasicData = () =>{ |
| | | if(basic.value.basicType[1]==="hollowThickness"||basic.value.basicType[1]==="stuffThickness"||basic.value.basicType[1]==="InterlayerThickness"){ |
| | | if(!basic.value.input.includes("mm")){ |
| | | basic.value.input=basic.value.input+"mm" |
| | | } |
| | | } |
| | | let submitArr = props.rowIndex |
| | | submitArr.basicType = basic.value.basicType[0] |
| | | submitArr.basicCategory = basic.value.basicType[1] |