|
|
|
@ -946,20 +946,7 @@ onMounted(() => {
|
|
|
|
|
|
|
|
|
|
// 材质传递的值
|
|
|
|
|
const handleSelected = (currentIndex: number,newValue: any) => {
|
|
|
|
|
console.log('当前行索引:', currentIndex);
|
|
|
|
|
// console.log('新材料值:', newValue);
|
|
|
|
|
formData.value.projectOrderSubs[currentIndex].compositionId = newValue?.id
|
|
|
|
|
console.log(formData.value.projectOrderSubs[currentIndex].compositionId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 遍历表格所有行找到对应行数据
|
|
|
|
|
// formData.value.projectOrderSubs.forEach((row, index) => {
|
|
|
|
|
// console.log(row);
|
|
|
|
|
|
|
|
|
|
// row.compositionId = newValue?.id; // 更新当前行的compositionId
|
|
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style>
|
|
|
|
|