-- fix bug

This commit is contained in:
yuping
2023-03-03 17:27:42 +08:00
parent 43435b0b41
commit 78fd3a87b0
9 changed files with 42 additions and 44 deletions

View File

@@ -17,7 +17,7 @@
</div>
<div>
<div class="contentMain" style="padding:20px">
<CreateOnline ref="onlineRef">
<CreateOnline ref="onlineRef" :id="props.id" :type="props.infoType">
<a-button type="primary" style="border-radius: 4px">{{
taskIndex === -1 ? '选择/新建课程' : '重新选择'
}}
@@ -46,7 +46,9 @@ import {message} from "ant-design-vue";
import CreateOnline from "@/components/drawers/CreateOnline.vue";
const props = defineProps({
type: Number,
infoType: Number,
courseSyncFlag: Number,
id: Number,
taskList: []
})
const visible = ref(false)
@@ -133,6 +135,10 @@ function confirm() {
function selectCourse(row) {
console.log(row)
if(!props.courseSyncFlag && !row.refId){
message.warning("请新建本项目在线课!");
return
}
rowSelectKeys.value = [row.id]
selectsData.value = [row]
onlineRef.value.closeModal()