vue项目中的elementui的表格中画甘特图

最近的项目要求甘特图在elementui中实现,在此做出总结。
性能限制,不能传入太多的数据。
条件(时间):计划开始时间、计划结束时间、开始时间、结束时间、最大时间和最小时间。
思维:渲染表格头、渲染天数、填充色块。

  1. 实现简单的表格
	<el-table
		:data = "tableData"
		border
	>
		<el-table-column
			label="序号"
			type="index"
			align="center"
			width="40"
		></el-table-column>
		<el-table-column
			label="计划开始时间"
			prop="planned_start"
			align="center"
			width="110"
		>
			<template slot-scope="scope">
				<span>{
  
  { scope.row.planned_start }}</span>
			</template>
		</el-table-column>	
		<el-table-column
			label="计划结束之间"
			prop="planned_end"
			align="center"
			width="100"
		>
			<template slot-scope="scope">
				<span>{
  
  { scope.row.planned_end }}</span>
			</template>
		</el-table-column>
		<el-table-column
			label="实际开始时间"
			prop="start_date"
			align="center"
			width="110"
		>
			<template slot-scope="scope">
				<span>{
  
  { scope.row.start_datet }}</span>
			</template>
		</el-table-column>
		<el-table-column
			label="实际结束时间"
			prop="end_date"
			align="center"
			width="110"
		>
			<template slot-scope="scope">
				<span>{
  
  { scope.row.end_date }}</span>
			</template>
		</el-table-column>
		<el-
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值