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

删除console.log,修改试卷搜索问题

上级 79b368d8
......@@ -48,7 +48,6 @@ const handleSuccess = (response: any, file: any, files: any) => {
emit(
'update:modelValue',
files.map((item: any) => {
console.log(item, 'items')
return {
name: item.name,
url: item.url || item.raw.url,
......
......@@ -13,9 +13,6 @@ const options = [
user_id: '1'
}
]
const handleSave = () => {
console.log(form)
}
</script>
<template>
<AppCard title="资源审核管理">
......@@ -37,7 +34,7 @@ const handleSave = () => {
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="handleSave">保存</el-button>
<el-button type="primary">保存</el-button>
</el-form-item>
</el-form>
</AppCard>
......
......@@ -47,13 +47,11 @@ watch(filterText, val => {
})
//搜索
const filterNode = (value: string, data: any) => {
console.log(value, 'value', data.category_name, 'data')
if (!value) return true
return data.category_name.indexOf(value) != -1
}
// 获取选中节点
const handleNodeClick = (TreeNode: any, node: any, attr: any) => {
console.log(TreeNode, node, attr, '999')
const handleNodeClick = (TreeNode: any) => {
checkedCategory.checkedLabel = TreeNode.category_name // 类名
checkedCategory.checkedId = TreeNode.id // id
checkedCategory.checkedLevel = parseInt(TreeNode.depth) //层级
......@@ -70,7 +68,6 @@ const handleCategoryList = () => {
const params = { type: 'tree' }
getCategoryList(params).then((res: any) => {
data.value = res.data
console.log(data, 'tableData')
})
}
onMounted(() => {
......
......@@ -83,7 +83,6 @@ if (userStore.roles[0].name !== '超级管理员') {
const handleConfirm = async (formEl: FormInstance | undefined) => {
if (!formEl) return
await formEl.validate(valid => {
console.log(valid)
if (valid) {
if (props.isEdit === '0') {
form.organ_id = form.organ_id || userStore.organization?.id
......@@ -114,7 +113,6 @@ const handleConfirm = async (formEl: FormInstance | undefined) => {
if (props.isEdit === '2' || props.isEdit === '1') {
const params: any = { id: props.id }
getClassDetail(params).then((res: any) => {
console.log(res)
Object.keys(form).forEach(key => {
form[key] = res.data[key]
})
......
......@@ -34,11 +34,11 @@ const listOptions = $computed(() => {
filters: [{ type: 'input', prop: 'name', label: '学生姓名:', placeholder: '学生姓名' }],
columns: [
{ label: '序号', type: 'index', align: 'center' },
{ label: '学号', prop: 'sno_number', align: 'center' },
{ label: '学号', prop: 'sno_number', align: 'center', minWidth: '200' },
{ label: '姓名', prop: 'name', align: 'center' },
{ label: '性别', prop: 'gender_name', align: 'center' },
{ label: '有效状态', prop: 'status_name', align: 'center' },
{ label: '更新时间', prop: 'updated_time', align: 'center' },
{ label: '更新时间', prop: 'updated_time', align: 'center', minWidth: '200' },
{ label: '操作', slots: 'table-operate', align: 'center', minWidth: '200', fixed: 'right' }
]
}
......@@ -60,7 +60,6 @@ const handleDel = (row: any) => {
})
}
const handleDetail = (row: any) => {
console.log(row)
id.value = row.id
isShowAddDialog.value = true
title.value = '查看详情'
......
......@@ -60,7 +60,6 @@ const handleCancel = () => {
const handleConfirm = async (formEl: FormInstance | undefined) => {
if (!formEl) return
await formEl.validate(valid => {
console.log(valid)
if (valid) {
if (props.isEdit === '0') {
const params: any = Object.assign({}, form)
......
......@@ -75,7 +75,6 @@ const handleAddStu = () => {
emit('update:isShowCourse', false)
emit('create')
})
console.log(111)
}
const handleCancel = () => {
......
......@@ -56,7 +56,6 @@ const handleCancel = () => {
const handleConfirm = async (formEl: FormInstance | undefined) => {
if (!formEl) return
await formEl.validate(valid => {
console.log(valid)
if (valid) {
if (props.isEdit === '0') {
form.organ_id = form.organ_id || userStore.organization?.id
......
......@@ -53,11 +53,9 @@ const listOptions = $computed(() => {
})
const handleAddCourse = () => {
isShowCourse.value = true
console.log(111)
id.value = props.id
}
const handleDel = (row: any) => {
console.log(row)
const params: any = {
semester_id: props.id,
courses_id: row.id,
......
......@@ -68,7 +68,6 @@ const handleCancel = () => {
const handleConfirm = async (formEl: FormInstance | undefined) => {
if (!formEl) return
await formEl.validate(valid => {
console.log(valid)
if (valid) {
if (props.isEdit === '0') {
const params: any = Object.assign({}, form)
......@@ -98,7 +97,6 @@ const handleConfirm = async (formEl: FormInstance | undefined) => {
if (props.isEdit === '2' || props.isEdit === '1') {
const params: any = { id: props.id }
getStaffDetail(params).then((res: any) => {
console.log(res)
Object.keys(form).forEach(key => {
form[key] = res.data[key]
})
......
......@@ -36,7 +36,7 @@ const listOptions = $computed(() => {
{ label: '手机号', prop: 'mobile', align: 'center' },
{ label: '姓名', prop: 'name', align: 'center' },
{ label: '性别', prop: 'gender_name', align: 'center' },
{ label: '邮箱', prop: 'email', align: 'center' },
{ label: '邮箱', prop: 'email', align: 'center', width: 200 },
{ label: '角色类型', prop: 'role_name', align: 'center' },
{ label: '生效状态', slots: 'status', align: 'center' },
{ label: '更新时间', prop: 'updated_time', align: 'center' },
......
......@@ -161,7 +161,6 @@ const handleConfirm = async (formEl: FormInstance | undefined) => {
if (props.isEdit === '2' || props.isEdit === '1') {
const params: any = { id: props.id }
getStuDetail(params).then((res: any) => {
console.log(res)
Object.keys(form).forEach(key => {
form[key] = res.data[key]
})
......
......@@ -21,7 +21,6 @@ interface Emits {
const handleCancel = () => {
emit('update:isShowImportDialog', false)
console.log('999')
}
const beforeUpload = (file: any) => {
......
......@@ -28,20 +28,20 @@ const listOptions = {
columns: [
{ type: 'selection' },
{ label: '序号', type: 'index', align: 'center' },
{ label: '学号', prop: 'sno_number', align: 'center' },
{ label: '姓名', prop: 'name', align: 'center' },
{ label: '学号', prop: 'sno_number', align: 'center', minWidth: '200' },
{ label: '姓名', prop: 'name', align: 'center', minWidth: '100' },
{ label: '性别', prop: 'gender_name', align: 'center' },
{ label: '出生年月', prop: 'birthday', align: 'center' },
{ label: '出生年月', prop: 'birthday', align: 'center', minWidth: '200' },
{ label: '省', prop: 'province_name', align: 'center' },
{ label: '市', prop: 'city_name', align: 'center' },
{ label: '县', prop: 'county_name', align: 'center' },
{ label: '联系电话', prop: 'mobile', align: 'center' },
{ label: '部门/学校', prop: 'organ_id_name', align: 'center' },
{ label: '专业', prop: 'specialty_id_name', align: 'center' },
{ label: '班级', prop: 'class_id_name', align: 'center' },
{ label: '身份证号', prop: 'id_number', align: 'center' },
{ label: '联系电话', prop: 'mobile', align: 'center', minWidth: '200' },
{ label: '部门/学校', prop: 'organ_id_name', align: 'center', minWidth: '200' },
{ label: '专业', prop: 'specialty_id_name', align: 'center', minWidth: '200' },
{ label: '班级', prop: 'class_id_name', align: 'center', minWidth: '200' },
{ label: '身份证号', prop: 'id_number', align: 'center', minWidth: '200' },
{ label: '生效状态', slots: 'status', align: 'center' },
{ label: '更新时间', prop: 'updated_time', align: 'center' },
{ label: '更新时间', prop: 'updated_time', align: 'center', minWidth: '200' },
{ label: '操作', slots: 'table-operate', align: 'center', minWidth: '200', fixed: 'right' }
]
}
......
......@@ -90,9 +90,6 @@ const handleUpdate = async (formEl: FormInstance | undefined) => {
}
})
}
const changeEdu = (val: any) => {
console.log(val, val)
}
onMounted(() => {
// 更新获取讲师信息
......@@ -124,7 +121,6 @@ onMounted(() => {
style="width: 250px"
placeholder="请选择讲师学历"
:disabled="isEdit === '1'"
@change="changeEdu"
>
<el-option v-for="(item, index) in levelList" :key="index" :label="item.label" :value="item.value" />
</el-select>
......
......@@ -121,7 +121,6 @@ const handleSave = () => {
resource_id: resource_id
}
createCharacter(params).then(() => {
console.log('00000')
emit('update:isShowExamDialog', false)
emit('create')
})
......
......@@ -111,7 +111,6 @@ function fetchDetail() {
examList.value = res.data.examinations
form.exam_id = res.data.examinations.map((item: any) => item.id).toString()
form.specialty_id = res.data.specialty.map((item: any) => item.id)
console.log(form.specialty_id, 'form.specialty_id')
loading = false
})
}
......@@ -161,7 +160,6 @@ function handleCreate() {
}
// 修改课程
function handleUpdate() {
console.log(form, '0000')
form.specialty_id = form.specialty_id.toString()
updateCourse(form).then((res: any) => {
if (res.code === 0) {
......
......@@ -4,7 +4,6 @@ const props: any = defineProps({
type: Object
}
})
console.log(props?.data)
interface IBasicInfo {
icon: string
......
......@@ -51,12 +51,7 @@ const changeVideo = (index: number) => {
}
const chapterHeight: any = ref(0)
const chapterWidth: any = ref(0)
// onMounted(() => {
// setTimeout(() => {
// chapter.value = document.getElementById('video_con')?.offsetHeight
// console.log(document.getElementById('video_con')?.offsetHeight, 'ppp')
// }, 2000)
// })
const videoHeight = (h: number) => {
chapterHeight.value = h
}
......
<script setup lang="ts">
import { setDepartment, setPlatform, setStatus, setBelong } from '../api'
import { ElMessage, ElMessageBox } from 'element-plus'
import { useMapStore } from '@/stores/map'
import { useProjectList } from '@/composables/useGetProjectList'
const store = useMapStore()
console.log(store)
const router = useRouter()
const props = defineProps(['data'])
const path = router.currentRoute.value.path
console.log(path, 'path')
// 详情id
const id = router.currentRoute.value.query.id as string
// 设置部门共享
......
......@@ -54,7 +54,6 @@ let form: any = $ref({
watch(
() => form.file,
value => {
console.log(value[0]?.name, 'value[0]?.name')
if (value[0]?.name.includes('.')) {
form.name = value[0]?.name.slice(0, value[0]?.name.lastIndexOf('.'))
} else {
......
......@@ -30,7 +30,6 @@ const form: any = reactive({
})
const fileChange = (e: any) => {
form.file = e.target.files[0]
console.log(form.file, 'form.file')
if (form.file.name.indexOf('.mp4') === -1) {
ElMessage('请上传mp4格式视频')
return
......@@ -140,11 +139,6 @@ const createUploader: any = () => {
uploader.resumeUploadWithAuth(uploadAuth)
})
}
// 全部文件上传结束
// onUploadEnd: function (uploadInfo: any) {
// console.log(uploadInfo, '上传完成')
// // console.log("onUploadEnd: uploaded all the files")
// }
})
return uploader
}
......
......@@ -18,7 +18,6 @@ const listOptions = $computed(() => {
created_time_end: ''
},
beforeRequest(params: any) {
console.log(params)
if (params.sso_id.length) {
params.sso_id = params.sso_id[0].id
return params
......
......@@ -28,7 +28,6 @@ let questionData: any = $ref({})
questionData = Object.assign({}, props.question)
const questionType = computed(() => {
// 1单选,2多选,3简答,5案例题, 6判断, 7实操,8情景
console.log(props.question.child_question_type, props.question.child_question_type)
if (props.question.child_question_type !== 0) {
return parseInt(props.question.child_question_type)
} else {
......
<script setup lang="ts">
import { getPaperList, getSearchList } from '../api'
// import { useMapStore } from '@/stores/map'
// const store = useMapStore()
const router = useRouter()
const appList = ref()
const courseListCategory: any = ref([])
......
......@@ -87,8 +87,8 @@ const handleGetClassList = () => {
}
watch(
() => classId.value,
() => {
if (classId.value !== '') {
value => {
if (value !== undefined) {
checkPermission('v1-teaching-paper-search-list') && handleGetStuList()
}
}
......
......@@ -94,7 +94,6 @@ const listOptions = $computed(() => {
}
})
const handleCheckPaper = (row: any) => {
console.log(row)
id.value = row.job_id
isShowCheckDialog.value = true
}
......@@ -122,7 +121,6 @@ const handleFresh = () => {
watch(
() => course_id.value,
value => {
console.log(value, 'qqqq')
if (value !== undefined) {
checkPermission('v1-teaching-job-search-list') && handleGetSearchClassList()
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论