Compare commits

..

No commits in common. "ee196b6eb8a5187044dc690cf75abb434438097f" and "471d73a224cf62dae02e8c93f4d48894b16497b2" have entirely different histories.

3 changed files with 8 additions and 21 deletions

View File

@ -198,14 +198,9 @@
}
});
listClassmain({entpid: userStore.deptId, status: 'open', pageSize: 100}).then(response => {
//
let arr = [...response.rows]
classList.value.forEach(item => {
const currentIndex = arr.findIndex(items => items.id === item.id)
if(currentIndex) arr.splice(currentIndex, 1)
})
//
gradeTree.value = groupByCondition(arr, item => item.agekey);
gradeTree.value = groupByCondition(response.rows, item => item.agekey);
console.log(gradeTree.value,'gradeTree.value')
})
}
//
@ -298,15 +293,13 @@
// }
//
const btnSave = () => {
addClasses({classIds:classids.value.join(','),userId:userStore.userId}).then(res => {
addClasses({classIds:classids.value.join(','),regId:userStore.userId}).then(res => {
if (res.code === 200) {
dialogVisible.value = false
ElMessage({
message: res.msg,
type: 'success',
})
//
classids.value = []
}else{
ElMessage({
message: res.msg,

View File

@ -40,7 +40,7 @@
</template>
<script setup>
import { ref, getCurrentInstance,onMounted } from 'vue'
import { ref, getCurrentInstance } from 'vue'
import {updateUserInfo } from '@/api/system/user'
import { listEvaluation } from '@/api/subject/index'
import useUserStore from '@/store/modules/user'
@ -90,12 +90,9 @@ const rules = ref({
const subjectList = ref([])
//
const getSubject = () => {
listEvaluation({ itemkey: 'subject', pageSize: 500 }).then((res) => {
const arr = userStore.user.subject.split(',')
subjectList.value = res.rows.filter(item => arr.includes(String(item.id))).map(items => items)
subjectList.value = res.rows
})
}
setTimeout(() => {
if (props.user.edudegree != '') {
@ -153,7 +150,4 @@ const semeterChange = (item) => {
props.user.edusubject = ''
}
}
onMounted(() => {
getSubject()
})
</script>

View File

@ -1,5 +1,5 @@
<template>
<div class="resource-list">
<div v-loading="sourceStore.loading" class="resource-list">
<el-scrollbar>
<el-empty v-if="!sourceStore.thirdResult.list.length" description="暂无数据" />
<ul>