首页 > 其他分享 >vue实现课程表

vue实现课程表

时间:2023-08-17 14:35:53浏览次数:25  
标签:vue title 实现 课程表 scope sat row

<template>
  <div>
    <div class="panel">
      <el-table :data="timetable" :span-method="objectSpanMethod" border
                :header-cell-style="{background:'#d9e5fd', color:'black', fontWeight: 1000}"
                :cell-style="tableCellStyle"
      >
        <el-table-column prop="sjd" label="时间段" width="80" align="center">
        </el-table-column>
        <el-table-column prop="jc" label="节次" width="80" align="center">
        </el-table-column>
        <el-table-column prop="mon" label="星期一" align="center">
          <template slot-scope="scope">
            <h4>{{ scope.row.mon.title }}</h4>
            <div v-html="scope.row.mon.content"></div>
          </template>
        </el-table-column>
        <el-table-column prop="tue" label="星期二" align="center">
          <template slot-scope="scope">
            <h4>{{ scope.row.tue.title }}</h4>
            <div v-html="scope.row.tue.content"></div>
          </template>
        </el-table-column>
        <el-table-column prop="wed" label="星期三" align="center">
          <template slot-scope="scope">
            <h4>{{ scope.row.wed.title }}</h4>
            <div v-html="scope.row.wed.content"></div>
          </template>
        </el-table-column>
        <el-table-column prop="thu" label="星期四" align="center">
          <template slot-scope="scope">
            <h4>{{ scope.row.thu.title }}</h4>
            <div v-html="scope.row.thu.content"></div>
          </template>
        </el-table-column>
        <el-table-column prop="fri" label="星期五" align="center">
          <template slot-scope="scope">
            <h4>{{ scope.row.fri.title }}</h4>
            <div v-html="scope.row.fri.content"></div>
          </template>
        </el-table-column>
        <el-table-column prop="sat" label="星期六" align="center">
          <template slot-scope="scope">
            <h4>{{ scope.row.sat.title }}</h4>
            <div v-html="scope.row.sat.content"></div>
          </template>
        </el-table-column>
        <el-table-column prop="sun" label="星期日" align="center">
          <template slot-scope="scope">
            <h4>{{ scope.row.sun.title }}</h4>
            <div v-html="scope.row.sun.content"></div>
          </template>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

标签:vue,title,实现,课程表,scope,sat,row
From: https://blog.51cto.com/u_16150727/7122278

相关文章

  • vue + element 表设计
    <template><divclass="course-table"><el-scrollbarstyle="height:100%"><divclass="course-table-content"><divclass="top":style="{width:......
  • 工业物联网是智能制造的实现途径
     什么是工业物联网技术?工业物联网(IIoT)依靠多种技术来连接工业设备和系统,以便对数据进行收集和分析。通过将计算添加到工业端点,系统可以在边缘处理数据,从而实现近乎实时的分析,并运行类似机器视觉的工作负载。边缘计算还可以支持生产控制、可管理性和安全性。物联网在各工业领域......
  • vue el-form 多种校验
    rules:Object.freeze({name1:[{required:true,message:'请输入发放计划编码',trigger:'blur'},{pattern:/^(?!\s+).*(?<!\s)$/,message:'首尾不能为空格',trigger:'blur'}],name2:[{required:true,mess......
  • VUE后台管理系统(三)
    SKU管理模块开发先完成静态组件###Sku.index.vue<template><div><el-tablestyle="width:100%"border><el-table-columntype="index"label="序号"width="80px"align="center">......
  • vue项目在360浏览器兼容模式下SCRIPT1002: 语法错误以及“fetch”未定义问题解决
    使用360浏览器的兼容模式,vue项目页面空白,打开控制台,发现如下报错:SCRIPT1002:语法错误 解决方法如下:1、安装依赖npminstall--savecore-jsregenerator-runtime2、在main.js引入import'core-js/stable';import'regenerator-runtime/runtime';3、在babel.confi......
  • 轴承制造设备有哪些?如何实现轴承设备的智能运维?
    轴承是很多工商业设备和民用产品的核心零部件,与传感器、变速器、传动装置、控制器、电子元器件等产品一样,都是智能装备产业链的上游,具备广泛的应用场景。轴承制造一般涉及毛坯加工设备(.墩锻机、碾扩机、冷碾机等)、热处理设备(淬火设备、回火设备等)、车加工设备(车床、磨床等)等,这些设......
  • 队列的实现方式(先进先出 FIFO)--环形队列
    博客地址:https://www.cnblogs.com/zylyehuo/#-*-coding:utf-8-*-classQueue:def__init__(self,size=100):self.queue=[0for_inrange(size)]self.size=sizeself.rear=0#队尾指针self.front=0#队首指针......
  • Go语言实现计数器的方法有哪些?
    Go语言中,实现计数器可以通过使用不同的机制和数据结构来实现。以下是几种常见的计数器实现方法:1 基于原子操作的计数器:Go的sync/atomic包提供了原子操作,可以用于实现高效的计数器,适用于并发环境。package mainimport (    "fmt"    "sync"    "sync/atomic")func......
  • 15种实时uv实现方案系列(附源码)之一:Flink基于set实时uv统计
    UVStatMultiPlans(GitHub)项目持续收集各种高性能实时uv实现方案并对各种实现方案的优缺点进行对比分析!需求描述统计每分钟用户每个页面的uv访问量。Kafka数据格式{"userId":"c61b801e-22e7-4238-8f67-90968a40f2a7","page":"page_1","behaviorTime":1692247408129}{"userId......
  • Spring实现幂等性的方法
    在开发Web应用程序时,确保接口的幂等性是一项重要任务。幂等性是指对同一个请求的多次执行应该产生相同的结果,而不会引起不正确的操作或数据损坏。在Spring框架中,我们可以利用一些功能和工具来实现幂等性。本文将介绍一种基本的方法来在Spring中实现幂等性。1.幂等性的概念和原则在......