LetmeLetmeLetme 2022-11-18 15:31 采纳率: 66.7%
浏览 11

作用域插槽渲染问题,前端渲染不出来,数据是获取到的

问题遇到的现象和发生背景

接口数据获取到了的,前端渲染也写对了,就是渲染不出来

用代码块功能插入代码,请勿粘贴截图
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body >
            <el-form ref="form" :model="form" :rules="rules" label-width="120px" height="1000px">
                <el-table :data="form.classScheduleTypeDataList" :header-cell-style="{'background-color':'#ffffff'}"
                    stripe border>
                    <el-table-column align="center" width="120">
                        <template slot-scope="scope">
                            <div>
                                {{scope.row.scheduleName}}
                            </div>
                            <div>
                                {{scope.row.start}}{{scope.row.end}}
                            </div>
                        </template>
                    </el-table-column>
                    <el-table-column align="center" v-for="(item,index) in dayList" :key="index" :label="item"
                        width="120">
                        <template slot-scope="scope">                            
                            <el-select v-model="scope.row.courseList[index].subjectId"
                                @change="handleSelectChange(scope.row.courseList[index])" placeholder="休息">
                                <el-option v-for="subjectItem in gradeTeacherList" :key="subjectItem.subjectId"
                                    :label="subjectItem.subjectName" :value="subjectItem.subjectId" />
                  
                            </el-select>
                        </template>
                    </el-table-column>
                </el-table>
            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button type="primary" @click="submitForm">确 定</el-button>
                <el-button @click="cancel">取 消</el-button>
            </div>
        </el-dialog>[]()



img

运行结果及报错内容

这些渲染是之前渲染出来的,现在不行了

  • 写回答

3条回答 默认 最新

  • LetmeLetmeLetme 2022-11-18 15:45
    关注

    img

    界面没数据,同时报错了

    评论

报告相同问题?

问题事件

  • 创建了问题 11月18日

悬赏问题

  • ¥30 comfyui openpose报错
  • ¥20 Wpf Datarid单元格闪烁效果的实现
  • ¥15 图像分割、图像边缘提取
  • ¥15 sqlserver执行存储过程报错
  • ¥100 nuxt、uniapp、ruoyi-vue 相关发布问题
  • ¥15 浮窗和全屏应用同时存在,全屏应用输入法无法弹出
  • ¥100 matlab2009 32位一直初始化
  • ¥15 Expected type 'str | PathLike[str]…… bytes' instead
  • ¥15 三极管电路求解,已知电阻电压和三级关放大倍数
  • ¥15 ADS时域 连续相位观察方法