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

updates

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