mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 02:46:45 +08:00
feat:addonline(未完成)
This commit is contained in:
@@ -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,
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user