|
@@ -93,6 +93,7 @@ const isShow = defineModel("modelValue", {
|
|
|
//监听数据
|
|
|
const rows = ref(props.info);
|
|
|
const type = ref(props.type);
|
|
|
+
|
|
|
watch(
|
|
|
() => [props.info, props.type],
|
|
|
([info, tpe]) => {
|
|
@@ -118,15 +119,16 @@ const getDataInfo = () => {
|
|
|
const form = deepClone(rows.value);
|
|
|
getExcelListData();
|
|
|
formModel.value = {
|
|
|
- id: type.value == 2 ? form.primaryKeyId : form.pkeyId,
|
|
|
+ id: type.value === 2 ? form.primaryKeyId : form.pkeyId,
|
|
|
ids: form.id,
|
|
|
- excelId: form.excelId,
|
|
|
+ excelId: type.value === 2 ? form.excelIds : form.excelId,
|
|
|
name: form.modeId,
|
|
|
initTableId: form.initTableId,
|
|
|
initTableName: form.initTableName,
|
|
|
};
|
|
|
setTimeout(() => {
|
|
|
- treeRef.value?.setCheckedKeys([form.excelId]);
|
|
|
+ const arr = formModel.value.excelId.split(",");
|
|
|
+ treeRef.value?.setCheckedKeys(arr);
|
|
|
}, 2000);
|
|
|
};
|
|
|
|