提交 f5572f81 authored 作者: matian's avatar matian

updates

上级 b94774ac
......@@ -59,7 +59,6 @@ const handleCancel = () => {
watch(
() => form.organ_id,
value => {
console.log(value, 'value', form.organ_id_name)
if (value !== '' || form.organ_id_name !== undefined) {
handleGetTeacherList()
}
......
......@@ -58,7 +58,7 @@ const listOptions = $computed(() => {
width: '200'
},
{ label: '更新时间', prop: 'updated_time', align: 'center', width: '200' },
{ label: '操作', slots: 'table-operate', align: 'center', minWidth: '200', fixed: 'right' }
{ label: '操作', slots: 'table-operate', align: 'center', minWidth: '100', fixed: 'right' }
]
}
})
......
......@@ -48,7 +48,7 @@ const listOptions = $computed(() => {
}
},
{ label: '更新时间', prop: 'updated_time', align: 'center' },
{ label: '操作', slots: 'table-operate', align: 'center', minWidth: '200', fixed: 'right' }
{ label: '操作', slots: 'table-operate', align: 'center', minWidth: '150', fixed: 'right' }
]
}
})
......
......@@ -81,7 +81,6 @@ const handleConfirm = async (formEl: FormInstance | undefined) => {
emit('create')
})
} else if (props.isEdit === '1') {
console.log(form.role, 'form.role ')
form.role = form.role.toString()
const params: any = Object.assign({ id: props.id }, form)
updateStaff(params).then(() => {
......
......@@ -74,8 +74,7 @@ const handleChangeStatus = (row: any) => {
if (row.id !== undefined) {
const params: any = Object.assign({}, row)
updateStaff(params)
.then((res: any) => {
console.log(res.code)
.then(() => {
ElMessage.success('更新教工成功')
handleFresh()
})
......
......@@ -43,7 +43,6 @@ const handleAddData = () => {
}
const handleAdd = (val: any) => {
dataList.value.push({ id: val.id, name: val.name, can_download: val.can_download, url: val.url, type: val.type })
console.log(dataList.value, 'dataList.value')
emit('information', dataList.value)
}
const listOptions = $computed(() => {
......@@ -86,7 +85,6 @@ const imgUrl = (val: any) => {
}
const handleChangeStatus = (row: any) => {
console.log(row.id, '1111')
if (row.id !== undefined && dataList.length > 0) {
const params: any = {
course_id: props.id,
......
......@@ -95,7 +95,6 @@ const handleCancel = () => {
}
// 保存 添加
const handleAdd = (val: any) => {
console.log(props.course_id, 'props.course_id')
if (props.course_id === '0') {
emit('update:isShowAddDialog', false)
emit('create', val)
......
......@@ -117,7 +117,6 @@ let loading = $ref<boolean>(false)
function fetchDetail() {
loading = true
getCourseDetails({ id }).then((res: any) => {
console.log(res.data)
Object.assign(form, res.data)
examList.value = res.data.examinations
information.value = res.data.information
......@@ -195,7 +194,6 @@ getMajorList({ name: '', 'per-page': '100' }).then((res: any) => {
})
})
const handleInformation = (val: any) => {
console.log(val)
form.information_id = val.map((item: any) => item.id).toString()
}
......
......@@ -81,10 +81,8 @@ const handleChapterList = () => {
})
}
})
console.log(dataSource, 'dataSource')
})
}
console.log(dataSource, 'dataSource')
// 新增章节
const handleAddChapter = () => {
......@@ -284,7 +282,6 @@ const handleOpenRules = (node: any, data: any) => {
// 控制学生能否下载
const handleChangeStatus = (node: any, data: any) => {
if (isEditCourse !== '1') {
console.log(node, data)
const params: any = {
course_id: id,
resource_type: node.data.resource_type,
......@@ -296,7 +293,6 @@ const handleChangeStatus = (node: any, data: any) => {
ElMessage.success('设置下载控制成功')
})
} else {
console.log(node, data)
const params: any = {
course_id: id,
......
......@@ -4,7 +4,6 @@ import { useProjectList } from '@/composables/useGetProjectList'
import { ElMessage, ElMessageBox } from 'element-plus'
// 筛选部门
let departmentList: any = useProjectList('', '79806610719731712').departmentList
console.log()
const router = useRouter()
const route = useRoute()
const props = defineProps(['data'])
......
......@@ -30,7 +30,6 @@ const handleCancel = () => {
}
// 上传视频成功
const uploadVideo = (data: any) => {
console.log(data)
const params = {
name: data.name.slice(0, data.name.lastIndexOf('.')),
source: '2',
......
......@@ -53,7 +53,6 @@ const fileChange = (e: any) => {
form.uploader.startUpload()
} else {
form.file = e.target.files
console.log(form.file, '123')
form.file.forEach((item: any) => {
if (item.name.indexOf('.mp4') === -1) {
ElMessage('请上传mp4格式视频')
......@@ -75,7 +74,6 @@ const fileChange = (e: any) => {
}
let id = ref(0)
const createUploader: any = () => {
console.log('000000')
const w = window as any
// for
const uploader = new w.AliyunUpload.Vod({
......
......@@ -16,7 +16,6 @@ interface Emits {
(e: 'update:isShowReplyDialog', isShowCheckDialog: boolean): void
}
const handleCancel = () => {
console.log('000')
emit('update:isShowReplyDialog', false)
}
const replyList = ref([
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论