2022-08-08 19:02:56 +08:00
|
|
|
|
<template>
|
2022-08-27 17:38:47 +08:00
|
|
|
|
<Card :title="title" showRefresh @query="handleQuery">
|
2022-08-09 09:46:11 +08:00
|
|
|
|
<div class="gantt-chart">
|
2022-08-11 16:41:26 +08:00
|
|
|
|
<div class="table" @scroll="handleScroll">
|
2022-08-09 09:46:11 +08:00
|
|
|
|
<div class="thead">
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="td">分部分项工程名称</div>
|
|
|
|
|
|
<div class="td">开始日期</div>
|
|
|
|
|
|
<div class="td">完成日期</div>
|
2022-08-10 16:06:59 +08:00
|
|
|
|
<div class="td" v-for="date in dateList" :key="date">
|
2022-08-09 09:46:11 +08:00
|
|
|
|
<div class="date">
|
|
|
|
|
|
<div class="month">
|
|
|
|
|
|
{{ date }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="days">
|
2022-08-09 15:11:08 +08:00
|
|
|
|
<div class="day" v-for="day in getDays(date)" :key="day.num">{{ day.num }}</div>
|
2022-08-09 09:46:11 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="tbody">
|
2022-08-09 11:23:11 +08:00
|
|
|
|
<div class="row-groups" :class="{ open: openedIndex === i }" v-for="(p, i) in projects" :key="p.pName">
|
2022-08-09 11:07:18 +08:00
|
|
|
|
<div class="row">
|
2022-08-09 11:23:11 +08:00
|
|
|
|
<div class="td" @click="handleOpen(i)">{{ p.pName }}</div>
|
2022-08-09 11:07:18 +08:00
|
|
|
|
<div class="td">{{ p.startTime }}</div>
|
|
|
|
|
|
<div class="td">{{ p.endTime }}</div>
|
2022-08-10 16:06:59 +08:00
|
|
|
|
<div class="td" v-for="date in dateList" :key="date + 'grid-date'">
|
2022-08-09 11:07:18 +08:00
|
|
|
|
<div class="grids">
|
2022-08-09 15:11:08 +08:00
|
|
|
|
<div class="grid" v-for="day in getDays(date)" :key="'grid' + day.num" :ref="p.pName + '-' + day.date"></div>
|
2022-08-09 11:07:18 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2022-08-11 16:41:26 +08:00
|
|
|
|
<div
|
|
|
|
|
|
class="progress"
|
|
|
|
|
|
:style="gantt"
|
|
|
|
|
|
v-for="(gantt, index) in p.gantts"
|
|
|
|
|
|
:key="index"
|
|
|
|
|
|
@mouseenter="handleHover"
|
|
|
|
|
|
@mouseleave="handleLeave"
|
|
|
|
|
|
></div>
|
2022-08-09 11:07:18 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="children">
|
|
|
|
|
|
<div class="row" v-for="child in p.children" :key="'child-' + child.pName">
|
|
|
|
|
|
<div class="td">{{ child.pName }}</div>
|
|
|
|
|
|
<div class="td">{{ child.startTime }}</div>
|
|
|
|
|
|
<div class="td">{{ child.endTime }}</div>
|
2022-08-10 16:06:59 +08:00
|
|
|
|
<div class="td" v-for="date in dateList" :key="date + 'grid-date'">
|
2022-08-09 11:07:18 +08:00
|
|
|
|
<div class="grids">
|
2022-08-09 15:11:08 +08:00
|
|
|
|
<div class="grid" v-for="day in getDays(date)" :key="'grid' + day.num" :ref="child.pName + '-' + day.date"></div>
|
2022-08-09 11:07:18 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2022-08-12 10:43:11 +08:00
|
|
|
|
<div
|
|
|
|
|
|
class="progress"
|
|
|
|
|
|
:style="gantt"
|
|
|
|
|
|
v-for="(gantt, index) in child.gantts"
|
|
|
|
|
|
:key="index"
|
|
|
|
|
|
@mouseenter="handleHover"
|
|
|
|
|
|
@mouseleave="handleLeave"
|
|
|
|
|
|
></div>
|
2022-08-09 09:46:11 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2022-08-11 16:41:26 +08:00
|
|
|
|
<div class="tooltips" :style="tooltipsStyle">
|
|
|
|
|
|
<div class="status">已逾期5天</div>
|
|
|
|
|
|
<div class="charger">负责人:史蒂夫</div>
|
|
|
|
|
|
</div>
|
2022-08-09 09:46:11 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</Card>
|
2022-08-08 19:02:56 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2022-08-09 09:46:11 +08:00
|
|
|
|
import Card from '../components/Card.vue'
|
2022-08-08 19:02:56 +08:00
|
|
|
|
export default {
|
2022-08-09 09:46:11 +08:00
|
|
|
|
components: { Card },
|
2022-08-08 19:02:56 +08:00
|
|
|
|
props: {
|
|
|
|
|
|
title: {
|
|
|
|
|
|
type: String,
|
2022-08-09 09:46:11 +08:00
|
|
|
|
default: ''
|
2022-08-08 19:02:56 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
2022-08-09 09:46:11 +08:00
|
|
|
|
created() {
|
|
|
|
|
|
console.log(this.getDays('2022/09'), '到')
|
|
|
|
|
|
},
|
2022-08-09 15:11:08 +08:00
|
|
|
|
mounted() {
|
2022-08-10 11:01:07 +08:00
|
|
|
|
this.setGantts()
|
2022-08-09 15:11:08 +08:00
|
|
|
|
},
|
2022-08-08 19:02:56 +08:00
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2022-08-09 09:46:11 +08:00
|
|
|
|
projects: [
|
2022-08-09 11:07:18 +08:00
|
|
|
|
{
|
|
|
|
|
|
pName: '地基与基础工程',
|
2022-08-09 14:12:44 +08:00
|
|
|
|
startTime: '2020/04/06',
|
|
|
|
|
|
endTime: '2020/05/09',
|
2022-08-10 18:31:48 +08:00
|
|
|
|
delay: 10,
|
2022-08-10 14:26:52 +08:00
|
|
|
|
status: 0,
|
2022-08-10 11:01:07 +08:00
|
|
|
|
gantts: [],
|
|
|
|
|
|
// gantts: [{ left: '420px', width: '100px', status: '' }],
|
2022-08-09 11:07:18 +08:00
|
|
|
|
children: [
|
2022-08-10 14:26:52 +08:00
|
|
|
|
{ pName: '无支护土方工程', startTime: '2020/04/06', endTime: '2020/04/09', status: 1 },
|
|
|
|
|
|
{ pName: '有支护土方工程', startTime: '2020/04/10', endTime: '2020/05/08', status: 3 }
|
2022-08-09 11:07:18 +08:00
|
|
|
|
]
|
|
|
|
|
|
},
|
2022-08-10 14:26:52 +08:00
|
|
|
|
{ pName: '主体结构', startTime: '2020/03/12', endTime: '2020/06/04', status: 2 },
|
|
|
|
|
|
{ pName: '建筑装饰装修', startTime: '2020/04/21', endTime: '2020/07/30', status: 1 }
|
2022-08-09 11:23:11 +08:00
|
|
|
|
],
|
2022-08-10 14:26:52 +08:00
|
|
|
|
openedIndex: 9999,
|
2022-08-11 16:41:26 +08:00
|
|
|
|
colors: ['#4C87FF', '#54CF8E', '#F2D026', '#FF6C7F'],
|
|
|
|
|
|
tooltipsStyle: {
|
|
|
|
|
|
display: 'none',
|
|
|
|
|
|
left: 0,
|
|
|
|
|
|
top: 0
|
|
|
|
|
|
},
|
|
|
|
|
|
scrollLeft: 0,
|
|
|
|
|
|
scrollTimer: 0
|
2022-08-09 09:46:11 +08:00
|
|
|
|
}
|
2022-08-08 19:02:56 +08:00
|
|
|
|
},
|
2022-08-09 09:46:11 +08:00
|
|
|
|
methods: {
|
2022-08-27 17:38:47 +08:00
|
|
|
|
/** 查询 */
|
|
|
|
|
|
handleQuery() {
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
this.setGantts()
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2022-08-10 17:18:03 +08:00
|
|
|
|
getGanttStyle(project) {
|
|
|
|
|
|
let { startTime, endTime, pName } = project
|
|
|
|
|
|
const startArr = startTime.split('/')
|
|
|
|
|
|
const endArr = endTime.split('/')
|
|
|
|
|
|
let startRef = null
|
|
|
|
|
|
let endRef = null
|
2022-08-09 18:34:00 +08:00
|
|
|
|
|
2022-08-10 17:18:03 +08:00
|
|
|
|
if (!(startArr[2] % 2)) {
|
|
|
|
|
|
const day = startArr[2] - 1
|
|
|
|
|
|
startArr[2] = day < 10 ? '0' + day : day
|
|
|
|
|
|
startTime = startArr.join('/')
|
|
|
|
|
|
console.log(startTime, 'xxx')
|
|
|
|
|
|
}
|
|
|
|
|
|
if (!(endArr[2] % 2)) {
|
|
|
|
|
|
const day = endArr[2] - 1
|
|
|
|
|
|
endArr[2] = day < 10 ? '0' + day : day
|
|
|
|
|
|
endTime = endArr.join('/')
|
|
|
|
|
|
console.log(endTime, 'xxx')
|
|
|
|
|
|
}
|
2022-08-09 18:34:00 +08:00
|
|
|
|
|
2022-08-10 17:18:03 +08:00
|
|
|
|
startRef = this.$refs[`${pName}-${startTime}`][0]
|
|
|
|
|
|
const startLeft = startRef.offsetLeft
|
2022-08-10 10:09:38 +08:00
|
|
|
|
|
2022-08-10 17:18:03 +08:00
|
|
|
|
endRef = this.$refs[`${pName}-${endTime}`][0]
|
|
|
|
|
|
const endWidth = endRef.offsetWidth
|
|
|
|
|
|
const endLeft = endRef.offsetLeft
|
|
|
|
|
|
const ganttWidth = endLeft - startLeft + endWidth
|
2022-08-10 10:09:38 +08:00
|
|
|
|
|
2022-08-10 17:18:03 +08:00
|
|
|
|
return { left: startLeft + 'px', width: ganttWidth + 'px' }
|
|
|
|
|
|
},
|
|
|
|
|
|
setGantts() {
|
|
|
|
|
|
const configGantts = projects => {
|
|
|
|
|
|
projects.map(project => {
|
2022-08-10 18:31:48 +08:00
|
|
|
|
let { endTime, pName, gantts } = project
|
2022-08-10 17:18:03 +08:00
|
|
|
|
const gantt = this.getGanttStyle(project)
|
|
|
|
|
|
gantt.background = this.colors[project.status]
|
2022-08-10 18:31:48 +08:00
|
|
|
|
|
2022-08-10 11:01:07 +08:00
|
|
|
|
if (gantts) {
|
|
|
|
|
|
gantts.push(gantt)
|
|
|
|
|
|
} else {
|
|
|
|
|
|
project.gantts = [gantt]
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-08-10 18:31:48 +08:00
|
|
|
|
if (project.delay) {
|
|
|
|
|
|
const delayStartTime = this.increaseDate(endTime, 1)
|
|
|
|
|
|
const delayEndTime = this.increaseDate(endTime, project.delay)
|
|
|
|
|
|
const gantt = this.getGanttStyle({ startTime: delayStartTime, endTime: delayEndTime, pName })
|
|
|
|
|
|
gantt.background = this.colors[3]
|
|
|
|
|
|
gantts.push(gantt)
|
|
|
|
|
|
console.log(gantt, '是的发生的范范')
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-08-10 11:01:07 +08:00
|
|
|
|
// debugger
|
|
|
|
|
|
project.children && configGantts(project.children)
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
configGantts(this.projects)
|
2022-08-09 18:34:00 +08:00
|
|
|
|
},
|
2022-08-10 18:31:48 +08:00
|
|
|
|
increaseDate(date, delay) {
|
|
|
|
|
|
const timestamp = new Date(date).getTime() + (delay + 1) * 1000 * 60 * 60 * 24
|
|
|
|
|
|
return new Date(timestamp)
|
|
|
|
|
|
.toISOString()
|
|
|
|
|
|
.replace(/-/g, '/')
|
|
|
|
|
|
.slice(0, 10)
|
|
|
|
|
|
},
|
2022-08-09 09:46:11 +08:00
|
|
|
|
getDays(date) {
|
|
|
|
|
|
const year = date.split('/')[0]
|
|
|
|
|
|
const month = +date.split('/')[1]
|
|
|
|
|
|
const large = [1, 3, 5, 7, 8, 10, 12]
|
|
|
|
|
|
const normal = [4, 6, 9, 11]
|
|
|
|
|
|
const small = [2]
|
|
|
|
|
|
let count = 0
|
|
|
|
|
|
switch (true) {
|
|
|
|
|
|
case large.includes(month):
|
|
|
|
|
|
count = 31
|
|
|
|
|
|
break
|
|
|
|
|
|
case normal.includes(month):
|
|
|
|
|
|
count = 30
|
|
|
|
|
|
break
|
|
|
|
|
|
case small.includes(month):
|
|
|
|
|
|
count = year % 4 ? 28 : 29
|
|
|
|
|
|
break
|
|
|
|
|
|
}
|
2022-08-08 19:02:56 +08:00
|
|
|
|
|
2022-08-09 09:46:11 +08:00
|
|
|
|
return (() => {
|
|
|
|
|
|
const days = new Array(count)
|
|
|
|
|
|
.fill(0)
|
2022-08-09 15:11:08 +08:00
|
|
|
|
.map((item, index) => {
|
|
|
|
|
|
let num = index + 1
|
|
|
|
|
|
let fulldate = date + (num < 10 ? '/0' + num : '/' + num)
|
|
|
|
|
|
return { num, date: fulldate }
|
|
|
|
|
|
})
|
|
|
|
|
|
.filter(item => item.num % 2)
|
2022-08-09 09:46:11 +08:00
|
|
|
|
if (count === 28) {
|
2022-08-09 15:11:08 +08:00
|
|
|
|
days.push({ num: 28, date: date + '/28' })
|
2022-08-09 09:46:11 +08:00
|
|
|
|
} else if (count === 30) {
|
2022-08-09 15:11:08 +08:00
|
|
|
|
days.push({ num: 30, date: date + '/30' })
|
2022-08-09 09:46:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
return days
|
|
|
|
|
|
})()
|
2022-08-09 11:23:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
handleOpen(index) {
|
|
|
|
|
|
if (index === this.openedIndex) {
|
|
|
|
|
|
this.openedIndex = 9999
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.openedIndex = index
|
|
|
|
|
|
}
|
2022-08-11 16:41:26 +08:00
|
|
|
|
},
|
|
|
|
|
|
handleScroll(e) {
|
|
|
|
|
|
if (this.scrollTimer) {
|
|
|
|
|
|
clearTimeout(this.scrollTimer)
|
|
|
|
|
|
}
|
|
|
|
|
|
this.scrollTimer = setTimeout(() => {
|
|
|
|
|
|
this.scrollLeft = e.target.scrollLeft
|
|
|
|
|
|
this.scrollTimer = null
|
|
|
|
|
|
}, 100)
|
|
|
|
|
|
},
|
|
|
|
|
|
handleHover(e) {
|
|
|
|
|
|
const { clientX, clientY } = e
|
|
|
|
|
|
const decreaseLeft = clientX - 680
|
|
|
|
|
|
const decreaseTop = clientY - 200
|
|
|
|
|
|
this.tooltipsStyle = {
|
2022-08-11 17:12:09 +08:00
|
|
|
|
left: decreaseLeft + this.scrollLeft + 'px',
|
2022-08-11 16:41:26 +08:00
|
|
|
|
top: decreaseTop + 'px',
|
|
|
|
|
|
display: 'block'
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
handleLeave() {
|
|
|
|
|
|
this.tooltipsStyle = {
|
|
|
|
|
|
display: 'none'
|
|
|
|
|
|
}
|
2022-08-09 09:46:11 +08:00
|
|
|
|
}
|
2022-08-10 16:06:59 +08:00
|
|
|
|
},
|
|
|
|
|
|
computed: {
|
|
|
|
|
|
dateList() {
|
|
|
|
|
|
let dates = []
|
|
|
|
|
|
const mapDates = data => {
|
|
|
|
|
|
data.map(p => {
|
|
|
|
|
|
dates.push(p.startTime)
|
|
|
|
|
|
dates.push(p.endTime)
|
|
|
|
|
|
p.children && mapDates(p.children)
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
mapDates(this.projects)
|
|
|
|
|
|
dates = dates.map(date => date.slice(0, 7)).sort()
|
|
|
|
|
|
dates = [...new Set(dates)]
|
|
|
|
|
|
return dates
|
|
|
|
|
|
}
|
2022-08-09 09:46:11 +08:00
|
|
|
|
}
|
2022-08-08 19:02:56 +08:00
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
2022-08-09 09:46:11 +08:00
|
|
|
|
.gantt-chart {
|
2022-08-09 13:41:02 +08:00
|
|
|
|
height: 100%;
|
2022-08-09 09:46:11 +08:00
|
|
|
|
.table {
|
2022-08-11 16:41:26 +08:00
|
|
|
|
position: relative;
|
2022-08-09 13:41:02 +08:00
|
|
|
|
height: 100%;
|
|
|
|
|
|
overflow-x: auto;
|
2022-08-10 15:18:10 +08:00
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
|
|
width: 10px;
|
|
|
|
|
|
height: 8px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
background-color: skyblue;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-08-09 09:46:11 +08:00
|
|
|
|
.thead {
|
|
|
|
|
|
border-bottom: 1px solid #234d5f;
|
2022-08-09 11:07:18 +08:00
|
|
|
|
.row {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
.td {
|
2022-08-09 13:41:02 +08:00
|
|
|
|
flex-shrink: 0;
|
2022-08-09 11:07:18 +08:00
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
height: 42px;
|
|
|
|
|
|
line-height: 42px;
|
2022-08-09 13:41:02 +08:00
|
|
|
|
background-color: #163549;
|
2022-08-09 11:07:18 +08:00
|
|
|
|
.date {
|
|
|
|
|
|
line-height: 21px;
|
|
|
|
|
|
border-left: 1px solid #234d5f;
|
|
|
|
|
|
.month {
|
|
|
|
|
|
border-bottom: 1px solid #234d5f;
|
2022-08-09 09:46:11 +08:00
|
|
|
|
}
|
2022-08-09 11:07:18 +08:00
|
|
|
|
.days {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
.day {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
&:nth-child(1) {
|
|
|
|
|
|
padding-left: 40px;
|
|
|
|
|
|
width: 200px;
|
|
|
|
|
|
}
|
|
|
|
|
|
&:not(:nth-child(1)) {
|
|
|
|
|
|
width: 100px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
&:nth-child(n + 4) {
|
|
|
|
|
|
width: 400px;
|
2022-08-09 09:46:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
.tbody {
|
|
|
|
|
|
border-left: 1px solid #234d5f;
|
2022-08-09 11:07:18 +08:00
|
|
|
|
.row-groups {
|
|
|
|
|
|
position: relative;
|
2022-08-10 11:37:39 +08:00
|
|
|
|
height: 42px;
|
2022-08-09 11:07:18 +08:00
|
|
|
|
&::before {
|
|
|
|
|
|
content: '';
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
left: 26px;
|
|
|
|
|
|
top: 16px;
|
|
|
|
|
|
width: 0;
|
|
|
|
|
|
height: 0;
|
|
|
|
|
|
border-top: 4px solid transparent;
|
|
|
|
|
|
border-right: 4px solid transparent;
|
|
|
|
|
|
border-bottom: 4px solid transparent;
|
|
|
|
|
|
border-left: 4px solid #5be1f4;
|
2022-08-09 15:11:08 +08:00
|
|
|
|
z-index: 99;
|
2022-08-09 11:07:18 +08:00
|
|
|
|
}
|
2022-08-09 11:23:11 +08:00
|
|
|
|
&.open {
|
2022-08-10 11:37:39 +08:00
|
|
|
|
height: unset;
|
2022-08-09 11:23:11 +08:00
|
|
|
|
&::before {
|
|
|
|
|
|
border-left-color: transparent;
|
|
|
|
|
|
border-top-color: #5be1f4;
|
|
|
|
|
|
}
|
2022-08-09 11:07:18 +08:00
|
|
|
|
}
|
|
|
|
|
|
> .row .td:first-child {
|
2022-08-09 11:23:11 +08:00
|
|
|
|
user-select: none;
|
2022-08-09 11:07:18 +08:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
.row {
|
2022-08-09 14:12:44 +08:00
|
|
|
|
position: relative;
|
2022-08-09 09:46:11 +08:00
|
|
|
|
display: flex;
|
2022-08-09 11:07:18 +08:00
|
|
|
|
.td {
|
2022-08-09 13:41:02 +08:00
|
|
|
|
flex-shrink: 0;
|
2022-08-09 11:07:18 +08:00
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
height: 42px;
|
|
|
|
|
|
line-height: 42px;
|
2022-08-09 13:41:02 +08:00
|
|
|
|
background-color: #0a1b2f;
|
2022-08-09 11:07:18 +08:00
|
|
|
|
border-right: 1px solid #234d5f;
|
|
|
|
|
|
border-bottom: 1px solid #234d5f;
|
|
|
|
|
|
.grids {
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
.grid {
|
2022-08-09 18:34:00 +08:00
|
|
|
|
position: relative;
|
2022-08-09 11:07:18 +08:00
|
|
|
|
flex: 1;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
|
|
border-right: 1px solid #234d5f;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
&:nth-child(1) {
|
|
|
|
|
|
padding-left: 40px;
|
|
|
|
|
|
width: 200px;
|
|
|
|
|
|
}
|
|
|
|
|
|
&:not(:nth-child(1)) {
|
|
|
|
|
|
width: 100px;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
text-align: center;
|
2022-08-09 09:46:11 +08:00
|
|
|
|
}
|
2022-08-09 11:07:18 +08:00
|
|
|
|
&:nth-child(n + 4) {
|
|
|
|
|
|
width: 400px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-08-09 14:12:44 +08:00
|
|
|
|
.progress {
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: calc(50% - 7px);
|
|
|
|
|
|
width: 20px;
|
|
|
|
|
|
height: 14px;
|
2022-08-10 14:26:52 +08:00
|
|
|
|
background: #557dee;
|
2022-08-09 14:12:44 +08:00
|
|
|
|
}
|
2022-08-09 11:07:18 +08:00
|
|
|
|
}
|
|
|
|
|
|
.children {
|
|
|
|
|
|
.td {
|
|
|
|
|
|
height: 38px;
|
|
|
|
|
|
line-height: 38px;
|
|
|
|
|
|
font-size: 14px;
|
2022-08-09 09:46:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-08-11 16:41:26 +08:00
|
|
|
|
.tooltips {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
padding: 10px;
|
|
|
|
|
|
width: 130px;
|
|
|
|
|
|
height: 65px;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
background-color: #50a6b3;
|
|
|
|
|
|
.status {
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
|
padding: 0 10px;
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
min-width: 60px;
|
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
background-color: #ff6c7f;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-08-08 19:02:56 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|