Commit f45b1ba7 authored by 曹泽华's avatar 曹泽华

数仓开发-策略指标初始数据

parent 61e59351
...@@ -20,13 +20,13 @@ ...@@ -20,13 +20,13 @@
</div> </div>
</template> </template>
<template #strategicName="{ text, record }"> <template #strategicName="{ text, record }">
<div @click="handleRow(record)" class="hover1"> <div class="hover1">
{{ text }} {{ text }}
</div> </div>
</template> </template>
<template #strategicType="{ text, record }"> <template #strategicType="{ text, record }">
<div class="flex justify-between gap-10px"> <div class="flex justify-between gap-10px">
<div class="hover1 flex-1" @click="handleRow(record)"> <div class="hover1 flex-1">
{{ text }} {{ text }}
</div> </div>
<DeleteOutlined <DeleteOutlined
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
style="margin-right: 10px" style="margin-right: 10px"
>删除</a-button >删除</a-button
> >
<a-button type="primary" @click="handleSubmit">保存</a-button> <a-button style="margin-bottom: 10px" type="primary" @click="handleSubmit">保存</a-button>
</div> </div>
</div> </div>
<div v-if="isAdd"> <div v-if="isAdd">
...@@ -365,14 +365,14 @@ ...@@ -365,14 +365,14 @@
const titleType = ref(null); const titleType = ref(null);
const titleId = ref(null); const titleId = ref(null);
function handleSelect(record) { function handleSelect(record) {
console.log('record', record);
// nextTick(() => {
// setSelectedRows({ strategicId: record.strategicId });
// });
handleRow({ strategicId: record[0] }); handleRow({ strategicId: record[0] });
console.log('getRowSelection', getRowSelection());
} }
onMounted(() => {}); onMounted(() => {
getRowSelection().selectedRowKeys = [101];
console.log("getRowSelectionasdasd",getRowSelection())
handleRow(TreeSystem[0]);
setSelectedRows([TreeSystem[0]]);
});
function handleAdd() { function handleAdd() {
titleName.value = null; titleName.value = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment