Compare commits
No commits in common. "7545e68a625fa32b2b4b80ea78ec909cadc92a69" and "c8dd19382e99a35c8299a3d60208e2280c2fa87c" have entirely different histories.
7545e68a62
...
c8dd19382e
|
@ -15,10 +15,10 @@
|
||||||
</template>
|
</template>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
<div>
|
<div>
|
||||||
<el-button type="danger" link :disabled="!(templateList.length)" @click="removeItem(curTemplate, false)">
|
<el-button type="danger" link @click="removeItem(curTemplate, false)">
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="primary" link :disabled="!(templateList.length)" @click="onAdd">
|
<el-button type="primary" link @click="onAdd">
|
||||||
<i class="iconfont icon-jiahao"></i>
|
<i class="iconfont icon-jiahao"></i>
|
||||||
添加提示词
|
添加提示词
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -137,17 +137,15 @@ const curTemplate = reactive({ name: '', id: '' })
|
||||||
const templateList = ref([])
|
const templateList = ref([])
|
||||||
const childTempList = ref([])
|
const childTempList = ref([])
|
||||||
const getTemplateList = () => {
|
const getTemplateList = () => {
|
||||||
modelList({ model: props.type, type: 1, pageNum: 1, pageSize: 10000, ex1: curNode.edustage, ex2: curNode.edusubject }).then(res => {
|
modelList({ model: props.type, type: 1, pageNum: 1, pageSize: 10000 }).then(res => {
|
||||||
templateList.value = res.rows
|
templateList.value = res.rows
|
||||||
if(res.rows.length > 0){
|
Object.assign(curTemplate, res.rows[0]);
|
||||||
Object.assign(curTemplate, res.rows[0]);
|
getChildTemplate()
|
||||||
getChildTemplate()
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const getChildTemplate = () => {
|
const getChildTemplate = () => {
|
||||||
tempLoading.value = true
|
tempLoading.value = true
|
||||||
modelList({ model: props.type, type: 2, parentId: curTemplate.id, ex1: curNode.edustage, ex2: curNode.edusubject }).then(res => {
|
modelList({ model: props.type, type: 2, parentId: curTemplate.id }).then(res => {
|
||||||
childTempList.value = res.rows
|
childTempList.value = res.rows
|
||||||
if(childTempList.value.length){
|
if(childTempList.value.length){
|
||||||
childTempList.value.forEach(item => item.answer = '')
|
childTempList.value.forEach(item => item.answer = '')
|
||||||
|
@ -400,9 +398,9 @@ emitter.on('onGetMain', () => {
|
||||||
|
|
||||||
const curNode = reactive({})
|
const curNode = reactive({})
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
getTemplateList()
|
||||||
let data = sessionStore.get('subject.curNode')
|
let data = sessionStore.get('subject.curNode')
|
||||||
Object.assign(curNode, data);
|
Object.assign(curNode, data);
|
||||||
getTemplateList()
|
|
||||||
let jsonKey = `${modeType.value}-${data.edustage}-${data.edusubject}`
|
let jsonKey = `${modeType.value}-${data.edustage}-${data.edusubject}`
|
||||||
params.dataset_id = dataSetJson[jsonKey]
|
params.dataset_id = dataSetJson[jsonKey]
|
||||||
})
|
})
|
||||||
|
|
|
@ -44,9 +44,9 @@ const breadList = ref([])
|
||||||
watch(
|
watch(
|
||||||
() => router.currentRoute.value,
|
() => router.currentRoute.value,
|
||||||
(newValue) => {
|
(newValue) => {
|
||||||
console.log(newValue)
|
let path = newValue.path
|
||||||
const { showBread } = newValue.meta
|
|
||||||
if (showBread) {
|
if (path.includes('/model') && path !== ('/model/index')) {
|
||||||
isShowBack.value = true
|
isShowBack.value = true
|
||||||
breadList.value = newValue.matched.map(item => item.meta)
|
breadList.value = newValue.matched.map(item => item.meta)
|
||||||
let data = sessionStore.get('subject.curNode')
|
let data = sessionStore.get('subject.curNode')
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
<el-header>
|
<el-header>
|
||||||
<Header/>
|
<Header/>
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-main style="padding-top : 20px">
|
<el-main :style="{ 'padding-top' : isShowBread ? 0 : '20px'}">
|
||||||
<!-- <template v-if="isShowBread">
|
<template v-if="isShowBread">
|
||||||
<div class="bread-row">
|
<div class="bread-row">
|
||||||
<div class="back" @click="onBack">
|
<div class="back" @click="onBack">
|
||||||
<i class="iconfont icon-fanhui"></i>
|
<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-item v-for="item in breadList"> {{ item.title }} </el-breadcrumb-item>
|
||||||
</el-breadcrumb>
|
</el-breadcrumb>
|
||||||
</div>
|
</div>
|
||||||
</template> -->
|
</template>
|
||||||
<AppMain />
|
<AppMain :style="{ height: isShowBread ? 'calc(100% - 45px)' : '100%' }" />
|
||||||
</el-main>
|
</el-main>
|
||||||
</el-container>
|
</el-container>
|
||||||
<Uploader v-if="uploaderStore.uploadList && uploaderStore.uploadList.length > 0" />
|
<Uploader v-if="uploaderStore.uploadList && uploaderStore.uploadList.length > 0" />
|
||||||
|
|
|
@ -47,19 +47,19 @@ export const constantRoutes = [
|
||||||
path: 'curriculum',
|
path: 'curriculum',
|
||||||
component: () => import('@/views/curriculum-standards/index.vue'),
|
component: () => import('@/views/curriculum-standards/index.vue'),
|
||||||
name: 'curriculum-standard',
|
name: 'curriculum-standard',
|
||||||
meta: { title: '课标研读', showBread: true }
|
meta: { title: '课标研读' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'teaching',
|
path: 'teaching',
|
||||||
component: () => import('@/views/teaching-material/index.vue'),
|
component: () => import('@/views/teaching-material/index.vue'),
|
||||||
name: 'teaching-material',
|
name: 'teaching-material',
|
||||||
meta: { title: '教材研读', showBread: true }
|
meta: { title: '教材研读' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'examination',
|
path: 'examination',
|
||||||
component: () => import('@/views/examination-analysis/index.vue'),
|
component: () => import('@/views/examination-analysis/index.vue'),
|
||||||
name: 'examination-analysis',
|
name: 'examination-analysis',
|
||||||
meta: { title: '考试分析', showBread: true }
|
meta: { title: '考试分析' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'management',
|
path: 'management',
|
||||||
|
@ -71,13 +71,13 @@ export const constantRoutes = [
|
||||||
path: 'design',
|
path: 'design',
|
||||||
component: () => import('@/views/teachingDesign/index.vue'),
|
component: () => import('@/views/teachingDesign/index.vue'),
|
||||||
name: 'teaching-design',
|
name: 'teaching-design',
|
||||||
meta: { title: '教学框架设计' , showBread: true},
|
meta: { title: '教学框架设计' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'newClassTaskAssign',
|
path: 'newClassTaskAssign',
|
||||||
component: () => import('@/views/classTask/newClassTaskAssign/index.vue'),
|
component: () => import('@/views/classTask/newClassTaskAssign/index.vue'),
|
||||||
name: 'newClassTaskAssign',
|
name: 'newClassTaskAssign',
|
||||||
meta: { title: '作业设计', showBread: true }
|
meta: { title: '作业管理' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'questionUpload',
|
path: 'questionUpload',
|
||||||
|
@ -89,7 +89,7 @@ export const constantRoutes = [
|
||||||
path: 'aiKolors',
|
path: 'aiKolors',
|
||||||
component: () => import('@/components/ai-kolors/index.vue'),
|
component: () => import('@/components/ai-kolors/index.vue'),
|
||||||
name: 'aiKolors',
|
name: 'aiKolors',
|
||||||
meta: { title: '文生图片', showBread: true }
|
meta: { title: '文生图片' }
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -132,7 +132,7 @@ const dynamicRoutes = [
|
||||||
path: 'prepare',
|
path: 'prepare',
|
||||||
component: () => import('@/views/prepare/index.vue'),
|
component: () => import('@/views/prepare/index.vue'),
|
||||||
name: 'prepare',
|
name: 'prepare',
|
||||||
meta: { title: '教学实践' }
|
meta: { title: '教学实践', showBread: true }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'newClassTask',
|
path: 'newClassTask',
|
||||||
|
@ -152,6 +152,13 @@ const dynamicRoutes = [
|
||||||
name: 'classCorrect',
|
name: 'classCorrect',
|
||||||
meta: { title: '作业批改', showBread: true }
|
meta: { title: '作业批改', showBread: true }
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/teach',
|
||||||
|
component: () => import('@/views/teach/index.vue'),
|
||||||
|
name: 'teach',
|
||||||
|
meta: { title: '授课' }
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
path: '/profile',
|
path: '/profile',
|
||||||
component: () => import('@/views/profile/index.vue'),
|
component: () => import('@/views/profile/index.vue'),
|
||||||
|
|
|
@ -461,6 +461,7 @@ watch(tabActive, (newVal,oldVal)=>{
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
padding: 15px 30px;
|
||||||
.class-reserv-tabs {
|
.class-reserv-tabs {
|
||||||
width: 30%;
|
width: 30%;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
|
@ -134,6 +134,7 @@ onMounted(() => {
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.page-newcalsetask {
|
.page-newcalsetask {
|
||||||
|
padding-top: 10px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
授课Page
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
|
</style>
|
|
@ -346,6 +346,7 @@ onMounted(async () => {
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.page-con {
|
.page-con {
|
||||||
|
padding-top: 20px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
&-left{
|
&-left{
|
||||||
width: 300px;
|
width: 300px;
|
||||||
|
|
|
@ -362,6 +362,7 @@ onMounted(async () => {
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.page-con {
|
.page-con {
|
||||||
|
padding-top: 20px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
&-left{
|
&-left{
|
||||||
width: 300px;
|
width: 300px;
|
||||||
|
|
Loading…
Reference in New Issue