mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
fix --在线课对接
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<div class="contentMain" style="padding:20px">
|
||||
<CreateOnline>
|
||||
<CreateOnline ref="onlineRef">
|
||||
<a-button type="primary" style="border-radius: 4px">{{
|
||||
taskIndex === -1 ? '选择/新建课程' : '重新选择'
|
||||
}}
|
||||
@@ -50,6 +50,7 @@ const props = defineProps({
|
||||
taskList: []
|
||||
})
|
||||
const visible = ref(false)
|
||||
const onlineRef = ref(false)
|
||||
const taskIndex = ref(-1);
|
||||
const rowSelectKeys = ref([]);
|
||||
const selectsData = ref([]);
|
||||
@@ -73,15 +74,15 @@ const columns = ref([
|
||||
},
|
||||
{
|
||||
title: "创建人",
|
||||
dataIndex: "authorName",
|
||||
key: "authorName",
|
||||
dataIndex: "sysCreateBy",
|
||||
key: "sysCreateBy",
|
||||
width: "100px",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "时长",
|
||||
dataIndex: "authorName",
|
||||
key: "authorName",
|
||||
dataIndex: "studyTime",
|
||||
key: "studyTime",
|
||||
width: "80px",
|
||||
align: "center",
|
||||
},
|
||||
@@ -130,9 +131,11 @@ function confirm() {
|
||||
closeDrawer()
|
||||
}
|
||||
|
||||
function selectCourse({id, name}) {
|
||||
rowSelectKeys.value = [id]
|
||||
selectsData.value = [{id, name}]
|
||||
function selectCourse(row) {
|
||||
console.log(row)
|
||||
rowSelectKeys.value = [row.id]
|
||||
selectsData.value = [row]
|
||||
onlineRef.value.closeModal()
|
||||
}
|
||||
|
||||
function openDrawer(i, row) {
|
||||
|
||||
@@ -34,6 +34,7 @@ function openModal() {
|
||||
function closeModal() {
|
||||
visible.value = false
|
||||
}
|
||||
defineExpose({closeModal})
|
||||
|
||||
</script>
|
||||
<style lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user