|
|
@@ -41,7 +41,7 @@
|
|
|
</div>
|
|
|
<div class="flex1 ov-hd d-flex flex-cln">
|
|
|
<div class="flex1 ov-hd">
|
|
|
- <vxe-table ref="tableLeftRef" :loading="loading" border :data="list" height="100%" :column-config="{ resizable: true }" :row-config="{keyField: 'id',isCurrent: true, isHover: true}" :checkbox-config="{ highlight: true, range: true, trigger: 'row', reserve: true }">
|
|
|
+ <vxe-table ref="tableLeftRef" :loading="loading" border :data="list" height="100%" :column-config="{ resizable: true }" :row-config="{keyField: 'id',isCurrent: true, isHover: true}" :checkbox-config="{ checkRowKeys: checkRowKeys, highlight: true, range: true, trigger: 'row', reserve: true }">
|
|
|
<vxe-column type="checkbox" width="60"></vxe-column>
|
|
|
<!-- 序号 -->
|
|
|
<vxe-column type="seq" width="60" title="序号" align="center" />
|
|
|
@@ -198,10 +198,11 @@ const clearAll = () => {
|
|
|
tableRightRef.value?.clearCheckboxRow();
|
|
|
targetList.value = [];
|
|
|
};
|
|
|
+const checkRowKeys = ref<any>([]);
|
|
|
// 设置已选
|
|
|
const setSelectItems = (val: any) => {
|
|
|
targetList.value = val;
|
|
|
- tableLeftRef.value?.setCheckboxRow(val, true);
|
|
|
+ checkRowKeys.value = val.map((item: any) => item.id);
|
|
|
};
|
|
|
watch(
|
|
|
() => props.show,
|