Compare commits

..

6 Commits

11 changed files with 38 additions and 47 deletions

View File

@ -15,10 +15,10 @@
</template>
</el-dropdown>
<div>
<el-button type="danger" link @click="removeItem(curTemplate, false)">
<el-button type="danger" link :disabled="!(templateList.length)" @click="removeItem(curTemplate, false)">
删除
</el-button>
<el-button type="primary" link @click="onAdd">
<el-button type="primary" link :disabled="!(templateList.length)" @click="onAdd">
<i class="iconfont icon-jiahao"></i>
添加提示词
</el-button>
@ -137,15 +137,17 @@ const curTemplate = reactive({ name: '', id: '' })
const templateList = ref([])
const childTempList = ref([])
const getTemplateList = () => {
modelList({ model: props.type, type: 1, pageNum: 1, pageSize: 10000 }).then(res => {
modelList({ model: props.type, type: 1, pageNum: 1, pageSize: 10000, ex1: curNode.edustage, ex2: curNode.edusubject }).then(res => {
templateList.value = res.rows
Object.assign(curTemplate, res.rows[0]);
getChildTemplate()
if(res.rows.length > 0){
Object.assign(curTemplate, res.rows[0]);
getChildTemplate()
}
})
}
const getChildTemplate = () => {
tempLoading.value = true
modelList({ model: props.type, type: 2, parentId: curTemplate.id }).then(res => {
modelList({ model: props.type, type: 2, parentId: curTemplate.id, ex1: curNode.edustage, ex2: curNode.edusubject }).then(res => {
childTempList.value = res.rows
if(childTempList.value.length){
childTempList.value.forEach(item => item.answer = '')
@ -398,9 +400,9 @@ emitter.on('onGetMain', () => {
const curNode = reactive({})
onMounted(() => {
getTemplateList()
let data = sessionStore.get('subject.curNode')
Object.assign(curNode, data);
getTemplateList()
let jsonKey = `${modeType.value}-${data.edustage}-${data.edusubject}`
params.dataset_id = dataSetJson[jsonKey]
})

View File

@ -44,9 +44,9 @@ const breadList = ref([])
watch(
() => router.currentRoute.value,
(newValue) => {
let path = newValue.path
if (path.includes('/model') && path !== ('/model/index')) {
console.log(newValue)
const { showBread } = newValue.meta
if (showBread) {
isShowBack.value = true
breadList.value = newValue.matched.map(item => item.meta)
let data = sessionStore.get('subject.curNode')

View File

@ -8,8 +8,8 @@
<el-header>
<Header/>
</el-header>
<el-main :style="{ 'padding-top' : isShowBread ? 0 : '20px'}">
<template v-if="isShowBread">
<el-main style="padding-top : 20px">
<!-- <template v-if="isShowBread">
<div class="bread-row">
<div class="back" @click="onBack">
<i class="iconfont icon-fanhui"></i>
@ -19,8 +19,8 @@
<el-breadcrumb-item v-for="item in breadList"> {{ item.title }} </el-breadcrumb-item>
</el-breadcrumb>
</div>
</template>
<AppMain :style="{ height: isShowBread ? 'calc(100% - 45px)' : '100%' }" />
</template> -->
<AppMain />
</el-main>
</el-container>
<Uploader v-if="uploaderStore.uploadList && uploaderStore.uploadList.length > 0" />

View File

@ -47,19 +47,19 @@ export const constantRoutes = [
path: 'curriculum',
component: () => import('@/views/curriculum-standards/index.vue'),
name: 'curriculum-standard',
meta: { title: '课标研读' }
meta: { title: '课标研读', showBread: true }
},
{
path: 'teaching',
component: () => import('@/views/teaching-material/index.vue'),
name: 'teaching-material',
meta: { title: '教材研读' }
meta: { title: '教材研读', showBread: true }
},
{
path: 'examination',
component: () => import('@/views/examination-analysis/index.vue'),
name: 'examination-analysis',
meta: { title: '考试分析' }
meta: { title: '考试分析', showBread: true }
},
{
path: 'management',
@ -71,13 +71,13 @@ export const constantRoutes = [
path: 'design',
component: () => import('@/views/teachingDesign/index.vue'),
name: 'teaching-design',
meta: { title: '教学框架设计' },
meta: { title: '教学框架设计' , showBread: true},
},
{
path: 'newClassTaskAssign',
component: () => import('@/views/classTask/newClassTaskAssign/index.vue'),
name: 'newClassTaskAssign',
meta: { title: '作业管理' }
meta: { title: '作业设计', showBread: true }
},
{
path: 'questionUpload',
@ -89,7 +89,7 @@ export const constantRoutes = [
path: 'aiKolors',
component: () => import('@/components/ai-kolors/index.vue'),
name: 'aiKolors',
meta: { title: '文生图片' }
meta: { title: '文生图片', showBread: true }
},
]
},
@ -132,7 +132,7 @@ const dynamicRoutes = [
path: 'prepare',
component: () => import('@/views/prepare/index.vue'),
name: 'prepare',
meta: { title: '教学实践', showBread: true }
meta: { title: '教学实践' }
},
{
path: 'newClassTask',
@ -152,13 +152,6 @@ const dynamicRoutes = [
name: 'classCorrect',
meta: { title: '作业批改', showBread: true }
},
{
path: '/teach',
component: () => import('@/views/teach/index.vue'),
name: 'teach',
meta: { title: '授课' }
},
{
path: '/profile',
component: () => import('@/views/profile/index.vue'),

View File

@ -461,7 +461,6 @@ watch(tabActive, (newVal,oldVal)=>{
height: 100%;
display: flex;
flex-direction: column;
padding: 15px 30px;
.class-reserv-tabs {
width: 30%;
text-align: left;

View File

@ -703,6 +703,7 @@ const handleClassWorkSave = async () => {
entpcourseworklist: '', // list
};
if(cform.uniquekey.trim() == '') return ElMessage({ type: 'warning', message: '作业名称不能为空!'});
// [] newWorkSpaceEdit true
if(classWorkForm.id != '' ) {// id
@ -741,6 +742,7 @@ const handleClassWorkSave = async () => {
}
}
else if(classWorkForm.worktype === "常规作业"){
if (classWorkForm.fileHomeworkList.length == 0) return ElMessage({ type: 'warning', message: '请上传常规作业附件!'});
fileLoading.value = true
cform.workcodes = JSON.stringify(classWorkForm.fileHomeworkList);
cform.entpcourseworklist = JSON.stringify([{'id':-2, 'score': '10'}]);
@ -832,7 +834,12 @@ const editWork = async (cform) =>{
}
}else if (classWorkForm.worktype == '课堂展示' || classWorkForm.worktype == '常规作业') {
//
//
if(classWorkForm.worktype == '课堂展示'){
//
}else{
if (classWorkForm.fileHomeworkList.length == 0) return ElMessage({ type: 'warning', message: '请上传常规作业附件!'});
}
}else {
if (classWorkForm.chooseWorkLists.length == 0) {
//

View File

@ -134,7 +134,6 @@ onMounted(() => {
<style lang="scss" scoped>
.page-newcalsetask {
padding-top: 10px;
height: 100%;
overflow: hidden;

View File

@ -489,6 +489,7 @@ const handleClassWorkFormQuizRemove = (index) =>{
entpcourseworklist: '', // list
};
if(cform.uniquekey.trim() == '') return ElMessage({ type: 'warning', message: '作业名称不能为空!'});
// [] newWorkSpaceEdit true
if(isShow.value === false){
@ -530,6 +531,7 @@ const handleClassWorkFormQuizRemove = (index) =>{
}
}
else if(classWorkForm.worktype === "常规作业"){
if (classWorkForm.fileHomeworkList.length == 0) return ElMessage({ type: 'warning', message: '请上传常规作业附件!'});
fileLoading.value = true
cform.workcodes = JSON.stringify(classWorkForm.fileHomeworkList);
cform.entpcourseworklist = JSON.stringify([{'id':-2, 'score': '10'}]);
@ -634,7 +636,11 @@ const editWork = async (cform) =>{
}
}else if (classWorkForm.worktype == '课堂展示' || classWorkForm.worktype == '常规作业') {
//
if(classWorkForm.worktype == '课堂展示'){
//
}else{
if (classWorkForm.fileHomeworkList.length == 0) return ElMessage({ type: 'warning', message: '请上传常规作业附件!'});
}
}else {
if (classWorkForm.chooseWorkLists.length == 0) {
//

View File

@ -1,13 +0,0 @@
<template>
<div>
授课Page
</div>
</template>
<script setup>
</script>
<style lang="scss" scoped>
</style>

View File

@ -346,7 +346,6 @@ onMounted(async () => {
</script>
<style scoped lang="scss">
.page-con {
padding-top: 20px;
height: 100%;
&-left{
width: 300px;

View File

@ -362,7 +362,6 @@ onMounted(async () => {
</script>
<style scoped lang="scss">
.page-con {
padding-top: 20px;
height: 100%;
&-left{
width: 300px;