From 619080129760ecdfa624d981e54d5284d7c7e87d Mon Sep 17 00:00:00 2001 From: qiuhongwu Date: Tue, 20 Feb 2024 16:31:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=94=A8=E7=BB=84=E4=BB=B6=20?= =?UTF-8?q?=E5=A4=8D=E9=80=89=E6=A1=86=E7=82=B9=E5=87=BB=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E8=A1=8C=E8=87=AA=E5=8A=A8=E5=8B=BE=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/heli/hlvuestyle/dialogSelect.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/mes-ui/mes-ui-admin-vue3/src/views/heli/hlvuestyle/dialogSelect.vue b/mes-ui/mes-ui-admin-vue3/src/views/heli/hlvuestyle/dialogSelect.vue index 87230389..87e20a2b 100644 --- a/mes-ui/mes-ui-admin-vue3/src/views/heli/hlvuestyle/dialogSelect.vue +++ b/mes-ui/mes-ui-admin-vue3/src/views/heli/hlvuestyle/dialogSelect.vue @@ -25,7 +25,8 @@ - + @@ -53,6 +54,7 @@ import { getIntDictOptions, getStrDictOptions, DICT_TYPE } from '@/utils/dict' import { dateFormatter, dateFormatter2, formatDate } from '@/utils/formatTime' import { ref } from 'vue' +import { ElTable } from 'element-plus' const message = useMessage() // 消息弹窗 const { t } = useI18n() // 国际化 @@ -107,10 +109,20 @@ const tablelist = ref([ } ]) +const multipleTable = ref>() const multipleSelection = ref([]) const handleSelectionChange = (val: []) => { + multipleSelection.value = val } + +const clickRow = (row: any) => { + if(row){ + multipleTable.value!.toggleRowSelection(row, undefined) + }else{ + multipleTable.value!.clearSelection() + } +} /** 提交表单 */ const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调 const submitForm = () => {