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

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

parent 61e59351
......@@ -20,13 +20,13 @@
</div>
</template>
<template #strategicName="{ text, record }">
<div @click="handleRow(record)" class="hover1">
<div class="hover1">
{{ text }}
</div>
</template>
<template #strategicType="{ text, record }">
<div class="flex justify-between gap-10px">
<div class="hover1 flex-1" @click="handleRow(record)">
<div class="hover1 flex-1">
{{ text }}
</div>
<DeleteOutlined
......@@ -54,7 +54,7 @@
style="margin-right: 10px"
>删除</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 v-if="isAdd">
......@@ -365,14 +365,14 @@
const titleType = ref(null);
const titleId = ref(null);
function handleSelect(record) {
console.log('record', record);
// nextTick(() => {
// setSelectedRows({ strategicId: record.strategicId });
// });
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() {
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