|
@@ -409,6 +409,20 @@ const clickAccomplish = () => {
|
|
|
return ElMessage("请选择操作的数据");
|
|
|
}
|
|
|
};
|
|
|
+watch(selectData, (newVal) => {
|
|
|
+ if (newVal.length == 0) {
|
|
|
+ sourceList.value.data.forEach((x) => {
|
|
|
+ x.isCheck = false;
|
|
|
+ });
|
|
|
+ } else if (newVal.length == 1) {
|
|
|
+ const current = newVal[0];
|
|
|
+ sourceList.value.data.forEach((x) => {
|
|
|
+ if (x.orderId !== current.orderId) {
|
|
|
+ x.isCheck = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+});
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|