教学框架

This commit is contained in:
lyc 2025-01-06 09:55:28 +08:00
parent e9bc48963b
commit 6579ee1c2d
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
<el-button type="primary" @click="createAi">
<i class="iconfont icon-chuangzuo"></i>生成教学大纲
</el-button>
<el-button type="danger" :disabled="Boolean(!answer)" @click="delAnswer">
<el-button type="danger" :disabled="curItem.parentId" @click="delAnswer">
<i class="iconfont icon-shanchu"></i>
删除大纲
</el-button>
@ -73,7 +73,7 @@ emitter.on('onShow', (data)=>{
const getDetails = (id) =>{
syllabuss(id).then( res =>{
console.log(res)
Object.assign(curItem, res.data)
})
}

View File

@ -2,7 +2,7 @@
<el-dialog v-model="isDialog" :show-close="false" width="900" destroy-on-close>
<template #header>
<div class="custom-header flex">
<span>{{ item.name }}</span>
<span>编辑大纲</span>
<i class="iconfont icon-guanbi" @click="isDialog = false"></i>
</div>
</template>