From 07506d995a2ecff9decc0b3545caf1052308a228 Mon Sep 17 00:00:00 2001 From: 李林 <z1292839451@163.com> Date: 星期一, 18 三月 2024 15:21:53 +0800 Subject: [PATCH] 功能调整 --- src/components/do/b1-ins-order/add.vue | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/components/do/b1-ins-order/add.vue b/src/components/do/b1-ins-order/add.vue index 063abfc..050fbd9 100644 --- a/src/components/do/b1-ins-order/add.vue +++ b/src/components/do/b1-ins-order/add.vue @@ -220,7 +220,7 @@ <el-table-column label="鎿嶄綔" width="65" align="center"> <template slot-scope="scope"> {{scope.index}} - <el-button type="text" size="small" @click="sampleList.splice(scope.$index, 1)" :disabled="active!=1">鍒犻櫎</el-button> + <el-button type="text" size="small" @click="delSampleAndProduct" :disabled="active!=1">鍒犻櫎</el-button> </template> </el-table-column> </el-table> @@ -756,6 +756,10 @@ this.sampleList = obj.sampleList; }) }, + delSampleAndProduct(){ + this.sampleList.splice(scope.$index, 1) + this.productList = [] + } } } </script> -- Gitblit v1.9.3