mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
-- fix bug
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user