feat:addonline(未完成)

This commit is contained in:
dongwug
2022-10-17 18:50:27 +08:00
parent 8a232ed70c
commit 2fa9bc6228

View File

@@ -64,6 +64,9 @@
<span style="color:#387DF7; margin-right:24px;">清空</span>
</div>
</div>
<div class="main_table">
<a-table :row-selection="rowSelection" :columns="columns1" :data-source="tableData1"></a-table>
</div>
</div>
</div>
</a-drawer>
@@ -75,7 +78,24 @@ import { reactive, toRefs, ref } from "vue";
value: "value1",
label: "请选择状态",
},
]);
]);
const columns1 = [
{
title: "课程编号",
width: 100,
dataIndex: "num",
key: "num",
align: "center",
},
{
title: "名称",
width: 200,
dataIndex: "name",
key: "name",
ellipsis: true,
align: "center",
},
]
export default {
name: "AddOnline",
props: {
@@ -85,7 +105,14 @@ import { reactive, toRefs, ref } from "vue";
},
},
setup(props, ctx) {
const state = reactive({});
const state = reactive({
tableData1: [
{
key: "1",
num: 1,
},
]
});
const closeDrawer = () => {
ctx.emit("update:addonlineVisible", false);
};
@@ -95,13 +122,13 @@ import { reactive, toRefs, ref } from "vue";
const showDrawerOnline = () => {
state.visible = true;
};
return {
...toRefs(state),
afterVisibleChange,
showDrawerOnline,
closeDrawer,
options1,
columns1,
// change,
};
},