mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
feat:addonline(未完成)
This commit is contained in:
@@ -64,6 +64,9 @@
|
|||||||
<span style="color:#387DF7; margin-right:24px;">清空</span>
|
<span style="color:#387DF7; margin-right:24px;">清空</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="main_table">
|
||||||
|
<a-table :row-selection="rowSelection" :columns="columns1" :data-source="tableData1"></a-table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
@@ -76,6 +79,23 @@ import { reactive, toRefs, ref } from "vue";
|
|||||||
label: "请选择状态",
|
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 {
|
export default {
|
||||||
name: "AddOnline",
|
name: "AddOnline",
|
||||||
props: {
|
props: {
|
||||||
@@ -85,7 +105,14 @@ import { reactive, toRefs, ref } from "vue";
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
const state = reactive({});
|
const state = reactive({
|
||||||
|
tableData1: [
|
||||||
|
{
|
||||||
|
key: "1",
|
||||||
|
num: 1,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
});
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
ctx.emit("update:addonlineVisible", false);
|
ctx.emit("update:addonlineVisible", false);
|
||||||
};
|
};
|
||||||
@@ -95,13 +122,13 @@ import { reactive, toRefs, ref } from "vue";
|
|||||||
const showDrawerOnline = () => {
|
const showDrawerOnline = () => {
|
||||||
state.visible = true;
|
state.visible = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
afterVisibleChange,
|
afterVisibleChange,
|
||||||
showDrawerOnline,
|
showDrawerOnline,
|
||||||
closeDrawer,
|
closeDrawer,
|
||||||
options1,
|
options1,
|
||||||
|
columns1,
|
||||||
// change,
|
// change,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user