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

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

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